Made with ScholarlyMake flashcards like these from your own notes
Question:What is the aim of the lecture on neural networks basics?
Answer:To give a very brief overview of neural networks, how they operate, and their key ingredients.
Question:When did the idea of mimicking the human brain computationally originate?
Answer:During World War II in the 1940s, specifically 1943-1944.
Question:Who is considered the proposer of the perceptron, the first realistic neural network?
Answer:Frank Rosenbelt in 1957-1958.
Question:What limitation did Minsky and Papert identify in the perceptron?
Answer:It cannot model the XOR function.
Question:What training method was introduced around 1986?
Answer:Backpropagation, the building block of neural network training.
Question:What theorem was proposed in 1989-1990 for multilayer perceptrons?
Answer:Universal Approximation Theorem (UAT): A single hidden layer MLP can approximate any continuous function to desired precision.
Question:What are the main parts of a biological neuron?
Answer:Dendrites (receive signals), soma (processes information), axon (transmits output), synapse (connection points).
Question:How does a neuron process inputs biologically?
Answer:Collects signals via dendrites, processes in soma, outputs via axon to next neurons.
Question:What are the inputs and output in an MPNet?
Answer:Binary inputs (0 or 1), binary output y: sum of inputs >= theta produces 1, else 0.
Question:What threshold theta mimics the AND operation in MPNet with two inputs?
Answer:Theta = 2, since only 1+1 >=2 produces 1.
Question:What threshold theta mimics the OR operation in MPNet with two inputs?
Answer:Theta = 1, since any 1 makes sum >=1.
Question:Why can't MPNet model XOR?
Answer:XOR data points are not linearly separable; no single line separates 1s from 0s.
Question:What key difference does perceptron introduce over MPNet?
Answer:Real-valued inputs and learnable weights w_i for each input, plus bias.
Question:What is the activation function g in the original perceptron?
Answer:Signum: g(x) = -1 if x<0, 0 if x=0, +1 if x>0.
Question:How does perceptron mimic AND with weights w1=1, w2=1, w0=-1.5?
Answer:x1 + x2 -1.5 <0 for (0,0),(0,1),(1,0) ->0; =0.5>0 for (1,1)->1.
Question:Why can't perceptron handle XOR?
Answer:Linear decision boundary (hyperplane); XOR requires non-linearity.
Question:What structure defines a multilayer perceptron (MLP)?
Answer:Input layer, one or more hidden layers, output layer; fully connected feedforward.
Question:What notation is used for weights in MLP?
Answer:w_{ji}^l where i indexes from/to neuron, l layer superscript.
Question:How does MLP solve XOR using two hidden neurons?
Answer:h1 acts as OR (w=1,1 bias=-0.5), h2 as NAND (w=1,1 bias=-1.5), y = h1 - h2 -0.5 with signum.
Question:What are the two operations in each MLP neuron?
Answer:Aggregation (weighted sum + bias = a_j^l), activation h(a_j^l) = z_j^l.
Question:Why introduce non-linear activation functions in neural networks?
Answer:Linear activations lead to constant derivatives (0 or 1), no effective non-linearity; needed for complex functions like XOR.
Question:What is the sigmoid activation function?
Answer:\( \sigma(x) = rac{1}{1 + e^{-x}} \), squashes to (0,1).
Question:What problem does sigmoid have besides vanishing gradients?
Answer:Not zero-symmetric; outputs 0-1 instead of -1 to 1.
Question:What is the tanh activation function?
Answer:\( anh(x) \), squashes to (-1,1), zero-symmetric; derivative 1 - \( anh^2(x) \).
Question:What is softmax activation?
Answer:\( rac{e^{x_i}}{\sum e^{x_j}} \), turns vector into probabilities summing to 1.
Question:What is ReLU activation?
Answer:\( f(x) = \max(0, x) \), linear for x>=0, 0 otherwise.
Question:What is the dead neuron problem in ReLU?
Answer:If pre-activation a<0 always, output z=0 forever; neuron never activates.
Question:What is Leaky ReLU?
Answer:\( f(x) = x \) if x>=0, else \( 0.01 x \); small slope for negatives.
Question:What is Parametric ReLU (PReLU)?
Answer:Like Leaky ReLU but leak alpha is learnable parameter.
Question:What is Concatenated ReLU (CReLU)?
Answer:Vector [ReLU(x), ReLU(-x)]; captures both positive and negative parts.
Question:What is ELU activation?
Answer:\( x \) if x>=0, else \( \alpha (e^x - 1) \); exponential for negatives.
Question:What is GELU?
Answer:\( x \cdot \Phi(x) \) where \( \Phi \) is cumulative standard normal distribution.
Question:What is Gated Linear Unit (GLU)?
Answer:A * sigmoid(W a + b); element-wise multiply pre-act with sigmoid gate.
Question:What is Swish (SiLU) activation?
Answer:\( x \cdot \sigma(\beta x) \); beta learnable, blends linear/non-linear.
Question:What is SwiGLU?
Answer:Swish(GLU): x ⊙ Swish(Wx + b).
Question:What is backpropagation?
Answer:Compute gradients of error w.r.t. weights using chain rule, backward from output to input.
Question:How is gradient computed for output layer weight W_{kj}^2?
Answer:∂E/∂W_{kj}^2 = (y_k - t_k) * z_j^1.
Question:For hidden layer weight W_{ji}^1, what chain rule terms?
Answer:(∂E/∂z_j^1) * (∂z_j^1/∂a_j^1) * (∂a_j^1/∂W_{ji}^1) = [sum_k (y_k-t_k) W_{kj}^2] * (1 - z_j^2) * x_i.
Question:What causes vanishing gradients in deep networks?
Answer:Product of many small gradients (<1) across layers -> near-zero update for early layers.
Question:What are common regularization techniques for neural networks?
Answer:Early stopping, L1/L2 regularization, dropout (freeze fraction of neurons).
Question:How does Frank Rosenbelt speculate about perceptron capabilities?
Answer:May learn, make decisions, and translate language.
Question:Why weights in perceptron for movie decision example?
Answer:Different features have varying importance, e.g., hero actor > duration for fans.
Question:What is modern view of neural networks vs. brain mimicry?
Answer:No longer mimic brain; just complex non-linear functions for effectiveness.
Question:In MLP, how many neurons per layer assumed for simplicity?
Answer:Equal number M in each hidden layer.
Question:Why activation derivatives matter in backprop?
Answer:Chain rule multiplies them; constant/zero derivatives hinder learning.
Question:What learning rate schedule example?
Answer:Dynamic: (1 - dk * epoch time) * learning rate for regularization.
Question:How to compare perceptron and MPNet performance on linearly separable data?
Answer:Both can model AND/OR; perceptron better with weights for feature importance.
Question:Why MLP over single perceptron for non-linear problems?
Answer:Hidden layers introduce non-linearity via stacked activations, enabling complex boundaries like XOR.
Question:Compare sigmoid and tanh: key difference?
Answer:Sigmoid 0-1 (not zero-centered), tanh -1 to 1 (zero-symmetric); both vanishing gradients.
Question:How does ReLU compare to sigmoid/tanh in computation?
Answer:ReLU simpler/faster (max(0,x)), no exp; but dead neurons vs. vanishing gradients.
Question:When to use softmax activation?
Answer:Output layer for multi-class classification; produces probability distribution.
Question:Why prefer ReLU variants like Leaky over plain ReLU?
Answer:Allow gradient flow for negative pre-activations, avoiding dead neurons.