Neural Network Backpropagation
- 53Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
- spaceFlip card
- KI knew it
- DI didn't know it
- ←Previous card
- →Next card
What is the forward path in a neural network?
Starting with an input, each layer applies a weighted transformation and bias, computes a pre-activation and activation, and passes the result onward until the model produces an output used to compute the loss.
Or swipe the card
53 cards
What is the forward path in a neural network?
Starting with an input, each layer applies a weighted transformation and bias, computes a pre-activation and activation, and passes the result onward until the model produces an output used to compute the loss.
In what order are derivatives typically computed during backpropagation?
Starting from the loss, compute derivatives backward through the network: from loss to output, then through later activations and pre-activations toward earlier layers.
What general relationship does the chain rule provide for a network module?
Given the derivative of the loss with respect to a module’s output, the chain rule lets you compute the derivative with respect to that module’s input.
How does backpropagation obtain gradients for layer weights and biases?
It uses the derivative information at each layer to compute the loss gradients with respect to that layer’s weights and biases.
Why must activation derivatives be computed sequentially during backpropagation?
Each activation derivative depends on derivative information propagated from the next layer, so the computations follow a backward dependency order.
What terms are used in the lecture as rough synonyms for training loss?
Training loss, training error, training cost, and tuning loss are used for similar concepts in this discussion.
What is the training loss for a model using square loss?
It is the average or aggregate squared prediction error on the training examples, according to the chosen loss definition.
How can maximum likelihood determine a training loss?
Derive a maximum-likelihood estimator for the data and use the negative log-likelihood as the training loss.
What are examples of methods used to minimize a training loss?
Analytical solutions, gradient descent, stochastic gradient descent, and Newton’s method are examples.
What is test loss for a learned model?
The expected loss of the model on a new example drawn from the test distribution.
How does a finite test set estimate expected test loss?
Compute the empirical average loss over multiple new examples drawn from the test distribution.
What is the generalization gap?
The difference between test loss and training loss.
What is a common relationship between training loss and test loss?
Training loss is often no greater than test loss, though the two can be similar or differ substantially.
Why can’t test loss usually be directly optimized during training?
Choosing model parameters based on test loss would require using the test data during training or tuning, compromising its role as an unseen evaluation set.
What two quantities should be small for a model to have low test loss?
The training loss and the generalization gap.
What is overfitting commonly characterized by?
Low training loss but high test loss, producing a large generalization gap.
What is underfitting?
A failure to fit the training data well, typically reflected in high training loss.
How can an overly flexible model overfit a small, noisy dataset?
It can fit incidental noise and small fluctuations in the observed examples instead of the underlying relationship.
Why might a degree-five polynomial fit four training points perfectly yet generalize poorly?
Its flexibility can let it pass through all four points, including their noise, without capturing the underlying trend.
Why would a linear model underfit data generated by a quadratic relationship?
A linear model cannot represent the curved quadratic relationship, so it has substantial fitting error even with abundant data.
How does model complexity relate to underfitting and overfitting?
Models that are too simple may underfit, while models that are too complex for the available data may overfit.
What does it mean for a model to be sensitive to training data?
Small changes in the sampled examples can lead to substantially different learned models.
How can resampling the training data reveal overfitting?
Train the same model on multiple independently sampled datasets and compare the resulting models; large differences indicate sensitivity to the sample.
What is bias in the bias–variance perspective?
Bias reflects error due to limitations or assumptions of the model family, such as being unable to represent the true relationship.
How can bias be understood in terms of a model family’s best possible fit?
It reflects the best performance the model family could achieve, even with effectively unlimited data from the same setting.
Why does a linear model have high bias for a quadratic ground-truth relationship?
Because no linear function can represent the quadratic relationship exactly.
How does bias generally change as model complexity increases?
Bias generally decreases as the model becomes more expressive.
What is variance in the bias–variance perspective?
Variance describes how much the learned model changes across different training datasets drawn from the same distribution.
What two factors can contribute to high variance?
Too little training data and an overly complex model.
How can additional training data reduce variance?
More examples from the same distribution constrain the learned model and reduce its sensitivity to the particular sample.
How can reducing model complexity reduce variance?
A simpler model has fewer ways to fit sample-specific fluctuations, so its fit tends to vary less across datasets.
What is the classical bias–variance trade-off?
Increasing model complexity generally reduces bias but increases variance, so test error can be lowest at an intermediate complexity.
How does the classical bias–variance picture describe test error?
For the square-loss setting described, test error can be decomposed into squared bias and variance.
Why is the exact bias–variance decomposition less straightforward for cross-entropy loss?
The corresponding mathematical decomposition is more challenging; the classical well-established decomposition discussed applies to square loss.
How can training loss help diagnose bias or underfitting?
A large training loss can suggest that the model is too limited to fit the data well, consistent with high bias or underfitting.
How should model complexity usually be selected in practice?
Try multiple model choices and select among them using a validation set.
What is the purpose of using a validation set rather than the test set to choose a model?
A validation set supports model selection while preserving the test set for evaluation on examples not used in that selection.
How can the bias–variance picture guide which model complexities to try?
If tested models appear to be on one side of a U-shaped test-error curve, the picture can suggest exploring complexities nearer the minimum rather than continuing farther along the same trend.
Why does the best model complexity depend on the data and ground truth?
The appropriate balance depends on the true relationship, the amount of data, and the resulting trade-off between approximation error and sensitivity.
What is double descent in model-wise terms?
A pattern in which test error first decreases, then rises near a peak, and later decreases again as model size or parameter count grows.
What is the overparameterized regime in the double-descent discussion?
A regime in which the number of model parameters exceeds the number of training examples.
What is data-wise double descent?
A pattern in which test error changes as the number of training examples increases, often decreasing, peaking near a critical point, and then decreasing again.
In simple linear-model settings, where can the double-descent peak occur?
Near the point where the number of examples is close to the number of model parameters or features.
How can model complexity be varied while staying within linear models?
Change the number of features used in the linear model.
Does test error always keep decreasing after the second descent?
No. It may continue decreasing, plateau, or increase somewhat, depending on the setting.
Why is double descent practically relevant to deep learning?
Many deep-learning settings use more parameters than training examples, making the overparameterized regime important to understand.
What is one proposed explanation for the peak near equal numbers of examples and parameters in linear models?
Some standard algorithms, such as gradient-based methods, can perform poorly near this regime and produce solutions with very large parameter norms.
How can a large parameter norm relate to model complexity?
A large norm can indicate a more complex or less constrained model, even when its parameter count is not especially large.
How can regularization mitigate a peak in double descent?
A method that penalizes large parameter norms can favor smaller-norm solutions and reduce the peak in some settings.
What does implicit regularization mean in the double-descent discussion?
The optimization algorithm can favor certain solutions, such as small-norm models, even when no explicit norm penalty is included in the loss.
Why might an overparameterized model generalize well despite having many possible fits?
The optimization process may implicitly favor a simpler solution, such as one with a small parameter norm.
Is parameter count a universal measure of model complexity?
No. Parameter norms and other properties can also reflect complexity, and no single measure is universal across all settings.
Why might adding more features fail to make a linear model more complex in practice?
Some added features may receive coefficients close to zero and therefore have little effect on the learned function.

Ask anything
We've read this whole study set, so questions about it get the best answers.