Neural Network Training
- 71Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which sequence correctly describes mini-batch stochastic gradient descent?
Which sequence correctly describes mini-batch stochastic gradient descent?
71 questions
- 1
Which sequence correctly describes mini-batch stochastic gradient descent?
- A
Backpropagate, update parameters, forward propagate, sample a batch, and compute loss
- B
Update parameters, sample a batch, compute loss, forward propagate, and backpropagate
- C
Sample a batch, forward propagate, compute loss, backpropagate, and update parameters
- D
Compute loss, update parameters, sample a batch, backpropagate, and forward propagate
Correct answer
CSample a batch, forward propagate, compute loss, backpropagate, and update parameters
Explanation
Mini-batch stochastic gradient descent samples a batch, forward propagates it through the network, computes the loss, backpropagates to obtain gradients, and updates the parameters.
- A
- 2
In gradient-based optimization, why are parameter updates made in the direction of the negative gradient?
- A
The negative gradient points toward decreasing loss locally
- B
The negative gradient increases the magnitude of every parameter
- C
The negative gradient always points directly toward the global minimum
- D
The negative gradient prevents all future gradients from vanishing
Correct answer
AThe negative gradient points toward decreasing loss locally
Explanation
The gradient points in the direction of greatest local increase in loss, so its negative points toward local loss reduction.
- A
- 3
What distinguishes a convolutional neural network from a standard stacked network of fully connected layers?
- A
It removes nonlinearities so that spatial relationships remain unchanged
- B
It uses convolutional layers to preserve spatial structure through the hierarchy
- C
It uses only one filter so that every image has one activation map
- D
It prevents the depth of representations from changing across layers
Correct answer
BIt uses convolutional layers to preserve spatial structure through the hierarchy
Explanation
Convolutional neural networks use convolutional layers that preserve spatial structure as representations become more hierarchical.
- A
- 4
In a convolutional layer, what determines the depth of the output activation volume?
- A
The number of nonlinearities used after the layer
- B
The average value of the input pixels
- C
The total number of filters in the convolutional layer
- D
The number of spatial locations in the input image
Correct answer
CThe total number of filters in the convolutional layer
Explanation
Each filter produces a separate activation map, so the output depth equals the number of filters.
- A
- 5
What is the role of a computational graph in neural-network training?
- A
It stores only the final predictions and discards intermediate computations
- B
It replaces optimization by directly selecting the smallest parameter values
- C
It restricts neural networks to convolutional operations
- D
It represents a function as connected operations through which values and gradients flow
Correct answer
DIt represents a function as connected operations through which values and gradients flow
Explanation
A computational graph expresses a function as a sequence of connected operations, enabling forward computation and backpropagation.
- A
- 6
Why are linear layers typically placed between nonlinear activation functions in a neural network?
- A
The nonlinearities preserve the same output distribution at every layer
- B
The nonlinearities eliminate the need to learn weights in the linear layers
- C
The nonlinearities ensure that every parameter receives an identical gradient
- D
The nonlinearities allow stacked linear transformations to represent more complex functions
Correct answer
DThe nonlinearities allow stacked linear transformations to represent more complex functions
Explanation
Without nonlinearities, stacked linear layers would collapse into one linear transformation. Nonlinearities give the network greater expressive power.
- A
- 7
What is the mathematical form of the sigmoid activation function?
- A
σ(x)=ex+e−xex−e−x
- B
σ(x)=1+e−x1
- C
σ(x)=max(0,x)
- D
σ(x)=max(W1x+b1,W2x+b2)
Correct answer
Bσ(x)=1+e−x1
Explanation
The sigmoid function is defined as σ(x)=1+e−x1.
- A
- 8
What range does the sigmoid function map its inputs into?
- A
Only the nonnegative integers
- B
The interval [0,1]
- C
All real numbers without restriction
- D
The interval [−1,1]
Correct answer
BThe interval [0,1]
Explanation
Sigmoid applies an elementwise squashing operation that maps values into the range [0,1].
- A
- 9
What happens to the sigmoid gradient when its input is very negative or very positive?
- A
It becomes close to zero because the sigmoid is saturated
- B
It changes sign at every saturated input
- C
It becomes maximally large because the sigmoid is steep
- D
It remains constant because sigmoid is linear everywhere
Correct answer
AIt becomes close to zero because the sigmoid is saturated
Explanation
The sigmoid is nearly flat at very negative and very positive inputs, so its local derivative is near zero and can eliminate gradient flow.
- A
- 10
Why can sigmoid outputs cause inefficient weight updates when the inputs to a neuron are all positive?
- A
The weights receive equal positive and negative updates that cancel immediately
- B
The weight gradients tend to have the same sign and therefore move in one general direction
- C
The neuron becomes linear and can no longer participate in backpropagation
- D
The weight gradients are guaranteed to be exactly zero for every training example
Correct answer
BThe weight gradients tend to have the same sign and therefore move in one general direction
Explanation
The local gradient with respect to a weight is proportional to the input. If all inputs are positive, gradients across examples tend to share the upstream gradient's sign, producing inefficient updates.
- A
- 11
Why is zero-centered input data generally desirable for optimization?
- A
It permits both positive and negative gradient contributions instead of biasing updates in one direction
- B
It ensures that all neurons produce identical outputs during initialization
- C
It guarantees that every activation function remains in its nonsaturated region
- D
It makes the number of network parameters independent of the input dimension
Correct answer
AIt permits both positive and negative gradient contributions instead of biasing updates in one direction
Explanation
Zero-centered data provides positive and negative values, reducing the tendency for weight gradients to be constrained to the same direction.
- A
- 12
How does the hyperbolic tangent function differ from the sigmoid function?
- A
Tanh maps values to [0,1] and avoids saturation at large magnitudes
- B
Tanh uses an exponential but is computationally cheaper than ReLU
- C
Tanh is piecewise linear and has no negative outputs
- D
Tanh maps values to [−1,1] and is zero-centered, but still saturates
Correct answer
DTanh maps values to [−1,1] and is zero-centered, but still saturates
Explanation
Tanh squashes values into [−1,1], making it zero-centered, but its gradient still approaches zero in saturated regions.
- A
- 13
What is the definition of the ReLU activation function?
- A
f(x)=1+e−x1
- B
f(x)=max(0,x)
- C
f(x)=ex+e−xex−e−x
- D
f(x)=max(W1x+b1,W2x+b2)
Correct answer
Bf(x)=max(0,x)
Explanation
ReLU outputs zero for negative inputs and passes positive inputs through unchanged, as expressed by f(x)=max(0,x).
- A
- 14
Why does ReLU often train faster than sigmoid or tanh?
- A
It automatically normalizes every layer to a unit Gaussian distribution
- B
It is computationally simple and does not saturate for positive inputs
- C
It uses twice as many parameters to represent each activation
- D
It is zero-centered and has nonzero gradients for all negative inputs
Correct answer
BIt is computationally simple and does not saturate for positive inputs
Explanation
ReLU requires only a maximum operation and remains in a linear, nonsaturated regime for positive inputs. In practice, it was described as converging about six times faster than sigmoid and tanh.
- A
- 15
What is the gradient behavior of ReLU at inputs of −10, 10, and 0, respectively?
- A
Approximately zero, approximately one, and conventionally taken as zero
- B
Approximately zero, approximately zero, and undefined in all implementations
- C
Approximately negative one, approximately one, and exactly one-half
- D
Approximately one, approximately zero, and conventionally taken as one
Correct answer
AApproximately zero, approximately one, and conventionally taken as zero
Explanation
For a negative input such as −10, ReLU is flat and has gradient zero. For a positive input such as 10, it is linear with gradient one. At zero the derivative is undefined mathematically, but implementations commonly use zero.
- A
- 16
What is a dead ReLU?
- A
A ReLU that produces random outputs because its bias is initialized positively
- B
A ReLU whose positive outputs are always larger than its negative inputs
- C
A ReLU that has been replaced by a sigmoid during evaluation
- D
A ReLU that remains inactive for the relevant data and therefore receives no useful updates
Correct answer
DA ReLU that remains inactive for the relevant data and therefore receives no useful updates
Explanation
A ReLU is dead when it lies in a region where the data produces negative pre-activations, so it outputs zero and receives no gradient updates.
- A
- 17
Which situation is a common cause of ReLU units dying during training?
- A
A positive bias always forces the unit into its inactive region
- B
A small learning rate prevents the unit from ever receiving gradients
- C
An excessively large learning rate moves the unit off the data manifold
- D
A zero-centered input distribution guarantees negative pre-activations
Correct answer
CAn excessively large learning rate moves the unit off the data manifold
Explanation
A high learning rate can make a large parameter update that moves a previously active ReLU into a region where it never activates for the training data.
- A
- 18
How can slightly positive biases sometimes help ReLU networks at initialization?
- A
They guarantee that ReLU outputs are zero-centered throughout training
- B
They force every ReLU to remain active for all future inputs
- C
They increase the likelihood that ReLU units are active and receive early updates
- D
They eliminate the need for random weight initialization
Correct answer
CThey increase the likelihood that ReLU units are active and receive early updates
Explanation
Slightly positive biases make positive pre-activations more likely at initialization, increasing the chance that units fire and receive gradients.
- A
- 19
What modification defines a leaky ReLU?
- A
It replaces the positive linear region with a saturating exponential
- B
It shifts every output so that all values are strictly positive
- C
It learns two independent linear functions and selects their minimum
- D
It uses a small negative slope instead of being flat for negative inputs
Correct answer
DIt uses a small negative slope instead of being flat for negative inputs
Explanation
A leaky ReLU retains a small negative slope for negative inputs, preventing the zero-gradient region of the standard ReLU.
- A
- 20
What distinguishes PReLU from a standard leaky ReLU?
- A
PReLU learns the negative-region slope as a parameter
- B
PReLU replaces the activation with a two-class softmax
- C
PReLU uses a fixed slope of exactly zero for negative inputs
- D
PReLU removes the positive-region identity mapping
Correct answer
APReLU learns the negative-region slope as a parameter
Explanation
PReLU uses a learnable parameter, commonly denoted α, to determine the slope in the negative region.
- A
- 21
What is a key property of the exponential linear unit, or ELU?
- A
It retains ReLU-like benefits while producing outputs closer to zero mean
- B
It doubles the number of weight parameters for every neuron
- C
It has no negative outputs and therefore behaves exactly like ReLU
- D
It removes all saturation, including saturation in the negative region
Correct answer
AIt retains ReLU-like benefits while producing outputs closer to zero mean
Explanation
ELU retains a positive linear region but uses a negative saturating region, which can produce outputs closer to zero mean and may improve robustness to noise.
- A
- 22
How does a Maxout neuron generalize ReLU and leaky ReLU?
- A
It applies a maximum operation only after normalizing the input batch
- B
It outputs the maximum of two learned linear functions
- C
It outputs the average of sigmoid and tanh activations
- D
It selects the minimum of two fixed nonlinear functions
Correct answer
BIt outputs the maximum of two learned linear functions
Explanation
A Maxout neuron computes the maximum of expressions such as W1x+b1 and W2x+b2, generalizing the piecewise-linear behavior of ReLU variants.
- A
- 23
What is the main practical drawback of Maxout neurons described in the content?
- A
They cannot be used with gradient-based optimization
- B
They double the number of parameters used per neuron
- C
They saturate for both positive and negative inputs
- D
They always produce outputs with a nonzero mean
Correct answer
BThey double the number of parameters used per neuron
Explanation
Each Maxout neuron uses two sets of weights and biases, so it requires twice the parameters of the corresponding single linear unit.
- A
- 24
Which activation-function recommendation best reflects the practical guidance in the content?
- A
Use sigmoid as the default, avoid ReLU, and use tanh only for output layers
- B
Use tanh exclusively because zero-centered outputs eliminate all gradient problems
- C
Use Maxout universally because its additional parameters always improve performance
- D
Use ReLU as a strong default, consider variants experimentally, and generally avoid sigmoid
Correct answer
DUse ReLU as a strong default, consider variants experimentally, and generally avoid sigmoid
Explanation
The practical rule of thumb is to start with ReLU, try variants when useful, and generally avoid sigmoid because ReLU-family functions tend to work better.
- A
- 25
What are the two standard preprocessing steps commonly applied to general machine-learning data?
- A
Project into a lower-dimensional space and discard spatial information
- B
Apply a sigmoid and then remove all negative values
- C
Subtract the mean and divide by the standard deviation
- D
Multiply by the mean and add the standard deviation
Correct answer
CSubtract the mean and divide by the standard deviation
Explanation
Standard preprocessing commonly zero-centers data by subtracting the mean and normalizes it by the standard deviation.
- A
- 26
Why is feature normalization useful when features have different scales?
- A
It causes all features to have exactly the same semantic meaning
- B
It guarantees that every feature becomes statistically independent
- C
It removes the need to select an activation function
- D
It places features in comparable ranges so that they contribute more equally
Correct answer
DIt places features in comparable ranges so that they contribute more equally
Explanation
Normalizing features with different scales prevents large-scale features from dominating optimization and helps features contribute comparably.
- A
- 27
What preprocessing is typically applied to images in the described setting?
- A
Images are always whitened and projected into a lower-dimensional feature space
- B
Images are converted into one scalar so that spatial structure is removed
- C
Images are left unchanged because convolutional layers perform all preprocessing
- D
Images are usually zero-centered, but not necessarily normalized by standard deviation
Correct answer
DImages are usually zero-centered, but not necessarily normalized by standard deviation
Explanation
Image pixels often already have comparable scales and distributions, so the usual practice described is to subtract the mean without additional standard-deviation normalization.
- A
- 28
Why is PCA or whitening often avoided for the image inputs discussed?
- A
These transformations prevent the computation of any gradients
- B
These transformations force every pixel to have a different scale
- C
These transformations make convolutional filters independent of their inputs
- D
These transformations can replace the original spatial structure with projected features
Correct answer
DThese transformations can replace the original spatial structure with projected features
Explanation
The goal is generally to apply convolutions while preserving the original image's spatial structure, rather than projecting pixels into a new lower-dimensional feature space.
- A
- 29
Which mean should be used to preprocess test data after mean subtraction is chosen?
- A
A newly computed mean from each individual test example
- B
The empirical mean computed from the training data
- C
The mean computed separately from each test mini-batch
- D
The theoretical mean of a standard Gaussian distribution
Correct answer
BThe empirical mean computed from the training data
Explanation
The mean is estimated during training and the same training mean is applied to test data.
- A
- 30
What is an entire mean image for a dataset with images of size 32×32×3?
- A
A single scalar equal to the average of all class labels
- B
Three scalars representing the mean width, height, and depth
- C
An array of the same dimensions containing the mean at each pixel and channel location
- D
A lower-dimensional vector containing one value for each training example
Correct answer
CAn array of the same dimensions containing the mean at each pixel and channel location
Explanation
A mean image has the same dimensions as each input image and contains the average value at each spatial and channel location across training images.
- A
- 31
What is per-channel mean subtraction for an RGB image?
- A
Subtracting one mean from the red channel and discarding the other channels
- B
Subtracting the mean label value from each of the three image channels
- C
Subtracting a separate mean for every individual pixel and every training example
- D
Subtracting one training-set mean for red, one for green, and one for blue
Correct answer
DSubtracting one training-set mean for red, one for green, and one for blue
Explanation
Per-channel preprocessing computes one mean for each RGB channel and subtracts the corresponding value from every location in that channel.
- A
- 32
When should the dataset mean generally be computed for preprocessing?
- A
Independently for every image immediately before classification
- B
Once before training, using the training set or a sufficiently representative sample
- C
Separately after every parameter update, using only the current mini-batch
- D
Only after testing, using all training and test examples together
Correct answer
BOnce before training, using the training set or a sufficiently representative sample
Explanation
The mean is normally estimated once before training rather than recomputed per batch; a representative sample can be sufficient.
- A
- 33
What problem results from initializing every network weight to zero?
- A
The network becomes unable to compute a forward pass because zero is invalid
- B
Neurons in the same layer perform identical computations and receive identical updates
- C
Every neuron is guaranteed to be in the saturated positive regime
- D
All neurons receive independent random gradients and learn different features
Correct answer
BNeurons in the same layer perform identical computations and receive identical updates
Explanation
Zero initialization fails to break symmetry. Neurons with identical initial weights perform the same operations and continue receiving the same updates.
- A
- 34
Why are small random weights preferable to identical zero weights in a small network?
- A
Randomness guarantees that no neuron will ever saturate
- B
Randomness eliminates the need for a loss function
- C
Randomness makes all gradients exactly equal across the network
- D
Randomness breaks symmetry so different neurons can learn different functions
Correct answer
DRandomness breaks symmetry so different neurons can learn different functions
Explanation
Small random values give neurons different starting points, allowing them to receive different gradients and learn different representations.
- A
- 35
What happens in a deep network when weights are initialized too small?
- A
Activations immediately saturate at −1 and 1 in every layer
- B
Activations and gradients can repeatedly shrink until they collapse near zero
- C
The output variance grows exponentially with network depth
- D
The network automatically increases its weights to compensate
Correct answer
BActivations and gradients can repeatedly shrink until they collapse near zero
Explanation
Repeated multiplication by small weights causes forward activations to shrink. The same repeated scaling during backpropagation causes gradients to collapse.
- A
- 36
Why do small activations produce small weight gradients in a linear layer?
- A
The activation function removes the weight from the computational graph
- B
The local derivative with respect to a weight is proportional to the layer input
- C
The upstream gradient is always exactly zero whenever an input is small
- D
The loss function becomes independent of all weights when activations are small
Correct answer
BThe local derivative with respect to a weight is proportional to the layer input
Explanation
For a dot product, the local derivative with respect to a weight is the corresponding input. If inputs collapse toward zero, weight gradients also become small.
- A
- 37
What happens when weights are initialized too large before applying tanh nonlinearities?
- A
The network becomes exactly linear because tanh is never evaluated
- B
The pre-activations become large, tanh saturates, and gradients approach zero
- C
The weights automatically become smaller during the forward pass
- D
The activations remain near zero and all gradients become maximally large
Correct answer
BThe pre-activations become large, tanh saturates, and gradients approach zero
Explanation
Large weights produce large positive or negative inputs to tanh. Tanh then saturates near −1 or 1, causing its gradients to approach zero.
- A
- 38
What is the central goal of Xavier initialization?
- A
To make all network layers use the same number of neurons
- B
To set every weight to the same small deterministic value
- C
To force every activation to be exactly zero at initialization
- D
To choose weight variance so that activation variance is approximately preserved across layers
Correct answer
DTo choose weight variance so that activation variance is approximately preserved across layers
Explanation
Xavier initialization selects the scale of random weights to approximately preserve the variance of inputs and outputs across layers.
- A
- 39
According to the intuition behind Xavier initialization, how should weight scale change as the number of inputs increases?
- A
Weights should generally become smaller when there are more inputs
- B
Weights should be set to zero whenever input count increases
- C
Weights should generally become larger when there are more inputs
- D
Weights should remain unchanged because input count has no effect
Correct answer
AWeights should generally become smaller when there are more inputs
Explanation
With more inputs contributing to a unit, smaller weights are needed to maintain a comparable output variance.
- A
- 40
Why does the original Xavier derivation require adjustment for ReLU activations?
- A
ReLU doubles the number of active units and therefore doubles the variance
- B
ReLU introduces an exponential term that changes the computational cost
- C
ReLU sets approximately half of its inputs to zero, reducing the output variance
- D
ReLU is zero-centered, so its variance is always exactly zero
Correct answer
CReLU sets approximately half of its inputs to zero, reducing the output variance
Explanation
Because negative ReLU pre-activations are set to zero, approximately half the units may be removed, reducing variance relative to the assumptions of the original derivation.
- A
- 41
How can initialization be adjusted to account for the variance reduction caused by ReLU?
- A
Use the same large standard deviation that causes tanh saturation
- B
Set every bias to a large negative value to eliminate positive activations
- C
Include an additional factor accounting for the approximately half of units eliminated by ReLU
- D
Remove randomness and initialize all weights identically
Correct answer
CInclude an additional factor accounting for the approximately half of units eliminated by ReLU
Explanation
A ReLU-specific adjustment incorporates the fact that approximately half the activations are set to zero, producing better variance preservation across layers.
- A
- 42
What does batch normalization do during a training forward pass?
- A
It normalizes the weights using statistics from the entire test set
- B
It normalizes activations using the mean and variance computed from the current mini-batch
- C
It replaces every activation with a fixed zero-centered constant
- D
It computes statistics only once before any training begins
Correct answer
BIt normalizes activations using the mean and variance computed from the current mini-batch
Explanation
Batch normalization computes the empirical mean and variance for the current mini-batch and uses them to normalize activations.
- A
- 43
Why can batch normalization improve gradient flow?
- A
It removes all nonlinearities and makes the network globally convex
- B
It prevents gradients from depending on the network parameters
- C
It counteracts problematic activation scaling that can accumulate across layers
- D
It guarantees that the loss has no local minima
Correct answer
CIt counteracts problematic activation scaling that can accumulate across layers
Explanation
By controlling activation scale at each layer, batch normalization reduces the repeated shrinking or expansion that can make optimization difficult.
- A
- 44
Where is batch normalization commonly inserted?
- A
Only before the input data enters the network
- B
Instead of every weight matrix in the network
- C
Only after the final class prediction is produced
- D
After fully connected or convolutional layers
Correct answer
DAfter fully connected or convolutional layers
Explanation
Batch normalization is commonly applied to the outputs of fully connected or convolutional layers.
- A
- 45
How are batch-normalization statistics computed for a fully connected layer?
- A
One statistic is computed across all features and all examples together
- B
Statistics are computed independently for each parameter rather than each activation
- C
Mean and variance are computed independently for each feature across the mini-batch
- D
Statistics are computed only from the labels in the mini-batch
Correct answer
CMean and variance are computed independently for each feature across the mini-batch
Explanation
For fully connected layers, each feature or neuron is normalized using statistics computed across the examples in the current mini-batch.
- A
- 46
How does batch normalization differ for convolutional layers?
- A
Each spatial location receives completely independent statistics from every other location
- B
Each activation map uses shared statistics across examples and spatial locations
- C
Only the batch dimension is normalized, while spatial locations are ignored
- D
All channels are collapsed into one scalar before normalization
Correct answer
BEach activation map uses shared statistics across examples and spatial locations
Explanation
For convolutional layers, normalization is performed jointly across training examples and spatial locations for each activation map, preserving the convolutional structure.
- A
- 47
Why does convolutional batch normalization use one mean and standard deviation per activation map?
- A
It prevents filters from being applied at more than one location
- B
It normalizes nearby spatial locations consistently while respecting convolutional sharing
- C
It eliminates the depth dimension from the activation volume
- D
It ensures that every activation map has a different spatial size
Correct answer
BIt normalizes nearby spatial locations consistently while respecting convolutional sharing
Explanation
Using shared statistics across the spatial locations of an activation map preserves the consistency expected from convolutional operations.
- A
- 48
Why are learnable scale and shift parameters added after batch normalization?
- A
They let the network adjust the normalized distribution and potentially recover an identity mapping
- B
They replace the need to compute mini-batch means and variances
- C
They prevent the network from learning any saturation in later nonlinearities
- D
They force every normalized activation to remain exactly unit Gaussian
Correct answer
AThey let the network adjust the normalized distribution and potentially recover an identity mapping
Explanation
After normalization, learnable parameters such as γ and β scale and shift the activations, giving the network flexibility to choose a distribution different from strict unit Gaussian normalization.
- A
- 49
Why can strict unit-Gaussian normalization be undesirable before a tanh activation?
- A
It causes tanh to lose its ability to produce negative outputs
- B
It makes tanh computationally more expensive than an exponential unit
- C
It guarantees that tanh outputs will all be exactly zero
- D
It may constrain inputs mostly to tanh's linear regime and prevent useful saturation
Correct answer
DIt may constrain inputs mostly to tanh's linear regime and prevent useful saturation
Explanation
Strict normalization may keep tanh inputs in its central linear region. Learnable scaling and shifting allow the network to choose how much saturation is useful.
- A
- 50
What regularization-like effect can batch normalization produce?
- A
The method adds a fixed penalty that is identical to weight decay
- B
Mini-batch-dependent statistics introduce small variations in each example's representation
- C
The network permanently removes all variation from its hidden representations
- D
The method randomly deletes complete layers during every forward pass
Correct answer
BMini-batch-dependent statistics introduce small variations in each example's representation
Explanation
Because each example is normalized using statistics influenced by other examples in its mini-batch, its representation is slightly variable rather than fully deterministic.
- A
- 51
How are batch-normalization statistics typically handled at test time?
- A
Training-time estimates such as running averages are used instead of recomputing batch statistics
- B
All test activations are normalized using statistics from the labels
- C
Each test example is normalized using its own mean and variance
- D
The statistics are recomputed from the entire test set after every prediction
Correct answer
ATraining-time estimates such as running averages are used instead of recomputing batch statistics
Explanation
At test time, batch normalization uses statistics estimated during training, often through running averages, rather than relying on the current test batch.
- A
- 52
What initial loss should a ten-class Softmax classifier with small, diffuse output probabilities have approximately?
- A
−log(10)≈−2.3
- B
log(101)≈−2.3 but interpreted as a positive loss
- C
−log(101)≈2.3
- D
101=0.1
Correct answer
C−log(101)≈2.3
Explanation
With ten equally likely classes, the negative log likelihood is −log(1/10)=log(10)≈2.3, providing a useful initialization sanity check.
- A
- 53
What should happen to the loss when regularization is enabled after first checking the unregularized model?
- A
The total loss should become exactly zero because weights are constrained
- B
The total loss should increase because an additional regularization term is added
- C
The total loss should remain unchanged for every parameter setting
- D
The data loss should disappear because regularization replaces it
Correct answer
BThe total loss should increase because an additional regularization term is added
Explanation
With regularization enabled, the total objective includes the data loss plus a regularization penalty, so it should increase relative to the unregularized objective.
- A
- 54
Why is it useful to train first on a very small dataset with regularization disabled?
- A
The network learns general features more reliably from fewer examples
- B
The network should be able to overfit the small set, revealing implementation or optimization problems
- C
A small dataset guarantees that validation accuracy equals training accuracy
- D
Regularization is unnecessary for all full-sized datasets after this test
Correct answer
BThe network should be able to overfit the small set, revealing implementation or optimization problems
Explanation
A correctly implemented network should usually drive training loss near zero on a tiny dataset when regularization is disabled. Failure indicates a likely bug or optimization issue.
- A
- 55
What does a loss that barely changes during training usually suggest?
- A
The learning rate may be too small to produce meaningful parameter updates
- B
The learning rate is definitely too large and has caused numerical overflow
- C
The model is necessarily overfitting the validation data
- D
The initialization has guaranteed perfect classification
Correct answer
AThe learning rate may be too small to produce meaningful parameter updates
Explanation
If the loss changes very slowly, the gradient steps may be too small, which commonly indicates an excessively small learning rate.
- A
- 56
How can accuracy improve noticeably while Softmax loss changes only slightly?
- A
A small probability shift can change the most likely class while probabilities remain diffuse
- B
Accuracy ignores predictions and is determined only by the regularization penalty
- C
Accuracy always changes before any network parameter is updated
- D
Softmax loss changes only when every class probability becomes exactly one
Correct answer
AA small probability shift can change the most likely class while probabilities remain diffuse
Explanation
Accuracy depends on the maximum-probability class. A modest shift toward the correct class can change the prediction even while the full probability distribution remains diffuse and the loss changes little.
- A
- 57
What does a loss containing NaN values commonly indicate during training?
- A
The data has been successfully normalized to zero mean
- B
The model is learning perfectly and has reached zero error
- C
The validation set is smaller than the training set
- D
The cost has numerically exploded, often because the learning rate is too high
Correct answer
DThe cost has numerically exploded, often because the learning rate is too high
Explanation
NaNs in the loss commonly result from numerical instability or an exploding cost, often caused by overly large learning-rate updates.
- A
- 58
What approximate learning-rate range was suggested as a starting region for cross-validation in the example?
- A
Between 0.5 and 1.0 only
- B
Between 10−3 and 10−5
- C
Between 103 and 105
- D
Between 10−10 and 10−12
Correct answer
BBetween 10−3 and 10−5
Explanation
The example described a rough search range from 10−3 to 10−5, with the exact useful range determined empirically.
- A
- 59
What is cross-validation used for in hyperparameter optimization?
- A
Use the validation labels to directly update network weights
- B
Train with a hyperparameter on training data and evaluate its performance on validation data
- C
Replace backpropagation with random parameter selection
- D
Train and evaluate every model only on the test set
Correct answer
BTrain with a hyperparameter on training data and evaluate its performance on validation data
Explanation
Cross-validation compares hyperparameter choices by training on the training set and evaluating on a separate validation set.
- A
- 60
Why is a staged strategy useful for hyperparameter search?
- A
A coarse short search identifies promising regions before a finer, longer search
- B
It restricts all hyperparameters to the same numerical value
- C
It avoids using validation data until after the final model is trained
- D
It guarantees that the first sampled hyperparameter is optimal
Correct answer
AA coarse short search identifies promising regions before a finer, longer search
Explanation
A coarse search with few epochs can quickly reject poor values. Promising ranges can then be searched more finely and for longer.
- A
- 61
Why should learning rates generally be sampled in log space rather than uniformly in their raw values?
- A
Uniform sampling cannot produce any positive learning rates
- B
Learning rates have multiplicative effects, so orders of magnitude are more informative
- C
Learning rates affect only the loss offset, not update magnitude
- D
Log-space sampling guarantees that all models converge
Correct answer
BLearning rates have multiplicative effects, so orders of magnitude are more informative
Explanation
Because the learning rate multiplies the gradient update, values differing by factors or orders of magnitude are more meaningful than equally spaced raw values.
- A
- 62
What does it suggest if the best hyperparameter values lie at the edge of the search range?
- A
The edge values are automatically globally optimal
- B
The validation set must contain no useful information
- C
The search range may not extend far enough in the direction of potentially better values
- D
The hyperparameter has no effect on model performance
Correct answer
CThe search range may not extend far enough in the direction of potentially better values
Explanation
Good values concentrated at a boundary suggest that the search should be extended beyond that boundary to determine whether still better values exist.
- A
- 63
Why can random hyperparameter search outperform a regular grid search?
- A
Random search evaluates no validation data and therefore never overfits
- B
Random search explores more distinct values of important hyperparameters when effective dimensionality is low
- C
Random search guarantees that every combination is tested
- D
Grid search cannot vary more than one hyperparameter at a time
Correct answer
BRandom search explores more distinct values of important hyperparameters when effective dimensionality is low
Explanation
If performance depends more strongly on some hyperparameters than others, random sampling covers more distinct values of the important dimensions than a sparse grid.
- A
- 64
Which is an example of a hyperparameter that can be optimized?
- A
The gradient of a parameter after it has been computed
- B
The label assigned to an example by the dataset
- C
Learning rate, regularization strength, update rule, or network architecture
- D
The activation value produced for one fixed input during a forward pass
Correct answer
CLearning rate, regularization strength, update rule, or network architecture
Explanation
Learning rate, decay schedule, update type, regularization, hidden-unit count, and network depth are examples of hyperparameters.
- A
- 65
What does a loss curve that rises explosively usually indicate?
- A
The model has too little capacity
- B
The learning rate is too low
- C
The validation set is perfectly representative
- D
The learning rate is too high
Correct answer
DThe learning rate is too high
Explanation
Exploding loss commonly indicates that parameter updates are too large, which is a sign that the learning rate should be reduced.
- A
- 66
What does a loss curve that is nearly flat and changes very slowly usually indicate?
- A
The model has already reached a global optimum
- B
The regularization strength is necessarily zero
- C
The learning rate is too high and overshoots repeatedly
- D
The learning rate is too low
Correct answer
DThe learning rate is too low
Explanation
A nearly flat loss curve suggests that updates are too small to make substantial progress, often because the learning rate is too low.
- A
- 67
What can a steep initial loss decrease followed by a plateau suggest?
- A
The input data was necessarily not zero-centered
- B
The learning rate is certainly too low to affect the parameters
- C
The learning rate may be too high for the model to settle effectively
- D
The model has no capacity to fit even the training data
Correct answer
CThe learning rate may be too high for the model to settle effectively
Explanation
Large early jumps followed by a plateau can indicate that the learning rate is too high, preventing the optimizer from settling into a good region.
- A
- 68
What might a loss curve that remains flat and then suddenly begins decreasing indicate?
- A
The validation set was accidentally used for parameter updates
- B
The network has definitely finished overfitting
- C
The learning rate was exactly optimal from the beginning
- D
Poor initialization may have initially blocked effective gradient flow
Correct answer
DPoor initialization may have initially blocked effective gradient flow
Explanation
Bad initialization can produce weak gradient flow initially. A later change may move the network into a region where learning begins.
- A
- 69
What does a large gap between training and validation accuracy usually suggest?
- A
The model may be overfitting, so stronger regularization could help
- B
The model is underfitting, so its capacity must always be reduced
- C
The training data must have been normalized incorrectly
- D
The learning rate is necessarily too small
Correct answer
AThe model may be overfitting, so stronger regularization could help
Explanation
A large training–validation accuracy gap is a common sign of overfitting, which may be addressed by increasing regularization.
- A
- 70
What does little or no gap between training and validation accuracy potentially suggest?
- A
The model is necessarily severely overfitting
- B
The validation set should be included in the training loss
- C
The learning rate must be increased by exactly ten times
- D
The model may have insufficient capacity and could benefit from being enlarged
Correct answer
DThe model may have insufficient capacity and could benefit from being enlarged
Explanation
If the model performs similarly on training and validation data but remains limited, it may not have enough capacity; increasing model size may help.
- A
- 71
What ratio of update magnitude to parameter magnitude was suggested as a rough useful target?
- A
Exactly 1, so every update replaces the entire parameter
- B
Exactly 0, so parameters remain fixed during training
- C
Approximately 0.001, allowing for substantial variation
- D
Approximately 100, so updates dominate current parameters
Correct answer
CApproximately 0.001, allowing for substantial variation
Explanation
Monitoring the ratio of the norm of parameter updates to the norm of parameters can help diagnose optimization problems; a rough target is around 0.001, with considerable variation.
- A

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