1. Home
  2. Explore
  3. Computer Science
  4. Neural Network Backpropagation

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Neural Network Backpropagation

  • 55Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Backpropagation

In a neural network’s forward pass, what happens after an input is multiplied by a layer’s weights and combined with its biases?

55 questions

  1. 1

    In a neural network’s forward pass, what happens after an input is multiplied by a layer’s weights and combined with its biases?

    1. A

      The result is differentiated with respect to every earlier layer

    2. B

      The result is compared with the test labels to compute the generalization gap

    3. C

      The result is used to select a new training distribution

    4. D

      The result is transformed into an activation that is passed to the next layer

    Correct answer
    D

    The result is transformed into an activation that is passed to the next layer

    Explanation

    The forward pass applies layer operations to the input, producing pre-activations and then activations that are passed through subsequent layers to produce the model output.

  2. 2

    Which sequence best describes the order of backpropagation computations in a multilayer network?

    1. A

      Compute all activation derivatives independently before evaluating the loss

    2. B

      Start with the first-layer weights and propagate predictions forward until reaching the loss

    3. C

      Compute the test loss first and use it to determine the training predictions

    4. D

      Start with the loss derivative at the output and propagate derivatives backward through intermediate activations

    Correct answer
    D

    Start with the loss derivative at the output and propagate derivatives backward through intermediate activations

    Explanation

    Backpropagation begins by differentiating the loss with respect to the model output, then propagates derivatives backward through the network using the dependencies between modules.

  3. 3

    Why can the loss derivative with respect to the model output often be computed first?

    1. A

      The loss is defined directly in terms of the model output and the target

    2. B

      The test distribution is known before the training examples are used

    3. C

      The output derivative is always identical to the derivative of every weight

    4. D

      The model output does not depend on any network parameters

    Correct answer
    A

    The loss is defined directly in terms of the model output and the target

    Explanation

    Because the loss function directly compares the output with its target, its derivative with respect to the output can be evaluated before propagating derivatives through earlier layers.

  4. 4

    What role do the backpropagation lemmas or rules described in the lecture play?

    1. A

      They convert a derivative with respect to a module’s output into derivatives with respect to its inputs or parameters

    2. B

      They choose the model architecture that has the smallest test loss

    3. C

      They replace the forward pass by directly estimating the training labels

    4. D

      They guarantee that every neural network reaches its global minimum

    Correct answer
    A

    They convert a derivative with respect to a module’s output into derivatives with respect to its inputs or parameters

    Explanation

    The rules describe how to propagate a known derivative through a module to obtain derivatives with respect to its input and parameters.

  5. 5

    Once the derivative of the loss with respect to a layer’s output is known, what can be computed for that layer?

    1. A

      The test labels for all examples in the test distribution

    2. B

      The optimal number of training examples for every model

    3. C

      The exact ground-truth function that generated the data

    4. D

      Derivatives with respect to the layer’s input and its weights and biases

    Correct answer
    D

    Derivatives with respect to the layer’s input and its weights and biases

    Explanation

    The derivative at a module’s output can be used to compute gradients with respect to its input, weights, and biases.

  6. 6

    Why must activation derivatives generally be computed in sequence during backpropagation?

    1. A

      Each earlier activation’s derivative depends on the derivative propagated from the later layer

    2. B

      Every activation derivative can be computed only after evaluating the test loss

    3. C

      The weights are updated before any activation derivatives are available

    4. D

      The training examples are revealed one layer at a time

    Correct answer
    A

    Each earlier activation’s derivative depends on the derivative propagated from the later layer

    Explanation

    The backward dependencies connect later quantities to earlier ones, so activation derivatives must be propagated sequentially from the output toward the input.

  7. 7

    How do the dependencies for weight-gradient calculations differ from the sequential activation-gradient chain?

    1. A

      All weight gradients are independent of the backward pass, while activation gradients require it

    2. B

      Weight gradients must always be calculated before the output derivative, while activation gradients are calculated afterward

    3. C

      A layer’s weight gradients can be calculated once the relevant derivative reaches that layer, while earlier activation derivatives still require backward propagation

    4. D

      Weight gradients depend only on test examples, while activation gradients depend only on training examples

    Correct answer
    C

    A layer’s weight gradients can be calculated once the relevant derivative reaches that layer, while earlier activation derivatives still require backward propagation

    Explanation

    The lecture distinguishes the sequential dependencies among activation derivatives from the calculation of each layer’s parameter gradients once the needed derivative is available.

  8. 8

    What does training loss measure?

    1. A

      The expected loss over every possible example from the test distribution

    2. B

      The difference between a model’s training and test losses

    3. C

      The variation between models trained on different datasets

    4. D

      The loss of a model on examples used to fit or tune its parameters

    Correct answer
    D

    The loss of a model on examples used to fit or tune its parameters

    Explanation

    Training loss, also called training error or training cost in the lecture, is the loss evaluated on the training examples used to fit the model.

  9. 9

    Which statement about training loss functions is supported by the lecture?

    1. A

      They must always be squared loss, because other losses cannot be optimized

    2. B

      They are determined by the number of parameters rather than by the prediction task

    3. C

      They are defined only on examples that were excluded from training

    4. D

      They may include squared loss or negative log-likelihood derived from a maximum-likelihood principle

    Correct answer
    D

    They may include squared loss or negative log-likelihood derived from a maximum-likelihood principle

    Explanation

    The lecture discusses squared loss and cross-entropy, and notes that negative log-likelihood can serve as a training loss when derived from maximum likelihood.

  10. 10

    What does test loss represent in the lecture’s population-level definition?

    1. A

      The expected loss on a fresh example drawn from the test distribution

    2. B

      The average difference between predictions and training labels only

    3. C

      The loss of the most complex model in a model family

    4. D

      The smallest loss achieved on the training examples during optimization

    Correct answer
    A

    The expected loss on a fresh example drawn from the test distribution

    Explanation

    Test loss is defined as the expected loss on a new example drawn from the test distribution, rather than an example used to train the model.

  11. 11

    Why is a held-out test set useful for estimating expected test loss?

    1. A

      It allows the model to be optimized directly for the test examples without affecting evaluation

    2. B

      It guarantees that the model has zero loss on all future examples

    3. C

      It makes the test loss identical to the training loss by construction

    4. D

      Its empirical average loss approximates the expectation when its examples are drawn from the test distribution

    Correct answer
    D

    Its empirical average loss approximates the expectation when its examples are drawn from the test distribution

    Explanation

    A test set drawn from the same distribution provides an empirical average that estimates the expected loss over that distribution.

  12. 12

    Which condition makes a set of examples appropriate for evaluating generalization?

    1. A

      The examples are chosen because the model already predicts them correctly

    2. B

      The examples are fresh and were not used in the model’s training process

    3. C

      The examples were repeatedly used to select model parameters

    4. D

      The examples are guaranteed to have the same labels as the training set

    Correct answer
    B

    The examples are fresh and were not used in the model’s training process

    Explanation

    Generalization concerns performance on unseen examples, so test examples should not have been used in the training process.

  13. 13

    What is the generalization gap?

    1. A

      The difference between the training loss and the optimization algorithm’s learning rate

    2. B

      The difference between test loss and training loss

    3. C

      The difference between two models’ numbers of parameters

    4. D

      The difference between a prediction and its target on one training example

    Correct answer
    B

    The difference between test loss and training loss

    Explanation

    The generalization gap refers to the difference between performance on unseen test data and performance on the training data.

  14. 14

    A model has very low training loss but substantially higher test loss. What does this most directly indicate?

    1. A

      A large generalization gap and a typical overfitting pattern

    2. B

      A high training error caused necessarily by excessive model bias

    3. C

      A small generalization gap and a typical underfitting pattern

    4. D

      A test loss that must be lower than the training loss

    Correct answer
    A

    A large generalization gap and a typical overfitting pattern

    Explanation

    Low training loss combined with much higher test loss is a typical sign of overfitting and a large generalization gap.

  15. 15

    Which pair of quantities does the lecture identify as important to keep small for good test performance?

    1. A

      Model output and the number of optimization steps

    2. B

      Test-set size and the maximum training loss

    3. C

      Training-set size and the number of labels

    4. D

      Training loss and the generalization gap

    Correct answer
    D

    Training loss and the generalization gap

    Explanation

    Since test loss is related to training loss plus the gap between training and test performance, the lecture emphasizes keeping both training loss and the generalization gap small.

  16. 16

    Why can’t one directly choose model parameters by minimizing loss on the test set?

    1. A

      Doing so would use the test data during model selection rather than reserving it for evaluation

    2. B

      The test set cannot contain input-output examples

    3. C

      Minimizing test loss necessarily increases training loss to infinity

    4. D

      Test loss is always mathematically undefined for trained models

    Correct answer
    A

    Doing so would use the test data during model selection rather than reserving it for evaluation

    Explanation

    Test data are meant to evaluate a model on unseen examples. Choosing parameters based on test loss would make those examples part of the model-selection process.

  17. 17

    Why might the training loss be lower than the test loss in realistic applications?

    1. A

      The test loss is defined to include an additional penalty in every task

    2. B

      The model was fitted using training examples, so its performance on those examples may be better than on fresh examples

    3. C

      Training examples always have noiseless labels, while test examples never do

    4. D

      The training loss measures parameter size, while the test loss measures prediction accuracy

    Correct answer
    B

    The model was fitted using training examples, so its performance on those examples may be better than on fresh examples

    Explanation

    Because the model is optimized using the training data, it often performs better on those examples than on unseen examples, though this is not guaranteed in every possible setup.

  18. 18

    A model has high training loss as well as high test loss. Which failure pattern does this most closely match?

    1. A

      Underfitting

    2. B

      A zero generalization gap

    3. C

      Overfitting

    4. D

      Second descent

    Correct answer
    A

    Underfitting

    Explanation

    Underfitting describes a model that does not fit the training data well, so its training loss is high; test loss may also be high.

  19. 19

    A polynomial model passes through a few noisy training points exactly but performs poorly on new points. What is the most likely diagnosis?

    1. A

      Overfitting, because it has fit irregularities in the observed sample

    2. B

      High bias, because it cannot represent a curved relationship

    3. C

      Underfitting, because its training loss is too large

    4. D

      Successful generalization, because its training loss is near zero

    Correct answer
    A

    Overfitting, because it has fit irregularities in the observed sample

    Explanation

    A highly flexible model can fit noise or sample-specific patterns, producing very low training loss but poor performance on fresh examples.

  20. 20

    In the lecture’s quadratic-data example, why does a linear model have high bias?

    1. A

      A linear function changes substantially whenever the data are resampled

    2. B

      A linear function is too flexible to fit the four observed points

    3. C

      A linear function cannot represent the underlying quadratic relationship, even with abundant data

    4. D

      A linear function has more parameters than the quadratic ground truth

    Correct answer
    C

    A linear function cannot represent the underlying quadratic relationship, even with abundant data

    Explanation

    The linear model family cannot express a quadratic function. This mismatch remains even if more data or less noise are available.

  21. 21

    How does the lecture characterize bias in terms of the best possible performance of a model family?

    1. A

      As the difference between the loss on two independently sampled test sets

    2. B

      As the change in a model when a different training sample is drawn

    3. C

      As the training error caused only by random label noise in one sample

    4. D

      As the error that remains for the best model in the family even with effectively unlimited data

    Correct answer
    D

    As the error that remains for the best model in the family even with effectively unlimited data

    Explanation

    The lecture describes bias as the error arising from limitations of the model family: even with unlimited data, the best model in that family may not match the true relationship.

  22. 22

    Which change is most directly capable of reducing the high bias caused by a model family that cannot express the true relationship?

    1. A

      Resample the same number of examples with different noise

    2. B

      Increase the test-set size without changing the model

    3. C

      Draw more samples while keeping the same inadequate model family

    4. D

      Use a more expressive model family that can represent the relationship

    Correct answer
    D

    Use a more expressive model family that can represent the relationship

    Explanation

    When the model family itself cannot represent the underlying pattern, greater expressivity can address that limitation. More data alone cannot make a linear family represent a quadratic function.

  23. 23

    What does high variance mean in the resampling interpretation presented in the lecture?

    1. A

      Models learned from different datasets drawn under the same conditions differ substantially

    2. B

      The test distribution has a larger number of examples than the training distribution

    3. C

      The model family cannot represent the underlying function even with unlimited data

    4. D

      The average training loss is high for every dataset

    Correct answer
    A

    Models learned from different datasets drawn under the same conditions differ substantially

    Explanation

    Variance describes how much the learned model changes when the training dataset is redrawn from the same distribution.

  24. 24

    Why might a high-degree polynomial have high variance when fitted to only a few noisy observations?

    1. A

      Its restricted form prevents it from passing near the observed points

    2. B

      It always has higher training loss than a linear model

    3. C

      It ignores the training labels and fits only the test distribution

    4. D

      Its flexibility lets it adapt strongly to sample-specific noise, so a new sample can produce a different fitted curve

    Correct answer
    D

    Its flexibility lets it adapt strongly to sample-specific noise, so a new sample can produce a different fitted curve

    Explanation

    A highly flexible model can explain incidental patterns in a small sample. Different samples contain different noise patterns, so the fitted model may change substantially.

  25. 25

    How can additional training data often affect variance?

    1. A

      It changes the ground-truth function into a simpler one

    2. B

      It can reduce variance by making the fitted model less dependent on the randomness of a small sample

    3. C

      It necessarily increases variance because each example adds another source of noise

    4. D

      It eliminates bias from every model family

    Correct answer
    B

    It can reduce variance by making the fitted model less dependent on the randomness of a small sample

    Explanation

    More data from the same distribution can make the learned model less sensitive to the particular sample and thus reduce variance, although it does not automatically remove bias.

  26. 26

    What is a second way to address variance besides collecting more data?

    1. A

      Increase the amount of noise in the training labels

    2. B

      Use a less complex model that is less sensitive to the observed sample

    3. C

      Optimize the test loss directly using the test examples

    4. D

      Use a more complex model so it can fit every fluctuation

    Correct answer
    B

    Use a less complex model that is less sensitive to the observed sample

    Explanation

    The lecture identifies both limited data and excessive model complexity as contributors to variance; using a simpler model can reduce sensitivity to sample-specific patterns.

  27. 27

    Which change is most likely to reduce the high variance of a fifth-degree polynomial fitted to a small sample?

    1. A

      Fit the model repeatedly to the test set until its loss decreases

    2. B

      Keep the model unchanged but remove all training labels

    3. C

      Add more polynomial terms while keeping the sample size fixed

    4. D

      Collect more examples from the same distribution or choose a simpler model

    Correct answer
    D

    Collect more examples from the same distribution or choose a simpler model

    Explanation

    The lecture presents more data and reduced model complexity as ways to mitigate variance.

  28. 28

    As model complexity increases in the classical bias-variance picture, how are bias and variance expected to change?

    1. A

      Bias tends to increase while variance tends to decrease

    2. B

      Both bias and variance must decrease at the same rate

    3. C

      Neither bias nor variance is related to model complexity

    4. D

      Bias tends to decrease while variance tends to increase

    Correct answer
    D

    Bias tends to decrease while variance tends to increase

    Explanation

    A more expressive model can better represent the underlying relationship, tending to lower bias, but it may be more sensitive to the training sample, tending to raise variance.

  29. 29

    What shape does the classical bias-variance account predict for test error as model complexity increases?

    1. A

      A roughly U-shaped curve, with the best trade-off at an intermediate complexity

    2. B

      A curve that must increase continuously from the simplest model onward

    3. C

      A curve that must decrease continuously regardless of data size

    4. D

      A horizontal line because training and test error are identical

    Correct answer
    A

    A roughly U-shaped curve, with the best trade-off at an intermediate complexity

    Explanation

    The classical picture combines decreasing bias and increasing variance, yielding a U-shaped test-error curve with an intermediate sweet spot.

  30. 30

    A model has high training loss because its hypothesis family cannot capture the pattern in the data. What does the bias-variance account suggest?

    1. A

      Assume the model already has excessive variance

    2. B

      Increase model complexity to reduce the representational limitation

    3. C

      Collect test examples and use them as training labels

    4. D

      Decrease model complexity to increase its ability to fit the pattern

    Correct answer
    B

    Increase model complexity to reduce the representational limitation

    Explanation

    High training error can indicate underfitting from high bias. Increasing model expressivity may allow the model to represent the underlying relationship better.

  31. 31

    Why can a fifth-degree polynomial fit four points exactly yet generalize poorly?

    1. A

      Its flexibility can match the observed points and their noise without capturing the broader underlying pattern

    2. B

      Four points are too many for a polynomial model to process

    3. C

      Exact fit on four points guarantees poor training performance but excellent test performance

    4. D

      A fifth-degree polynomial cannot represent a quadratic function

    Correct answer
    A

    Its flexibility can match the observed points and their noise without capturing the broader underlying pattern

    Explanation

    A sufficiently flexible polynomial can interpolate a small dataset, but an exact fit may reflect incidental sample fluctuations rather than the underlying relationship.

  32. 32

    If the true relationship is quadratic and there is abundant data, why might a fifth-degree polynomial fit approach a quadratic curve?

    1. A

      A fifth-degree polynomial is mathematically unable to fit anything but a quadratic curve

    2. B

      The larger sample discourages fitting fluctuations that do not explain many examples, and the polynomial family includes quadratics

    3. C

      The test set is used to replace the fifth-degree model with a quadratic model automatically

    4. D

      More data forces every fitted coefficient to be exactly zero

    Correct answer
    B

    The larger sample discourages fitting fluctuations that do not explain many examples, and the polynomial family includes quadratics

    Explanation

    With abundant data, a highly wiggly fit may incur substantial error across the sample. Since a fifth-degree polynomial can represent a quadratic by setting higher-order coefficients to zero, the fitted function can become effectively quadratic.

  33. 33

    What is the key distinction between the lecture’s roles for bias and variance?

    1. A

      Bias reflects a model family’s representational limitation, while variance reflects sensitivity to the particular dataset

    2. B

      Bias measures sensitivity to resampling, while variance measures inability to represent the ground truth

    3. C

      Bias is measured only on test examples, while variance is measured only on training examples

    4. D

      Bias depends only on the number of labels, while variance depends only on the loss function

    Correct answer
    A

    Bias reflects a model family’s representational limitation, while variance reflects sensitivity to the particular dataset

    Explanation

    Bias is associated with limitations of the model family; variance is associated with how much the learned model changes across different samples.

  34. 34

    For which loss does the lecture describe the classical bias-variance decomposition as especially well established?

    1. A

      Absolute loss only

    2. B

      Squared loss

    3. C

      Any loss without qualification

    4. D

      Cross-entropy loss

    Correct answer
    B

    Squared loss

    Explanation

    The lecture notes that the classic mathematical decomposition is well established for squared loss, while a corresponding formal decomposition for cross-entropy is more challenging.

  35. 35

    Which statement best captures the lecture’s qualification about bias-variance decomposition for cross-entropy?

    1. A

      Bias and variance are meaningless whenever cross-entropy is used

    2. B

      Cross-entropy can be used only when the model has zero variance

    3. C

      The intuition may still apply, but a formal decomposition is more challenging than for squared loss

    4. D

      Cross-entropy always has exactly the same established decomposition as squared loss

    Correct answer
    C

    The intuition may still apply, but a formal decomposition is more challenging than for squared loss

    Explanation

    The lecture says the intuitions remain useful, but formally decomposing test error into bias and variance for cross-entropy is more difficult than for squared loss.

  36. 36

    What phenomenon challenges the classical expectation that test error continues rising after the U-shaped minimum?

    1. A

      Maximum likelihood, in which test examples become training examples

    2. B

      Double descent, in which test error can fall again after an initial rise

    3. C

      Underfitting, in which training error is always zero

    4. D

      Backpropagation, in which gradients stop depending on the loss

    Correct answer
    B

    Double descent, in which test error can fall again after an initial rise

    Explanation

    Double descent describes a test-error curve that rises toward a peak and then decreases again as model size or another relevant quantity increases further.

  37. 37

    In model-wise double descent, what quantity is varied along the horizontal axis?

    1. A

      The number of test labels

    2. B

      Model size or complexity, often represented by the number of parameters

    3. C

      The average magnitude of the training noise

    4. D

      The number of optimization steps

    Correct answer
    B

    Model size or complexity, often represented by the number of parameters

    Explanation

    Model-wise double descent plots test error against model complexity, often measured by the number of parameters.

  38. 38

    In data-wise double descent, what quantity is varied along the horizontal axis?

    1. A

      The number of model parameters

    2. B

      The number of training examples

    3. C

      The number of network layers used for backpropagation

    4. D

      The degree of a polynomial loss function

    Correct answer
    B

    The number of training examples

    Explanation

    Data-wise double descent examines how test error changes as the number of training examples varies.

  39. 39

    How can data-wise double descent differ from the classical expectation that more data steadily improves test performance?

    1. A

      Test error may rise to a peak when data count is near the number of parameters, then decline as more data are added

    2. B

      Test error must remain unchanged until the number of examples exceeds the parameter count

    3. C

      Test error must rise continuously whenever any new training examples are added

    4. D

      Test error becomes undefined as soon as the dataset grows

    Correct answer
    A

    Test error may rise to a peak when data count is near the number of parameters, then decline as more data are added

    Explanation

    In data-wise double descent, test error can peak when the number of examples is near the number of parameters and then decrease as additional data are provided.

  40. 40

    What does the term overparameterized regime refer to in the lecture’s discussion?

    1. A

      A regime in which the number of data points exceeds the number of model parameters

    2. B

      A regime in which training loss is necessarily larger than test loss

    3. C

      A regime in which the model has no trainable parameters

    4. D

      A regime in which the number of model parameters exceeds the number of data points

    Correct answer
    D

    A regime in which the number of model parameters exceeds the number of data points

    Explanation

    The lecture uses overparameterized to describe models whose parameter count is larger than the number of data points.

  41. 41

    What surprising behavior can occur in the overparameterized region of a model-wise double-descent curve?

    1. A

      Test error can decrease again as the number of parameters grows beyond the interpolation peak

    2. B

      Test error must become infinite once parameters outnumber data points

    3. C

      The model becomes unable to represent the training examples

    4. D

      Training loss must increase because more parameters prevent fitting the data

    Correct answer
    A

    Test error can decrease again as the number of parameters grows beyond the interpolation peak

    Explanation

    Double descent describes cases where test error falls again in the overparameterized regime, contrary to the expectation that extra parameters must always worsen generalization.

  42. 42

    How can model complexity be varied even while using linear models?

    1. A

      By changing a linear model into a nonlinear loss without changing its features

    2. B

      By changing the test examples into training examples

    3. C

      By changing how many features are included in the model

    4. D

      By changing the labels while keeping all model parameters fixed

    Correct answer
    C

    By changing how many features are included in the model

    Explanation

    A linear model’s number of parameters, and thus its complexity, can be changed by including fewer or more features.

  43. 43

    Which claim about double descent does the lecture support?

    1. A

      It proves that model complexity can never harm test performance

    2. B

      It has been observed in many cases, but the behavior is not asserted to hold universally

    3. C

      It occurs only when the training loss is exactly zero

    4. D

      It occurs in every model and dataset without exception

    Correct answer
    B

    It has been observed in many cases, but the behavior is not asserted to hold universally

    Explanation

    The lecture describes double descent as an important empirical phenomenon found in many cases, while cautioning that it is not universal.

  44. 44

    Near what relationship between sample count and parameter count can peaks appear in both model-wise and data-wise double descent?

    1. A

      When the number of examples is close to the number of parameters

    2. B

      When the number of examples is always exactly twice the number of parameters

    3. C

      When the number of examples is zero, regardless of model size

    4. D

      When the number of examples is unrelated to the number of parameters

    Correct answer
    A

    When the number of examples is close to the number of parameters

    Explanation

    The lecture relates the peaks in both views to the region where the number of data points is close to the number of parameters, particularly clearly for linear models.

  45. 45

    What is one proposed explanation for the peak near the point where the number of examples and parameters are similar?

    1. A

      The learning algorithm can produce solutions with unusually large parameter norm near that regime

    2. B

      The training set becomes identical to the test set near that regime

    3. C

      The model’s parameter norm is guaranteed to be zero near that regime

    4. D

      The loss function stops depending on the model’s predictions near that regime

    Correct answer
    A

    The learning algorithm can produce solutions with unusually large parameter norm near that regime

    Explanation

    For linear models, the lecture identifies unusually large learned parameter norms near the peak as a partial explanation for poor performance.

  46. 46

    Why can a large parameter norm be relevant to generalization?

    1. A

      It guarantees that every training example is classified incorrectly

    2. B

      It proves that the model has fewer effective choices than a small-norm model

    3. C

      It can indicate a more complex or less constrained fitted model

    4. D

      It makes the test distribution identical to the training distribution

    Correct answer
    C

    It can indicate a more complex or less constrained fitted model

    Explanation

    The lecture suggests that a large norm can serve as an indicator of model complexity or degrees of freedom, even when raw parameter count alone does not capture that complexity.

  47. 47

    What effect can explicit regularization have in the lecture’s explanation of the peak?

    1. A

      It makes every model’s training loss exactly zero

    2. B

      It removes the need to evaluate performance on held-out examples

    3. C

      Penalizing large parameter norms can mitigate the peak, potentially at the cost of some training fit

    4. D

      It necessarily increases the parameter norm and makes the peak higher

    Correct answer
    C

    Penalizing large parameter norms can mitigate the peak, potentially at the cost of some training fit

    Explanation

    The lecture describes regularization as adding pressure to keep the norm small. This can mitigate the peak, although the model may sacrifice some training fit.

  48. 48

    What is the implicit-regularization explanation for good performance far into some overparameterized regimes?

    1. A

      The training data automatically become noiseless when the parameter count is large

    2. B

      The optimization algorithm may favor small-norm solutions even without an explicit norm penalty in the loss

    3. C

      The model stops using its parameters once their number exceeds the sample count

    4. D

      The test labels are indirectly supplied to the optimizer

    Correct answer
    B

    The optimization algorithm may favor small-norm solutions even without an explicit norm penalty in the loss

    Explanation

    The lecture proposes that optimization can have an implicit regularizing effect, favoring small-norm solutions even when no explicit norm penalty is written in the objective.

  49. 49

    Why might parameter count alone be an incomplete measure of model complexity?

    1. A

      Many parameters close to zero may contribute little, while a smaller model with a large norm may behave as more complex

    2. B

      A model’s complexity depends only on the number of training examples

    3. C

      Models with the same parameter count must have identical fitted functions

    4. D

      Parameter count always equals the model’s test error

    Correct answer
    A

    Many parameters close to zero may contribute little, while a smaller model with a large norm may behave as more complex

    Explanation

    The lecture cautions that parameter count is not the only possible complexity measure: parameter magnitudes, such as the norm, can also matter.

  50. 50

    How does the lecture recommend choosing model complexity in practice?

    1. A

      Always choose the model with the largest number of parameters

    2. B

      Estimate bias and variance exactly from the test set and select their sum

    3. C

      Choose the model with the smallest training loss and assume it must generalize best

    4. D

      Compare candidate models using a validation set rather than directly evaluating choices on the test set

    Correct answer
    D

    Compare candidate models using a validation set rather than directly evaluating choices on the test set

    Explanation

    The lecture says that practitioners typically try different models and select among them using a validation set, keeping the test data for evaluation.

  51. 51

    What practical guidance can the classical U-shaped test-error picture provide when comparing models?

    1. A

      If tested models appear to be on one side of the curve, it can suggest which nearby complexities are worth trying next

    2. B

      It identifies the exact optimal model without requiring any validation data

    3. C

      It allows the test set to be used repeatedly without affecting evaluation

    4. D

      It proves that all larger models will have lower test error

    Correct answer
    A

    If tested models appear to be on one side of the curve, it can suggest which nearby complexities are worth trying next

    Explanation

    The bias-variance picture provides intuition about the direction to explore—for example, moving toward intermediate complexities—without replacing validation-based model selection.

  52. 52

    Why are bias and variance often more useful as explanatory concepts than as quantities to calculate exactly in practice?

    1. A

      Their exact definitions can require knowledge of the ground truth or repeated sampling that is unavailable in a single real problem

    2. B

      They are parameters that must be included in every model’s prediction

    3. C

      They cannot be related to test performance under any circumstances

    4. D

      They are always equal to the training loss and can be read directly from it

    Correct answer
    A

    Their exact definitions can require knowledge of the ground truth or repeated sampling that is unavailable in a single real problem

    Explanation

    The lecture notes that exact bias may require access to the ground truth or effectively unlimited data, so bias and variance often serve mainly as conceptual tools.

  53. 53

    If a model performs poorly on the training set, what practical interpretation does the lecture suggest considering?

    1. A

      The test loss must be zero, because the training set was not fitted

    2. B

      The model must be overfitting, because training error is high

    3. C

      The model is necessarily in the second-descent regime

    4. D

      The model may be underfitting, which is consistent with excessive bias

    Correct answer
    D

    The model may be underfitting, which is consistent with excessive bias

    Explanation

    High training error is a practical sign of underfitting and can suggest that the model family is not expressive enough.

  54. 54

    Why does the location of the best complexity trade-off depend on the data and task?

    1. A

      The best complexity is fixed by the name of the loss function alone

    2. B

      The best complexity is always the one with exactly as many parameters as data points

    3. C

      The best complexity is independent of the amount of training data

    4. D

      The true relationship, sample size, and model family affect how bias and variance balance

    Correct answer
    D

    The true relationship, sample size, and model family affect how bias and variance balance

    Explanation

    The lecture explains that the suitable trade-off depends on factors such as the ground-truth relationship and the amount of data; there is no single universally best complexity.

  55. 55

    A practitioner finds that a more complex model has lower training loss but does not know whether test performance improved. What is the appropriate next step?

    1. A

      Assume the more complex model has lower bias and therefore lower test loss

    2. B

      Evaluate candidate models on a separate validation set

    3. C

      Use the training loss alone to declare the more complex model superior

    4. D

      Tune the model repeatedly on the test set and report its best result

    Correct answer
    B

    Evaluate candidate models on a separate validation set

    Explanation

    Training loss alone does not establish generalization. A validation set can compare candidate models without using the held-out test set for model selection.

Question 1 of 55
Question 1 of 55

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent