1. Home
  2. Explore
  3. Computer Science
  4. How Neural Networks Learn

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

How Neural Networks Learn

  • 87Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Learning Basics

In the Plinko analogy, what corresponds to learning?

87 questions

  1. 1

    In the Plinko analogy, what corresponds to learning?

    1. A

      Choose settings once and never revise them

    2. B

      Change the intended output after each trial

    3. C

      Try settings, check results, and adjust them

    4. D

      Use random settings without checking the results

    Correct answer
    C

    Try 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.

  2. 2

    What does a Plinko board adjusted to sort shapes represent?

    1. A

      A board that changes the intended bin after each trial

    2. B

      A board adjusted to send each shape to its intended bin

    3. C

      A board whose pegs never affect the balls

    4. D

      A board that sends every shape to the same bin

    Correct answer
    B

    A 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.

  3. 3

    Which description best distinguishes a real neural network from the Plinko analogy?

    1. A

      A collection of random calculations unrelated to the input

    2. B

      A physical board that sorts objects by their shape

    3. C

      A system that produces outputs without using adjustable settings

    4. D

      A system that uses numbers and connected calculations to map inputs to outputs

    Correct answer
    D

    A 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.

  4. 4

    In the sound-activated-light example, what are the input and output?

    1. A

      The light state is the input, and sound is the output

    2. B

      The bias is the input, and the light state is the output

    3. C

      The weight is the input, and the sound level is the output

    4. D

      The sound level is the input, and the light state is the output

    Correct answer
    D

    The 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.

  5. 5

    What role does a neuron's weight play in the sound-light example?

    1. A

      It controls how strongly the sound level affects the score

    2. B

      It determines how many inputs the neuron can receive

    3. C

      It sets the light's output threshold for every network

    4. D

      It determines whether the sound level is measured between zero and one

    Correct answer
    A

    It 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.

  6. 6

    How does the example light neuron turn its score into an on-or-off output?

    1. A

      Every network uses rounding to convert its output to zero or one

    2. B

      Every score is rounded to the nearest tenth

    3. C

      Scores below 0.30.30.3 produce zero; scores of 0.30.30.3 or more produce one

    4. D

      Scores below 0.50.50.5 produce zero; scores of 0.50.50.5 or more produce one

    Correct answer
    D

    Scores below 0.50.50.5 produce zero; scores of 0.50.50.5 or more produce one

    Explanation

    For this example, a score below 0.50.50.5 is rounded to zero and a score of 0.50.50.5 or more is rounded to one. This finishing rule is specific to the example, not universal to all networks.

  7. 7

    Why does weight 111 fail to produce the desired light output for sound level 0.40.40.4?

    1. A

      The light should turn on at 0.30.30.3 or higher, and a score of 0.40.40.4 rounds up

    2. B

      The light should turn on only at 111, so a score of 0.40.40.4 is incorrect

    3. C

      The light should turn on at 0.30.30.3 or higher, but a score of 0.40.40.4 rounds down

    4. D

      The light should turn on at 0.50.50.5 or higher, so a score of 0.40.40.4 is correct

    Correct answer
    C

    The light should turn on at 0.30.30.3 or higher, but a score of 0.40.40.4 rounds down

    Explanation

    The target rule is on for sound levels of 0.30.30.3 or higher and off below 0.30.30.3. At a sound level of 0.40.40.4 with weight 111, the score is 0.40.40.4, which rounds down under the example's 0.50.50.5 output threshold.

  8. 8

    Which adjustment rule matches the light-neuron training examples?

    1. A

      Change the target label whenever the neuron is wrong

    2. B

      Decrease the weight after a score that is too low

    3. C

      Increase the weight when the score is too high, and decrease it when too low

    4. D

      Increase the weight after every example, whether correct or not

    Correct answer
    C

    Increase 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.

  9. 9

    What does the light-neuron example illustrate about its final weight and test sounds?

    1. A

      The weight settles near 1.671.671.67, and fresh examples test performance beyond practice data

    2. B

      The weight settles at 111, and fresh examples are used to adjust it during practice

    3. C

      The weight settles near 0.30.30.3, and fresh examples determine the original target rule

    4. D

      The weight settles near 0.50.50.5, and fresh examples are used only to round the score

    Correct answer
    A

    The weight settles near 1.671.671.67, and fresh examples test performance beyond practice data

    Explanation

    For the target rule, the trained weight is approximately 1.671.671.67. Testing on fresh sound levels checks whether the learned behavior works beyond the practice examples.

  10. 10

    Why use trial-and-adjust training for a simple neuron when its weight could be found directly?

    1. A

      Simple examples may have direct solutions, while large networks need scalable adjustment methods

    2. B

      Large networks have a single formula that solves all weights simultaneously

    3. C

      Training is only useful when a network has exactly one weight

    4. D

      A weight-by-weight adjustment method cannot be used on large networks

    Correct answer
    A

    Simple 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.

  11. 11

    How does a neuron combine several input numbers into one response?

    1. A

      It assigns one shared weight to every layer in the network

    2. B

      It weights and adds the inputs to produce one activation

    3. C

      It selects one input and ignores the rest

    4. D

      It averages the inputs and produces one output per input

    Correct answer
    B

    It 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.

  12. 12

    Why can a neuron with a bias respond nonzero when all its inputs are zero?

    1. A

      The bias replaces all the neuron's weights

    2. B

      The bias makes every zero input behave like a positive input

    3. C

      The bias gives the neuron a starting value even when all inputs are zero

    4. D

      The bias ensures that every activation is zero

    Correct answer
    C

    The 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.

  13. 13

    Which statement correctly describes how biases are used and trained?

    1. A

      Biases affect only the number of inputs

    2. B

      Training adjusts biases but keeps weights fixed

    3. C

      Training adjusts weights but keeps biases fixed

    4. D

      Training adjusts both weights and biases, and a bias can shift the decision point

    Correct answer
    D

    Training 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.

  14. 14

    How can a bias shift the light neuron's decision point to the target threshold of 0.30.30.3?

    1. A

      A weight of 1.671.671.67 and a bias of 0.30.30.3 set the threshold at 0.30.30.3

    2. B

      A weight of 111 and a bias of −0.3-0.3−0.3 set the score to sound level minus 0.30.30.3

    3. C

      A weight of 0.30.30.3 and a bias of 111 set the score to sound level plus 111

    4. D

      A weight of 111 and a bias of 0.30.30.3 set the score to sound level plus 0.30.30.3

    Correct answer
    B

    A weight of 111 and a bias of −0.3-0.3−0.3 set the score to sound level minus 0.30.30.3

    Explanation

    A weight of 111 and a bias of −0.3-0.3−0.3 give a score equal to the sound level minus 0.30.30.3. The output turns on when this score is at least zero, matching the target threshold without scaling the sound.

  15. 15

    What characterizes neurons arranged side by side in a layer?

    1. A

      They read the same inputs with their own weights and make separate calls

    2. B

      They read the outputs of a later layer

    3. C

      They share one set of weights and produce one common call

    4. D

      They each receive only one input from the previous layer

    Correct answer
    A

    They 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.

  16. 16

    What is a hidden layer in a neural network?

    1. A

      A layer whose number of neurons must equal the number of inputs

    2. B

      The layer that contains the input pixels and no calculations

    3. C

      A layer between the inputs and outputs whose structure is chosen by the designer

    4. D

      The final layer that assigns the network's target labels

    Correct answer
    C

    A 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.

  17. 17

    How do width and depth differ in a neural network?

    1. A

      Wider means more outputs; deeper means more training examples

    2. B

      Wider means more stages; deeper means more inputs per neuron

    3. C

      Wider means more neurons in a layer; deeper means more successive layers

    4. D

      Wider means more weights per input; deeper means fewer processing stages

    Correct answer
    C

    Wider 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.

  18. 18

    What does the term deep learning refer to in this content?

    1. A

      It refers to networks with several processing layers

    2. B

      It refers to networks that use only one hidden layer

    3. C

      It refers to networks with unusually many input features

    4. D

      It refers to networks with more outputs than inputs

    Correct answer
    A

    It 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.

  19. 19

    How should one decide whether a wider or deeper architecture works better?

    1. A

      The arrangement with more parameters is guaranteed to perform best

    2. B

      A wider network is always more accurate

    3. C

      A deeper network is always more accurate

    4. D

      Performance must be measured rather than inferred from width or depth alone

    Correct answer
    D

    Performance 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.

  20. 20

    Why is stacking linear layers alone insufficient for representing complex patterns?

    1. A

      Composing linear steps still produces a linear relationship

    2. B

      A linear layer can represent any pattern if enough inputs are added

    3. C

      Stacking linear layers turns their outputs into probabilities

    4. D

      Each additional linear layer automatically creates a nonlinear curve

    Correct answer
    A

    Composing 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.

  21. 21

    What does the ReLU activation rule do?

    1. A

      It outputs one for positive totals and zero for negative totals

    2. B

      It outputs the maximum of zero and the total

    3. C

      It multiplies every total by its absolute value

    4. D

      It rounds all totals to the nearest integer

    Correct answer
    B

    It 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.

  22. 22

    Which description matches the shape and behavior of ReLU?

    1. A

      It converts every total into a probability between zero and one

    2. B

      It adds the same constant to positive and negative totals

    3. C

      It sets nonpositive totals to zero and passes positive totals through

    4. D

      It passes negative totals unchanged and clips positive totals to zero

    Correct answer
    C

    It 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.

  23. 23

    How do nonlinear neurons help a network represent complex patterns?

    1. A

      They can produce only straight lines, regardless of their number

    2. B

      They can combine to form more complex shapes than a line

    3. C

      They remove the need for weights and biases

    4. D

      They can represent only one fixed threshold

    Correct answer
    B

    They 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.

  24. 24

    What can happen when two different inputs pass through a network's layers?

    1. A

      Inputs are assigned to neurons without learned calculations

    2. B

      A network uses one neuron to memorize every possible input

    3. C

      Every input activates exactly the same neurons in every layer

    4. D

      Different inputs can activate different mixes of learned neurons

    Correct answer
    D

    Different 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.

  25. 25

    Why can a deep network learn visual patterns in stages?

    1. A

      Every layer independently relearns all earlier features

    2. B

      Later stages can reuse and combine features built by earlier stages

    3. C

      Later layers replace earlier features with the raw input

    4. D

      Each neuron must represent a complete object on its own

    Correct answer
    B

    Later 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.

  26. 26

    What is one advantage of building visual representations across multiple layers?

    1. A

      A single layer automatically memorizes less than a deep network

    2. B

      A single layer may need a huge catalog of separate rules, while deeper layers reuse features

    3. C

      A single layer must have fewer outputs than a deep network

    4. D

      A single layer cannot use weights to recognize images

    Correct answer
    B

    A 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.

  27. 27

    How is ReLU characterized among nonlinear activation rules?

    1. A

      ReLU replaces the need to calculate weighted sums

    2. B

      Every network must use rounding as its nonlinear rule

    3. C

      ReLU is the only activation rule that can represent patterns

    4. D

      ReLU is the most common of many nonlinear rules

    Correct answer
    D

    ReLU 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.

  28. 28

    Which sequence summarizes the basic neuron computation?

    1. A

      Add, round, classify, and normalize

    2. B

      Bias, bend, round, and divide

    3. C

      Bend, sample, subtract, and weigh

    4. D

      Weigh, add, bias, and bend

    Correct answer
    D

    Weigh, 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.

  29. 29

    How many input numbers represent a 282828-by-282828 handwritten digit image?

    1. A

      The image supplies 70,000 inputs, one for each training example

    2. B

      The image supplies 32 inputs, one for each hidden neuron

    3. C

      The image supplies 784 inputs, one brightness value per pixel

    4. D

      The image supplies 10 inputs, one for each digit class

    Correct answer
    C

    The image supplies 784 inputs, one brightness value per pixel

    Explanation

    The handwritten image contains 28×28=78428 \times 28 = 78428×28=784 pixels. Each pixel contributes a brightness number between zero and one, so the input layer has 784 values.

  30. 30

    Why does the digit-recognition network have 784 input values?

    1. A

      It is set by the image's 784 pixels, each represented by a brightness value

    2. B

      It is chosen freely because pixel values are not network inputs

    3. C

      It is set by the hidden layer, so it has 32 inputs

    4. D

      It is set by the number of digit classes, so it has 10 inputs

    Correct answer
    A

    It 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.

  31. 31

    What describes the first hidden layer in the digit-recognition example?

    1. A

      It uses 784 hidden neurons, each with 10 pixel weights

    2. B

      It uses 10 hidden neurons, each with 32 pixel weights

    3. C

      It uses 32 hidden neurons, each with one shared weight

    4. D

      It uses 32 hidden neurons, each with 784 pixel weights

    Correct answer
    D

    It 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.

  32. 32

    What does each of the 32 hidden neurons pass to the next layer?

    1. A

      Each produces a number measuring how strongly it responded

    2. B

      Each outputs a probability for every possible pixel

    3. C

      Each outputs only a digit label from zero to nine

    4. D

      Each returns only a binary on-or-off signal

    Correct answer
    A

    Each 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.

  33. 33

    Why does the digit-recognition network have ten output neurons?

    1. A

      It has one output shared by all possible digits

    2. B

      It has 10 outputs, one for each digit

    3. C

      It has 784 outputs, one per input pixel

    4. D

      It has 32 outputs, one per hidden neuron

    Correct answer
    B

    It 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.

  34. 34

    How does an output neuron calculate its digit score in the example network?

    1. A

      Each output neuron reads all 784 pixels directly and shares its weights

    2. B

      Each output neuron reads only one hidden response

    3. C

      Each output neuron reads all 32 hidden responses through its own weights

    4. D

      Each output neuron reads the other output neurons' probabilities

    Correct answer
    C

    Each 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.

  35. 35

    What does softmax do to the ten digit scores?

    1. A

      It sorts the scores but leaves them as unnormalized totals

    2. B

      It turns the scores into probabilities that sum to one

    3. C

      It turns the scores into values that need not sum to anything

    4. D

      It rounds each score to zero or one independently

    Correct answer
    B

    It 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.

  36. 36

    What is the training goal for a digit-recognition example labeled seven?

    1. A

      It changes the image's pixel brightnesses until one score wins

    2. B

      It raises the correct digit's probability and lowers the others'

    3. C

      It raises all ten probabilities equally

    4. D

      It fixes the output probabilities and adjusts only the labels

    Correct answer
    B

    It 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.

  37. 37

    Which details match the described training run and its example prediction?

    1. A

      It trains on 10,000 images for one pass and reaches 95.58% probability

    2. B

      It trains on 60,000 images for five passes, with the seven reaching 98.6% probability

    3. C

      It trains on 70,000 images for five passes and reaches 96.35% probability

    4. D

      It trains on 60,000 images for ten passes and reaches 88.83% probability

    Correct answer
    B

    It 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.

  38. 38

    What were the test accuracies of the two digit networks, and how did their correct predictions differ?

    1. A

      One layer scored 96.35%; two layers scored 95.58%, a difference of 77 errors

    2. B

      One layer scored 88.83%; two layers scored 95.58%, with 77 more correct results

    3. C

      One layer scored 95.58%; two layers scored 96.35%, with 77 more correct results

    4. D

      One layer scored 95.58%; two layers scored 98.6%, with 77 more correct results

    Correct answer
    C

    One 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.

  39. 39

    What limitation applies to the comparison between the two digit networks?

    1. A

      Both depth and width changed, so the gain cannot be credited to depth alone

    2. B

      The comparison proves that more parameters always increase accuracy

    3. C

      The comparison proves that depth alone caused the improvement

    4. D

      The networks had the same number of parameters, so size was controlled

    Correct answer
    A

    Both 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.

  40. 40

    What behavior is desired from a loss function for a labeled example?

    1. A

      It measures prediction error, with zero for a perfect prediction and greater loss for a lower correct-class probability

    2. B

      It measures the number of neurons, with zero for a small network

    3. C

      It measures output certainty, with greater loss for a higher correct-class probability

    4. D

      It measures training time, with zero for a fast network

    Correct answer
    A

    It 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.

  41. 41

    Which loss function is used in the small digit-network demonstration?

    1. A

      The squared difference between every pair of output probabilities

    2. B

      The average of the ten output probabilities

    3. C

      The logarithm of the probability assigned to an incorrect answer

    4. D

      The negative logarithm of the probability assigned to the correct answer

    Correct answer
    D

    The 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.

  42. 42

    What loss is associated with the correct digit receiving about 9% probability in the demonstration?

    1. A

      A 9% probability gives a loss of 0.91

    2. B

      A 9% probability gives a loss of 9

    3. C

      A 9% probability gives a loss of about 2.37

    4. D

      A 9% probability gives a loss of 0.09

    Correct answer
    C

    A 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.

  43. 43

    What information does a weight's slope provide?

    1. A

      It reveals which direction helps and how strongly the loss responds

    2. B

      It reveals whether the weight is positive and whether the bias is zero

    3. C

      It reveals which output is largest and how many inputs exist

    4. D

      It reveals the network's target label and number of layers

    Correct answer
    A

    It 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.

  44. 44

    What can be concluded from the experiment in which raising a weight lowers the loss?

    1. A

      Increasing the weight helps at the current settings

    2. B

      The weight has no effect on the loss

    3. C

      The loss must increase whenever a weight increases

    4. D

      Decreasing the weight must help at every possible setting

    Correct answer
    A

    Increasing the weight helps at the current settings

    Explanation

    In the example, raising the selected weight by 0.050.050.05 makes the loss fall by 0.00650.00650.0065. This indicates that increasing that weight helps at the current settings.

  45. 45

    Why is nudging one parameter at a time impractical for the larger digit network?

    1. A

      The small network has 38 adjustable values, while the digit network has 25,450

    2. B

      The small network has 38 neurons, while the digit network has 25,450 layers

    3. C

      Both networks have 38 parameters

    4. D

      The small network has 25,450 parameters, while the digit network has 38

    Correct answer
    A

    The 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.

  46. 46

    What question does a derivative answer?

    1. A

      It identifies the target output without evaluating the network

    2. B

      It measures how much one quantity changes when another changes

    3. C

      It measures how many layers lie between two quantities

    4. D

      It measures the total value of all network outputs

    Correct answer
    B

    It 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.

  47. 47

    For a neuron output wx+bwx+bwx+b, what are its derivatives with respect to the weight, bias, and input?

    1. A

      The weight derivative is the bias, the bias derivative is the input, and the input derivative is 111

    2. B

      The weight derivative is the input, the bias derivative is 111, and the input derivative is the weight

    3. C

      The weight derivative is 111, the bias derivative is the weight, and the input derivative is the bias

    4. D

      The weight derivative is the output, the bias derivative is 000, and the input derivative is 111

    Correct answer
    B

    The weight derivative is the input, the bias derivative is 111, and the input derivative is the weight

    Explanation

    For output wx+bwx+bwx+b, the derivative with respect to the weight is the input, with respect to the bias is 111, and with respect to the input is the weight.

  48. 48

    If a neuron has input 555, weight 222, and bias 111, what happens to its output when the weight increases to 333?

    1. A

      The output rises from 11 to 13, a change equal to the weight 2

    2. B

      The output rises from 11 to 15, a change equal to the new weight

    3. C

      The output rises from 11 to 16, a change equal to the input 5

    4. D

      The output rises from 11 to 12, a change equal to the bias

    Correct answer
    C

    The output rises from 11 to 16, a change equal to the input 5

    Explanation

    For the first neuron, 2×5+1=112 \times 5 + 1 = 112×5+1=11. Raising the weight from 222 to 333 changes the output to 3×5+1=163 \times 5 + 1 = 163×5+1=16, an increase of 555, equal to the input.

  49. 49

    For the neuron equation wx+bwx+bwx+b, what is the effect of increasing the bias by one?

    1. A

      The output changes by exactly one

    2. B

      The output changes by the input value

    3. C

      The output changes by the current weight

    4. D

      The output does not change

    Correct answer
    A

    The output changes by exactly one

    Explanation

    Changing the bias from 111 to 222 adds exactly one to the output, so the derivative with respect to the bias is always 111 for this equation.

  50. 50

    How does the chain rule support backpropagation through multiple neurons?

    1. A

      It calculates only the first layer's weights

    2. B

      It changes all weights before measuring the loss

    3. C

      It replaces the network's output with its target

    4. D

      It multiplies sensitivities through successive relationships to pass loss information backward

    Correct answer
    D

    It 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.

  51. 51

    What is the basic backward procedure in backpropagation?

    1. A

      It assigns target outputs to every hidden neuron

    2. B

      It computes each parameter's effect by independently rerunning the whole network

    3. C

      It starts at the loss and passes derivative information backward through the network

    4. D

      It starts by changing the earliest weight and checks whether loss changes

    Correct answer
    C

    It 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.

  52. 52

    What happens to slope information at each equation during backpropagation?

    1. A

      Multiply the arriving slope by a local derivative, keep parameter slopes, and pass input slopes backward

    2. B

      Add all weights together, then pass their sum forward

    3. C

      Copy the loss value unchanged to every earlier parameter

    4. D

      Change the equation's weights before calculating any derivatives

    Correct answer
    A

    Multiply 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.

  53. 53

    How does backpropagation handle an earlier neuron that feeds multiple later neurons?

    1. A

      It keeps only the contribution from the neuron with the largest weight

    2. B

      It adds the slope contributions arriving from all downstream neurons

    3. C

      It averages the downstream neurons' weights and discards the rest

    4. D

      It sends its slope forward without combining contributions

    Correct answer
    B

    It 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.

  54. 54

    Which statement correctly describes the gradient and backpropagation?

    1. A

      It is the set of updated weights, and backpropagation chooses their new values

    2. B

      It is the list of parameter sensitivities, and backpropagation only measures them

    3. C

      It is the set of target outputs, and backpropagation applies them directly

    4. D

      It is the loss for one example, and backpropagation changes the input data

    Correct answer
    B

    It 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.

  55. 55

    How do backpropagation and gradient descent differ?

    1. A

      The gradient is the learning rate multiplied by the number of examples

    2. B

      Backpropagation changes parameters, while gradient descent only measures them

    3. C

      Backpropagation measures slopes; gradient descent uses them to update parameters

    4. D

      Gradient descent assigns targets to hidden neurons based on the loss

    Correct answer
    C

    Backpropagation 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.

  56. 56

    What does a parameter's slope measure during training?

    1. A

      It measures the average value of all parameters

    2. B

      It measures sensitivity to one parameter while the others stay fixed

    3. C

      It measures how output probabilities change when labels are changed

    4. D

      It measures the loss after every parameter changes by a large amount

    Correct answer
    B

    It 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.

  57. 57

    What is the learning rate's role in gradient descent?

    1. A

      It determines how many examples are in a batch

    2. B

      It multiplies the slope to set the size of each update

    3. C

      It sets the number of layers used in an update

    4. D

      It sets the target probability for the correct class

    Correct answer
    B

    It multiplies the slope to set the size of each update

    Explanation

    The learning rate scales the parameter updates. A rate of 0.20.20.2 makes each move one fifth of the corresponding slope's magnitude.

  58. 58

    Why can both excessively large and excessively small learning rates be problematic?

    1. A

      Large steps reduce the number of parameters, but small steps increase it

    2. B

      Step size affects only the output layer, not learning

    3. C

      Large steps are always safe, but small steps always increase loss

    4. D

      Large steps can overshoot; tiny steps can make learning very slow or get stuck

    Correct answer
    D

    Large 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.

  59. 59

    How is a suitable learning rate found in the described approach?

    1. A

      It is calculated directly from the target label

    2. B

      It must always equal one divided by the number of weights

    3. C

      It is fixed by the number of output classes

    4. D

      It is found through experimentation and adjustment

    Correct answer
    D

    It 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.

  60. 60

    What happens after the described single update at learning rate 0.20.20.2?

    1. A

      The loss falls to zero, and the predicted digit becomes seven

    2. B

      The loss rises from 2.08 to 2.37, but the predicted digit becomes seven

    3. C

      The loss stays at 2.37, and the predicted digit remains three

    4. D

      The loss falls from 2.37 to 2.08, but the predicted digit is still three

    Correct answer
    D

    The loss falls from 2.37 to 2.08, but the predicted digit is still three

    Explanation

    With the learning rate set to 0.20.20.2, the loss falls from 2.372.372.37 to 2.082.082.08 after one update, although the network's top prediction is still three rather than seven.

  61. 61

    What is a batch in the described training process?

    1. A

      A batch is a group of labels assigned to hidden neurons

    2. B

      A batch is the complete training set used for one update

    3. C

      A batch is a group of examples whose gradient suggestions are averaged for one update

    4. D

      A batch is one example repeated until its gradient becomes zero

    Correct answer
    C

    A 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.

  62. 62

    What is an epoch?

    1. A

      A single update using one training example

    2. B

      A complete pass through the training data

    3. C

      A complete evaluation on the held-out test set

    4. D

      A single run of backpropagation through one layer

    Correct answer
    B

    A 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.

  63. 63

    What do the three learning-rate outcomes in the two-example demonstration show?

    1. A

      Rate 0.05 makes loss explode, while rates 2 and 20 lower it

    2. B

      All three rates lower loss by the same amount

    3. C

      Rates of 0.05 and 20 both lower the loss substantially, while 2 raises it

    4. D

      Rate 0.05 barely lowers loss, rate 2 lowers it more, and rate 20 makes it explode

    Correct answer
    D

    Rate 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.050.050.05 barely lowers loss, a rate of 222 lowers it substantially, and a rate of 202020 makes it explode. This illustrates that overly large steps can overshoot.

  64. 64

    How do training, validation, and test sets differ in their roles?

    1. A

      Training and validation both adjust parameters, while test is used after every batch

    2. B

      Training adjusts parameters, validation checks along the way, and test is used at the end

    3. C

      Training checks performance, validation adjusts parameters, and test adjusts the learning rate

    4. D

      Validation is used only once at the end, while test is used during training

    Correct answer
    B

    Training 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.

  65. 65

    What pattern indicates that a network may be overfitting?

    1. A

      The network performs equally well on training and validation data

    2. B

      The network's training loss remains high throughout training

    3. C

      The network has too few weights to fit the training data

    4. D

      The network improves on training data but worsens on unseen data

    Correct answer
    D

    The 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.

  66. 66

    What is early stopping?

    1. A

      It saves checkpoints and selects the one favored by validation data

    2. B

      It stops as soon as training loss reaches zero

    3. C

      It selects the checkpoint with the most parameters

    4. D

      It uses the final checkpoint regardless of validation performance

    Correct answer
    A

    It 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.

  67. 67

    What was the reported test accuracy for the network selected at epoch ten?

    1. A

      It achieved 98.6% on the validation set

    2. B

      It achieved 88.83% on the test set after selection at epoch ten

    3. C

      It achieved 96.35% on the test set at the final epoch

    4. D

      It achieved 95.58% after repeated test-set tuning

    Correct answer
    B

    It 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.

  68. 68

    Why can increasing the number of training examples help generalization?

    1. A

      Fewer examples guarantee better generalization

    2. B

      More examples provide greater variety and can reduce memorization

    3. C

      More examples prevent the network from learning weights

    4. D

      More examples eliminate the need for validation and test sets

    Correct answer
    B

    More 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.

  69. 69

    Which set of methods can help reduce memorization?

    1. A

      Fixing all weights and repeating the same images in the same order

    2. B

      Using only a larger network and removing validation data

    3. C

      Increasing the learning rate and training on the test set

    4. D

      Penalizing extreme weights, randomly silencing neurons, or augmenting images

    Correct answer
    D

    Penalizing 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.

  70. 70

    What did the comparison between narrow and wide networks illustrate about network size?

    1. A

      The narrow network memorized more and learned more

    2. B

      The narrow network memorized less but also learned less

    3. C

      The wide network could not learn because it had more neurons

    4. D

      The narrow network memorized less and necessarily performed better

    Correct answer
    B

    The 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.

  71. 71

    What kind of data should provide the final evidence that a network generalizes?

    1. A

      A network generalizes whenever its training loss decreases

    2. B

      Validation and test data should be used to train the weights

    3. C

      Training data is the only reliable measure of generalization

    4. D

      Unseen data provides the verdict on whether learned patterns generalize

    Correct answer
    D

    Unseen 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.

  72. 72

    How are a layer's connection weights arranged in the described matrix representation?

    1. A

      A grid with one row per input and one column per neuron

    2. B

      A table containing only the biases and activation values

    3. C

      A list with one entry per training example and one column per label

    4. D

      A grid with one row per output and one column per pixel

    Correct answer
    A

    A 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.

  73. 73

    How does matrix multiplication compute a layer's weighted sums?

    1. A

      Multiply inputs by the weights in a column and add them, repeating across columns

    2. B

      Multiply each bias by every input, then average the products

    3. C

      Multiply each input by the same weight and keep the results separate

    4. D

      Add every weight to every input, then choose the largest result

    Correct answer
    A

    Multiply 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.

  74. 74

    Which parts of the neuron computation happen after the layer's matrix multiplication?

    1. A

      The matrix multiplication performs the weigh-and-add; bias and bend follow

    2. B

      The matrix multiplication converts the outputs directly into labels

    3. C

      The matrix multiplication performs the activation but not the weighted sum

    4. D

      The matrix multiplication calculates only the biases

    Correct answer
    A

    The 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.

  75. 75

    What are the dimensions of the first-layer weight matrix in the digit network?

    1. A

      It has 784 rows and 10 columns

    2. B

      It has 784 rows and 32 columns

    3. C

      It has 32 rows and 784 columns

    4. D

      It has 32 rows and 10 columns

    Correct answer
    B

    It 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.

  76. 76

    What computational benefit comes from stacking a batch of examples as rows?

    1. A

      It removes the need for a separate output layer

    2. B

      It performs every layer's calculations simultaneously, including dependent layers

    3. C

      It lets one multiplication compute weighted sums for all examples and neurons

    4. D

      It combines all examples into one input with one label

    Correct answer
    C

    It 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.

  77. 77

    How does parallelism work across calculations and layers in a neural network?

    1. A

      Calculations within a step can run in parallel, but layers proceed in sequence

    2. B

      Only one cell in the answer can be calculated at a time

    3. C

      All layers run at once because their outputs are independent

    4. D

      Later layers run before earlier layers to reduce waiting

    Correct answer
    A

    Calculations 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.

  78. 78

    Why are GPUs often useful for neural-network calculations?

    1. A

      A CPU and GPU perform only one calculation at a time

    2. B

      A GPU is used only for image inputs and cannot train networks

    3. C

      A CPU handles varied tasks, while a GPU performs many similar calculations in parallel

    4. D

      A CPU is specialized for matrix multiplication, while a GPU handles varied tasks

    Correct answer
    C

    A 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.

  79. 79

    Why does hardware matter for training modern language models?

    1. A

      They use no adjustable weights, so training is mostly data storage

    2. B

      They use gradient-based training at scale, requiring extensive computation

    3. C

      They rely on a single CPU because their calculations cannot be parallelized

    4. D

      They train only by choosing the highest-probability token

    Correct answer
    B

    They 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.

  80. 80

    How is text first represented for a language model?

    1. A

      Text is converted directly into one number per sentence

    2. B

      Text is split only into whole words, regardless of tokenizer

    3. C

      Text is represented by the output probabilities of a digit classifier

    4. D

      Text is split into tokens, and the tokenizer determines the splits

    Correct answer
    D

    Text 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.

  81. 81

    What happens to a token's learned numerical representation during training?

    1. A

      Each token receives a number chosen only during text generation

    2. B

      Each token has learned numbers that are tuned during training

    3. C

      Each token receives a fixed list of numbers that training cannot change

    4. D

      Tokens share one list that is discarded before training

    Correct answer
    B

    Each 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.

  82. 82

    How does a language model represent the next-token prediction task?

    1. A

      It uses only the next word to determine all earlier words

    2. B

      It predicts a single fixed token without calculating probabilities

    3. C

      It uses the context to assign each token a permanent digit label

    4. D

      It scores possible next tokens based on context and converts scores to probabilities

    Correct answer
    D

    It 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.

  83. 83

    What are two described ways a language model can choose its next token?

    1. A

      It must always choose the lowest-probability token

    2. B

      It produces all possible next tokens as its final answer

    3. C

      It can choose the most probable token or sample a less likely one

    4. D

      It chooses randomly without using the scores

    Correct answer
    C

    It 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.

  84. 84

    How is a language model trained for next-word prediction?

    1. A

      Train only on text the model generated itself

    2. B

      Hide the first word, predict the last word, and ignore the real text

    3. C

      Provide the next word as input and train the model to reproduce the previous one

    4. D

      Hide the next word, predict it, and compare against the real next word

    Correct answer
    D

    Hide 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.

  85. 85

    Which description matches the training loop for next-word prediction?

    1. A

      Backpropagation changes the text, while the loss changes the network architecture

    2. B

      The tokenizer computes gradients, while softmax updates the weights

    3. C

      The loss evaluates the real next word, and training updates weights, biases, and token numbers

    4. D

      The loss chooses the next token, while the optimizer assigns labels to tokens

    Correct answer
    C

    The 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.

  86. 86

    Which statement describes additional language-model capabilities and attention?

    1. A

      They use attention only to convert token numbers into images

    2. B

      They replace neural-network training with a fixed list of responses

    3. C

      They can only predict the next word, and attention selects the vocabulary

    4. D

      They can translate, summarize, or answer; attention helps weigh earlier words' importance

    Correct answer
    D

    They 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.

  87. 87

    What common idea underlies the different neural-network applications described?

    1. A

      All applications use the same inputs and outputs

    2. B

      Many applications share neural-network structures and the try-check-adjust learning loop

    3. C

      Each application requires an unrelated mathematical foundation

    4. D

      Neural networks work only for recognizing handwritten digits

    Correct answer
    B

    Many 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.

Question 1 of 87
Question 1 of 87

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent