How Neural Networks Learn
- 87Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
In the Plinko analogy, what corresponds to learning?
In the Plinko analogy, what corresponds to learning?
87 questions
- 1
In the Plinko analogy, what corresponds to learning?
- A
Choose settings once and never revise them
- B
Change the intended output after each trial
- C
Try settings, check results, and adjust them
- D
Use random settings without checking the results
Correct answer
CTry settings, check results, and adjust them
Explanation
The Plinko analogy represents training: try settings, compare the result with the intended output, and adjust the settings to reduce errors.
- A
- 2
What does a Plinko board adjusted to sort shapes represent?
- A
A board that changes the intended bin after each trial
- B
A board adjusted to send each shape to its intended bin
- C
A board whose pegs never affect the balls
- D
A board that sends every shape to the same bin
Correct answer
BA board adjusted to send each shape to its intended bin
Explanation
A trained neural network maps inputs to intended outputs by adjusting its internal settings, just as tuned pegs guide shapes to their target bins.
- A
- 3
Which description best distinguishes a real neural network from the Plinko analogy?
- A
A collection of random calculations unrelated to the input
- B
A physical board that sorts objects by their shape
- C
A system that produces outputs without using adjustable settings
- D
A system that uses numbers and connected calculations to map inputs to outputs
Correct answer
DA system that uses numbers and connected calculations to map inputs to outputs
Explanation
The neural network analogy is about the input-output relationship and the process of adjusting settings; real networks use numbers and connected calculations rather than pegs and bouncing objects.
- A
- 4
In the sound-activated-light example, what are the input and output?
- A
The light state is the input, and sound is the output
- B
The bias is the input, and the light state is the output
- C
The weight is the input, and the sound level is the output
- D
The sound level is the input, and the light state is the output
Correct answer
DThe sound level is the input, and the light state is the output
Explanation
In the sound-light example, the sound level is the input and the neuron's output controls whether the light is on or off.
- A
- 5
What role does a neuron's weight play in the sound-light example?
- A
It controls how strongly the sound level affects the score
- B
It determines how many inputs the neuron can receive
- C
It sets the light's output threshold for every network
- D
It determines whether the sound level is measured between zero and one
Correct answer
AIt controls how strongly the sound level affects the score
Explanation
The weight determines how strongly an input contributes to the neuron's score; multiplying the sound level by the weight scales its influence.
- A
- 6
How does the example light neuron turn its score into an on-or-off output?
- A
Every network uses rounding to convert its output to zero or one
- B
Every score is rounded to the nearest tenth
- C
Scores below 0.3 produce zero; scores of 0.3 or more produce one
- D
Scores below 0.5 produce zero; scores of 0.5 or more produce one
Correct answer
DScores below 0.5 produce zero; scores of 0.5 or more produce one
Explanation
For this example, a score below 0.5 is rounded to zero and a score of 0.5 or more is rounded to one. This finishing rule is specific to the example, not universal to all networks.
- A
- 7
Why does weight 1 fail to produce the desired light output for sound level 0.4?
- A
The light should turn on at 0.3 or higher, and a score of 0.4 rounds up
- B
The light should turn on only at 1, so a score of 0.4 is incorrect
- C
The light should turn on at 0.3 or higher, but a score of 0.4 rounds down
- D
The light should turn on at 0.5 or higher, so a score of 0.4 is correct
Correct answer
CThe light should turn on at 0.3 or higher, but a score of 0.4 rounds down
Explanation
The target rule is on for sound levels of 0.3 or higher and off below 0.3. At a sound level of 0.4 with weight 1, the score is 0.4, which rounds down under the example's 0.5 output threshold.
- A
- 8
Which adjustment rule matches the light-neuron training examples?
- A
Change the target label whenever the neuron is wrong
- B
Decrease the weight after a score that is too low
- C
Increase the weight when the score is too high, and decrease it when too low
- D
Increase the weight after every example, whether correct or not
Correct answer
CIncrease the weight when the score is too high, and decrease it when too low
Explanation
A mistake that shows the score is too low calls for increasing the weight; a mistake that shows the neuron is too sensitive calls for decreasing it. Correct answers receive no nudge.
- A
- 9
What does the light-neuron example illustrate about its final weight and test sounds?
- A
The weight settles near 1.67, and fresh examples test performance beyond practice data
- B
The weight settles at 1, and fresh examples are used to adjust it during practice
- C
The weight settles near 0.3, and fresh examples determine the original target rule
- D
The weight settles near 0.5, and fresh examples are used only to round the score
Correct answer
AThe weight settles near 1.67, and fresh examples test performance beyond practice data
Explanation
For the target rule, the trained weight is approximately 1.67. Testing on fresh sound levels checks whether the learned behavior works beyond the practice examples.
- A
- 10
Why use trial-and-adjust training for a simple neuron when its weight could be found directly?
- A
Simple examples may have direct solutions, while large networks need scalable adjustment methods
- B
Large networks have a single formula that solves all weights simultaneously
- C
Training is only useful when a network has exactly one weight
- D
A weight-by-weight adjustment method cannot be used on large networks
Correct answer
ASimple examples may have direct solutions, while large networks need scalable adjustment methods
Explanation
A single weight can be solved directly in this simple case, but large networks can have millions or billions of weights. The try-check-adjust approach is useful because it can scale to many adjustable values.
- A
- 11
How does a neuron combine several input numbers into one response?
- A
It assigns one shared weight to every layer in the network
- B
It weights and adds the inputs to produce one activation
- C
It selects one input and ignores the rest
- D
It averages the inputs and produces one output per input
Correct answer
BIt weights and adds the inputs to produce one activation
Explanation
With multiple inputs, a neuron applies a separate weight to each input and adds the weighted values to form one score. Its response is called its activation.
- A
- 12
Why can a neuron with a bias respond nonzero when all its inputs are zero?
- A
The bias replaces all the neuron's weights
- B
The bias makes every zero input behave like a positive input
- C
The bias gives the neuron a starting value even when all inputs are zero
- D
The bias ensures that every activation is zero
Correct answer
CThe bias gives the neuron a starting value even when all inputs are zero
Explanation
Without a bias, zero inputs produce a zero weighted sum because each input contributes zero. A bias provides a starting value that can make the activation nonzero even when all inputs are zero.
- A
- 13
Which statement correctly describes how biases are used and trained?
- A
Biases affect only the number of inputs
- B
Training adjusts biases but keeps weights fixed
- C
Training adjusts weights but keeps biases fixed
- D
Training adjusts both weights and biases, and a bias can shift the decision point
Correct answer
DTraining adjusts both weights and biases, and a bias can shift the decision point
Explanation
Training adjusts both weights and biases. A bias can also shift where a neuron changes its decision, rather than requiring the weight alone to scale the input.
- A
- 14
How can a bias shift the light neuron's decision point to the target threshold of 0.3?
- A
A weight of 1.67 and a bias of 0.3 set the threshold at 0.3
- B
A weight of 1 and a bias of −0.3 set the score to sound level minus 0.3
- C
A weight of 0.3 and a bias of 1 set the score to sound level plus 1
- D
A weight of 1 and a bias of 0.3 set the score to sound level plus 0.3
Correct answer
BA weight of 1 and a bias of −0.3 set the score to sound level minus 0.3
Explanation
A weight of 1 and a bias of −0.3 give a score equal to the sound level minus 0.3. The output turns on when this score is at least zero, matching the target threshold without scaling the sound.
- A
- 15
What characterizes neurons arranged side by side in a layer?
- A
They read the same inputs with their own weights and make separate calls
- B
They read the outputs of a later layer
- C
They share one set of weights and produce one common call
- D
They each receive only one input from the previous layer
Correct answer
AThey read the same inputs with their own weights and make separate calls
Explanation
Neurons in the same layer read the same inputs side by side, but each has its own weights and makes its own call. A later layer instead reads the earlier layer's outputs.
- A
- 16
What is a hidden layer in a neural network?
- A
A layer whose number of neurons must equal the number of inputs
- B
The layer that contains the input pixels and no calculations
- C
A layer between the inputs and outputs whose structure is chosen by the designer
- D
The final layer that assigns the network's target labels
Correct answer
CA layer between the inputs and outputs whose structure is chosen by the designer
Explanation
A hidden layer is a layer between the network's input and output layers. Its size and the number of hidden layers are design choices.
- A
- 17
How do width and depth differ in a neural network?
- A
Wider means more outputs; deeper means more training examples
- B
Wider means more stages; deeper means more inputs per neuron
- C
Wider means more neurons in a layer; deeper means more successive layers
- D
Wider means more weights per input; deeper means fewer processing stages
Correct answer
CWider means more neurons in a layer; deeper means more successive layers
Explanation
A wider network has more neurons calculating from the same inputs; a deeper network has more successive processing stages, with each layer using the preceding layer's results.
- A
- 18
What does the term deep learning refer to in this content?
- A
It refers to networks with several processing layers
- B
It refers to networks that use only one hidden layer
- C
It refers to networks with unusually many input features
- D
It refers to networks with more outputs than inputs
Correct answer
AIt refers to networks with several processing layers
Explanation
Deep learning refers to networks with several processing layers. The number of inputs and outputs can remain the same when hidden layers are changed.
- A
- 19
How should one decide whether a wider or deeper architecture works better?
- A
The arrangement with more parameters is guaranteed to perform best
- B
A wider network is always more accurate
- C
A deeper network is always more accurate
- D
Performance must be measured rather than inferred from width or depth alone
Correct answer
DPerformance must be measured rather than inferred from width or depth alone
Explanation
Whether a wider or deeper arrangement works better must be measured. Neither choice automatically guarantees better answers.
- A
- 20
Why is stacking linear layers alone insufficient for representing complex patterns?
- A
Composing linear steps still produces a linear relationship
- B
A linear layer can represent any pattern if enough inputs are added
- C
Stacking linear layers turns their outputs into probabilities
- D
Each additional linear layer automatically creates a nonlinear curve
Correct answer
AComposing linear steps still produces a linear relationship
Explanation
A weighted sum plus a bias is linear. Stacking linear equations still produces a linear relationship, so it does not provide the ability to represent more complex shapes.
- A
- 21
What does the ReLU activation rule do?
- A
It outputs one for positive totals and zero for negative totals
- B
It outputs the maximum of zero and the total
- C
It multiplies every total by its absolute value
- D
It rounds all totals to the nearest integer
Correct answer
BIt outputs the maximum of zero and the total
Explanation
ReLU outputs the larger of zero and the neuron's total: values at or below zero become zero, while positive values pass through unchanged.
- A
- 22
Which description matches the shape and behavior of ReLU?
- A
It converts every total into a probability between zero and one
- B
It adds the same constant to positive and negative totals
- C
It sets nonpositive totals to zero and passes positive totals through
- D
It passes negative totals unchanged and clips positive totals to zero
Correct answer
CIt sets nonpositive totals to zero and passes positive totals through
Explanation
The ReLU rule is flat at zero for nonpositive totals and rises linearly for positive totals, allowing the neuron to introduce a nonlinear bend.
- A
- 23
How do nonlinear neurons help a network represent complex patterns?
- A
They can produce only straight lines, regardless of their number
- B
They can combine to form more complex shapes than a line
- C
They remove the need for weights and biases
- D
They can represent only one fixed threshold
Correct answer
BThey can combine to form more complex shapes than a line
Explanation
Adding outputs of bent, nonlinear units can form shapes such as a V, peaks, or waves. More layers can build on those shapes to represent increasingly complex patterns.
- A
- 24
What can happen when two different inputs pass through a network's layers?
- A
Inputs are assigned to neurons without learned calculations
- B
A network uses one neuron to memorize every possible input
- C
Every input activates exactly the same neurons in every layer
- D
Different inputs can activate different mixes of learned neurons
Correct answer
DDifferent inputs can activate different mixes of learned neurons
Explanation
Different inputs can activate different mixes of neurons, and each neuron can have learned its own response. This allows the network to respond differently to different inputs.
- A
- 25
Why can a deep network learn visual patterns in stages?
- A
Every layer independently relearns all earlier features
- B
Later stages can reuse and combine features built by earlier stages
- C
Later layers replace earlier features with the raw input
- D
Each neuron must represent a complete object on its own
Correct answer
BLater stages can reuse and combine features built by earlier stages
Explanation
In a deep network, earlier features can be reused at later stages—for example, dots can form edges, edges can form circles, and circles can help represent eyes and faces.
- A
- 26
What is one advantage of building visual representations across multiple layers?
- A
A single layer automatically memorizes less than a deep network
- B
A single layer may need a huge catalog of separate rules, while deeper layers reuse features
- C
A single layer must have fewer outputs than a deep network
- D
A single layer cannot use weights to recognize images
Correct answer
BA single layer may need a huge catalog of separate rules, while deeper layers reuse features
Explanation
A single layer acting alone would need separate rules for the many possible combinations of features. A deep network can reuse learned pieces across different examples.
- A
- 27
How is ReLU characterized among nonlinear activation rules?
- A
ReLU replaces the need to calculate weighted sums
- B
Every network must use rounding as its nonlinear rule
- C
ReLU is the only activation rule that can represent patterns
- D
ReLU is the most common of many nonlinear rules
Correct answer
DReLU is the most common of many nonlinear rules
Explanation
ReLU is described as the most common among many nonlinear activation choices. The broader recipe remains to weigh, add, include bias, and apply a bend.
- A
- 28
Which sequence summarizes the basic neuron computation?
- A
Add, round, classify, and normalize
- B
Bias, bend, round, and divide
- C
Bend, sample, subtract, and weigh
- D
Weigh, add, bias, and bend
Correct answer
DWeigh, add, bias, and bend
Explanation
The basic neuron recipe is to weight the inputs, add the weighted values, include a bias, and apply a nonlinear activation.
- A
- 29
How many input numbers represent a 28-by-28 handwritten digit image?
- A
The image supplies 70,000 inputs, one for each training example
- B
The image supplies 32 inputs, one for each hidden neuron
- C
The image supplies 784 inputs, one brightness value per pixel
- D
The image supplies 10 inputs, one for each digit class
Correct answer
CThe image supplies 784 inputs, one brightness value per pixel
Explanation
The handwritten image contains 28×28=784 pixels. Each pixel contributes a brightness number between zero and one, so the input layer has 784 values.
- A
- 30
Why does the digit-recognition network have 784 input values?
- A
It is set by the image's 784 pixels, each represented by a brightness value
- B
It is chosen freely because pixel values are not network inputs
- C
It is set by the hidden layer, so it has 32 inputs
- D
It is set by the number of digit classes, so it has 10 inputs
Correct answer
AIt is set by the image's 784 pixels, each represented by a brightness value
Explanation
The input layer is fixed by the image representation: one brightness value for each of its 784 pixels. The number of hidden neurons is a design choice.
- A
- 31
What describes the first hidden layer in the digit-recognition example?
- A
It uses 784 hidden neurons, each with 10 pixel weights
- B
It uses 10 hidden neurons, each with 32 pixel weights
- C
It uses 32 hidden neurons, each with one shared weight
- D
It uses 32 hidden neurons, each with 784 pixel weights
Correct answer
DIt uses 32 hidden neurons, each with 784 pixel weights
Explanation
The example network uses 32 hidden neurons as a design choice. Each reads all 784 pixel values and has its own set of 784 weights.
- A
- 32
What does each of the 32 hidden neurons pass to the next layer?
- A
Each produces a number measuring how strongly it responded
- B
Each outputs a probability for every possible pixel
- C
Each outputs only a digit label from zero to nine
- D
Each returns only a binary on-or-off signal
Correct answer
AEach produces a number measuring how strongly it responded
Explanation
The hidden neurons do not simply switch on or off. Each returns a numerical activation indicating how strongly it responded, giving the next layer 32 values to process.
- A
- 33
Why does the digit-recognition network have ten output neurons?
- A
It has one output shared by all possible digits
- B
It has 10 outputs, one for each digit
- C
It has 784 outputs, one per input pixel
- D
It has 32 outputs, one per hidden neuron
Correct answer
BIt has 10 outputs, one for each digit
Explanation
The task is to choose among ten digits, so the output layer has ten neurons, one score for each digit.
- A
- 34
How does an output neuron calculate its digit score in the example network?
- A
Each output neuron reads all 784 pixels directly and shares its weights
- B
Each output neuron reads only one hidden response
- C
Each output neuron reads all 32 hidden responses through its own weights
- D
Each output neuron reads the other output neurons' probabilities
Correct answer
CEach output neuron reads all 32 hidden responses through its own weights
Explanation
Each output neuron reads the 32 hidden responses through its own weights, producing a score for its associated digit.
- A
- 35
What does softmax do to the ten digit scores?
- A
It sorts the scores but leaves them as unnormalized totals
- B
It turns the scores into probabilities that sum to one
- C
It turns the scores into values that need not sum to anything
- D
It rounds each score to zero or one independently
Correct answer
BIt turns the scores into probabilities that sum to one
Explanation
Softmax converts the ten output scores into probabilities that sum to one. The digit with the highest probability is selected.
- A
- 36
What is the training goal for a digit-recognition example labeled seven?
- A
It changes the image's pixel brightnesses until one score wins
- B
It raises the correct digit's probability and lowers the others'
- C
It raises all ten probabilities equally
- D
It fixes the output probabilities and adjusts only the labels
Correct answer
BIt raises the correct digit's probability and lowers the others'
Explanation
Training adjusts weights and biases to increase the probability of the correct digit and decrease the probabilities of the other digits.
- A
- 37
Which details match the described training run and its example prediction?
- A
It trains on 10,000 images for one pass and reaches 95.58% probability
- B
It trains on 60,000 images for five passes, with the seven reaching 98.6% probability
- C
It trains on 70,000 images for five passes and reaches 96.35% probability
- D
It trains on 60,000 images for ten passes and reaches 88.83% probability
Correct answer
BIt trains on 60,000 images for five passes, with the seven reaching 98.6% probability
Explanation
The example trains over 60,000 images for five passes. After training, the seven receives a probability of 98.6% in the described example.
- A
- 38
What were the test accuracies of the two digit networks, and how did their correct predictions differ?
- A
One layer scored 96.35%; two layers scored 95.58%, a difference of 77 errors
- B
One layer scored 88.83%; two layers scored 95.58%, with 77 more correct results
- C
One layer scored 95.58%; two layers scored 96.35%, with 77 more correct results
- D
One layer scored 95.58%; two layers scored 98.6%, with 77 more correct results
Correct answer
COne layer scored 95.58%; two layers scored 96.35%, with 77 more correct results
Explanation
The one-hidden-layer network achieved 95.58% accuracy on 10,000 unseen test images; the network with hidden layers of 64 and 32 neurons achieved 96.35%, or 77 more correct predictions.
- A
- 39
What limitation applies to the comparison between the two digit networks?
- A
Both depth and width changed, so the gain cannot be credited to depth alone
- B
The comparison proves that more parameters always increase accuracy
- C
The comparison proves that depth alone caused the improvement
- D
The networks had the same number of parameters, so size was controlled
Correct answer
ABoth depth and width changed, so the gain cannot be credited to depth alone
Explanation
The larger network changed both depth and width and had about twice as many parameters. The experiment therefore cannot show that depth alone caused its better result, nor that bigger networks always win.
- A
- 40
What behavior is desired from a loss function for a labeled example?
- A
It measures prediction error, with zero for a perfect prediction and greater loss for a lower correct-class probability
- B
It measures the number of neurons, with zero for a small network
- C
It measures output certainty, with greater loss for a higher correct-class probability
- D
It measures training time, with zero for a fast network
Correct answer
AIt measures prediction error, with zero for a perfect prediction and greater loss for a lower correct-class probability
Explanation
The loss is a single number measuring how wrong the network's prediction is for an example. A perfectly correct prediction should have zero loss, and a lower correct-class probability should mean a greater loss.
- A
- 41
Which loss function is used in the small digit-network demonstration?
- A
The squared difference between every pair of output probabilities
- B
The average of the ten output probabilities
- C
The logarithm of the probability assigned to an incorrect answer
- D
The negative logarithm of the probability assigned to the correct answer
Correct answer
DThe negative logarithm of the probability assigned to the correct answer
Explanation
For this demonstration, cross-entropy is the negative logarithm of the probability assigned to the correct answer. It rises sharply as that probability approaches zero.
- A
- 42
What loss is associated with the correct digit receiving about 9% probability in the demonstration?
- A
A 9% probability gives a loss of 0.91
- B
A 9% probability gives a loss of 9
- C
A 9% probability gives a loss of about 2.37
- D
A 9% probability gives a loss of 0.09
Correct answer
CA 9% probability gives a loss of about 2.37
Explanation
The network assigns the correct digit seven about 9% probability. The negative logarithm of that probability gives the stated cross-entropy loss of about 2.37.
- A
- 43
What information does a weight's slope provide?
- A
It reveals which direction helps and how strongly the loss responds
- B
It reveals whether the weight is positive and whether the bias is zero
- C
It reveals which output is largest and how many inputs exist
- D
It reveals the network's target label and number of layers
Correct answer
AIt reveals which direction helps and how strongly the loss responds
Explanation
Changing a weight slightly and observing the loss change reveals both whether increasing or decreasing the weight helps and how strongly the loss responds. Together these describe the slope.
- A
- 44
What can be concluded from the experiment in which raising a weight lowers the loss?
- A
Increasing the weight helps at the current settings
- B
The weight has no effect on the loss
- C
The loss must increase whenever a weight increases
- D
Decreasing the weight must help at every possible setting
Correct answer
AIncreasing the weight helps at the current settings
Explanation
In the example, raising the selected weight by 0.05 makes the loss fall by 0.0065. This indicates that increasing that weight helps at the current settings.
- A
- 45
Why is nudging one parameter at a time impractical for the larger digit network?
- A
The small network has 38 adjustable values, while the digit network has 25,450
- B
The small network has 38 neurons, while the digit network has 25,450 layers
- C
Both networks have 38 parameters
- D
The small network has 25,450 parameters, while the digit network has 38
Correct answer
AThe small network has 38 adjustable values, while the digit network has 25,450
Explanation
The tiny network has 38 adjustable weights and biases, making one-at-a-time nudging conceivable. A larger digit network has 25,450 such values, so repeated full reruns for each parameter would be prohibitively costly.
- A
- 46
What question does a derivative answer?
- A
It identifies the target output without evaluating the network
- B
It measures how much one quantity changes when another changes
- C
It measures how many layers lie between two quantities
- D
It measures the total value of all network outputs
Correct answer
BIt measures how much one quantity changes when another changes
Explanation
A derivative measures how much one quantity changes per unit change in another quantity. It is a local slope describing sensitivity.
- A
- 47
For a neuron output wx+b, what are its derivatives with respect to the weight, bias, and input?
- A
The weight derivative is the bias, the bias derivative is the input, and the input derivative is 1
- B
The weight derivative is the input, the bias derivative is 1, and the input derivative is the weight
- C
The weight derivative is 1, the bias derivative is the weight, and the input derivative is the bias
- D
The weight derivative is the output, the bias derivative is 0, and the input derivative is 1
Correct answer
BThe weight derivative is the input, the bias derivative is 1, and the input derivative is the weight
Explanation
For output wx+b, the derivative with respect to the weight is the input, with respect to the bias is 1, and with respect to the input is the weight.
- A
- 48
If a neuron has input 5, weight 2, and bias 1, what happens to its output when the weight increases to 3?
- A
The output rises from 11 to 13, a change equal to the weight 2
- B
The output rises from 11 to 15, a change equal to the new weight
- C
The output rises from 11 to 16, a change equal to the input 5
- D
The output rises from 11 to 12, a change equal to the bias
Correct answer
CThe output rises from 11 to 16, a change equal to the input 5
Explanation
For the first neuron, 2×5+1=11. Raising the weight from 2 to 3 changes the output to 3×5+1=16, an increase of 5, equal to the input.
- A
- 49
For the neuron equation wx+b, what is the effect of increasing the bias by one?
- A
The output changes by exactly one
- B
The output changes by the input value
- C
The output changes by the current weight
- D
The output does not change
Correct answer
AThe output changes by exactly one
Explanation
Changing the bias from 1 to 2 adds exactly one to the output, so the derivative with respect to the bias is always 1 for this equation.
- A
- 50
How does the chain rule support backpropagation through multiple neurons?
- A
It calculates only the first layer's weights
- B
It changes all weights before measuring the loss
- C
It replaces the network's output with its target
- D
It multiplies sensitivities through successive relationships to pass loss information backward
Correct answer
DIt multiplies sensitivities through successive relationships to pass loss information backward
Explanation
In a chain of two neurons, the second neuron's output depends on the first neuron's output. The chain rule lets the loss sensitivity be passed backward through each local relationship.
- A
- 51
What is the basic backward procedure in backpropagation?
- A
It assigns target outputs to every hidden neuron
- B
It computes each parameter's effect by independently rerunning the whole network
- C
It starts at the loss and passes derivative information backward through the network
- D
It starts by changing the earliest weight and checks whether loss changes
Correct answer
CIt starts at the loss and passes derivative information backward through the network
Explanation
Backpropagation starts with the loss's direct dependence on the final output, then uses local derivatives to calculate sensitivities for weights, biases, and earlier outputs.
- A
- 52
What happens to slope information at each equation during backpropagation?
- A
Multiply the arriving slope by a local derivative, keep parameter slopes, and pass input slopes backward
- B
Add all weights together, then pass their sum forward
- C
Copy the loss value unchanged to every earlier parameter
- D
Change the equation's weights before calculating any derivatives
Correct answer
AMultiply the arriving slope by a local derivative, keep parameter slopes, and pass input slopes backward
Explanation
At each equation, backpropagation multiplies the incoming slope by a local derivative, keeps the resulting weight and bias slopes, and passes the input slope backward.
- A
- 53
How does backpropagation handle an earlier neuron that feeds multiple later neurons?
- A
It keeps only the contribution from the neuron with the largest weight
- B
It adds the slope contributions arriving from all downstream neurons
- C
It averages the downstream neurons' weights and discards the rest
- D
It sends its slope forward without combining contributions
Correct answer
BIt adds the slope contributions arriving from all downstream neurons
Explanation
When a neuron feeds multiple neurons in the next layer, it receives a contribution to its slope from each downstream path. Those contributions are added before the slope is propagated further backward.
- A
- 54
Which statement correctly describes the gradient and backpropagation?
- A
It is the set of updated weights, and backpropagation chooses their new values
- B
It is the list of parameter sensitivities, and backpropagation only measures them
- C
It is the set of target outputs, and backpropagation applies them directly
- D
It is the loss for one example, and backpropagation changes the input data
Correct answer
BIt is the list of parameter sensitivities, and backpropagation only measures them
Explanation
The collection of slopes for all weights and biases is the gradient. Backpropagation measures these sensitivities but does not itself change the parameters or assign hidden neurons target outputs.
- A
- 55
How do backpropagation and gradient descent differ?
- A
The gradient is the learning rate multiplied by the number of examples
- B
Backpropagation changes parameters, while gradient descent only measures them
- C
Backpropagation measures slopes; gradient descent uses them to update parameters
- D
Gradient descent assigns targets to hidden neurons based on the loss
Correct answer
CBackpropagation measures slopes; gradient descent uses them to update parameters
Explanation
Gradient descent uses the measured slopes to update weights and biases. A shared learning rate controls the size of each move in proportion to the slope.
- A
- 56
What does a parameter's slope measure during training?
- A
It measures the average value of all parameters
- B
It measures sensitivity to one parameter while the others stay fixed
- C
It measures how output probabilities change when labels are changed
- D
It measures the loss after every parameter changes by a large amount
Correct answer
BIt measures sensitivity to one parameter while the others stay fixed
Explanation
A slope measures how the loss changes when one parameter changes while all the others are held fixed. This is a local sensitivity measurement.
- A
- 57
What is the learning rate's role in gradient descent?
- A
It determines how many examples are in a batch
- B
It multiplies the slope to set the size of each update
- C
It sets the number of layers used in an update
- D
It sets the target probability for the correct class
Correct answer
BIt multiplies the slope to set the size of each update
Explanation
The learning rate scales the parameter updates. A rate of 0.2 makes each move one fifth of the corresponding slope's magnitude.
- A
- 58
Why can both excessively large and excessively small learning rates be problematic?
- A
Large steps reduce the number of parameters, but small steps increase it
- B
Step size affects only the output layer, not learning
- C
Large steps are always safe, but small steps always increase loss
- D
Large steps can overshoot; tiny steps can make learning very slow or get stuck
Correct answer
DLarge steps can overshoot; tiny steps can make learning very slow or get stuck
Explanation
Updates that are too large can make the network change enough that the measured slopes are no longer reliable. Updates that are too small slow learning and can fail to cross shallow dips or bumps.
- A
- 59
How is a suitable learning rate found in the described approach?
- A
It is calculated directly from the target label
- B
It must always equal one divided by the number of weights
- C
It is fixed by the number of output classes
- D
It is found through experimentation and adjustment
Correct answer
DIt is found through experimentation and adjustment
Explanation
The learning rate is not determined by a universal formula in the example. It is selected by trying a value, checking its effect, and adjusting it.
- A
- 60
What happens after the described single update at learning rate 0.2?
- A
The loss falls to zero, and the predicted digit becomes seven
- B
The loss rises from 2.08 to 2.37, but the predicted digit becomes seven
- C
The loss stays at 2.37, and the predicted digit remains three
- D
The loss falls from 2.37 to 2.08, but the predicted digit is still three
Correct answer
DThe loss falls from 2.37 to 2.08, but the predicted digit is still three
Explanation
With the learning rate set to 0.2, the loss falls from 2.37 to 2.08 after one update, although the network's top prediction is still three rather than seven.
- A
- 61
What is a batch in the described training process?
- A
A batch is a group of labels assigned to hidden neurons
- B
A batch is the complete training set used for one update
- C
A batch is a group of examples whose gradient suggestions are averaged for one update
- D
A batch is one example repeated until its gradient becomes zero
Correct answer
CA batch is a group of examples whose gradient suggestions are averaged for one update
Explanation
A batch is a group of examples whose gradients are calculated separately and averaged to make one shared update. This allows competing suggestions from examples to be combined.
- A
- 62
What is an epoch?
- A
A single update using one training example
- B
A complete pass through the training data
- C
A complete evaluation on the held-out test set
- D
A single run of backpropagation through one layer
Correct answer
BA complete pass through the training data
Explanation
An epoch is a complete pass through the training data, so every training example has had its say once by the end of that pass.
- A
- 63
What do the three learning-rate outcomes in the two-example demonstration show?
- A
Rate 0.05 makes loss explode, while rates 2 and 20 lower it
- B
All three rates lower loss by the same amount
- C
Rates of 0.05 and 20 both lower the loss substantially, while 2 raises it
- D
Rate 0.05 barely lowers loss, rate 2 lowers it more, and rate 20 makes it explode
Correct answer
DRate 0.05 barely lowers loss, rate 2 lowers it more, and rate 20 makes it explode
Explanation
In the two-example demonstration, a learning rate of 0.05 barely lowers loss, a rate of 2 lowers it substantially, and a rate of 20 makes it explode. This illustrates that overly large steps can overshoot.
- A
- 64
How do training, validation, and test sets differ in their roles?
- A
Training and validation both adjust parameters, while test is used after every batch
- B
Training adjusts parameters, validation checks along the way, and test is used at the end
- C
Training checks performance, validation adjusts parameters, and test adjusts the learning rate
- D
Validation is used only once at the end, while test is used during training
Correct answer
BTraining adjusts parameters, validation checks along the way, and test is used at the end
Explanation
Training data is used to adjust the network. Validation data is held out from training and used to evaluate it during training; test data is reserved for a final evaluation.
- A
- 65
What pattern indicates that a network may be overfitting?
- A
The network performs equally well on training and validation data
- B
The network's training loss remains high throughout training
- C
The network has too few weights to fit the training data
- D
The network improves on training data but worsens on unseen data
Correct answer
DThe network improves on training data but worsens on unseen data
Explanation
Overfitting occurs when training performance keeps improving while performance on unseen examples worsens, indicating that the network is memorizing training examples rather than learning patterns that generalize.
- A
- 66
What is early stopping?
- A
It saves checkpoints and selects the one favored by validation data
- B
It stops as soon as training loss reaches zero
- C
It selects the checkpoint with the most parameters
- D
It uses the final checkpoint regardless of validation performance
Correct answer
AIt saves checkpoints and selects the one favored by validation data
Explanation
In the small-data experiment, validation loss identified epoch ten as the best checkpoint. Early stopping selects that earlier network rather than using a later version that has continued training.
- A
- 67
What was the reported test accuracy for the network selected at epoch ten?
- A
It achieved 98.6% on the validation set
- B
It achieved 88.83% on the test set after selection at epoch ten
- C
It achieved 96.35% on the test set at the final epoch
- D
It achieved 95.58% after repeated test-set tuning
Correct answer
BIt achieved 88.83% on the test set after selection at epoch ten
Explanation
The network selected at epoch ten achieved 88.83% accuracy on the test set, which was touched once at the end of the described experiment.
- A
- 68
Why can increasing the number of training examples help generalization?
- A
Fewer examples guarantee better generalization
- B
More examples provide greater variety and can reduce memorization
- C
More examples prevent the network from learning weights
- D
More examples eliminate the need for validation and test sets
Correct answer
BMore examples provide greater variety and can reduce memorization
Explanation
The starved network trained on about 1,000 images, whereas the earlier example trained on 60,000 and reached 95.58% accuracy. More varied training examples can leave less room for memorization.
- A
- 69
Which set of methods can help reduce memorization?
- A
Fixing all weights and repeating the same images in the same order
- B
Using only a larger network and removing validation data
- C
Increasing the learning rate and training on the test set
- D
Penalizing extreme weights, randomly silencing neurons, or augmenting images
Correct answer
DPenalizing extreme weights, randomly silencing neurons, or augmenting images
Explanation
The described tools include choosing a suitable network size, penalizing extreme weights, randomly silencing neurons during practice, and augmenting images by stretching, shifting, or tilting them.
- A
- 70
What did the comparison between narrow and wide networks illustrate about network size?
- A
The narrow network memorized more and learned more
- B
The narrow network memorized less but also learned less
- C
The wide network could not learn because it had more neurons
- D
The narrow network memorized less and necessarily performed better
Correct answer
BThe narrow network memorized less but also learned less
Explanation
The narrow network memorized less but also learned less, showing that making a network smaller is not automatically a cure that improves performance in every way.
- A
- 71
What kind of data should provide the final evidence that a network generalizes?
- A
A network generalizes whenever its training loss decreases
- B
Validation and test data should be used to train the weights
- C
Training data is the only reliable measure of generalization
- D
Unseen data provides the verdict on whether learned patterns generalize
Correct answer
DUnseen data provides the verdict on whether learned patterns generalize
Explanation
Generalization must be judged using data the network has not seen. This is why data is held back rather than using training performance alone as the verdict.
- A
- 72
How are a layer's connection weights arranged in the described matrix representation?
- A
A grid with one row per input and one column per neuron
- B
A table containing only the biases and activation values
- C
A list with one entry per training example and one column per label
- D
A grid with one row per output and one column per pixel
Correct answer
AA grid with one row per input and one column per neuron
Explanation
Weights connecting inputs to neurons can be organized as a matrix, with one row per input and one column per neuron.
- A
- 73
How does matrix multiplication compute a layer's weighted sums?
- A
Multiply inputs by the weights in a column and add them, repeating across columns
- B
Multiply each bias by every input, then average the products
- C
Multiply each input by the same weight and keep the results separate
- D
Add every weight to every input, then choose the largest result
Correct answer
AMultiply inputs by the weights in a column and add them, repeating across columns
Explanation
For one neuron, its weighted sum is found by multiplying each input by its corresponding weight and adding the results. Applying this calculation across all neurons is a matrix multiplication.
- A
- 74
Which parts of the neuron computation happen after the layer's matrix multiplication?
- A
The matrix multiplication performs the weigh-and-add; bias and bend follow
- B
The matrix multiplication converts the outputs directly into labels
- C
The matrix multiplication performs the activation but not the weighted sum
- D
The matrix multiplication calculates only the biases
Correct answer
AThe matrix multiplication performs the weigh-and-add; bias and bend follow
Explanation
The matrix multiplication handles the weighted sums. The bias and nonlinear activation are applied afterward for each neuron.
- A
- 75
What are the dimensions of the first-layer weight matrix in the digit network?
- A
It has 784 rows and 10 columns
- B
It has 784 rows and 32 columns
- C
It has 32 rows and 784 columns
- D
It has 32 rows and 10 columns
Correct answer
BIt has 784 rows and 32 columns
Explanation
The first layer has 784 input values and 32 neurons, so its weight matrix has 784 rows and 32 columns.
- A
- 76
What computational benefit comes from stacking a batch of examples as rows?
- A
It removes the need for a separate output layer
- B
It performs every layer's calculations simultaneously, including dependent layers
- C
It lets one multiplication compute weighted sums for all examples and neurons
- D
It combines all examples into one input with one label
Correct answer
CIt lets one multiplication compute weighted sums for all examples and neurons
Explanation
When examples are arranged as rows in a batch, one matrix multiplication can calculate every neuron's weighted sum for every example at once.
- A
- 77
How does parallelism work across calculations and layers in a neural network?
- A
Calculations within a step can run in parallel, but layers proceed in sequence
- B
Only one cell in the answer can be calculated at a time
- C
All layers run at once because their outputs are independent
- D
Later layers run before earlier layers to reduce waiting
Correct answer
ACalculations within a step can run in parallel, but layers proceed in sequence
Explanation
The individual multiply-and-add calculations within a matrix result are independent and can run in parallel. However, later layers must wait for earlier layers' outputs.
- A
- 78
Why are GPUs often useful for neural-network calculations?
- A
A CPU and GPU perform only one calculation at a time
- B
A GPU is used only for image inputs and cannot train networks
- C
A CPU handles varied tasks, while a GPU performs many similar calculations in parallel
- D
A CPU is specialized for matrix multiplication, while a GPU handles varied tasks
Correct answer
CA CPU handles varied tasks, while a GPU performs many similar calculations in parallel
Explanation
A CPU is designed for a broad range of tasks, while a GPU is designed to perform many similar calculations simultaneously, making GPUs useful for large matrix operations.
- A
- 79
Why does hardware matter for training modern language models?
- A
They use no adjustable weights, so training is mostly data storage
- B
They use gradient-based training at scale, requiring extensive computation
- C
They rely on a single CPU because their calculations cannot be parallelized
- D
They train only by choosing the highest-probability token
Correct answer
BThey use gradient-based training at scale, requiring extensive computation
Explanation
Large language models have billions of weights and use the same broad training loop at enormous scale. Their training can take days or weeks across thousands of processors.
- A
- 80
How is text first represented for a language model?
- A
Text is converted directly into one number per sentence
- B
Text is split only into whole words, regardless of tokenizer
- C
Text is represented by the output probabilities of a digit classifier
- D
Text is split into tokens, and the tokenizer determines the splits
Correct answer
DText is split into tokens, and the tokenizer determines the splits
Explanation
Text is split into tokens, which may be whole words, word pieces, or punctuation. The tokenizer determines how a particular text is split.
- A
- 81
What happens to a token's learned numerical representation during training?
- A
Each token receives a number chosen only during text generation
- B
Each token has learned numbers that are tuned during training
- C
Each token receives a fixed list of numbers that training cannot change
- D
Tokens share one list that is discarded before training
Correct answer
BEach token has learned numbers that are tuned during training
Explanation
Each token is associated with a learned list of numbers. Those values are adjusted during training along with weights and biases.
- A
- 82
How does a language model represent the next-token prediction task?
- A
It uses only the next word to determine all earlier words
- B
It predicts a single fixed token without calculating probabilities
- C
It uses the context to assign each token a permanent digit label
- D
It scores possible next tokens based on context and converts scores to probabilities
Correct answer
DIt scores possible next tokens based on context and converts scores to probabilities
Explanation
A language model uses the preceding words as context to score possible next tokens. Softmax converts these scores into probabilities, as in the digit example.
- A
- 83
What are two described ways a language model can choose its next token?
- A
It must always choose the lowest-probability token
- B
It produces all possible next tokens as its final answer
- C
It can choose the most probable token or sample a less likely one
- D
It chooses randomly without using the scores
Correct answer
CIt can choose the most probable token or sample a less likely one
Explanation
A model can choose the highest-probability token or sample from the probabilities, which sometimes allows a less likely token to be selected. The chosen token is then added to the context for another prediction.
- A
- 84
How is a language model trained for next-word prediction?
- A
Train only on text the model generated itself
- B
Hide the first word, predict the last word, and ignore the real text
- C
Provide the next word as input and train the model to reproduce the previous one
- D
Hide the next word, predict it, and compare against the real next word
Correct answer
DHide the next word, predict it, and compare against the real next word
Explanation
In next-word training, the model is given real text with the next word hidden and learns to predict it. The real next word provides the correct answer for evaluating the prediction.
- A
- 85
Which description matches the training loop for next-word prediction?
- A
Backpropagation changes the text, while the loss changes the network architecture
- B
The tokenizer computes gradients, while softmax updates the weights
- C
The loss evaluates the real next word, and training updates weights, biases, and token numbers
- D
The loss chooses the next token, while the optimizer assigns labels to tokens
Correct answer
CThe loss evaluates the real next word, and training updates weights, biases, and token numbers
Explanation
The loss measures the probability assigned to the real next word, backpropagation calculates slopes, and an optimizer updates weights, biases, and token representations.
- A
- 86
Which statement describes additional language-model capabilities and attention?
- A
They use attention only to convert token numbers into images
- B
They replace neural-network training with a fixed list of responses
- C
They can only predict the next word, and attention selects the vocabulary
- D
They can translate, summarize, or answer; attention helps weigh earlier words' importance
Correct answer
DThey can translate, summarize, or answer; attention helps weigh earlier words' importance
Explanation
Language models can also be trained for translation, summarization, and answering. Attention is additional machinery that helps determine which earlier words matter most.
- A
- 87
What common idea underlies the different neural-network applications described?
- A
All applications use the same inputs and outputs
- B
Many applications share neural-network structures and the try-check-adjust learning loop
- C
Each application requires an unrelated mathematical foundation
- D
Neural networks work only for recognizing handwritten digits
Correct answer
BMany applications share neural-network structures and the try-check-adjust learning loop
Explanation
Across applications such as digit recognition, image-object detection, and language generation, the shared backbone is a neural network trained by repeatedly checking outputs and adjusting parameters.
- A

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