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

  • 74Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Optimization Foundations
A classifier parameterized by weights WWW takes data xxx as input and outputs a vector of
for the possible classes.

74 questions

  1. 1
    A classifier parameterized by weights WWW takes data xxx as input and outputs a vector of
    _____
    for the possible classes.
    Hint

    These values indicate how strongly the classifier favors each class.

    Answer

    scores

  2. 2
    The SVM loss function quantifies how satisfied or dissatisfied we are with the classifier's produced
    _____
    .
    Hint

    The loss evaluates the values assigned to the classes.

    Answer

    scores

  3. 3
    The total loss combines a data loss term with a
    _____
    term that expresses a preference for simpler models.
    Hint

    This term discourages overly complex models and can improve generalization.

    Answer

    regularization

  4. 4
    The purpose of minimizing the loss function is to find the parameters WWW corresponding to the
    _____
    loss.
    Hint

    Optimization seeks the bottom of the loss landscape.

    Answer

    lowest

  5. 5
    Gradient descent updates parameters by moving in the direction of
    _____
    descent, which is the negative of the gradient.
    Hint

    The gradient points uphill, so optimization moves in the opposite direction.

    Answer

    steepest

  6. 6
    A numerical gradient can be estimated using a finite
    _____
    approximation.
    Hint

    This method compares function values at nearby points.

    Answer

    difference

  7. 7
    Compared with the analytic gradient, the numerical gradient is generally slow and
    _____
    .
    Hint

    It estimates rather than exactly evaluates the derivative.

    Answer

    approximate

  8. 8
    An analytic gradient is fast and exact once its mathematical
    _____
    has been derived.
    Hint

    The derivative must first be obtained symbolically.

    Answer

    expression

  9. 9
    In practice, an analytic gradient implementation should be checked against a
    _____
    gradient.
    Hint

    Use the easy-to-write approximation to verify the exact implementation.

    Answer

    numerical

  10. 10
    Gradient descent can be visualized as following a trajectory down a loss
    _____
    toward its minimum.
    Hint

    Think of the loss as a surface with hills and valleys.

    Answer

    landscape

  11. 11
    A computational graph represents a function as a collection of nodes, where each node performs a step of
    _____
    .
    Hint

    Nodes can represent operations such as addition or multiplication.

    Answer

    computation

  12. 12
    In a linear classifier computational graph, multiplying WWW by xxx produces a vector of class
    _____
    .
    Hint

    These are the outputs used to assess the classes.

    Answer

    scores

  13. 13
    The total loss node in the classifier graph is formed by adding the data term and the
    _____
    term.
    Hint

    This term promotes model simplicity.

    Answer

    regularization

  14. 14
    Backpropagation recursively applies the
    _____
    rule to compute gradients throughout a computational graph.
    Hint

    This calculus rule links derivatives through intermediate variables.

    Answer

    chain

  15. 15
    Backpropagation begins at the
    _____
    of the computational graph and proceeds toward the inputs.
    Hint

    The process starts with the final output or loss.

    Answer

    end

  16. 16
    For f(x,y,z)=(x+y)zf(x,y,z)= (x+y)zf(x,y,z)=(x+y)z, with x=−2x=-2x=−2, y=5y=5y=5, and z=−4z=-4z=−4, the intermediate value q=x+yq=x+yq=x+y equals
    _____
    .
    Hint

    Add the first two values before applying multiplication.

    Answer

    3

  17. 17
    For the same function and values, the output f=qzf=qzf=qz equals
    _____
    .
    Hint

    Multiply the intermediate value q=3q=3q=3 by z=−4z=-4z=−4.

    Answer

    -12

  18. 18
    For q=x+yq=x+yq=x+y, the local gradients with respect to both xxx and yyy are
    _____
    .
    Hint

    Changing either input of an addition by one changes the output by one.

    Answer

    1

  19. 19
    For f=qzf=qzf=qz, the local gradient of fff with respect to qqq is
    _____
    .
    Hint

    For multiplication, the derivative with respect to one input is the other input.

    Answer

    z

  20. 20
    For f=qzf=qzf=qz, the local gradient of fff with respect to zzz is
    _____
    .
    Hint

    Differentiate the product with respect to the second factor.

    Answer

    q

  21. 21
    In the numerical example f(x,y,z)=(x+y)zf(x,y,z)=(x+y)zf(x,y,z)=(x+y)z, the final gradients with respect to both xxx and yyy are
    _____
    .
    Hint

    Each passes through the addition node, whose local gradient is one, and z=−4z=-4z=−4.

    Answer

    -4

  22. 22
    In that same example, the gradient of fff with respect to zzz is
    _____
    .
    Hint

    The derivative with respect to zzz is the intermediate value qqq.

    Answer

    3

  23. 23
    At the final output node, the gradient of the output with respect to itself is
    _____
    .
    Hint

    An output changes one-for-one with itself.

    Answer

    1

  24. 24
    At each node, backpropagation multiplies the incoming upstream gradient by the node's
    _____
    gradient.
    Hint

    This derivative concerns only the immediate operation at the node.

    Answer

    local

  25. 25
    A computational node needs to know only its immediate inputs, its direct output, and its
    _____
    gradients.
    Hint

    These derivatives describe how the node's output changes with its inputs.

    Answer

    local

  26. 26
    For an addition gate, the same upstream gradient is passed to each input, so the gate acts as a gradient
    _____
    .
    Hint

    It sends identical gradient values along multiple branches.

    Answer

    distributor

  27. 27
    For a maximum gate, the full upstream gradient is sent to the input that had the maximum value, while the other input receives
    _____
    .
    Hint

    Only the winning branch affected the forward output.

    Answer

    zero

  28. 28
    Because it sends the gradient through the winning branch, a max gate can be viewed as a gradient
    _____
    .
    Hint

    It directs the gradient to one of several possible inputs.

    Answer

    router

  29. 29
    For a multiplication gate, the gradient with respect to one input is the upstream gradient scaled by the value of the
    _____
    input.
    Hint

    Differentiate a product with respect to one factor.

    Answer

    other

  30. 30
    When one node influences multiple downstream nodes, the gradients returning from those branches are
    _____
    at that node.
    Hint

    The multivariate chain rule combines all downstream effects.

    Answer

    added

  31. 31
    A sigmoid function is defined as /(1+e^{-x}), and its derivative can be written as
    _____
    .
    Hint

    The derivative uses the sigmoid output twice.

    Answer

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

  32. 32
    A group of simple computational nodes may be replaced by one complex node if its
    _____
    gradient can be written down.
    Hint

    Backpropagation only needs the derivative of the operation represented by that node.

    Answer

    local

  33. 33
    Using a single sigmoid gate instead of separate addition, exponential, and reciprocal nodes produces the same gradient when the correct local gradient is used; this demonstrates their
    _____
    .
    Hint

    Both graph granularities give the same result.

    Answer

    equivalence

  34. 34
    For a sigmoid output of approximately 0.730.730.73, the local sigmoid gradient is approximately
    _____
    .
    Hint

    Evaluate ?\sigma(x)(1-\sigma(x)) using the given output.

    Answer

    0.2

  35. 35
    A computational graph can use very simple nodes such as additions, multiplications, and
    _____
    while avoiding symbolic differentiation of the entire expression.
    Hint

    This operation appears in the sigmoid computation.

    Answer

    exponentials

  36. 36
    In a vector-valued computational graph, gradients become
    _____
    matrices containing partial derivatives.
    Hint

    This matrix describes how every output component depends on every input component.

    Answer

    Jacobian

  37. 37
    For an element-wise operation, each input element affects only the corresponding output element, making the Jacobian matrix
    _____
    .
    Hint

    All off-diagonal dependencies are zero.

    Answer

    diagonal

  38. 38
    For a 4096-dimensional vector input and an element-wise maximum with zero, the output is also
    _____
    -dimensional.
    Hint

    Element-wise operations preserve the number of elements.

    Answer

    4096

  39. 39
    The full Jacobian for a 4096-dimensional input and output has shape 4096 by
    _____
    .
    Hint

    A Jacobian has one row and one column for each output and input dimension, respectively.

    Answer

    4096

  40. 40
    For the vector function q=Wxq=Wxq=Wx, the partial derivative of qqq component kkk with respect to weight WWW at row iii and column jjj is
    _____
    when the relevant row matches.
    Hint

    A weight is multiplied by the input component in its column.

    Answer

    xjx_jxj​

  41. 41
    The gradient with respect to a vector variable has the same
    _____
    as the original vector.
    Hint

    Use this property as a practical sanity check.

    Answer

    shape

  42. 42
    In a modular implementation, each computational gate should provide a forward function and a
    _____
    function.
    Hint

    This second function computes derivatives using the chain rule.

    Answer

    backward

  43. 43
    During the forward pass, gates should be processed in
    _____
    sorted order so that their inputs are available first.
    Hint

    This ordering respects the direction of dependencies in a graph.

    Answer

    topologically

  44. 44
    The backward pass processes gates in the
    _____
    of the forward topological order.
    Hint

    Backpropagation travels from the output toward the inputs.

    Answer

    reverse

  45. 45
    A gate should cache relevant values from the forward pass because those values are often needed during the
    _____
    pass.
    Hint

    Local derivatives frequently depend on forward inputs or outputs.

    Answer

    backward

  46. 46
    For a multiplication gate receiving upstream gradient dzdzdz, the gradient with respect to xxx is computed as dzdzdz multiplied by
    _____
    .
    Hint

    Use the value of the other factor from the forward pass.

    Answer

    yyy

  47. 47
    Deep-learning libraries commonly represent operations such as sigmoid, convolution, and Argmax as computational
    _____
    or layers.
    Hint

    These are modular units with forward and backward implementations.

    Answer

    nodes

  48. 48
    Before deriving gradients for a complicated function, the recommended first step is to represent it as a
    _____
    graph.
    Hint

    Break the function into operations connected by dependencies.

    Answer

    computational

  49. 49
    A neural network can be formed by stacking simpler functions hierarchically to create a more complex,
    _____
    function.
    Hint

    The network must include nonlinear activation functions between linear transformations.

    Answer

    non-linear

  50. 50
    A basic two-layer neural network applies a linear transformation, a
    _____
    function, and then another linear transformation.
    Hint

    This operation prevents the stacked linear layers from collapsing into one linear function.

    Answer

    non-linear

  51. 51
    Without nonlinearities between them, multiple stacked linear layers collapse into a single
    _____
    function.
    Hint

    The composition of linear transformations remains in the same function class.

    Answer

    linear

  52. 52
    In a two-layer network, the first weight matrix produces an intermediate representation commonly denoted by
    _____
    .
    Hint

    This hidden representation is passed to the second layer.

    Answer

    hhh

  53. 53
    The second weight matrix combines the template scores in hhh into final class
    _____
    .
    Hint

    These are the network's outputs for the classes.

    Answer

    scores

  54. 54
    Adding more alternating linear layers and nonlinearities creates networks of arbitrary
    _____
    , which motivates the term deep neural networks.
    Hint

    This refers to the number of stacked layers.

    Answer

    depth

  55. 55
    In the template interpretation, the first-layer weights can detect multiple
    _____
    of an object, such as red and yellow cars or left- and right-facing horses.
    Hint

    These are distinct forms or appearances of the same class.

    Answer

    modes

  56. 56
    The second-layer weights form a
    _____
    sum of the hidden template scores rather than taking their maximum.
    Hint

    The matrix entries determine how strongly each hidden feature contributes.

    Answer

    weighted

  57. 57
    A two-layer neural network can also be called a
    _____
    -hidden-layer neural network.
    Hint

    Count the intermediate layer rather than the two linear transformations.

    Answer

    one

  58. 58
    A three-layer neural network can also be called a
    _____
    -hidden-layer neural network.
    Hint

    The output layer is not counted as hidden.

    Answer

    two

  59. 59
    In the biological analogy, dendrites primarily
    _____
    impulses arriving at a neuron.
    Hint

    They are the input structures of the neuron.

    Answer

    receive

  60. 60
    The cell body of a neuron integrates incoming
    _____
    before producing an outgoing signal.
    Hint

    These are the impulses received through the dendrites.

    Answer

    signals

  61. 61
    A neuron carries its output signal away from the cell body through
    _____
    .
    Hint

    These structures transmit signals to downstream neurons.

    Answer

    axons

  62. 62
    In the neural-network analogy, the weighted combination of inputs resembles the integration performed by the neuron's
    _____
    body.
    Hint

    This is the central part of the biological neuron.

    Answer

    cell

  63. 63
    The connections between neurons in the biological analogy are associated with
    _____
    and their weights.
    Hint

    These are junctions connecting neurons.

    Answer

    synapses

  64. 64
    An activation function can be loosely interpreted as representing a neuron's firing or
    _____
    rate.
    Hint

    Neurons communicate using discrete spikes.

    Answer

    spiking

  65. 65
    A ReLU outputs zero for negative inputs and is
    _____
    for positive inputs.
    Hint

    Its positive regime follows the input directly.

    Answer

    linear

  66. 66
    The lecture emphasizes that biological neurons are much more
    _____
    than the simplified units used in artificial neural networks.
    Hint

    The brain analogy is described as loose rather than exact.

    Answer

    complex

  67. 67
    Biological synapses are not merely single scalar weights; they behave as complex nonlinear
    _____
    systems.
    Hint

    Their behavior changes over time and is nonlinear.

    Answer

    dynamical

  68. 68
    A fully connected neural-network layer can be evaluated efficiently using vectorized
    _____
    multiplication.
    Hint

    One operation computes many neuron outputs at once.

    Answer

    matrix

  69. 69
    In a fully connected network, a hidden layer can be viewed as a whole
    _____
    of neurons rather than as one neuron.
    Hint

    Its activations are stored together in one mathematical object.

    Answer

    vector

  70. 70
    The standard forward computation of a neural layer includes a weighted sum such as Wx+bWx+bWx+b followed by an
    _____
    function.
    Hint

    This function introduces the layer's nonlinearity.

    Answer

    activation

  71. 71
    The abstraction of a neural-network layer is useful because it supports efficient
    _____
    code.
    Hint

    Operations are performed on whole arrays instead of one neuron at a time.

    Answer

    vectorized

  72. 72
    The backward pass of a neural network uses
    _____
    to compute gradients for all of its parameters.
    Hint

    It propagates upstream gradients through the network.

    Answer

    backpropagation

  73. 73
    A neural network's forward pass computes operation results and saves intermediate values for later
    _____
    computation.
    Hint

    The saved values are needed during backpropagation.

    Answer

    gradient

  74. 74
    The main computational idea of a neural network is the composition of multiple stages of hierarchical
    _____
    .
    Hint

    Each layer transforms the representation before passing it onward.

    Answer

    computation

1 of 74
Question 1 of 74

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent