What if we set all the weights of a neural network to 0?
Proposed by @Al_Grigor
Deep Learning Quiz1 of 10
What if we set all the weights of a neural network to 0?
Proposed by @Al_Grigor
About · Quizzes · History of AI · To suggest new questions or report an error send me a dm.
Ten deep learning questions: activation functions, learning rates and optimizers, dropout and batch normalization, and the CNNs, RNNs and Transformers they make up.
10 questions per run, drawn from 49. Free, no sign-up. Every question comes from the deep learning interview questions.
The 10 questions this quiz opens with. Play first, then open one to check your answer.
The network can't learn useful features: every unit in a layer computes the same output and gets the same gradient, so the symmetry never breaks. With tanh or ReLU the weights don't move at all; with sigmoid they move in lockstep. Use small random weights instead. Longer answer
True Longer answer
A neural network trained to reproduce its input: an encoder compresses it into a small code and a decoder rebuilds it. The input is its own target, so it needs no labels and counts as unsupervised, or self-supervised, learning. Longer answer
The step size of gradient descent: each update moves the weights by the learning rate times the gradient. Too high and the loss oscillates or diverges; too low and training crawls. Longer answer
Without a nonlinear activation, stacked layers collapse into one linear map: W₂(W₁x + b₁) + b₂ is just another linear function of x. Activation functions add the nonlinearity that lets a neural network learn complex functions, such as XOR, that no linear model can represent. Longer answer
PyTorch, TensorFlow and JAX. Keras is a popular high-level API that runs on top of them; older frameworks include Caffe and Theano. Longer answer
Information about each token's position, added to or mixed into its representation, because self-attention on its own treats the input as an unordered set. The original Transformer added fixed sine and cosine waves of different frequencies; most current LLMs use rotary position embeddings (RoPE) instead. Longer answer
False. The fire-or-not idea comes from early step-function neurons. An activation function's essential role is to add nonlinearity, without which stacked layers collapse into one linear map. Longer answer
A decoding method that keeps the k most probable partial sequences, the beam, at each step instead of only the single best next token. It finds higher-probability outputs than greedy decoding, which can commit early to a token that leads nowhere, at roughly k times the cost. Longer answer
False Longer answer