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

Study methods

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

Backpropagation and Neural Networks

  • 48Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Training Concepts
The loss function over a dataset is defined as the
of the cost functions for individual examples.

48 questions

  1. 1
    The loss function over a dataset is defined as the
    _____
    of the cost functions for individual examples.
    Hint

    Think about how individual example costs are combined into one dataset-level quantity.

    Answer

    average

  2. 2
    In the simplest form of SGD, a parameter vector is updated by subtracting the learning rate times the gradient of the
    _____
    for a randomly sampled example.
    Hint

    This quantity measures how poorly the model performs on the sampled example.

    Answer

    loss

  3. 3
    Back propagation computes the gradient of the loss function with respect to the model's
    _____
    .
    Hint

    These are the values, such as weights and biases, that training adjusts.

    Answer

    parameters

  4. 4
    The computation of a model's function value is called the
    _____
    pass.
    Hint

    It proceeds from the input through the model toward its output.

    Answer

    forward

  5. 5
    The computation of gradients through a model is called the
    _____
    pass.
    Hint

    It proceeds from the output toward earlier computations.

    Answer

    backward

  6. 6
    Back propagation is often automated by frameworks, a process also called
    _____
    differentiation.
    Hint

    The term describes differentiation performed by software rather than calculated manually.

    Answer

    automatic

  7. 7
    A differentiable circuit can be built from arithmetic operations and
    _____
    functions, such as cosine, exponential, or sigmoid.
    Hint

    These are basic functions that can be combined with arithmetic operations.

    Answer

    elementary

  8. 8
    The size of a computational circuit is measured by its number of
    _____
    .
    Hint

    Each arithmetic operation or elementary function contributes to this count.

    Answer

    operations

  9. 9
    Unlike a formula, a circuit can reuse a previously computed
    _____
    without expanding it again.
    Hint

    For example, a circuit can compute x1+x2x_1+x_2x1​+x2​ once and use that result more than once.

    Answer

    subexpression

  10. 10
    The circuit theorem discussed applies to a function with a single scalar
    _____
    .
    Hint

    The function maps its inputs to one real-valued result.

    Answer

    output

  11. 11
    For a scalar function of LLL inputs, the gradient with respect to those inputs is an LLL-dimensional
    _____
    .
    Hint

    There is one partial derivative for each input coordinate.

    Answer

    vector

  12. 12
    If a differentiable circuit has size nnn, its input gradient can be computed in time
    _____
    .
    Hint

    The gradient computation takes time proportional to the circuit's operation count.

    Answer

    O(n)O(n)O(n)

  13. 13
    The circuit theorem also states that the gradient can itself be represented by a
    _____
    .
    Hint

    The derivative computation can be expressed using the same general computational structure.

    Answer

    circuit

  14. 14
    In a neural network, matrix operations and activation functions combine to form a differentiable
    _____
    .
    Hint

    This is the general computational structure to which the circuit theorem applies.

    Answer

    circuit

  15. 15
    For most neural networks described, the number of operations needed to evaluate the network is proportional to its number of
    _____
    .
    Hint

    A matrix multiplication illustrates the relationship: a D×DD \times DD×D matrix has D2D^2D2 entries and takes work proportional to D2D^2D2 for a matrix-vector product.

    Answer

    parameters

  16. 16
    Because neural network operation counts are proportional to parameter counts, computing the loss gradient with respect to parameters takes time proportional to the number of
    _____
    .
    Hint

    Apply the circuit theorem to a network whose input variables are its trainable values.

    Answer

    parameters

  17. 17
    A gradient descent update followed by a loss evaluation can be differentiated with respect to the starting parameters because the update and evaluation form a composition of efficiently computable
    _____
    .
    Hint

    The update step, gradient computation, and loss evaluation can each be treated as parts of a function.

    Answer

    functions

  18. 18
    Differentiating through an optimization procedure can be used in meta-learning to tune the
    _____
    used by that procedure.
    Hint

    This value controls the size of each gradient descent step.

    Answer

    learning rate

  19. 19
    A final loss defined by running an algorithm for a fixed number of steps can be optimized by differentiating through the
    _____
    .
    Hint

    The sequence of steps is part of the computation that produces the final loss.

    Answer

    algorithm

  20. 20
    To obtain a Hessian-vector product efficiently, the scalar function can be defined as the gradient of fff dotted with a vector vvv, then
    _____
    .
    Hint

    The operation is applied to the scalar function formed from the gradient-vector inner product.

    Answer

    differentiated

  21. 21
    A Hessian-vector product can be computed efficiently, even though explicitly forming the full Hessian matrix may be impractical because it is
    _____
    .
    Hint

    For nnn parameters, the matrix has nnn rows and nnn columns.

    Answer

    too big

  22. 22
    In the chain-rule setup, an input vector zzz is mapped by ggg to an intermediate vector uuu, and a later function maps uuu to a scalar output
    _____
    .
    Hint

    This symbol names the final scalar in the described composition.

    Answer

    JJJ

  23. 23
    The chain rule can use the gradient with respect to an intermediate variable uuu to compute the gradient with respect to the earlier input
    _____
    .
    Hint

    This variable is the input to the function that produces uuu.

    Answer

    zzz

  24. 24
    For u=g(z)u=g(z)u=g(z) and scalar output J=f(u)J=f(u)J=f(u), the gradient with respect to zzz is obtained by multiplying the transpose of the Jacobian of ggg by the gradient with respect to
    _____
    .
    Hint

    This is the intermediate variable produced by ggg.

    Answer

    uuu

  25. 25
    When applying the chain rule locally to u=g(z)u=g(z)u=g(z), the backward computation needs the function ggg and the value of
    _____
    , but not the details of the later function fff.
    Hint

    This is the value at which the local function's Jacobian is evaluated.

    Answer

    zzz

  26. 26
    In a sequence of modules, back propagation applies each module's local backward mapping in reverse order using the gradient from the later computation as its
    _____
    .
    Hint

    The gradient passed into a local backward operation is already known from the module that follows it.

    Answer

    input

  27. 27
    A module's forward function computes its output, while its backward function maps an output gradient to an
    _____
    gradient.
    Hint

    The backward mapping travels against the direction of the forward computation.

    Answer

    input

  28. 28
    In a network with multiple modules, the chain rule can be composed across an arbitrary number of
    _____
    .
    Hint

    Each layer or operation in the computation can be treated as one of these.

    Answer

    functions

  29. 29
    The data input and the model parameters can both be treated as
    _____
    to a computation when finding derivatives with respect to them.
    Hint

    The differentiation procedure can focus on whichever values are being varied.

    Answer

    inputs

  30. 30
    In a network, the intermediate values passed between layers are often called
    _____
    .
    Hint

    These are the values produced and consumed as computations move through the network.

    Answer

    activations

  31. 31
    A layer's parameters can be differentiated by treating them as inputs to the local function that produces that layer's
    _____
    .
    Hint

    The local function maps the layer's parameters and other inputs to this value.

    Answer

    output

  32. 32
    For an affine layer u=Wz+bu=Wz+bu=Wz+b, the gradient with respect to the input zzz is WTW^TWT multiplied by the gradient with respect to
    _____
    .
    Hint

    This is the output of the affine transformation.

    Answer

    uuu

  33. 33
    For an affine layer, the gradient with respect to the weight matrix is the outer product of the gradient with respect to the output and the input
    _____
    .
    Hint

    This is the vector multiplied by the weight matrix in the forward computation.

    Answer

    zzz

  34. 34
    For a single example, the gradient with respect to one weight matrix in an affine layer has
    _____
    one.
    Hint

    The outer product of two vectors has this matrix property.

    Answer

    rank

  35. 35
    The rank-one property of a weight gradient generally does not hold for a gradient averaged over
    _____
    examples.
    Hint

    Combining several individual outer products can increase the rank.

    Answer

    multiple

  36. 36
    The biological analogy for the weight update rule describes a connection's update as the gradient at the output end multiplied by the value at the input end; this is called the
    _____
    rule.
    Hint

    The lecture connects this rule to a synapse and the values at the two ends of an edge.

    Answer

    Hebbian

  37. 37
    For u=Wz+bu=Wz+bu=Wz+b, the gradient with respect to the bias vector bbb is the gradient with respect to the
    _____
    .
    Hint

    The bias is added directly to this quantity.

    Answer

    output

  38. 38
    In the two-phase view of back propagation, the first phase computes gradients with respect to the intermediate
    _____
    .
    Hint

    These are the values between layers, rather than the weights and biases.

    Answer

    activations

  39. 39
    In the two-phase view, once the needed activation gradients are available, gradients with respect to different layer parameters can sometimes be computed in
    _____
    .
    Hint

    These parameter-gradient computations need not all wait on one another.

    Answer

    parallel

  40. 40
    After a computation's results are no longer needed, discarding them can free
    _____
    during back propagation.
    Hint

    This is a system resource used to store intermediate tensors.

    Answer

    memory

  41. 41
    For an elementwise activation u=σ(z)u=\sigma(z)u=σ(z), the Jacobian with respect to zzz is a
    _____
    matrix.
    Hint

    Each output coordinate depends only on the corresponding input coordinate.

    Answer

    diagonal

  42. 42
    For an elementwise activation, the diagonal entries of the Jacobian are the derivatives of the scalar activation evaluated at the corresponding
    _____
    .
    Hint

    Each output coordinate applies the scalar function to one coordinate of zzz.

    Answer

    inputs

  43. 43
    The backward pass through an elementwise activation multiplies each incoming gradient coordinate by the corresponding scalar activation
    _____
    .
    Hint

    This is the diagonal entry of the activation's Jacobian.

    Answer

    derivative

  44. 44
    The forward and backward computations for an elementwise activation on an MMM-dimensional vector each take time
    _____
    .
    Hint

    Each coordinate can be processed independently once.

    Answer

    O(M)O(M)O(M)

  45. 45
    The Jacobian matrix for an elementwise activation can be avoided in an implementation by storing its diagonal entries as a
    _____
    .
    Hint

    Only one derivative value per coordinate is needed.

    Answer

    vector

  46. 46
    Examples of scalar activation functions mentioned include sigmoid, cosine, exponential, GELU, and
    _____
    .
    Hint

    It is another named activation function mentioned alongside GELU.

    Answer

    Swish

  47. 47
    A gating-style activation can be formed by taking the elementwise product of the outputs of two
    _____
    .
    Hint

    Each of the two computations produces a value vector that is combined coordinatewise.

    Answer

    projections

  48. 48
    For a matrix with dimensions M×NM \times NM×N, multiplying by a vector takes time proportional to
    _____
    .
    Hint

    The work scales with the number of entries in the matrix.

    Answer

    MNMNMN

1 of 48
Question 1 of 48

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent