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

Study methods

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

Neural Network Training

  • 114Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Graphs and Optimization
A function can be represented in terms of a
.

114 questions

  1. 1
    A function can be represented in terms of a
    _____
    .
    Hint

    Think of a graph whose nodes represent operations.

    Answer

    computational graph

  2. 2
    A neural network commonly stacks linear layers with
    _____
    between them.
    Hint

    These operations allow the network to model more than linear relationships.

    Answer

    nonlinearities

  3. 3
    Convolutional neural networks preserve spatial structure through the hierarchy by using
    _____
    layers.
    Hint

    These layers apply filters across spatial locations.

    Answer

    convolutional

  4. 4
    In a convolutional layer, each output activation map is produced by sliding a filter of weights over the input's
    _____
    locations.
    Hint

    These locations refer to positions such as width and height.

    Answer

    spatial

  5. 5
    If a convolutional layer has several filters, each filter produces a separate
    _____
    map.
    Hint

    Each filter detects a different type of feature.

    Answer

    activation

  6. 6
    The depth of a convolutional layer's output equals the total number of
    _____
    in that layer.
    Hint

    Each one contributes one output channel.

    Answer

    filters

  7. 7
    To reduce loss in the loss landscape, parameters are updated by taking steps in the direction of the
    _____
    gradient.
    Hint

    The update should move downhill rather than uphill.

    Answer

    negative

  8. 8
    The training process that repeatedly samples data, forward propagates, computes loss, backpropagates, and updates parameters is called
    _____
    .
    Hint

    Its name combines small data batches with gradient-based optimization.

    Answer

    Mini-batch Stochastic Gradient Descent

  9. 9
    The first computational step in Mini-batch Stochastic Gradient Descent is to continuously sample a
    _____
    of data.
    Hint

    It is a small subset of the training data.

    Answer

    batch

  10. 10
    The sigmoid activation function is defined by
    _____
    .
    Hint

    It has one in the numerator and an exponential term involving negative xxx in the denominator.

    Answer

    11+e−x\frac{1}{1+e^{-x}}1+e−x1​

  11. 11
    The sigmoid applies an elementwise squashing operation that maps values into the range
    _____
    .
    Hint

    Its outputs can be interpreted as values between zero and one.

    Answer

    [0,1][0,1][0,1]

  12. 12
    For a very negative sigmoid input, the output approaches
    _____
    .
    Hint

    Consider the lower horizontal plateau of the sigmoid curve.

    Answer

    zero

  13. 13
    For a very positive sigmoid input, the output approaches
    _____
    .
    Hint

    Consider the upper horizontal plateau of the sigmoid curve.

    Answer

    one

  14. 14
    Near an input of zero, the sigmoid operates in an approximately
    _____
    regime.
    Hint

    The curve has a non-flat, nearly straight portion around its center.

    Answer

    linear

  15. 15
    The sigmoid's saturating firing-rate interpretation comes from viewing its output as a neuron's
    _____
    rate.
    Hint

    The output lies between zero and one, like a rate or probability.

    Answer

    firing

  16. 16
    When a sigmoid neuron is saturated, its local gradient is approximately
    _____
    .
    Hint

    A flat function has no slope.

    Answer

    zero

  17. 17
    If a sigmoid receives x=−10x=-10x=−10, the gradient passed to downstream nodes is approximately
    _____
    .
    Hint

    This input lies in the sigmoid's negative saturated region.

    Answer

    zero

  18. 18
    If a sigmoid receives x=0x=0x=0, its gradient is generally
    _____
    for backpropagation.
    Hint

    This input lies in the central, non-saturated region.

    Answer

    reasonable

  19. 19
    If a sigmoid receives x=10x=10x=10, the gradient passed backward is approximately
    _____
    .
    Hint

    This input lies in the positive saturated region.

    Answer

    zero

  20. 20
    The second major problem with sigmoid outputs is that they are not
    _____
    centered.
    Hint

    The outputs range from zero to one rather than around both positive and negative values.

    Answer

    zero

  21. 21
    If all inputs XXX to a linear neuron are positive, the local gradient with respect to its weights is
    _____
    .
    Hint

    For a linear operation, the local derivative with respect to a weight is the corresponding input.

    Answer

    positive

  22. 22
    When all inputs are positive, the weight gradients are either all positive or all
    _____
    depending on the upstream gradient.
    Hint

    The upstream gradient may have either sign, while the local input gradient is positive.

    Answer

    negative

  23. 23
    Weight updates that are restricted to moving all coordinates in the same general direction produce
    _____
    gradient updates.
    Hint

    The optimizer may need several zigzagging steps instead of one direct step.

    Answer

    inefficient

  24. 24
    To avoid the inefficient-update problem caused by biased inputs, the input data should be
    _____
    meaned.
    Hint

    The goal is to create both positive and negative input values.

    Answer

    zero

  25. 25
    A minor computational disadvantage of sigmoid is that it requires evaluating an
    _____
    function.
    Hint

    The sigmoid formula contains e−xe^{-x}e−x.

    Answer

    exponential

  26. 26
    The hyperbolic tangent activation function squashes values into the range
    _____
    .
    Hint

    Unlike sigmoid, it includes negative as well as positive outputs.

    Answer

    [−1,1][-1,1][−1,1]

  27. 27
    Compared with sigmoid, tanh fixes the problem of outputs not being
    _____
    centered.
    Hint

    Its range is symmetric around zero.

    Answer

    zero

  28. 28
    Although tanh is zero-centered, it still kills gradients when it becomes
    _____
    .
    Hint

    Its extreme regions are nearly flat.

    Answer

    saturated

  29. 29
    The ReLU activation function is defined by
    _____
    .
    Hint

    It keeps positive inputs and replaces negative inputs with zero.

    Answer

    max⁡(0,x)\max(0,x)max(0,x)

  30. 30
    For a negative ReLU input, the output is set to
    _____
    .
    Hint

    The first argument in max⁡(0,x)\max(0,x)max(0,x) is selected when xxx is negative.

    Answer

    zero

  31. 31
    For a positive ReLU input, the activation passes through unchanged as the
    _____
    function.
    Hint

    The output equals the input in this region.

    Answer

    identity

  32. 32
    A major advantage of ReLU over sigmoid and tanh is that it does not saturate in the
    _____
    region.
    Hint

    In this half of the input space, ReLU has a constant nonzero slope.

    Answer

    positive

  33. 33
    ReLU is computationally efficient because it mainly requires a simple
    _____
    operation.
    Hint

    Its formula compares zero with the input.

    Answer

    max

  34. 34
    In practice, ReLU was reported to converge about
    _____
    times faster than sigmoid and tanh.
    Hint

    The lecture gives an approximate numerical comparison.

    Answer

    six

  35. 35
    ReLU became widely used in major ImageNet results around 2012, especially in the
    _____
    network.
    Hint

    This was an early landmark convolutional neural network.

    Answer

    AlexNet

  36. 36
    A disadvantage of ReLU is that its outputs are not
    _____
    centered.
    Hint

    ReLU outputs are never negative.

    Answer

    zero

  37. 37
    At x=−10x=-10x=−10, the derivative of ReLU is
    _____
    .
    Hint

    Negative inputs are in ReLU's inactive region.

    Answer

    zero

  38. 38
    At x=10x=10x=10, ReLU is in its linear regime, so its gradient is
    _____
    .
    Hint

    The identity function has slope one.

    Answer

    one

  39. 39
    At exactly x=0x=0x=0, the ReLU derivative is mathematically
    _____
    .
    Hint

    The function changes slope at this point.

    Answer

    undefined

  40. 40
    A ReLU that remains inactive for all training examples and receives no useful updates is called a
    _____
    ReLU.
    Hint

    It has effectively stopped participating in learning.

    Answer

    dead

  41. 41
    A ReLU can become dead when poor weight values place its activation region
    _____
    the training data cloud.
    Hint

    The unit's active half-plane does not intersect the data.

    Answer

    off

  42. 42
    A learning rate that is too high can kill ReLUs by making large updates that knock them off the data
    _____
    .
    Hint

    This refers to the region occupied by the data.

    Answer

    manifold

  43. 43
    One practical initialization strategy is to give ReLUs slightly positive
    _____
    to increase the chance they are active initially.
    Hint

    This parameter shifts the preactivation upward.

    Answer

    biases

  44. 44
    Leaky ReLU differs from ReLU by using a slight negative
    _____
    in the negative input regime.
    Hint

    The negative side is no longer flat.

    Answer

    slope

  45. 45
    Leaky ReLU avoids the dying-ReLU problem because it has no
    _____
    regime, even for negative inputs.
    Hint

    Its negative side continues with a nonzero slope.

    Answer

    saturating

  46. 46
    In PReLU, the negative-region slope is controlled by a learnable
    _____
    parameter.
    Hint

    The lecture names this parameter with a Greek letter.

    Answer

    alpha

  47. 47
    Compared with leaky ReLU, ELU reintroduces a negative
    _____
    regime.
    Hint

    Its negative side becomes bounded rather than remaining a straight line.

    Answer

    saturation

  48. 48
    Maxout computes the maximum of two separate
    _____
    functions.
    Hint

    Each branch has the form of a weighted dot product plus a bias.

    Answer

    linear

  49. 49
    Maxout generalizes both ReLU and leaky ReLU while remaining in a
    _____
    regime.
    Hint

    It selects between linear pieces rather than using a saturating curve.

    Answer

    linear

  50. 50
    The main disadvantage of Maxout is that it
    _____
    the number of parameters per neuron.
    Hint

    Each neuron uses two sets of weights instead of one.

    Answer

    doubles

  51. 51
    The general rule of thumb for choosing an activation function is to use
    _____
    as the standard starting point.
    Hint

    It is the most widely used simple activation in the lecture.

    Answer

    ReLU

  52. 52
    The lecture's general recommendation is to avoid using
    _____
    as the default activation function.
    Hint

    It suffers from saturation, non-zero-centered outputs, and exponential computation.

    Answer

    sigmoid

  53. 53
    A standard preprocessing step is to subtract the data mean so that the data is
    _____
    centered.
    Hint

    This gives the features both positive and negative values around a central point.

    Answer

    zero

  54. 54
    Data can additionally be normalized by dividing by the
    _____
    deviation.
    Hint

    This quantity measures the spread of the data.

    Answer

    standard

  55. 55
    Normalizing features helps ensure that features with different scales contribute more
    _____
    to learning.
    Hint

    The goal is to prevent one feature scale from dominating another.

    Answer

    equally

  56. 56
    For image data, preprocessing usually performs zero-centering but often does not perform full
    _____
    by standard deviation.
    Hint

    Image pixels at corresponding locations typically already have comparable scales.

    Answer

    normalization

  57. 57
    More complicated preprocessing methods mentioned for general machine learning include PCA and
    _____
    .
    Hint

    This method transforms feature scales and correlations.

    Answer

    whitening

  58. 58
    When preprocessing test data, the mean used should be estimated from the
    _____
    data.
    Hint

    Test data must not determine preprocessing statistics.

    Answer

    training

  59. 59
    For an image, one zero-centering method subtracts an entire
    _____
    image computed from the training set.
    Hint

    It has the same dimensions as each input image.

    Answer

    mean

  60. 60
    Instead of subtracting a full mean image, an image network may subtract one mean for each
    _____
    .
    Hint

    RGB images have red, green, and blue versions of this quantity.

    Answer

    channel

  61. 61
    For an RGB image, per-channel mean subtraction uses one mean for red, one for green, and one for
    _____
    .
    Hint

    It is the third standard RGB color.

    Answer

    blue

  62. 62
    The mean for image preprocessing is usually computed once over the entire training set rather than separately for each
    _____
    .
    Hint

    The lecture contrasts a global estimate with repeated mini-batch estimates.

    Answer

    batch

  63. 63
    Initializing every network weight to zero causes all neurons to perform the same operation and receive the same
    _____
    , so they remain identical.
    Hint

    This quantity determines how each parameter changes during learning.

    Answer

    gradient

  64. 64
    The problem with identical weight initialization is that it fails to provide
    _____
    breaking.
    Hint

    Different neurons need different starting points.

    Answer

    symmetry

  65. 65
    A basic improvement over zero initialization is to initialize weights as small
    _____
    numbers sampled from a distribution.
    Hint

    Variation among initial weights breaks symmetry.

    Answer

    random

  66. 66
    Using small random weights in a deep network can cause activations and gradients to
    _____
    toward zero across layers.
    Hint

    Repeated multiplication by small values shrinks magnitudes.

    Answer

    collapse

  67. 67
    When tanh activations are saturated because of large initial weights, the gradients become approximately
    _____
    .
    Hint

    Saturation corresponds to a nearly flat derivative.

    Answer

    zero

  68. 68
    Xavier initialization aims to make the variance of the input approximately equal to the variance of the
    _____
    .
    Hint

    The method tries to preserve activation scale across a layer.

    Answer

    output

  69. 69
    With Xavier initialization, a layer with many inputs should use
    _____
    weights to maintain an appropriate output variance.
    Hint

    More inputs contribute to the output, so each weight must contribute less.

    Answer

    smaller

  70. 70
    The usual Xavier initialization derivation assumes that the activations are effectively
    _____
    .
    Hint

    The derivation assumes the units operate in their nonsaturated active region.

    Answer

    linear

  71. 71
    For ReLU networks, the variance is approximately halved because ReLU sets about
    _____
    of the units to zero.
    Hint

    Only the positive half of a symmetric input distribution remains active.

    Answer

    half

  72. 72
    To adapt Xavier-style initialization for ReLU, the variance calculation includes an additional factor accounting for division by
    _____
    .
    Hint

    This compensates for approximately half the units being killed.

    Answer

    two

  73. 73
    Batch normalization is motivated by the goal of keeping layer activations in a roughly unit
    _____
    range.
    Hint

    The desired distribution has mean near zero and variance near one.

    Answer

    gaussian

  74. 74
    For each mini-batch, batch normalization computes the empirical
    _____
    and variance of activations.
    Hint

    This statistic is subtracted before scaling.

    Answer

    mean

  75. 75
    Batch normalization standardizes an activation by subtracting its batch mean and dividing by its standard
    _____
    .
    Hint

    The denominator measures the spread of the batch.

    Answer

    deviation

  76. 76
    Because batch normalization consists of differentiable operations, gradients can be computed through it using
    _____
    .
    Hint

    This is the standard method for propagating derivatives through a computational graph.

    Answer

    backprop

  77. 77
    Batch normalization is commonly inserted after fully connected or
    _____
    layers.
    Hint

    These are the two major layer types discussed in the normalization procedure.

    Answer

    convolutional

  78. 78
    For a convolutional layer, normalization is performed jointly over examples and spatial locations for each
    _____
    map.
    Hint

    A convolutional output channel corresponds to one map.

    Answer

    activation

  79. 79
    Normalizing all locations in a convolutional activation map in the same way helps preserve the convolutional
    _____
    .
    Hint

    The same operation should apply consistently across spatial positions.

    Answer

    property

  80. 80
    After normalization, batch normalization applies a learned scaling factor called
    _____
    .
    Hint

    This parameter controls the scale of the normalized activation.

    Answer

    gamma

  81. 81
    After scaling, batch normalization applies a learned shifting factor called
    _____
    .
    Hint

    This parameter controls the location or offset of the activation.

    Answer

    beta

  82. 82
    The learned parameters gamma and beta allow batch normalization to recover the
    _____
    function if that is useful.
    Hint

    This mapping leaves the original activation unchanged.

    Answer

    identity

  83. 83
    Learning gamma and beta gives the network control over how much activation-function
    _____
    it should retain.
    Hint

    The normalized input alone would tend to keep tanh in its central region.

    Answer

    saturation

  84. 84
    Batch normalization can act as a form of regularization because an example's normalized value depends on the other examples in its
    _____
    .
    Hint

    The normalization statistics are computed from a group of examples.

    Answer

    batch

  85. 85
    At test time, batch normalization uses mean and variance estimated during
    _____
    rather than recomputing them from a test batch.
    Hint

    The test procedure reuses stored running statistics.

    Answer

    training

  86. 86
    A first sanity check after initializing a network is to perform a forward pass and verify that the initial
    _____
    is reasonable.
    Hint

    This quantity measures the model's prediction error before learning.

    Answer

    loss

  87. 87
    For a Softmax classifier with ten classes and diffuse initial probabilities, the expected loss is approximately
    _____
    .
    Hint

    Use the negative log likelihood of a uniform probability for the correct class.

    Answer

    −log⁡(110)≈2.3-\log\left(\frac{1}{10}\right)\approx 2.3−log(101​)≈2.3

  88. 88
    When regularization is initially disabled, the loss should contain only the
    _____
    loss term.
    Hint

    This term measures prediction performance rather than parameter penalties.

    Answer

    data

  89. 89
    Increasing regularization strength should cause the total loss to
    _____
    because an additional penalty is added.
    Hint

    Regularization contributes a nonnegative cost term.

    Answer

    increase

  90. 90
    A useful early training test is to use a very small data set and verify that the network can
    _____
    it.
    Hint

    The model should be able to memorize a tiny training set.

    Answer

    overfit

  91. 91
    When a tiny data set is successfully overfit, its training accuracy should approach
    _____
    .
    Hint

    Express perfect accuracy as a fraction or decimal.

    Answer

    one

  92. 92
    If the loss barely changes during training, the learning rate is usually too
    _____
    .
    Hint

    The parameter updates are not large enough to make progress.

    Answer

    small

  93. 93
    If the cost becomes NaN because it has exploded, the learning rate is usually too
    _____
    .
    Hint

    Excessively large updates can make numerical values unstable.

    Answer

    high

  94. 94
    The rough learning-rate range suggested for cross-validation is from 10−310^{-3}10−3 to
    _____
    .
    Hint

    The lecture gives a range spanning two orders of magnitude below 10−310^{-3}10−3.

    Answer

    10−510^{-5}10−5

  95. 95
    Hyperparameter selection by training on a training set and evaluating on a separate set is called
    _____
    .
    Hint

    The second data split is used to estimate generalization during model selection.

    Answer

    cross-validation

  96. 96
    During the first stage of hyperparameter search, values are sampled widely and training is run for only a
    _____
    number of epochs.
    Hint

    The initial search is meant to identify promising regions quickly.

    Answer

    few

  97. 97
    After identifying a promising hyperparameter range, the next search stage uses a
    _____
    search over that region.
    Hint

    The values are sampled more closely together.

    Answer

    finer

  98. 98
    If the cost becomes much larger than its original value, such as about three times larger, the training loop can
    _____
    the current hyperparameter trial.
    Hint

    There is no need to continue a clearly diverging experiment.

    Answer

    stop

  99. 99
    Learning rates should generally be sampled in
    _____
    space rather than uniformly in ordinary space.
    Hint

    This emphasizes multiplicative changes and orders of magnitude.

    Answer

    log

  100. 100
    Random sampling of hyperparameter combinations is often preferable to a fixed
    _____
    search.
    Hint

    The alternative evaluates every combination on a rectangular lattice.

    Answer

    grid

  101. 101
    If good hyperparameter values lie at the edge of the sampled range, the search range should be
    _____
    .
    Hint

    The optimum may lie beyond the region that was tested.

    Answer

    expanded

  102. 102
    A loss curve that explodes indicates that the learning rate is probably too
    _____
    .
    Hint

    The updates are overshooting and making the objective unstable.

    Answer

    high

  103. 103
    A loss curve that is nearly flat and changes very slowly indicates that the learning rate is probably too
    _____
    .
    Hint

    The optimizer is taking insufficiently large steps.

    Answer

    low

  104. 104
    A loss curve that drops steeply and then plateaus may indicate a learning rate that is too
    _____
    .
    Hint

    Large jumps may prevent the optimizer from settling into a local optimum.

    Answer

    high

  105. 105
    A loss curve that remains flat and then suddenly begins training can indicate bad
    _____
    .
    Hint

    The parameters may initially produce poor gradient flow.

    Answer

    initialization

  106. 106
    A large gap between training and validation accuracy usually indicates
    _____
    .
    Hint

    The model performs much better on seen data than unseen data.

    Answer

    overfitting

  107. 107
    When training and validation accuracy show little or no gap, increasing model
    _____
    may help.
    Hint

    The model may not yet be expressive enough to fit the data.

    Answer

    capacity

  108. 108
    A useful diagnostic compares the norm of weight updates with the norm of the weights using the ratio of update size to weight
    _____
    .
    Hint

    This measures update size relative to parameter size.

    Answer

    magnitudes

  109. 109
    A rough target for the ratio of weight-update magnitude to weight magnitude is approximately
    _____
    .
    Hint

    The desired ratio is small but not negligible.

    Answer

    0.001

  110. 110
    The overall recommended activation-function default is to use
    _____
    .
    Hint

    This is the plural form of the standard nonsaturating activation.

    Answer

    ReLUs

  111. 111
    The recommended basic image preprocessing step is to
    _____
    the mean.
    Hint

    This produces zero-centered inputs.

    Answer

    subtract

  112. 112
    The recommended initialization method to try first is
    _____
    Initialization.
    Hint

    It is designed to preserve activation variance across layers.

    Answer

    Xavier

  113. 113
    The recommended normalization technique for improving training is
    _____
    normalization.
    Hint

    It uses mini-batch means and variances.

    Answer

    batch

  114. 114
    The recommended strategy for sampling hyperparameters is to sample them
    _____
    rather than only using a fixed grid.
    Hint

    This approach allocates more trials to important dimensions.

    Answer

    randomly

1 of 114
Question 1 of 114

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent