Backpropagation and Neural Networks
- 48Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
48 questions
- 1The 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
- 2In 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
- 3Back 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
- 4The 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
- 5The computation of gradients through a model is called the_____pass.
Hint
It proceeds from the output toward earlier computations.
Answer
backward
- 6Back 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
- 7A 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
- 8The size of a computational circuit is measured by its number of_____.
Hint
Each arithmetic operation or elementary function contributes to this count.
Answer
operations
- 9Unlike a formula, a circuit can reuse a previously computed_____without expanding it again.
Hint
For example, a circuit can compute x1+x2 once and use that result more than once.
Answer
subexpression
- 10The circuit theorem discussed applies to a function with a single scalar_____.
Hint
The function maps its inputs to one real-valued result.
Answer
output
- 11For a scalar function of L inputs, the gradient with respect to those inputs is an L-dimensional_____.
Hint
There is one partial derivative for each input coordinate.
Answer
vector
- 12If a differentiable circuit has size n, its input gradient can be computed in time_____.
Hint
The gradient computation takes time proportional to the circuit's operation count.
Answer
O(n)
- 13The 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
- 14In 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
- 15For 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×D matrix has D2 entries and takes work proportional to D2 for a matrix-vector product.
Answer
parameters
- 16Because 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
- 17A 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
- 18Differentiating 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
- 19A 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
- 20To obtain a Hessian-vector product efficiently, the scalar function can be defined as the gradient of f dotted with a vector v, then_____.
Hint
The operation is applied to the scalar function formed from the gradient-vector inner product.
Answer
differentiated
- 21A Hessian-vector product can be computed efficiently, even though explicitly forming the full Hessian matrix may be impractical because it is_____.
Hint
For n parameters, the matrix has n rows and n columns.
Answer
too big
- 22In the chain-rule setup, an input vector z is mapped by g to an intermediate vector u, and a later function maps u to a scalar output_____.
Hint
This symbol names the final scalar in the described composition.
Answer
J
- 23The chain rule can use the gradient with respect to an intermediate variable u to compute the gradient with respect to the earlier input_____.
Hint
This variable is the input to the function that produces u.
Answer
z
- 24For u=g(z) and scalar output J=f(u), the gradient with respect to z is obtained by multiplying the transpose of the Jacobian of g by the gradient with respect to_____.
Hint
This is the intermediate variable produced by g.
Answer
u
- 25When applying the chain rule locally to u=g(z), the backward computation needs the function g and the value of_____, but not the details of the later function f.
Hint
This is the value at which the local function's Jacobian is evaluated.
Answer
z
- 26In 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
- 27A 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
- 28In 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
- 29The 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
- 30In 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
- 31A 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
- 32For an affine layer u=Wz+b, the gradient with respect to the input z is WT multiplied by the gradient with respect to_____.
Hint
This is the output of the affine transformation.
Answer
u
- 33For 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
z
- 34For 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
- 35The 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
- 36The 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
- 37For u=Wz+b, the gradient with respect to the bias vector b is the gradient with respect to the_____.
Hint
The bias is added directly to this quantity.
Answer
output
- 38In 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
- 39In 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
- 40After 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
- 41For an elementwise activation u=σ(z), the Jacobian with respect to z is a_____matrix.
Hint
Each output coordinate depends only on the corresponding input coordinate.
Answer
diagonal
- 42For 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 z.
Answer
inputs
- 43The 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
- 44The forward and backward computations for an elementwise activation on an M-dimensional vector each take time_____.
Hint
Each coordinate can be processed independently once.
Answer
O(M)
- 45The 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
- 46Examples of scalar activation functions mentioned include sigmoid, cosine, exponential, GELU, and_____.
Hint
It is another named activation function mentioned alongside GELU.
Answer
Swish
- 47A 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
- 48For a matrix with dimensions M×N, multiplying by a vector takes time proportional to_____.
Hint
The work scales with the number of entries in the matrix.
Answer
MN

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