Skip to content

Deep Learning Quiz

Deep Learning Quiz1 of 10

Deep Learning

What if we set all the weights of a neural network to 0?

Proposed by @Al_Grigor

datasciencetrivia.com

Created by santiviquez

About · Quizzes · History of AI · To suggest new questions or report an error send me a dm.

About the deep learning quiz

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.

Questions and answers

The 10 questions this quiz opens with. Play first, then open one to check your answer.

  1. What if we set all the weights of a neural network to 0? Show 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

  2. Stochastic Gradient Descent is the proper technique to use when the full dataset doesn’t fit in memory. Show answer

    True Longer answer

  3. What is an autoencoder? Show 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

  4. What is the learning rate? Show 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

  5. Why do we need activation functions? Show 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

  6. Name three different deep learning frameworks. Show 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

  7. What is positional encoding in transformers? Show 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

  8. In neural networks, an activation function’s most essential role is to decide whether a unit or neuron should fire. Show 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

  9. What is beam search? Show 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

  10. Dropout is an excellent regularization technique that speeds the training process. Show answer

    False Longer answer

More quizzes