1. Home
  2. Explore
  3. Computer Science
  4. Backpropagation in Neural Networks

Study methods

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

Backpropagation in Neural Networks

  • 70Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Computation Graphs
A computation graph represents a mathematical expression as a directed acyclic graph whose root node represents the
.

70 questions

  1. 1
    A computation graph represents a mathematical expression as a directed acyclic graph whose root node represents the
    _____
    .
    Hint

    Think of the result computed by the entire graph.

    Answer

    final expression

  2. 2
    In a computation graph, nodes other than the root represent
    _____
    of the overall expression.
    Hint

    They are smaller computations used to construct the final result.

    Answer

    intermediate subexpressions

  3. 3
    A computation graph can be used to apply backpropagation and obtain
    _____
    automatically.
    Hint

    These values describe how changes in inputs affect an output.

    Answer

    gradients

  4. 4
    A computation graph is useful not only for computing gradients, but also for revealing the
    _____
    of gradient calculations.
    Hint

    The graph helps show how local computations fit together.

    Answer

    modular structure

  5. 5
    In the example where inputs aaa and bbb are added to produce ccc, the output is represented by c=a+bc = a + bc=a+b, and the operation box performs
    _____
    .
    Hint

    The box carries out the arithmetic operation joining the two inputs.

    Answer

    addition

  6. 6
    A function in a computation graph can be viewed as a box that receives inputs and produces an
    _____
    .
    Hint

    It is the value resulting from the operation inside the box.

    Answer

    output

  7. 7
    A neural-network loss graph can separate the part computing the loss from the part computing the model's
    _____
    .
    Hint

    This is the model output that is compared with the target.

    Answer

    score

  8. 8
    The computation graph for a model can be reused when the scoring component changes, such as switching from a linear predictor to a
    _____
    .
    Hint

    This model adds a hidden representation before computing its score.

    Answer

    two-layer neural network

  9. 9
    If c=a+bc = a + bc=a+b, the gradient of ccc with respect to aaa is
    _____
    .
    Hint

    A small increase in either input changes the sum by the same amount.

    Answer

    111

  10. 10
    If c=a+bc = a + bc=a+b, the gradient of ccc with respect to bbb is
    _____
    .
    Hint

    Changing the second addend by a small amount changes the sum by that amount.

    Answer

    111

  11. 11
    For c=a−bc = a - bc=a−b, the gradient with respect to the first input aaa is
    _____
    .
    Hint

    Increasing the first term increases the difference by the same amount.

    Answer

    111

  12. 12
    For c=a−bc = a - bc=a−b, the gradient with respect to the second input bbb is
    _____
    .
    Hint

    Increasing the quantity being subtracted makes the result decrease.

    Answer

    −1-1−1

  13. 13
    If c=abc = abc=ab, the gradient of ccc with respect to aaa is
    _____
    .
    Hint

    When aaa changes slightly, the change is scaled by the other factor.

    Answer

    bbb

  14. 14
    If c=abc = abc=ab, the gradient of ccc with respect to bbb is
    _____
    .
    Hint

    The change in the second factor is scaled by the first factor.

    Answer

    aaa

  15. 15
    For the square function f(a)=a2f(a) = a^2f(a)=a2, the gradient with respect to its input is
    _____
    .
    Hint

    Apply the power rule to the input squared.

    Answer

    2a2a2a

  16. 16
    For f(a,b)=max⁡(a,b)f(a,b) = \max(a,b)f(a,b)=max(a,b), the gradient with respect to aaa is the indicator that
    _____
    .
    Hint

    A small increase in aaa affects the maximum only when aaa is already the larger input.

    Answer

    a>ba > ba>b

  17. 17
    For f(a,b)=max⁡(a,b)f(a,b) = \max(a,b)f(a,b)=max(a,b), the gradient with respect to bbb is the indicator that
    _____
    .
    Hint

    The second input affects the maximum when it is the larger one.

    Answer

    b>ab > ab>a

  18. 18
    The derivative of the logistic function σ(a)\sigma(a)σ(a) can be written as
    _____
    .
    Hint

    The derivative is the function's output multiplied by one minus that output.

    Answer

    σ(a)(1−σ(a))\sigma(a)(1-\sigma(a))σ(a)(1−σ(a))

  19. 19
    As the logistic function's input tends toward positive or negative infinity, its output saturates at 111 or 000, causing its gradient to
    _____
    .
    Hint

    Use the derivative formula involving the output times one minus the output.

    Answer

    go to zero

  20. 20
    When differentiating a composition of operations in a computation graph, the chain rule combines local derivatives by taking their
    _____
    .
    Hint

    For a path through several operations, multiply the gains along that path.

    Answer

    product

  21. 21
    If b=a2b=a^2b=a2 and c=b2c=b^2c=b2, the local derivative from aaa to bbb is
    _____
    .
    Hint

    Differentiate the first square operation with respect to its input.

    Answer

    2a2a2a

  22. 22
    For b=a2b=a^2b=a2 and c=b2c=b^2c=b2, the local derivative from bbb to ccc is
    _____
    .
    Hint

    Differentiate the second square operation with respect to its input.

    Answer

    2b2b2b

  23. 23
    For b=a2b=a^2b=a2 and c=b2c=b^2c=b2, the chain rule gives dcda=2b⋅2a\frac{dc}{da} = 2b \cdot 2adadc​=2b⋅2a, which simplifies to
    _____
    after substituting b=a2b=a^2b=a2.
    Hint

    Multiply the two local derivatives and replace bbb with a2a^2a2.

    Answer

    4a34a^34a3

  24. 24
    The composed expression in the preceding example is c=a4c=a^4c=a4, so differentiating it directly with the power rule also gives
    _____
    .
    Hint

    Apply the power rule to the fourth power.

    Answer

    4a34a^34a3

  25. 25
    For a multilayer neural network, the gradient of the output with respect to an earlier input is found by multiplying local gradients along the
    _____
    connecting them.
    Hint

    It is the sequence of graph edges from the input toward the output.

    Answer

    path

  26. 26
    In a four-layer neural-network regression example, training with stochastic gradient descent requires computing the loss gradient with respect to each
    _____
    .
    Hint

    These include the network's weight matrices and final weight vector.

    Answer

    parameter

  27. 27
    In the four-layer network example, the final vector is combined with the final weight vector using a
    _____
    to produce the score.
    Hint

    This operation combines two vectors into a scalar score.

    Answer

    dot product

  28. 28
    In the neural-network regression example, the prediction error is formed by subtracting the target value from the
    _____
    .
    Hint

    It is the model's prediction before the loss is calculated.

    Answer

    score

  29. 29
    The regression loss in the network example is obtained by
    _____
    the difference between the score and target.
    Hint

    The loss is the squared prediction error.

    Answer

    squaring

  30. 30
    For linear classification, the hinge loss first computes a score by taking the dot product of the weight vector and the
    _____
    .
    Hint

    It contains the input example's measured attributes.

    Answer

    feature vector

  31. 31
    In the hinge-loss computation, multiplying the score by the label produces the
    _____
    .
    Hint

    It measures the signed score relative to the class label.

    Answer

    margin

  32. 32
    The hinge loss is formed by taking the maximum of zero and
    _____
    .
    Hint

    The expression penalizes examples whose margin falls short of one.

    Answer

    1−margin1 - \text{margin}1−margin

  33. 33
    For hinge loss, the gradient is active when the margin is
    _____
    .
    Hint

    This is the condition under which the margin-based term is positive.

    Answer

    less than one

  34. 34
    When the hinge-loss gradient is active, its gradient with respect to the weight vector is the negative product of the label and the
    _____
    .
    Hint

    The linear score depends on the weights through this input vector.

    Answer

    feature vector

  35. 35
    In a two-layer neural network with squared residual loss, the gradient with respect to the final weight vector is the residual times two times the
    _____
    .
    Hint

    This representation is produced by applying the hidden layer's activation function.

    Answer

    hidden vector

  36. 36
    In the two-layer network, the hidden vector is computed by applying the activation function to the product of the first-layer weight matrix and the
    _____
    .
    Hint

    It is the original input to the network.

    Answer

    feature vector

  37. 37
    For vector-valued activations applied element by element, the hollow-circle symbol in the graph denotes the
    _____
    of two vectors.
    Hint

    Each component is multiplied by the corresponding component of the other vector.

    Answer

    element product

  38. 38
    The backpropagation algorithm consists of a forward step followed by a
    _____
    step.
    Hint

    This second phase propagates gradient information from the result toward the inputs.

    Answer

    backward

  39. 39
    During the forward step, node values are computed from the leaves toward the
    _____
    .
    Hint

    This node represents the final expression.

    Answer

    root

  40. 40
    A forward value is the value of the subexpression rooted at a particular
    _____
    .
    Hint

    Each location in the graph corresponds to a subexpression.

    Answer

    node

  41. 41
    A forward value in backpropagation may be a scalar, vector, or
    _____
    .
    Hint

    It is another common kind of structured numerical value.

    Answer

    matrix

  42. 42
    The forward pass is important not only because it evaluates the loss, but also because it stores intermediate
    _____
    for use in the backward pass.
    Hint

    These include quantities such as the score and residual.

    Answer

    values

  43. 43
    The backward value at a node is the gradient of the loss with respect to the
    _____
    at that node.
    Hint

    It measures how the loss would respond if the node's computed quantity changed.

    Answer

    value

  44. 44
    Backward values are computed from the root toward the
    _____
    .
    Hint

    These are the input nodes of the graph.

    Answer

    leaves

  45. 45
    The backward value at the loss node itself is
    _____
    .
    Hint

    The loss has derivative one with respect to itself.

    Answer

    111

  46. 46
    To compute a node's backward value, multiply its parent's backward value by the local gradient on the connecting
    _____
    .
    Hint

    The graph places a local derivative beside each connection between operations.

    Answer

    edge

  47. 47
    In the numerical example with weights (3,1)(3,1)(3,1) and features (1,2)(1,2)(1,2), the forward score is
    _____
    .
    Hint

    Compute the dot product of the two vectors.

    Answer

    555

  48. 48
    In that numerical example, a score of 555 and target of 222 produce a residual of
    _____
    .
    Hint

    Subtract the target from the score.

    Answer

    333

  49. 49
    With residual 333, the squared loss in the numerical example is
    _____
    .
    Hint

    Square the residual.

    Answer

    999

  50. 50
    For the numerical example with features (1,2)(1,2)(1,2) and residual 333, the loss gradient with respect to weights (3,1)(3,1)(3,1) is
    _____
    .
    Hint

    The gradient is two times the residual multiplied by the feature vector.

    Answer

    (6,12)(6,12)(6,12)

  51. 51
    For a linear predictor with a convex training loss, the loss has a single
    _____
    minimum.
    Hint

    The minimum is best across the entire domain, not merely in a nearby region.

    Answer

    global

  52. 52
    With an appropriate step size, gradient descent on the described convex linear-predictor loss converges to the
    _____
    optimum.
    Hint

    Convexity lets the method reach the best point across the whole domain.

    Answer

    global

  53. 53
    Unlike the linear-predictor case described, neural-network training loss is generally
    _____
    .
    Hint

    Its shape can contain multiple regions that complicate optimization.

    Answer

    non-convex

  54. 54
    Because neural-network training loss is non-convex, gradient descent has no general guarantee of reaching the
    _____
    minimum.
    Hint

    The guarantee concerns the best solution over the entire loss surface.

    Answer

    global

  55. 55
    A neural-network optimization method may instead converge to a
    _____
    minimum.
    Hint

    This is a minimum in a nearby region, not necessarily the best overall.

    Answer

    local

  56. 56
    For a non-convex neural-network loss, the point where optimization gets stuck can depend on the
    _____
    .
    Hint

    It is the starting point chosen before optimization begins.

    Answer

    initialization

  57. 57
    Initializing every row of the neural network's weight matrix to zero is discouraged because the rows become
    _____
    .
    Hint

    They start with the same values and do not provide distinct units.

    Answer

    identical

  58. 58
    One suggested initialization strategy is to start near zero while adding some amount of
    _____
    .
    Hint

    The random variation helps avoid identical initial rows.

    Answer

    random noise

  59. 59
    Another possible way to initialize a network is to use
    _____
    .
    Hint

    This approach prepares model parameters before the training process being discussed.

    Answer

    pre-training

  60. 60
    Overparameterization means adding more
    _____
    than are strictly needed.
    Hint

    These are the intermediate units in a neural network.

    Answer

    hidden units

  61. 61
    One proposed benefit of overparameterization is that extra hidden units give the network more chances to learn something
    _____
    from the data.
    Hint

    The idea is that some units may become useful even if others do not.

    Answer

    reasonable

  62. 62
    Adaptive methods such as AdaGrad or Adam can assign a separate step size to each
    _____
    .
    Hint

    Each weight can have its own rate of movement.

    Answer

    parameter

  63. 63
    If gradients become too small or close to zero, they
    _____
    and training may stop making progress.
    Hint

    The term describes gradients fading toward zero.

    Answer

    vanish

  64. 64
    If gradients become too large, they may
    _____
    and cause oscillation or divergence.
    Hint

    The term describes gradients growing excessively in magnitude.

    Answer

    explode

  65. 65
    Careful initialization, step-size selection, and network architecture design can help prevent gradients from vanishing or
    _____
    .
    Hint

    This is the opposite gradient problem, where magnitudes grow too large.

    Answer

    exploding

  66. 66
    Deep-learning packages such as TensorFlow and PyTorch use computation graphs behind the scenes to compute
    _____
    .
    Hint

    These are needed to update model parameters during training.

    Answer

    gradients

  67. 67
    Computation graphs and backpropagation apply to many functions, not only to
    _____
    .
    Hint

    They can be used for general mathematical expressions and models.

    Answer

    neural networks

  68. 68
    The generality of computation graphs helps developers quickly try new model types and
    _____
    .
    Hint

    These define what a model's predictions are trained to optimize.

    Answer

    loss functions

  69. 69
    The broader model-development approach enabled by differentiable computation is called
    _____
    .
    Hint

    It uses differentiation as a general tool for building and developing models.

    Answer

    differential programming

  70. 70
    The local derivatives of simple operations serve as building blocks that can be composed to differentiate
    _____
    functions.
    Hint

    The graph combines simple operations to represent expressions of greater complexity.

    Answer

    more complicated

1 of 70
Question 1 of 70

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent