Backpropagation interview question

Deep LearningBackpropagationbasic

In neural network training, what is backpropagation?

  1. AAn optimizer that decides how far to move each weight, using the learning rate and the full history of past gradients.
  2. BThe forward computation that sends inputs through all the layers to produce predictions and the value of the loss.
  3. CAn algorithm that computes the loss gradient for every weight by propagating error signals backward through the layers.
  4. DA method that estimates each weight's gradient by nudging that weight slightly and measuring how much the loss changes.
Show the answer and explanation

Correct answer: C, An algorithm that computes the loss gradient for every weight by propagating error signals backward through the layers.

Explanation Backpropagation

Backpropagation is the algorithm that computes the gradient of the loss with respect to every weight. After the forward pass has produced the loss, it moves backward layer by layer, applying the chain rule and reusing intermediate results, so all gradients are obtained at a cost of the same order as the forward pass.

Why the other descriptions are wrong:

  • Deciding how far to move each weight is the job of the optimizer (SGD, Adam). Backprop only supplies the gradients the optimizer uses.
  • Sending inputs through the layers to get predictions and the loss is the forward pass, which happens before backprop.
  • Nudging each weight and re-measuring the loss is numerical (finite-difference) differentiation. It needs extra forward passes for every weight, so it is far too slow for training and is used mainly to check gradients.

Interview tip: separate the two steps clearly: backprop computes ∇L, then the optimizer uses ∇L to update the weights.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Deep Learning questions

  1. What does dropout do while a neural network is being trained?
  2. What does a 2-D convolutional layer compute at each output position?
  3. In a vanilla recurrent neural network, what is the hidden state?
  4. What is the core idea of an attention mechanism in a neural network?
  5. Which statement best defines transfer learning?