Neural Networks and Backpropagation
- 63Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary purpose of a loss function in supervised learning?
What is the primary purpose of a loss function in supervised learning?
63 questions
- 1
What is the primary purpose of a loss function in supervised learning?
- A
To determine how many input features the model receives
- B
To measure how far predictions are from the desired outputs
- C
To specify the physical layout of the network hardware
- D
To convert every input value into a probability automatically
Correct answer
BTo measure how far predictions are from the desired outputs
Explanation
A loss function measures the error between a model's predictions and the correct outputs, providing a quantity that optimization attempts to minimize.
- A
- 2
Which statement correctly describes hinge loss compared with softmax loss?
- A
Hinge loss eliminates the need to compare correct and incorrect class scores
- B
Hinge loss can only be used when a network contains no hidden layers
- C
Hinge loss converts every class score into a normalized probability distribution
- D
Hinge loss encourages score margins but does not convert scores into probabilities
Correct answer
DHinge loss encourages score margins but does not convert scores into probabilities
Explanation
Hinge loss encourages the correct class score to exceed incorrect scores by at least a margin, whereas it does not turn scores into probabilities.
- A
- 3
What does hinge loss penalize when the margin condition is violated?
- A
Input features having different numerical scales
- B
Correct classes receiving scores that are too high
- C
Incorrect classes receiving scores that are too high
- D
Weights being initialized with random values
Correct answer
CIncorrect classes receiving scores that are too high
Explanation
Hinge loss penalizes cases in which irrelevant or incorrect items receive scores that are too high relative to the correct item.
- A
- 4
What does the margin in hinge loss require?
- A
Every class score must be separated from zero by the same amount
- B
The correct score must exceed every incorrect score by a specified amount
- C
Every incorrect score must be converted into a probability below one-half
- D
The correct score must equal the average of all class scores
Correct answer
BThe correct score must exceed every incorrect score by a specified amount
Explanation
The margin specifies how much larger the correct score should be than each incorrect score for the loss to become zero.
- A
- 5
Why is computing the loss and its gradient over an entire large dataset expensive?
- A
The loss function must convert every example into a new class
- B
The model must remove all weights before each optimization step
- C
The gradient can only be computed after the data are sorted
- D
Every optimization step must process all training examples
Correct answer
DEvery optimization step must process all training examples
Explanation
Evaluating the loss and derivative over a large dataset requires processing every example, making each optimization step computationally expensive.
- A
- 6
What is the purpose of a mini-batch in gradient-based optimization?
- A
To estimate gradients using a sampled subset of the training data
- B
To replace the loss function with a fixed set of class scores
- C
To ensure that every optimization step uses exactly one example
- D
To permanently remove difficult examples from the training data
Correct answer
ATo estimate gradients using a sampled subset of the training data
Explanation
A mini-batch is a subsample of the dataset used to estimate gradients and take an optimization step more efficiently.
- A
- 7
Which of the following was identified as a commonly used mini-batch size?
- A
Only the entire dataset, regardless of its size
- B
An automatically fixed size of one million examples
- C
Exactly one example for every class in the dataset
- D
Approximately 32, 64, 128, or 256 examples
Correct answer
DApproximately 32, 64, 128, or 256 examples
Explanation
The lecture listed values such as 32, 64, 128, and 256 as common mini-batch sizes.
- A
- 8
What is the defining update direction in gradient descent?
- A
The weights move toward the largest value of the loss
- B
The weights move in the negative direction of the loss gradient
- C
The weights move in the positive direction of the loss gradient
- D
The weights move randomly without using the loss gradient
Correct answer
BThe weights move in the negative direction of the loss gradient
Explanation
Because the goal is to reduce loss, gradient descent takes steps opposite to the gradient.
- A
- 9
How are numerical and analytical gradients commonly used together?
- A
Analytical gradients are used in practice and numerical gradients check implementations
- B
Analytical gradients replace the loss function while numerical gradients initialize weights
- C
Numerical gradients are always used for training and analytical gradients are discarded
- D
Both gradients are averaged because neither can be used independently
Correct answer
AAnalytical gradients are used in practice and numerical gradients check implementations
Explanation
Analytical gradients are preferred in practice for efficiency, while numerical gradients are often used to verify that an implementation is correct.
- A
- 10
What is a typical learning-rate scheduling strategy?
- A
Start with zero and increase it only after the loss reaches its minimum
- B
Use a separate learning rate that is unrelated to optimization
- C
Keep increasing the learning rate whenever the model improves
- D
Start with a larger learning rate and reduce it during training
Correct answer
DStart with a larger learning rate and reduce it during training
Explanation
Many optimizers begin with a relatively large learning rate and later decay or reduce it by a factor.
- A
- 11
What is the role of the first weight matrix in a two-layer fully connected network?
- A
It maps the input features to the hidden-layer representation
- B
It replaces the activation function in the output layer
- C
It computes the regularization penalty without using the input
- D
It converts the final hidden representation directly into class labels
Correct answer
AIt maps the input features to the hidden-layer representation
Explanation
The first weight matrix, often denoted W1​, transforms the input X into values for the hidden layer.
- A
- 12
In a network with input dimension D and C output classes, what does C represent?
- A
The number of input features per example
- B
The number of hidden neurons between the layers
- C
The number of examples in a mini-batch
- D
The number of output neurons or classes
Correct answer
DThe number of output neurons or classes
Explanation
The quantity C denotes the number of classes, corresponding to the number of output nodes or neurons.
- A
- 13
What does the hidden-layer width H represent?
- A
The number of features in each input example
- B
The number of loss functions used during training
- C
The number of neurons in the hidden layer
- D
The number of classes in the output layer
Correct answer
CThe number of neurons in the hidden layer
Explanation
The hidden-layer width H is the number of neurons or nodes in that hidden layer.
- A
- 14
Why are biases included in practical neural-network layers?
- A
They guarantee that the network will not overfit
- B
They convert the output scores into class probabilities
- C
They force every neuron to output zero for negative inputs
- D
They provide a more complete and flexible affine transformation
Correct answer
DThey provide a more complete and flexible affine transformation
Explanation
Practical layers generally include biases in addition to weights and inputs, although biases may be omitted from simplified notation.
- A
- 15
What is the main function of an activation function between linear layers?
- A
It removes the need to learn any weight parameters
- B
It reduces every hidden layer to a single neuron
- C
It introduces nonlinearity into the network
- D
It guarantees that all class scores become probabilities
Correct answer
CIt introduces nonlinearity into the network
Explanation
Activation functions introduce nonlinear transformations, allowing neural networks to represent nonlinear relationships.
- A
- 16
What would happen if two linear layers were composed without an activation function between them?
- A
They would necessarily become a nonlinear classifier
- B
They would automatically produce independent class probabilities
- C
They would no longer require gradient-based optimization
- D
They could be combined into one equivalent linear transformation
Correct answer
DThey could be combined into one equivalent linear transformation
Explanation
A composition such as W2​(W1​X) can be represented by a single matrix transformation, so the network would remain linear.
- A
- 17
Why can a multilayer network solve some problems that a single linear classifier cannot?
- A
Additional layers guarantee that the original data become linearly distributed
- B
Hidden layers eliminate the need for labeled training examples
- C
Nonlinear transformations can map the data into a separable representation
- D
Multiple layers ensure that every input belongs to the same class
Correct answer
CNonlinear transformations can map the data into a separable representation
Explanation
A nonlinear transformation can map data from the original space into a new space where the classes can be separated by a line or hyperplane.
- A
- 18
What is a multilayer perceptron, or MLP, in the context described?
- A
A network that uses only nearest-neighbor comparisons and no learned weights
- B
A network built by stacking fully connected layers and activation functions
- C
A loss function that converts scores into normalized probabilities
- D
A biological neuron model containing dendrites and axons
Correct answer
BA network built by stacking fully connected layers and activation functions
Explanation
MLPs are fully connected networks formed from weight-based layers, typically with nonlinear activations between them.
- A
- 19
What is the effect of adding more hidden layers to a fully connected network?
- A
It prevents the network from learning shared patterns
- B
It forces the network to remain equivalent to a single linear classifier
- C
It allows the network to build increasingly complex representations
- D
It removes all intermediate representations from the computation
Correct answer
CIt allows the network to build increasingly complex representations
Explanation
Additional layers allow the network to compose transformations and learn more complex representations.
- A
- 20
How can hidden neurons be interpreted at a high level in image classification?
- A
They can learn templates for parts or patterns shared across objects
- B
They can only memorize the names of the output classes
- C
They directly store the original image without transformation
- D
They ensure that every object is represented by one complete template
Correct answer
AThey can learn templates for parts or patterns shared across objects
Explanation
Hidden neurons can learn templates for parts of objects or patterns shared across multiple classes, rather than only whole-object templates.
- A
- 21
What is the defining behavior of the ReLU activation function?
- A
It outputs zero for negative inputs and passes positive inputs through
- B
It exchanges the values of neighboring neurons
- C
It converts every input into a value strictly between zero and one
- D
It outputs the same constant for all positive and negative inputs
Correct answer
AIt outputs zero for negative inputs and passes positive inputs through
Explanation
ReLU, or the rectified linear unit, implements the maximum of zero and the input.
- A
- 22
What problem can ReLU sometimes create?
- A
The weights are forced to have identical values
- B
The network becomes unable to represent any linear relationship
- C
Some neurons can become inactive and produce zero outputs
- D
All neurons can become probability distributions automatically
Correct answer
CSome neurons can become inactive and produce zero outputs
Explanation
ReLU can create dead neurons because inputs that are not positive produce zero, potentially leaving some neurons inactive.
- A
- 23
Which activation functions were presented as alternatives intended to reduce problems associated with standard ReLU?
- A
Gradient descent and momentum
- B
Softmax and hinge loss
- C
Jacobian and Hessian
- D
Leaky ReLU and ELU
Correct answer
DLeaky ReLU and ELU
Explanation
Leaky ReLU and the exponential linear unit, or ELU, were identified as alternatives to help address dead-neuron behavior.
- A
- 24
What advantage of ELU was specifically highlighted?
- A
It always produces class probabilities as its output
- B
It provides a better zero-centered function than standard ReLU
- C
It computes the gradient without using the input value
- D
It eliminates the need for any hidden layers
Correct answer
BIt provides a better zero-centered function than standard ReLU
Explanation
ELU was described as somewhat better because of its more zero-centered behavior.
- A
- 25
Which activation family was mentioned as being used in some transformer architectures?
- A
GELU, or Gaussian error linear units
- B
Only the hinge-loss activation
- C
Only the standard linear function
- D
The mini-batch activation unit
Correct answer
AGELU, or Gaussian error linear units
Explanation
GELU was identified as a newer activation variation often used in transformer architectures.
- A
- 26
What is another name for the SiLU activation function?
- A
Softmax
- B
Momentum
- C
Swish
- D
Hinge
Correct answer
CSwish
Explanation
SiLU is the sigmoid linear unit and is also called Swish.
- A
- 27
Why are sigmoid and tanh often avoided in the middle of deep neural networks?
- A
They squash values into narrow ranges that can cause vanishing gradients
- B
They always produce negative outputs regardless of the input
- C
They remove all nonlinear behavior from the network
- D
They cannot be differentiated at any point
Correct answer
AThey squash values into narrow ranges that can cause vanishing gradients
Explanation
Sigmoid and tanh compress values into narrow ranges, which can contribute to vanishing gradients in hidden layers.
- A
- 28
Where might sigmoid or tanh still be useful according to the lecture?
- A
Only in the regularizer and never in a network layer
- B
Only before the input reaches the first weight matrix
- C
Only when the network contains no nonlinear transformations
- D
In later or output layers when bounded or binary-like outputs are desired
Correct answer
DIn later or output layers when bounded or binary-like outputs are desired
Explanation
Although often avoided in hidden layers, sigmoid or tanh may be used in later layers when bounded or binarized outputs are useful.
- A
- 29
How is the choice of an activation function for a new problem generally made?
- A
It is determined uniquely by the number of input features
- B
It depends only on the number of training examples
- C
It is always fixed mathematically to sigmoid for every architecture
- D
It is largely empirical and informed by practices for similar architectures
Correct answer
DIt is largely empirical and informed by practices for similar architectures
Explanation
Activation selection is largely empirical, often beginning with ReLU or functions commonly used in similar architectures.
- A
- 30
Which property is important for activation functions used with back propagation?
- A
They must prevent all weights from becoming negative
- B
They should generally be differentiable enough for gradient computation
- C
They must always output an integer class label
- D
They must have exactly the same formula as the loss function
Correct answer
BThey should generally be differentiable enough for gradient computation
Explanation
Back propagation requires derivatives, so differentiability or an appropriate piecewise derivative is an important consideration.
- A
- 31
What does the forward pass of a neural network do?
- A
It removes the regularization term before optimization
- B
It propagates gradients from the loss back to every parameter
- C
It changes the training labels into randomly chosen targets
- D
It applies the layers to the inputs to produce predictions and loss
Correct answer
DIt applies the layers to the inputs to produce predictions and loss
Explanation
During the forward pass, inputs are transformed layer by layer, producing predictions and ultimately the loss value.
- A
- 32
What is the purpose of the backward pass?
- A
To compute gradients used to update the network's parameters
- B
To calculate the number of neurons without using the loss
- C
To generate new input examples from the output classes
- D
To replace all activation functions with linear functions
Correct answer
ATo compute gradients used to update the network's parameters
Explanation
The backward pass computes derivatives of the loss with respect to parameters so optimization can update the weights.
- A
- 33
What does the regularization coefficient control?
- A
How many output classes are represented by the labels
- B
How strongly the regularizer contributes to the total loss
- C
How many input samples are placed in each image
- D
How many times the activation function is evaluated per neuron
Correct answer
BHow strongly the regularizer contributes to the total loss
Explanation
The regularization coefficient, such as �lambda, controls the contribution of the regularization term to the overall loss.
- A
- 34
How does stronger regularization affect the weights?
- A
It guarantees that the model will have more detailed decision boundaries
- B
It forces the weights to memorize every training example
- C
It removes all dependence of the output on the weights
- D
It constrains their values and gives the model less freedom
Correct answer
DIt constrains their values and gives the model less freedom
Explanation
A larger regularization contribution constrains the weights, reducing the freedom of the model to fit highly detailed patterns.
- A
- 35
What can happen if regularization is made excessively strong?
- A
The model stops using a loss function altogether
- B
The model necessarily gains the capacity to memorize the training data
- C
The model may underfit because its decision boundaries are too generic
- D
The model must overfit because all weights become unconstrained
Correct answer
CThe model may underfit because its decision boundaries are too generic
Explanation
Excessive regularization can constrain the model too much, leading to generic decision boundaries and underfitting.
- A
- 36
Why can increasing the number of neurons make a network more prone to overfitting?
- A
More neurons prevent the network from representing nonlinear functions
- B
Greater capacity allows the network to model or memorize finer details of the training data
- C
More neurons force every decision boundary to become linear
- D
Greater capacity makes the network unable to fit the training examples
Correct answer
BGreater capacity allows the network to model or memorize finer details of the training data
Explanation
A larger network has more capacity to learn complex functions, but it may also memorize training data and generalize poorly.
- A
- 37
What strategy was recommended for choosing network size and regularization?
- A
Use a somewhat larger network and control complexity with regularization
- B
Increase network size indefinitely without checking generalization
- C
Always use the smallest possible network and avoid regularization
- D
Choose network size only by minimizing the number of output classes
Correct answer
AUse a somewhat larger network and control complexity with regularization
Explanation
The suggested rule of thumb was to use a somewhat larger network than minimally necessary and tune regularization to control overfitting.
- A
- 38
How is the required number of hidden neurons usually determined?
- A
Through empirical experiments and comparison with similar problems
- B
By choosing the same value for every type of dataset
- C
By setting it equal to the number of training examples
- D
Through a universal formula based only on the input dimension
Correct answer
AThrough empirical experiments and comparison with similar problems
Explanation
There is no single prescription; practitioners use related research, comparable networks, and experiments to choose the network complexity.
- A
- 39
What is a computational graph?
- A
A table containing the labels but not the model computations
- B
A method for selecting classes without calculating scores
- C
A diagram showing only the biological structure of a neuron
- D
A step-by-step representation of operations from inputs and parameters to the loss
Correct answer
DA step-by-step representation of operations from inputs and parameters to the loss
Explanation
A computational graph organizes the operations in a model, beginning with inputs and parameters and ending with the loss.
- A
- 40
Why are computational graphs especially useful for complex neural networks?
- A
They eliminate the need to define any operations in the network
- B
They allow gradients to be computed modularly instead of deriving one enormous expression
- C
They replace all forward computations with random sampling
- D
They ensure that every network has only one trainable parameter
Correct answer
BThey allow gradients to be computed modularly instead of deriving one enormous expression
Explanation
Computational graphs break complex functions into local operations, making forward and backward computations modular and manageable.
- A
- 41
Consider f(x,y,z)=(x+y)z with x=−2, y=5, and z=−4. What is the intermediate value q=x+y?
- A
3
- B
20
- C
−12
- D
−7
Correct answer
A3
Explanation
The addition gate gives q=x+y=−2+5=3.
- A
- 42
For q=x+y, what are the local derivatives with respect to x and y?
- A
Both derivatives are 0
- B
The derivative with respect to x is y, and with respect to y is x
- C
The derivative with respect to x is −1, and with respect to y is 1
- D
Both derivatives are 1
Correct answer
DBoth derivatives are 1
Explanation
For an addition operation, rac{�partial q}{�partial x}=1 and rac{�partial q}{�partial y}=1.
- A
- 43
For f=qz, what are the local derivatives rac{�partial f}{�partial q} and rac{�partial f}{�partial z}?
- A
1 and 1, respectively
- B
−z and −q, respectively
- C
z and q, respectively
- D
q and z, respectively
Correct answer
Cz and q, respectively
Explanation
In a multiplication gate, the derivative with respect to one input is the other input, so rac{�partial f}{�partial q}=z and rac{�partial f}{�partial z}=q.
- A
- 44
What is the derivative of a quantity with respect to itself at the endpoint of the graph?
- A
It is always 0
- B
It is always 1
- C
It is equal to the input value
- D
It is equal to the regularization coefficient
Correct answer
BIt is always 1
Explanation
The derivative of a variable with respect to itself, such as rac{�partial f}{�partial f}, is 1.
- A
- 45
What does the chain rule allow back propagation to do?
- A
Combine local derivatives along a path to obtain a derivative with respect to an earlier variable
- B
Determine the network size from the value of the loss
- C
Convert all nonlinear operations into probability calculations
- D
Avoid computing any derivatives in individual operations
Correct answer
ACombine local derivatives along a path to obtain a derivative with respect to an earlier variable
Explanation
The chain rule multiplies derivatives through intermediate variables, such as rac{�partial f}{�partial y}=rac{�partial f}{�partial q}rac{�partial q}{�partial y}.
- A
- 46
What is an upstream gradient?
- A
A regularization penalty applied directly to the labels
- B
A gradient arriving at a node from operations later in the graph
- C
A gradient that is discarded after the forward pass
- D
A derivative computed only from the original input features
Correct answer
BA gradient arriving at a node from operations later in the graph
Explanation
The upstream gradient is the gradient propagated backward from later operations toward the current node.
- A
- 47
How is a downstream gradient computed at a computational-graph node?
- A
By replacing the upstream gradient with the forward output
- B
By multiplying the upstream gradient by the local gradient
- C
By dividing the local gradient by the number of classes
- D
By adding the upstream gradient to the network size
Correct answer
BBy multiplying the upstream gradient by the local gradient
Explanation
Back propagation computes each downstream gradient as the upstream gradient multiplied by the node's local derivative.
- A
- 48
What is the main advantage of local gradient calculations?
- A
They make the entire network independent of its loss function
- B
Each operation can compute its contribution independently and pass it backward
- C
They eliminate the need to store values from the forward pass
- D
They ensure that every node has the same gradient
Correct answer
BEach operation can compute its contribution independently and pass it backward
Explanation
Local gradients allow each node to implement its own backward computation and pass gradients to preceding nodes.
- A
- 49
Which shortcut correctly characterizes common computational-graph gates?
- A
Addition routes gradients to the maximum, multiplication distributes zeros, and max swaps inputs
- B
Addition converts gradients to probabilities, multiplication clips them, and max reverses their signs
- C
Addition removes gradients, multiplication averages inputs, and max sends gradients everywhere equally
- D
Addition distributes gradients, multiplication swaps inputs, and max routes gradients to the maximum
Correct answer
DAddition distributes gradients, multiplication swaps inputs, and max routes gradients to the maximum
Explanation
For an addition gate, gradients are copied to both inputs; for multiplication, each input receives the other input as its local derivative; for a max gate, the gradient follows the selected maximum.
- A
- 50
How does a max gate propagate a gradient during the backward pass?
- A
It replaces the gradient with zero for every input
- B
It sends the gradient only to the smallest input
- C
It sends the gradient equally to every input
- D
It sends the gradient to the input that achieved the maximum
Correct answer
DIt sends the gradient to the input that achieved the maximum
Explanation
Because the max output depends on the winning input, the gradient is routed to the input that produced the maximum.
- A
- 51
Why does back propagation avoid manually differentiating an entire deep network expression?
- A
It recursively applies local derivatives from the output back through the graph
- B
It approximates every derivative by ignoring intermediate operations
- C
It uses the same fixed gradient for every parameter
- D
It computes only the derivative of the first layer
Correct answer
AIt recursively applies local derivatives from the output back through the graph
Explanation
Back propagation recursively propagates gradients through local operations, avoiding one unwieldy symbolic derivative for the whole network.
- A
- 52
What does a typical modular neural-network operator need to support?
- A
A forward computation and a backward gradient computation
- B
Only a forward computation because gradients are random
- C
Only a backward computation because outputs are not needed
- D
A class-label lookup and no numerical computation
Correct answer
AA forward computation and a backward gradient computation
Explanation
Operators are commonly implemented with forward and backward components so they can compute outputs and propagate gradients.
- A
- 53
Why might an operator save or cache its inputs during the forward pass?
- A
The inputs are needed to replace the training labels
- B
The backward pass may need those inputs to calculate local gradients
- C
The forward output cannot otherwise be displayed to the user
- D
Caching inputs automatically prevents overfitting
Correct answer
BThe backward pass may need those inputs to calculate local gradients
Explanation
Many backward formulas depend on values received during the forward pass, so implementations often save those values.
- A
- 54
What is the derivative of the sigmoid function in terms of the sigmoid output?
- A
σ(x)+1
- B
1−σ(x)1​
- C
xσ(x)
- D
σ(x)(1−σ(x))
Correct answer
Dσ(x)(1−σ(x))
Explanation
The sigmoid derivative can be written compactly as �sigma(x)(1−�sigma(x)), which makes its backward computation convenient.
- A
- 55
What is the shape of the gradient of a scalar loss with respect to a vector variable?
- A
It has the same dimensionality as the vector variable
- B
It is always a square matrix with the loss dimension as its side
- C
It is always a single scalar regardless of the variable
- D
It has one fewer dimension than the vector variable
Correct answer
AIt has the same dimensionality as the vector variable
Explanation
The gradient of a scalar loss with respect to a vector has one component for each component of that vector, so it has the same shape.
- A
- 56
What form does the derivative take when a vector-valued output depends on a vector-valued input?
- A
A scalar loss only
- B
A Jacobian matrix
- C
A mini-batch index
- D
A single class label
Correct answer
BA Jacobian matrix
Explanation
Derivatives of vector outputs with respect to vector inputs form Jacobian matrices.
- A
- 57
What does an entry of a Jacobian represent?
- A
The probability assigned to the most likely class
- B
How one output component changes when one input component changes
- C
The total number of neurons in the network
- D
The regularization coefficient for the entire model
Correct answer
BHow one output component changes when one input component changes
Explanation
Each Jacobian entry describes the sensitivity of a particular output component to a particular input component.
- A
- 58
Why is the Jacobian for an elementwise ReLU operation sparse?
- A
The operation contains no derivative at any input
- B
The Jacobian contains only the network's weight matrices
- C
Every output depends equally on every input element
- D
Each output depends only on the corresponding input element
Correct answer
DEach output depends only on the corresponding input element
Explanation
For an elementwise operation, an output component does not depend on other input components, so off-diagonal Jacobian entries are zero.
- A
- 59
For ReLU, what determines whether a diagonal Jacobian entry is 0 or 1?
- A
Whether the mini-batch contains an even number of examples
- B
Whether the regularization coefficient is large or small
- C
Whether the input belongs to the first or last class
- D
Whether the corresponding input is inactive or passes through positively
Correct answer
DWhether the corresponding input is inactive or passes through positively
Explanation
The ReLU derivative is 0 when the input is in the inactive region and 1 when the positive input passes through.
- A
- 60
Why do implementations often avoid explicitly constructing a large sparse Jacobian?
- A
Sparse matrices always produce incorrect gradients
- B
The forward pass does not provide any values for a Jacobian
- C
A Jacobian cannot represent derivatives of vector-valued functions
- D
The same result can be obtained more efficiently with rule-based gradient operations
Correct answer
DThe same result can be obtained more efficiently with rule-based gradient operations
Explanation
When the structure of an operation is known, its backward rule can compute the needed result directly without storing a huge Jacobian.
- A
- 61
Why can explicitly forming the Jacobian of a matrix multiplication be impractical?
- A
Matrix multiplication can only be differentiated numerically
- B
The Jacobian contains only one entry regardless of matrix size
- C
Its size can become enormous even for a single multiplication operation
- D
Matrix multiplication has no derivative with respect to its inputs
Correct answer
CIts size can become enormous even for a single multiplication operation
Explanation
For matrix-valued inputs and outputs, the Jacobian may contain an extremely large number of entries, making explicit construction impractical.
- A
- 62
How can the backward pass for matrix multiplication be implemented efficiently?
- A
By calculating only the gradient of the output bias
- B
By deriving direct matrix operations for the gradients with respect to each input
- C
By ignoring the upstream gradient and using the forward output
- D
By replacing matrix multiplication with an unrelated activation function
Correct answer
BBy deriving direct matrix operations for the gradients with respect to each input
Explanation
Direct matrix formulas compute gradients with respect to the inputs and weights without explicitly building the full Jacobian.
- A
- 63
What does the gradient with respect to a weight matrix tell the optimizer?
- A
Which activation function is biologically most realistic
- B
How changing each weight would affect the loss
- C
How many output classes should be added to the problem
- D
Which input examples should be removed from the dataset
Correct answer
BHow changing each weight would affect the loss
Explanation
A weight gradient indicates how the loss changes when each weight changes, enabling gradient-based parameter updates.
- A

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