Backpropagation in Neural Networks
- 70Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
70 questions
- 1A 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
- 2In 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
- 3A computation graph can be used to apply backpropagation and obtain_____automatically.
Hint
These values describe how changes in inputs affect an output.
Answer
gradients
- 4A 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
- 5In the example where inputs a and b are added to produce c, the output is represented by c=a+b, and the operation box performs_____.
Hint
The box carries out the arithmetic operation joining the two inputs.
Answer
addition
- 6A 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
- 7A 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
- 8The 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
- 9If c=a+b, the gradient of c with respect to a is_____.
Hint
A small increase in either input changes the sum by the same amount.
Answer
1
- 10If c=a+b, the gradient of c with respect to b is_____.
Hint
Changing the second addend by a small amount changes the sum by that amount.
Answer
1
- 11For c=a−b, the gradient with respect to the first input a is_____.
Hint
Increasing the first term increases the difference by the same amount.
Answer
1
- 12For c=a−b, the gradient with respect to the second input b is_____.
Hint
Increasing the quantity being subtracted makes the result decrease.
Answer
−1
- 13If c=ab, the gradient of c with respect to a is_____.
Hint
When a changes slightly, the change is scaled by the other factor.
Answer
b
- 14If c=ab, the gradient of c with respect to b is_____.
Hint
The change in the second factor is scaled by the first factor.
Answer
a
- 15For the square function f(a)=a2, the gradient with respect to its input is_____.
Hint
Apply the power rule to the input squared.
Answer
2a
- 16For f(a,b)=max(a,b), the gradient with respect to a is the indicator that_____.
Hint
A small increase in a affects the maximum only when a is already the larger input.
Answer
a>b
- 17For f(a,b)=max(a,b), the gradient with respect to b is the indicator that_____.
Hint
The second input affects the maximum when it is the larger one.
Answer
b>a
- 18The derivative of the logistic function σ(a) can be written as_____.
Hint
The derivative is the function's output multiplied by one minus that output.
Answer
σ(a)(1−σ(a))
- 19As the logistic function's input tends toward positive or negative infinity, its output saturates at 1 or 0, causing its gradient to_____.
Hint
Use the derivative formula involving the output times one minus the output.
Answer
go to zero
- 20When 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
- 21If b=a2 and c=b2, the local derivative from a to b is_____.
Hint
Differentiate the first square operation with respect to its input.
Answer
2a
- 22For b=a2 and c=b2, the local derivative from b to c is_____.
Hint
Differentiate the second square operation with respect to its input.
Answer
2b
- 23For b=a2 and c=b2, the chain rule gives dadc=2b⋅2a, which simplifies to_____after substituting b=a2.
Hint
Multiply the two local derivatives and replace b with a2.
Answer
4a3
- 24The composed expression in the preceding example is c=a4, so differentiating it directly with the power rule also gives_____.
Hint
Apply the power rule to the fourth power.
Answer
4a3
- 25For 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
- 26In 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
- 27In 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
- 28In 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
- 29The 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
- 30For 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
- 31In 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
- 32The hinge loss is formed by taking the maximum of zero and_____.
Hint
The expression penalizes examples whose margin falls short of one.
Answer
1−margin
- 33For 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
- 34When 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
- 35In 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
- 36In 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
- 37For 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
- 38The 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
- 39During the forward step, node values are computed from the leaves toward the_____.
Hint
This node represents the final expression.
Answer
root
- 40A forward value is the value of the subexpression rooted at a particular_____.
Hint
Each location in the graph corresponds to a subexpression.
Answer
node
- 41A forward value in backpropagation may be a scalar, vector, or_____.
Hint
It is another common kind of structured numerical value.
Answer
matrix
- 42The 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
- 43The 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
- 44Backward values are computed from the root toward the_____.
Hint
These are the input nodes of the graph.
Answer
leaves
- 45The backward value at the loss node itself is_____.
Hint
The loss has derivative one with respect to itself.
Answer
1
- 46To 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
- 47In the numerical example with weights (3,1) and features (1,2), the forward score is_____.
Hint
Compute the dot product of the two vectors.
Answer
5
- 48In that numerical example, a score of 5 and target of 2 produce a residual of_____.
Hint
Subtract the target from the score.
Answer
3
- 49With residual 3, the squared loss in the numerical example is_____.
Hint
Square the residual.
Answer
9
- 50For the numerical example with features (1,2) and residual 3, the loss gradient with respect to weights (3,1) is_____.
Hint
The gradient is two times the residual multiplied by the feature vector.
Answer
(6,12)
- 51For 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
- 52With 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
- 53Unlike the linear-predictor case described, neural-network training loss is generally_____.
Hint
Its shape can contain multiple regions that complicate optimization.
Answer
non-convex
- 54Because 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
- 55A 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
- 56For 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
- 57Initializing 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
- 58One 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
- 59Another possible way to initialize a network is to use_____.
Hint
This approach prepares model parameters before the training process being discussed.
Answer
pre-training
- 60Overparameterization means adding more_____than are strictly needed.
Hint
These are the intermediate units in a neural network.
Answer
hidden units
- 61One 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
- 62Adaptive 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
- 63If 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
- 64If gradients become too large, they may_____and cause oscillation or divergence.
Hint
The term describes gradients growing excessively in magnitude.
Answer
explode
- 65Careful 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
- 66Deep-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
- 67Computation graphs and backpropagation apply to many functions, not only to_____.
Hint
They can be used for general mathematical expressions and models.
Answer
neural networks
- 68The 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
- 69The 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
- 70The 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

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