1. Home
  2. Explore
  3. Computer Science
  4. Backpropagation and LLM Training

Study methods

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

Backpropagation and LLM Training

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

In a simple house-price model, what role do house size, bedroom count, location, and building age play?

106 questions

  1. 1

    In a simple house-price model, what role do house size, bedroom count, location, and building age play?

    1. A

      They are hidden layers that calculate gradients

    2. B

      They are loss values used to score the final prediction

    3. C

      They are optimizer settings that determine update size

    4. D

      They are inputs combined to produce a predicted price

    Correct answer
    D

    They are inputs combined to produce a predicted price

    Explanation

    The model receives these house characteristics as inputs and combines them to predict a price.

  2. 2

    In a weighted house-price formula, what does each weight control?

    1. A

      How many examples the model processes before training stops

    2. B

      How accurately the loss measures the model's prediction

    3. C

      How many layers the model uses to process an input

    4. D

      How strongly one input feature contributes to the prediction

    Correct answer
    D

    How strongly one input feature contributes to the prediction

    Explanation

    Each weight determines the influence of a corresponding input, such as size or location, on the predicted price.

  3. 3

    Why is a model's mistake difficult to fix when it has millions or billions of weights?

    1. A

      Its weights stop affecting the model's behavior

    2. B

      Its prediction cannot be compared with a correct answer

    3. C

      It is unclear which weights to change, and in what direction or amount

    4. D

      Its inputs can no longer be sent through the network

    Correct answer
    C

    It is unclear which weights to change, and in what direction or amount

    Explanation

    A large model has many adjustable parameters, so training must determine which ones contributed to the error and how they should change.

  4. 4

    In the adjustable-knob analogy, what happens when a weight changes?

    1. A

      The loss is removed from the training process

    2. B

      The network automatically gains another layer

    3. C

      The model's behavior can change because a feature's influence changes

    4. D

      The training example is replaced by a different input

    Correct answer
    C

    The model's behavior can change because a feature's influence changes

    Explanation

    A weight acts like a knob that changes how much a particular input feature affects the model's output.

  5. 5

    In the tea analogy, what do the amounts of tea, sugar, and milk, and the brewing time represent?

    1. A

      The repeated trials, analogous to the model's layers

    2. B

      The feedback signals, analogous to the model's gradients

    3. C

      The prediction errors, analogous to the model's loss

    4. D

      The adjustable choices, analogous to the model's weights

    Correct answer
    D

    The adjustable choices, analogous to the model's weights

    Explanation

    The recipe choices are adjustable quantities, so they represent the weights that can be changed to improve the result.

  6. 6

    In the tea analogy, what is the role of feedback such as “too sweet” or “too strong”?

    1. A

      It produces the tea before the recipe is selected

    2. B

      It performs the recipe changes without requiring a decision

    3. C

      It identifies how recipe choices contributed to an unsatisfactory result

    4. D

      It adds more adjustable ingredients to the recipe

    Correct answer
    C

    It identifies how recipe choices contributed to an unsatisfactory result

    Explanation

    Useful feedback says more than simply that the result was bad: it indicates which choices contributed and which direction they should move.

  7. 7

    Which mapping correctly matches the stages of the tea analogy to training concepts?

    1. A

      Making tea is forward propagation; rating it is loss; tracing feedback is backpropagation; changing the recipe is optimization

    2. B

      Making tea is optimization; rating it is backpropagation; tracing feedback is forward propagation; changing the recipe is loss

    3. C

      Making tea is loss; rating it is forward propagation; tracing feedback is optimization; changing the recipe is backpropagation

    4. D

      Making tea is backpropagation; rating it is optimization; tracing feedback is loss; changing the recipe is forward propagation

    Correct answer
    A

    Making tea is forward propagation; rating it is loss; tracing feedback is backpropagation; changing the recipe is optimization

    Explanation

    The analogy maps producing the result to a forward pass, scoring it to loss, tracing causes backward to backpropagation, and changing the recipe to optimization.

  8. 8

    Why is being told only that a cup of tea is “bad” insufficient for improving the recipe?

    1. A

      A recipe cannot contain adjustable choices

    2. B

      The feedback cannot be expressed as a number

    3. C

      The feedback does not identify which choices caused the problem or how to adjust them

    4. D

      The tea must be tasted only after every possible recipe is tried

    Correct answer
    C

    The feedback does not identify which choices caused the problem or how to adjust them

    Explanation

    Improvement requires information about which decisions contributed to the poor result and the direction in which those decisions should change.

  9. 9

    What does the sequence of improving tea ratings across repeated attempts illustrate?

    1. A

      A single adjustment guarantees a perfect result

    2. B

      Repeated attempts eliminate the need for feedback

    3. C

      Training repeatedly evaluates a result and adjusts choices to improve later results

    4. D

      Training changes the score while leaving all choices fixed

    Correct answer
    C

    Training repeatedly evaluates a result and adjusts choices to improve later results

    Explanation

    Training repeats the prediction, evaluation, and adjustment loop, with the aim of improving performance over attempts.

  10. 10

    What is the central thing a neural network learns during weight-based training?

    1. A

      Useful values for its adjustable weights

    2. B

      A fixed set of correct outputs for every possible input

    3. C

      A new input format for every training example

    4. D

      The identity of the optimizer used to train it

    Correct answer
    A

    Useful values for its adjustable weights

    Explanation

    Training changes the model's weights so that its predictions become more useful.

  11. 11

    What does changing a model's weights physically do?

    1. A

      It can alter how the model responds to inputs

    2. B

      It removes the need to produce predictions

    3. C

      It converts inference into a backward computation

    4. D

      It changes the correct labels in the training data

    Correct answer
    A

    It can alter how the model responds to inputs

    Explanation

    Weights affect the calculations that produce outputs, so changing them can change the model's behavior.

  12. 12

    Which statement best describes the relationship between an AI system and backpropagation?

    1. A

      Backpropagation is important for training many neural networks, but AI is broader than this method

    2. B

      Backpropagation is the only method by which a computer can learn

    3. C

      AI systems use backpropagation only when they process language

    4. D

      All AI systems must use backpropagation to produce any output

    Correct answer
    A

    Backpropagation is important for training many neural networks, but AI is broader than this method

    Explanation

    Backpropagation is central to much modern neural-network training, but many AI methods do not use it.

  13. 13

    What does forward propagation do in a neural network?

    1. A

      Sends an input through the network to produce a prediction

    2. B

      Chooses the learning rate from the training data

    3. C

      Sends the loss backward to change the weights directly

    4. D

      Compares every possible weight setting before predicting

    Correct answer
    A

    Sends an input through the network to produce a prediction

    Explanation

    Forward propagation processes an input through the network's layers and produces an output or prediction.

  14. 14

    A cat image produces a prediction of “cat: 30%” and “dog: 70%.” What has occurred so far?

    1. A

      A forward pass has produced a prediction

    2. B

      Backpropagation has already corrected the weights

    3. C

      Inference has calculated a training loss and updated the model

    4. D

      The optimizer has selected a new training example

    Correct answer
    A

    A forward pass has produced a prediction

    Explanation

    Producing class probabilities from an input is a forward pass; learning has not necessarily occurred.

  15. 15

    A language model receives “Paris is the capital of” and assigns probabilities to possible next words. What is this computation?

    1. A

      A forward pass that produces a prediction

    2. B

      A loss calculation that freezes the model

    3. C

      An optimizer step that changes the prompt

    4. D

      A backward pass that updates the parameters

    Correct answer
    A

    A forward pass that produces a prediction

    Explanation

    The model processes the phrase and predicts likely continuations during a forward pass.

  16. 16

    Why does producing a prediction during a forward pass not, by itself, mean the model has learned?

    1. A

      Learning occurs only when the model receives a new architecture

    2. B

      The model has made a guess, but no weight update has necessarily occurred

    3. C

      Forward propagation always produces a perfect output

    4. D

      A prediction cannot be compared with a correct answer

    Correct answer
    B

    The model has made a guess, but no weight update has necessarily occurred

    Explanation

    A forward pass produces an output. Learning requires training steps that use feedback to update parameters.

  17. 17

    What does the loss measure during training?

    1. A

      How much memory the model's weights occupy

    2. B

      How many layers the model used to produce its prediction

    3. C

      How wrong the model's prediction is, represented in a form training can use

    4. D

      How many inputs the model can accept at once

    Correct answer
    C

    How wrong the model's prediction is, represented in a form training can use

    Explanation

    Loss converts prediction error into a value that can guide the training process.

  18. 18

    How does loss generally relate to prediction quality?

    1. A

      Loss measures only how many parameters the model contains

    2. B

      A good prediction has high loss, while a poor prediction has low loss

    3. C

      Prediction quality does not affect the loss

    4. D

      A good prediction has low loss, while a poor prediction has high loss

    Correct answer
    D

    A good prediction has low loss, while a poor prediction has high loss

    Explanation

    Loss is designed to be small for better predictions and large for worse ones.

  19. 19

    What problem does backpropagation solve in a model with many parameters?

    1. A

      It determines how changes to parameters would affect the final error

    2. B

      It replaces training data with optimizer settings

    3. C

      It chooses which answer should count as correct

    4. D

      It generates predictions without using the model's layers

    Correct answer
    A

    It determines how changes to parameters would affect the final error

    Explanation

    Backpropagation works backward from the loss to calculate how parameter changes influence that loss.

  20. 20

    Which description correctly contrasts the directions of forward propagation and backpropagation?

    1. A

      Forward computation moves from loss to input; backpropagation moves from input to prediction

    2. B

      Both move from the input toward the prediction

    3. C

      Both move from the prediction toward the input

    4. D

      Forward computation moves from input to prediction; backpropagation moves from loss backward through the network

    Correct answer
    D

    Forward computation moves from input to prediction; backpropagation moves from loss backward through the network

    Explanation

    Forward propagation produces the prediction, while backpropagation carries gradient information backward from the loss.

  21. 21

    What moves backward through a computational graph during backpropagation?

    1. A

      The optimizer's weight updates, before gradients are calculated

    2. B

      A literal object representing the original error

    3. C

      Gradient information about how computations affect the loss

    4. D

      The input data, copied unchanged into each layer

    Correct answer
    C

    Gradient information about how computations affect the loss

    Explanation

    Backpropagation calculates gradients through the graph; it does not copy a literal error object backward.

  22. 22

    In the company-pipeline analogy, what does assigning different levels of influence to departments represent?

    1. A

      Deciding that every department is equally responsible for the result

    2. B

      Changing the order in which the product is delivered to customers

    3. C

      Estimating how sensitive the final result is to different parts of the process

    4. D

      Giving each department a human judgment rather than a mathematical calculation

    Correct answer
    C

    Estimating how sensitive the final result is to different parts of the process

    Explanation

    The analogy represents mathematical sensitivity: different components can have different effects on the final loss.

  23. 23

    Why is “blame” only an analogy for backpropagation?

    1. A

      Backpropagation calculates mathematical sensitivities rather than assigning human fault

    2. B

      Backpropagation distributes the loss equally across all parameters

    3. C

      Backpropagation evaluates whether the training data is fair

    4. D

      Backpropagation identifies which person made a decision

    Correct answer
    A

    Backpropagation calculates mathematical sensitivities rather than assigning human fault

    Explanation

    The actual computation determines how changes affect loss; it does not assign moral or human responsibility.

  24. 24

    In the tap-and-tank example, how does the chain rule determine the tap's effect on the tank level?

    1. A

      It adds the tank level directly to the tap position

    2. B

      It changes the tap without calculating any dependent effects

    3. C

      It ignores the water flow and compares only the tap with the tank

    4. D

      It combines the effect of the tap on flow with the effect of flow on tank level

    Correct answer
    D

    It combines the effect of the tap on flow with the effect of flow on tank level

    Explanation

    The tap affects the tank through water flow, so the dependent effects are connected link by link using the chain rule.

  25. 25

    Why can a neural network's computations be treated as a chain when calculating gradients?

    1. A

      Weights have no effect on the network's intermediate calculations

    2. B

      Later calculations depend on earlier calculations, linking the loss to preceding layers and weights

    3. C

      The loss is calculated before any layer processes the input

    4. D

      Every layer independently produces the same output

    Correct answer
    B

    Later calculations depend on earlier calculations, linking the loss to preceding layers and weights

    Explanation

    The output depends on later layers, which depend on earlier layers, ultimately connecting the loss to the weights.

  26. 26

    What does the notation for the loss with respect to a weight ask?

    1. A

      How much memory is required to store the weight

    2. B

      How the loss changes if that weight changes slightly

    3. C

      Whether the weight is larger than the loss

    4. D

      How many times the weight appears in the training data

    Correct answer
    B

    How the loss changes if that weight changes slightly

    Explanation

    The notation represents the sensitivity of the loss to a change in a particular weight.

  27. 27

    What is a gradient in the context of training a model?

    1. A

      A score that reports how many examples the model has seen

    2. B

      Information about the direction and strength of the loss's response to a parameter change

    3. C

      A parameter update that is always applied without an optimizer

    4. D

      A probability assigned to the model's predicted answer

    Correct answer
    B

    Information about the direction and strength of the loss's response to a parameter change

    Explanation

    A gradient indicates both which way the loss changes as a parameter moves and how strongly it responds.

  28. 28

    A weight is increased slightly and the loss gets worse. What does this suggest about increasing that weight?

    1. A

      The optimizer should be removed from the training process

    2. B

      Increasing it moves in an unhelpful direction for reducing the loss

    3. C

      Increasing it must be correct because the model needs larger weights

    4. D

      The loss cannot be used to guide any later change

    Correct answer
    B

    Increasing it moves in an unhelpful direction for reducing the loss

    Explanation

    If increasing the weight worsens the loss, training should use gradient information to move in a more helpful direction.

  29. 29

    Why does a gradient not update a parameter by itself?

    1. A

      A gradient is calculated only after training has ended

    2. B

      A gradient is already the final prediction of the model

    3. C

      A gradient contains no information about parameter changes

    4. D

      A gradient supplies information, while an optimizer uses it to choose an update

    Correct answer
    D

    A gradient supplies information, while an optimizer uses it to choose an update

    Explanation

    The gradient describes the loss's sensitivity; an optimizer decides how to turn that information into a parameter update.

  30. 30

    In the foggy-hill analogy, what corresponds to backpropagation?

    1. A

      Calculating the slope to determine which way is downhill

    2. B

      Choosing the destination without examining the slope

    3. C

      Taking a physical step down the hill

    4. D

      Changing the height of the hill

    Correct answer
    A

    Calculating the slope to determine which way is downhill

    Explanation

    Backpropagation calculates the gradient, like finding the slope; the optimizer takes the step.

  31. 31

    What does stochastic gradient descent (SGD) do, in the account given?

    1. A

      Chooses a new network architecture after every example

    2. B

      Takes a straightforward step in the downhill direction

    3. C

      Uses a different method to handle weight decay than AdamW

    4. D

      Keeps the weights fixed while calculating predictions

    Correct answer
    B

    Takes a straightforward step in the downhill direction

    Explanation

    SGD is described as taking a simple step in the downhill direction indicated by gradients.

  32. 32

    What distinguishing behavior of Adam is described?

    1. A

      It updates weights without using gradient information

    2. B

      It freezes all parameters except the largest one

    3. C

      It changes the training target to reduce the loss

    4. D

      It keeps a running estimate of the slope and adapts its step over time

    Correct answer
    D

    It keeps a running estimate of the slope and adapts its step over time

    Explanation

    Adam maintains a running estimate of the slope and adapts its step over time.

  33. 33

    How is AdamW described in relation to Adam?

    1. A

      It is a refinement that handles weight decay differently

    2. B

      It is a learning-rate schedule that removes the need for weights

    3. C

      It is an activation function used in transformer blocks

    4. D

      It is a method for replacing backpropagation with random search

    Correct answer
    A

    It is a refinement that handles weight decay differently

    Explanation

    AdamW is presented as a refinement of Adam with a different way of handling weight decay.

  34. 34

    What is a likely consequence of setting the learning rate too small?

    1. A

      The model stops calculating gradients

    2. B

      The optimizer state grows smaller than the model's weights

    3. C

      Updates are tiny, so progress becomes very slow

    4. D

      Updates consistently overshoot the low-loss region

    Correct answer
    C

    Updates are tiny, so progress becomes very slow

    Explanation

    A very small learning rate produces tiny parameter steps and therefore slow progress.

  35. 35

    What can happen if the learning rate is too large?

    1. A

      Updates can overshoot, making the loss jump around or fail to settle

    2. B

      The model no longer needs a loss value

    3. C

      The model takes steps so small that learning is painfully slow

    4. D

      The network's inputs become fixed during training

    Correct answer
    A

    Updates can overshoot, making the loss jump around or fail to settle

    Explanation

    An excessively large learning rate can overshoot the low-loss region and make optimization unstable.

  36. 36

    What does the learning rate control?

    1. A

      The scale of each parameter update

    2. B

      The number of parameters in the network

    3. C

      The number of layers traversed during a forward pass

    4. D

      The correct token in each training example

    Correct answer
    A

    The scale of each parameter update

    Explanation

    The learning rate determines how large the optimizer's updates are.

  37. 37

    How is the learning rate characterized in the content?

    1. A

      A loss value that measures prediction accuracy

    2. B

      A hyperparameter chosen by engineers rather than learned from the data

    3. C

      An activation function that controls layer nonlinearity

    4. D

      A trainable weight computed by backpropagation for every input

    Correct answer
    B

    A hyperparameter chosen by engineers rather than learned from the data

    Explanation

    The learning rate is a hyperparameter that engineers choose and tune.

  38. 38

    Which sequence correctly describes a basic training iteration?

    1. A

      Loss calculation, input data, optimizer update, gradient calculation, forward prediction

    2. B

      Optimizer update, loss calculation, input data, forward prediction, gradient calculation

    3. C

      Gradient calculation, optimizer update, prediction, input data, loss calculation

    4. D

      Input data, forward prediction, loss calculation, gradient calculation, optimizer update

    Correct answer
    D

    Input data, forward prediction, loss calculation, gradient calculation, optimizer update

    Explanation

    Training first produces a prediction and evaluates it, then calculates gradients and uses an optimizer to update weights.

  39. 39

    A model computes output as input multiplied by one weight. With input five and weight one, it outputs five, but the target is ten. Which direction should the weight move?

    1. A

      Downward, because a smaller weight increases the output

    2. B

      Nowhere, because a single-weight model cannot be trained

    3. C

      Upward, because increasing the weight increases the output

    4. D

      Randomly, because output is independent of the weight

    Correct answer
    C

    Upward, because increasing the weight increases the output

    Explanation

    Increasing the weight increases the output, moving it toward the target of ten.

  40. 40

    What does the single-weight example illustrate about real training?

    1. A

      The input must change whenever a weight changes

    2. B

      A model learns only when it has billions of weights

    3. C

      Training always reaches the target after manually trying every weight

    4. D

      Training uses gradient-based updates rather than guessing a sequence of weight increments

    Correct answer
    D

    Training uses gradient-based updates rather than guessing a sequence of weight increments

    Explanation

    The example illustrates the effect of a weight change; actual training uses gradients to choose updates rather than manually guessing increments.

  41. 41

    What mathematical idea underlies backpropagation?

    1. A

      The principle of random sampling

    2. B

      The rule that all layers must be linear

    3. C

      The chain rule from calculus

    4. D

      The law of conservation of energy

    Correct answer
    C

    The chain rule from calculus

    Explanation

    Backpropagation applies the chain rule to connect dependent calculations and compute gradients through a network.

  42. 42

    Why does the chain rule fit the tap-and-tank example?

    1. A

      The tap and tank are independent of each other

    2. B

      The tank determines the tap position without any intermediate process

    3. C

      The tap affects the tank through an intermediate effect, the water flow

    4. D

      The chain rule applies only when there is no dependency between quantities

    Correct answer
    C

    The tap affects the tank through an intermediate effect, the water flow

    Explanation

    The tap changes water flow, which in turn changes the tank level; the chain rule links these dependent effects.

  43. 43

    How does backpropagation use the chain rule across a neural network?

    1. A

      It computes each layer's effect without considering other layers

    2. B

      It propagates dependent effects backward from the loss through layers to earlier weights

    3. C

      It replaces the network's forward calculations with random tests

    4. D

      It calculates only the effect of the final layer

    Correct answer
    B

    It propagates dependent effects backward from the loss through layers to earlier weights

    Explanation

    The loss depends on the output, which depends on successive layers, so the chain rule links gradients back to earlier weights.

  44. 44

    Why is reusing intermediate results useful during backpropagation?

    1. A

      It eliminates the need to calculate the loss

    2. B

      It removes the need for a forward pass

    3. C

      It avoids recomputing shared calculations and makes gradient computation more efficient

    4. D

      It ensures all parameters receive the same gradient

    Correct answer
    C

    It avoids recomputing shared calculations and makes gradient computation more efficient

    Explanation

    Backpropagation reuses shared intermediate results instead of recomputing them for every parameter.

  45. 45

    Which account of the mathematical roots of backpropagation is supported?

    1. A

      Its mathematical ideas originated only after large language models appeared

    2. B

      It was developed independently of derivative calculations

    3. C

      Its underlying ideas come from calculus and predate neural networks

    4. D

      Its roots lie solely in the design of GPUs

    Correct answer
    C

    Its underlying ideas come from calculus and predate neural networks

    Explanation

    The underlying mathematics comes from calculus, especially the chain rule, and is older than neural networks.

  46. 46

    What were researchers in control theory and optimization doing with related ideas during the 1960s and 1970s?

    1. A

      Developing the AdamW optimizer for language models

    2. B

      Replacing all neural networks with decision trees

    3. C

      Using ideas for accumulating derivatives in reverse through computations

    4. D

      Training modern large transformers with billions of tokens

    Correct answer
    C

    Using ideas for accumulating derivatives in reverse through computations

    Explanation

    Related reverse derivative-accumulation ideas were already being used in control theory and optimization during those decades.

  47. 47

    What contribution is associated with Paul Werbos in 1974?

    1. A

      He published the landmark 1986 paper with Rumelhart, Hinton, and Williams

    2. B

      He described using backpropagation-style ideas for neural networks in his doctoral thesis

    3. C

      He developed the first large language model trained with AdamW

    4. D

      He introduced LoRA adapters for fine-tuning transformers

    Correct answer
    B

    He described using backpropagation-style ideas for neural networks in his doctoral thesis

    Explanation

    Werbos described using backpropagation-style ideas for neural networks in his 1974 doctoral thesis.

  48. 48

    What is associated with the landmark 1986 paper by David Rumelhart, Geoffrey Hinton, and Ronald Williams?

    1. A

      Introducing the chain rule as a new mathematical principle

    2. B

      Demonstrating that neural networks cannot be trained with gradients

    3. C

      Proposing that language models should use only retrieval

    4. D

      Showing how backpropagation could train multilayer neural networks and helping popularize the method

    Correct answer
    D

    Showing how backpropagation could train multilayer neural networks and helping popularize the method

    Explanation

    Their paper showed how to train multilayer neural networks with backpropagation, making the approach practical and popular.

  49. 49

    Why is it inaccurate to describe backpropagation as one sudden invention?

    1. A

      It developed through a long line of mathematical and computational work

    2. B

      It was independently invented by every neural-network researcher

    3. C

      It combined unrelated methods without a shared mathematical basis

    4. D

      It was invented only after GPUs became widely available

    Correct answer
    A

    It developed through a long line of mathematical and computational work

    Explanation

    The method emerged through years of earlier work and later demonstrations of practical neural-network training.

  50. 50

    Why would changing each of a billion weights one at a time and rerunning the model be impractical?

    1. A

      It would prevent the model from producing a forward prediction

    2. B

      It would eliminate the need for training data

    3. C

      It would require roughly a billion full evaluations just to assess one update

    4. D

      It would make every weight identical

    Correct answer
    C

    It would require roughly a billion full evaluations just to assess one update

    Explanation

    The naive approach would require a full model evaluation for every individual weight, which does not scale.

  51. 51

    What efficiency advantage does backpropagation provide for a network with many parameters?

    1. A

      It tests every possible weight value before making an update

    2. B

      It calculates gradients for the network in a backward pass while reusing shared results

    3. C

      It guarantees that every parameter improves by the same amount

    4. D

      It eliminates the forward pass and calculates predictions backward

    Correct answer
    B

    It calculates gradients for the network in a backward pass while reusing shared results

    Explanation

    A forward computation followed by one backward pass provides gradients efficiently, with cost close to that of the forward pass rather than one evaluation per weight.

  52. 52

    Which set contains examples of AI approaches that do not inherently require backpropagation?

    1. A

      Loss functions, learning rates, gradients, and optimizer states

    2. B

      Rule-based systems, search algorithms, decision trees, and evolutionary algorithms

    3. C

      Forward passes, backward passes, residual connections, and activations

    4. D

      Transformer blocks, embeddings, logits, and token probabilities

    Correct answer
    B

    Rule-based systems, search algorithms, decision trees, and evolutionary algorithms

    Explanation

    AI includes methods such as rule-based systems, search, trees, and evolutionary algorithms that do not inherently use backpropagation.

  53. 53

    Which statement correctly distinguishes a neural network's structure from the method used to train it?

    1. A

      A network can exist only if every weight is learned from labeled data

    2. B

      A network can perform forward calculations even if its weights were set by hand or found without backpropagation

    3. C

      A network's structure is defined by the optimizer that changes its weights

    4. D

      A network cannot compute an output unless backpropagation is running

    Correct answer
    B

    A network can perform forward calculations even if its weights were set by hand or found without backpropagation

    Explanation

    A neural network is a computational structure; backpropagation is a method for efficiently finding useful weights, not a requirement for the structure to compute.

  54. 54

    How do evolutionary strategies or genetic algorithms improve a population of networks?

    1. A

      They select the lowest-scoring networks and remove all variation

    2. B

      They keep better-scoring networks, mutate their weights, and repeat across generations

    3. C

      They freeze all network weights and change only the training labels

    4. D

      They calculate exact gradients for every weight and take a downhill step

    Correct answer
    B

    They keep better-scoring networks, mutate their weights, and repeat across generations

    Explanation

    Evolutionary approaches select better performers, mutate their weights, and repeat the process so the population can improve.

  55. 55

    Which statement best describes the role of backpropagation in modern large language models?

    1. A

      They cannot exist unless backpropagation is used during every inference response

    2. B

      They are usually trained by manually adjusting each parameter

    3. C

      They could be imagined with other optimization methods, but modern large transformers are overwhelmingly trained with gradients computed through automatic differentiation

    4. D

      They use backpropagation only to generate tokens, not to train

    Correct answer
    C

    They could be imagined with other optimization methods, but modern large transformers are overwhelmingly trained with gradients computed through automatic differentiation

    Explanation

    Other approaches are conceptually possible, but modern large transformers are generally trained with gradient-based optimization using automatic differentiation.

  56. 56

    In next-token pretraining, what does the model learn to predict?

    1. A

      The optimizer state for the next training batch

    2. B

      The original weight values before training

    3. C

      The number of transformer blocks in the model

    4. D

      A likely next token given the preceding tokens

    Correct answer
    D

    A likely next token given the preceding tokens

    Explanation

    Next-token prediction trains a language model to predict a continuation from the tokens that came before it.

  57. 57

    In a next-token training example, what happens after the model predicts the token “blue” with low confidence when “blue” is correct?

    1. A

      The correct token is changed to match the model's prediction

    2. B

      The loss is calculated, gradients are computed backward, and the optimizer updates parameters

    3. C

      The model removes the input tokens from its vocabulary

    4. D

      The model immediately performs inference without calculating a loss

    Correct answer
    B

    The loss is calculated, gradients are computed backward, and the optimizer updates parameters

    Explanation

    Training compares the prediction with the correct next token, computes loss and gradients, and then uses an optimizer to update parameters.

  58. 58

    Why should specific next-token probabilities in an illustrative training example not be treated as fixed training requirements?

    1. A

      All language models must produce the same probabilities

    2. B

      The exact probabilities and objective can vary in practice

    3. C

      A language model cannot assign probabilities to tokens

    4. D

      Training never compares predictions with correct tokens

    Correct answer
    B

    The exact probabilities and objective can vary in practice

    Explanation

    The example illustrates the training pattern; actual probabilities and objectives vary.

  59. 59

    What happens to tokens near the beginning of a typical transformer processing pipeline?

    1. A

      They are converted into embeddings before being processed by transformer blocks

    2. B

      They are discarded so that only gradients enter the model

    3. C

      They are converted directly into optimizer states before a prediction

    4. D

      They are turned into loss values before entering the network

    Correct answer
    A

    They are converted into embeddings before being processed by transformer blocks

    Explanation

    Tokens are represented as embeddings before being processed by the model's transformer blocks.

  60. 60

    What role does self-attention play in a transformer block?

    1. A

      It changes the correct next token in the training data

    2. B

      It mixes information between token positions

    3. C

      It updates the optimizer's state for each parameter

    4. D

      It measures the final training loss directly

    Correct answer
    B

    It mixes information between token positions

    Explanation

    Self-attention allows information to be combined across positions in the input sequence.

  61. 61

    What does the feed-forward network in a transformer block do, as described here?

    1. A

      It computes only the key-value cache used during inference

    2. B

      It compares the model's output with the correct token

    3. C

      It transforms the representation at each position

    4. D

      It selects which pretrained parameters must be frozen

    Correct answer
    C

    It transforms the representation at each position

    Explanation

    The feed-forward network transforms the representation at each position, alongside attention's mixing of information across positions.

  62. 62

    What gives a transformer model depth?

    1. A

      Calculating loss before the input is processed

    2. B

      Stacking many transformer blocks

    3. C

      Increasing the number of possible next tokens

    4. D

      Storing a larger key-value cache

    Correct answer
    B

    Stacking many transformer blocks

    Explanation

    A transformer obtains depth by stacking multiple blocks.

  63. 63

    What is the role of the output projection near the end of a transformer?

    1. A

      It produces logits that can be converted into token probabilities

    2. B

      It replaces the embeddings with optimizer states

    3. C

      It converts gradients into new input tokens

    4. D

      It selects the learning rate for each transformer block

    Correct answer
    A

    It produces logits that can be converted into token probabilities

    Explanation

    The output projection produces logits, which are then converted into token probabilities.

  64. 64

    How is the training loss for a next-token task obtained?

    1. A

      By comparing the optimizer state with the input embeddings

    2. B

      By measuring the size of the model's key-value cache

    3. C

      By comparing the model's token predictions with the correct token

    4. D

      By counting the number of transformer blocks

    Correct answer
    C

    By comparing the model's token predictions with the correct token

    Explanation

    The prediction is compared with the correct token to determine the loss.

  65. 65

    Through which parts of a transformer can gradient information flow backward during training?

    1. A

      From the optimizer state directly into the input text

    2. B

      From the loss only through the final transformer block

    3. C

      From the embeddings only into the output probabilities

    4. D

      From the loss through the output projection and transformer blocks, back toward embeddings

    Correct answer
    D

    From the loss through the output projection and transformer blocks, back toward embeddings

    Explanation

    Backpropagation follows the operations that created the prediction, from the loss through the output projection and blocks back to the embeddings.

  66. 66

    What does backpropagation do inside a transformer during training?

    1. A

      Produces the next token without a forward computation

    2. B

      Changes the model's vocabulary without calculating gradients

    3. C

      Reverses the input text and uses it as the target

    4. D

      Calculates how parameter changes in the operations that produced the prediction affect the loss

    Correct answer
    D

    Calculates how parameter changes in the operations that produced the prediction affect the loss

    Explanation

    Backpropagation computes gradient information through the operations that generated the prediction.

  67. 67

    Why is next-token pretraining a useful conceptual model of language-model training?

    1. A

      It illustrates how a model predicts a continuation, receives a loss signal, and updates parameters

    2. B

      It proves that every language-model objective is identical

    3. C

      It shows that language models never use transformer blocks

    4. D

      It demonstrates that inference and training require the same steps

    Correct answer
    A

    It illustrates how a model predicts a continuation, receives a loss signal, and updates parameters

    Explanation

    Next-token prediction provides a clear example of the training loop, although objectives and details can vary in practice.

  68. 68

    What does a language model typically do during inference when generating text?

    1. A

      Computes training loss and changes its weights after each token

    2. B

      Performs forward computations to generate a next token and then continues

    3. C

      Runs backpropagation through the prompt after every response

    4. D

      Updates its optimizer state before producing any output

    Correct answer
    B

    Performs forward computations to generate a next token and then continues

    Explanation

    Inference uses forward computation to generate tokens successively; it does not ordinarily update the model's weights.

  69. 69

    How are a cat classifier and a large language model structurally similar during training?

    1. A

      Both can follow the loop of prediction, loss, backpropagation, gradients, and optimizer update

    2. B

      Both use backpropagation only while answering users

    3. C

      Both must use identical inputs, outputs, and training objectives

    4. D

      Both can learn only if they contain the same number of parameters

    Correct answer
    A

    Both can follow the loop of prediction, loss, backpropagation, gradients, and optimizer update

    Explanation

    The task and scale differ, but both can use the same basic training loop.

  70. 70

    What is fine-tuning a pretrained model?

    1. A

      A method of generating answers using only a forward pass

    2. B

      A way to supply new context without changing any model parameters

    3. C

      Additional training that adapts the model using examples from a particular domain

    4. D

      A process that replaces the model's weights with training labels

    Correct answer
    C

    Additional training that adapts the model using examples from a particular domain

    Explanation

    Fine-tuning continues training so that a pretrained model adapts to examples from a target domain.

  71. 71

    In LoRA fine-tuning, which parameters are typically optimized?

    1. A

      Every pretrained parameter, while all adapter parameters remain frozen

    2. B

      Only the optimizer states, while the model has no trainable parameters

    3. C

      Only the model's input tokens, while all parameters remain unchanged

    4. D

      The smaller trainable adapter parameters, while most pretrained parameters remain frozen

    Correct answer
    D

    The smaller trainable adapter parameters, while most pretrained parameters remain frozen

    Explanation

    LoRA keeps most pretrained parameters frozen and trains much smaller adapter parameters.

  72. 72

    What is the main effect of using LoRA rather than updating all pretrained parameters?

    1. A

      It prevents the model from calculating gradients

    2. B

      It eliminates the need for a forward pass

    3. C

      It guarantees that fine-tuning requires no training data

    4. D

      It dramatically reduces the amount of trainable state

    Correct answer
    D

    It dramatically reduces the amount of trainable state

    Explanation

    Because only small adapters are trained, the amount of trainable state drops substantially.

  73. 73

    If most pretrained weights are frozen during LoRA training, what remains true about the training process?

    1. A

      The training can still use a forward pass, loss, backpropagation, and an optimizer

    2. B

      Backpropagation is no longer used for any trainable parameter

    3. C

      The model must switch to inference without calculating loss

    4. D

      The optimizer must update every frozen parameter

    Correct answer
    A

    The training can still use a forward pass, loss, backpropagation, and an optimizer

    Explanation

    LoRA changes which parameters are trainable, but the basic training loop still applies to the trainable adapters.

  74. 74

    Why does training generally require more memory and computation per token than inference?

    1. A

      Inference requires all gradients and optimizer states, while training needs only weights

    2. B

      Training also needs loss calculation, stored activations, backward computation, gradients, and optimizer state

    3. C

      Training does not reuse the forward computation, but inference does

    4. D

      Inference must update every model parameter after each token

    Correct answer
    B

    Training also needs loss calculation, stored activations, backward computation, gradients, and optimizer state

    Explanation

    Training requires additional stored information and computations beyond the forward pass and weights used mainly during inference.

  75. 75

    Why does training need intermediate activations?

    1. A

      The backward computation needs them to calculate gradients

    2. B

      They store the model's correct answers permanently

    3. C

      They eliminate the need for optimizer state

    4. D

      They replace the training examples after the forward pass

    Correct answer
    A

    The backward computation needs them to calculate gradients

    Explanation

    Training stores intermediate activations because they are needed during gradient computation.

  76. 76

    What additional state does Adam maintain that contributes to training memory use?

    1. A

      Additional values associated with every parameter

    2. B

      A separate transformer block for each token

    3. C

      A copy of every possible input prompt

    4. D

      A second copy of the training labels for inference

    Correct answer
    A

    Additional values associated with every parameter

    Explanation

    Adam keeps additional values for each parameter, so optimizer state can consume substantial memory.

  77. 77

    Which description best compares inference with training?

    1. A

      Inference mainly performs forward computation, while training adds loss, backpropagation, and weight updates

    2. B

      Inference updates weights, while training leaves weights fixed

    3. C

      Inference and training always require identical computations and memory

    4. D

      Inference requires a backward pass for every token, while training does not

    Correct answer
    A

    Inference mainly performs forward computation, while training adds loss, backpropagation, and weight updates

    Explanation

    Training adds loss calculation, gradient computation, and optimizer updates to the forward computation.

  78. 78

    Which statement about inference costs is supported?

    1. A

      Inference requires no computation once a model has been trained

    2. B

      Inference always costs more per token than training

    3. C

      Inference is not free and can involve costs such as the key-value cache

    4. D

      Inference requires the same optimizer state as training

    Correct answer
    C

    Inference is not free and can involve costs such as the key-value cache

    Explanation

    Serving a model has real costs, including the key-value cache, even though it generally avoids training's additional work.

  79. 79

    Why are GPUs useful for neural-network training?

    1. A

      They remove the need to calculate gradients

    2. B

      They store all training examples without using memory

    3. C

      They choose the correct training labels automatically

    4. D

      They are designed to run many numerical operations in parallel, including matrix multiplications

    Correct answer
    D

    They are designed to run many numerical operations in parallel, including matrix multiplications

    Explanation

    Neural networks involve large amounts of matrix multiplication, and GPUs can perform many numerical operations in parallel.

  80. 80

    Why does training involve more GPU work than simply running a forward prediction?

    1. A

      Inference calculates all gradients, while training calculates none

    2. B

      Training does not use matrix multiplication

    3. C

      Training includes forward computation plus backward computation and optimizer-related work

    4. D

      Training uses fewer parameters than inference by definition

    Correct answer
    C

    Training includes forward computation plus backward computation and optimizer-related work

    Explanation

    Training requires forward and backward computation, along with additional optimizer and memory work.

  81. 81

    Which combination contributes to the large compute requirements of training a modern model?

    1. A

      A small learning rate and a short sequence of model layers

    2. B

      Many parameters, many training tokens, forward and backward computation, and optimizer state

    3. C

      Only the model's vocabulary and output probabilities

    4. D

      Only the number of prompts served during inference

    Correct answer
    B

    Many parameters, many training tokens, forward and backward computation, and optimizer state

    Explanation

    Training costs grow from the model's parameters and training data, as well as forward and backward computation and optimizer state.

  82. 82

    What is the vanishing gradient problem?

    1. A

      Gradients become extremely small as they pass through a deep computation graph

    2. B

      The loss disappears because the model has no parameters

    3. C

      The optimizer stops calculating the forward prediction

    4. D

      Gradients grow so large that updates become unstable

    Correct answer
    A

    Gradients become extremely small as they pass through a deep computation graph

    Explanation

    In a deep graph, gradient signals can become extremely small as they propagate backward.

  83. 83

    What is a likely effect of vanishing gradients on early network layers?

    1. A

      They stop receiving input data during the forward pass

    2. B

      Their weights change too rapidly and become infinite

    3. C

      Their weights learn very slowly and may barely change

    4. D

      They automatically become nonlinear activation functions

    Correct answer
    C

    Their weights learn very slowly and may barely change

    Explanation

    Very small gradients provide weak update signals to early parts of the network, slowing their learning.

  84. 84

    What is the exploding gradient problem?

    1. A

      Gradient values become too small for early layers to learn

    2. B

      The optimizer stops storing intermediate activations

    3. C

      The model produces too many possible output tokens

    4. D

      Gradient values grow excessively, making updates unstable

    Correct answer
    D

    Gradient values grow excessively, making updates unstable

    Explanation

    Exploding gradients grow excessively and can destabilize parameter updates.

  85. 85

    What can happen to the loss when gradients explode?

    1. A

      It becomes identical to the learning rate

    2. B

      It can jump wildly or become not a number

    3. C

      It must steadily decrease to zero

    4. D

      It can no longer be calculated during a forward pass

    Correct answer
    B

    It can jump wildly or become not a number

    Explanation

    Unstable updates caused by exploding gradients can make the loss jump or produce a not-a-number value.

  86. 86

    What does gradient clipping do?

    1. A

      Makes small gradients larger so early layers learn faster

    2. B

      Removes the loss calculation from the training loop

    3. C

      Freezes every parameter in the network

    4. D

      Caps the size of gradients or updates to help stabilize training

    Correct answer
    D

    Caps the size of gradients or updates to help stabilize training

    Explanation

    Gradient clipping limits gradient size to help prevent excessively large updates.

  87. 87

    Which set consists of practical approaches mentioned for improving training stability?

    1. A

      Careful initialization, normalization layers, residual connections, and gradient clipping

    2. B

      Increasing the learning rate without limit and discarding optimizer state

    3. C

      Larger vocabularies, random labels, and removing the loss

    4. D

      Freezing all weights, eliminating activations, and skipping the forward pass

    Correct answer
    A

    Careful initialization, normalization layers, residual connections, and gradient clipping

    Explanation

    Initialization, normalization, residual connections, and gradient clipping are described as standard tools for training stability.

  88. 88

    Why would stacking only linear layers fail to produce genuinely complex relationships?

    1. A

      Linear layers cannot accept numerical inputs

    2. B

      A composition of linear functions is still linear

    3. C

      Stacking linear layers automatically removes all weights

    4. D

      The chain rule cannot be used with linear functions

    Correct answer
    B

    A composition of linear functions is still linear

    Explanation

    A linear function applied to another linear function remains linear, regardless of how many such layers are stacked.

  89. 89

    What do nonlinear activation functions allow a neural network to represent?

    1. A

      Loss values without performing a forward pass

    2. B

      Only a single weighted sum of inputs

    3. C

      Predictions without any model parameters

    4. D

      More complex, curved relationships

    Correct answer
    D

    More complex, curved relationships

    Explanation

    Nonlinear activations prevent stacked layers from collapsing into one linear function, allowing more complex relationships.

  90. 90

    Which activation-function history and usage summary is accurate?

    1. A

      Sigmoid and tanh make every network purely linear

    2. B

      Sigmoid and tanh were common historically, ReLU helped deep networks train, and transformers commonly use smoother variants such as GELU

    3. C

      GELU was replaced by sigmoid before neural networks became trainable

    4. D

      ReLU is a transformer block, while GELU is an optimizer

    Correct answer
    B

    Sigmoid and tanh were common historically, ReLU helped deep networks train, and transformers commonly use smoother variants such as GELU

    Explanation

    The content describes sigmoid and tanh as historically common, ReLU as helpful for deep networks, and smoother variants such as GELU as common in transformers.

  91. 91

    What broader property should neural-network structure have so gradients can guide learning?

    1. A

      Useful nonlinear and differentiable operations

    2. B

      No intermediate computations between input and output

    3. C

      Only discrete operations that cannot be differentiated

    4. D

      Identical weights in every layer

    Correct answer
    A

    Useful nonlinear and differentiable operations

    Explanation

    Gradient-guided learning relies on a useful differentiable structure, and nonlinear operations allow the network to model complex relationships.

  92. 92

    Why might a team fine-tune a pretrained model on its own operational examples?

    1. A

      To change the context supplied to the model without further training

    2. B

      To replace the model's predictions with fixed labels

    3. C

      To adapt the model to domain-specific data, terminology, and documentation

    4. D

      To make the model perform inference without any input

    Correct answer
    C

    To adapt the model to domain-specific data, terminology, and documentation

    Explanation

    Fine-tuning can adapt a pretrained model to a particular domain using examples from that domain.

  93. 93

    How does retrieval differ from fine-tuning?

    1. A

      Both methods necessarily update every model parameter

    2. B

      Fine-tuning supplies context without training, while retrieval performs backpropagation

    3. C

      Retrieval updates base weights; fine-tuning changes only the prompt

    4. D

      Retrieval changes the context supplied to the model; fine-tuning changes model parameters

    Correct answer
    D

    Retrieval changes the context supplied to the model; fine-tuning changes model parameters

    Explanation

    Fine-tuning changes parameters through additional training, while retrieval supplies relevant context without retraining the base weights.

  94. 94

    What does it mean for a model to be frozen during training?

    1. A

      Its forward computation is disabled

    2. B

      Its weights are updated after every inference token

    3. C

      Its loss is fixed at the same value for every example

    4. D

      Its weights are kept unchanged rather than optimized

    Correct answer
    D

    Its weights are kept unchanged rather than optimized

    Explanation

    Frozen weights are not updated during the training process.

  95. 95

    What is a key reason full fine-tuning of a very large model can be expensive?

    1. A

      Only inference, not training, requires storing model weights

    2. B

      A pretrained model cannot perform a forward pass

    3. C

      Updating billions of parameters requires substantial trainable state and computation

    4. D

      Fine-tuning requires removing all training examples

    Correct answer
    C

    Updating billions of parameters requires substantial trainable state and computation

    Explanation

    Training many parameters requires substantial computation and memory, which is why parameter-efficient approaches can be useful.

  96. 96

    What level of backpropagation knowledge is generally described as sufficient for an AI application developer?

    1. A

      Conceptual understanding of terms such as weights, loss, gradients, and training versus inference

    2. B

      No understanding of training concepts or terminology

    3. C

      The ability to derive every transformer equation from first principles

    4. D

      Full mastery of optimization theory and distributed training

    Correct answer
    A

    Conceptual understanding of terms such as weights, loss, gradients, and training versus inference

    Explanation

    Application developers benefit from conceptual knowledge, without necessarily needing heavy calculus.

  97. 97

    Which topics are especially relevant to an AI or ML engineer's deeper practical understanding?

    1. A

      Only prompt wording and tool selection

    2. B

      Only the history of calculus and neural networks

    3. C

      Gradient computation, optimizer behavior, learning rates, training stability, and fine-tuning memory needs

    4. D

      The ability to avoid all training and optimization concepts

    Correct answer
    C

    Gradient computation, optimizer behavior, learning rates, training stability, and fine-tuning memory needs

    Explanation

    The engineering level includes practical understanding of gradients, optimizers, learning rates, stability, fine-tuning, and memory.

  98. 98

    Which subjects are associated with the model or research engineer level?

    1. A

      Only prompt workflows, retrieval, and tool calling

    2. B

      Derivatives, the chain rule, Jacobians, automatic differentiation, optimization theory, and distributed training

    3. C

      Only model vocabulary and output probabilities

    4. D

      Only the difference between a user prompt and a response

    Correct answer
    B

    Derivatives, the chain rule, Jacobians, automatic differentiation, optimization theory, and distributed training

    Explanation

    The deepest level includes mathematical and systems topics such as derivatives, Jacobians, optimization, and distributed training.

  99. 99

    Why does understanding backpropagation help an engineer choose training infrastructure?

    1. A

      It clarifies why training needs backward computation and more memory than inference

    2. B

      It shows that training and inference have identical memory needs

    3. C

      It proves that inference requires no hardware resources

    4. D

      It makes optimizer state unnecessary during training

    Correct answer
    A

    It clarifies why training needs backward computation and more memory than inference

    Explanation

    Understanding the training loop helps explain why training infrastructure must support extra computation and memory.

  100. 100

    How can understanding backpropagation inform the choice between full and parameter-efficient fine-tuning?

    1. A

      It means every pretrained parameter must always be updated

    2. B

      It proves that full fine-tuning changes only the model's context

    3. C

      It clarifies why updating billions of parameters is expensive and why training fewer parameters can help

    4. D

      It shows that parameter-efficient fine-tuning never uses gradients

    Correct answer
    C

    It clarifies why updating billions of parameters is expensive and why training fewer parameters can help

    Explanation

    Understanding parameter updates and training costs helps explain the appeal of methods that optimize only a smaller set of parameters.

  101. 101

    What question about a model does the distinction between frozen and trainable parameters help an engineer answer?

    1. A

      Whether a prediction should be stored as a probability

    2. B

      Whether the input should be written as text or an image

    3. C

      Whether the model's weights should change at all

    4. D

      Whether the model should produce any output

    Correct answer
    C

    Whether the model's weights should change at all

    Explanation

    The distinction helps determine whether parameters should be updated or remain fixed.

  102. 102

    Why can gradient accumulation be useful during training?

    1. A

      It ensures that gradients are never calculated

    2. B

      It changes retrieval context without training

    3. C

      It replaces the model's parameters with training examples

    4. D

      Gradients can be accumulated across microbatches

    Correct answer
    D

    Gradients can be accumulated across microbatches

    Explanation

    Gradient accumulation lets training accumulate gradients across microbatches.

  103. 103

    What practical issue does gradient clipping address?

    1. A

      Large gradients that may destabilize training

    2. B

      The model's inability to perform a forward pass

    3. C

      The absence of context during retrieval

    4. D

      A shortage of correct labels in the training data

    Correct answer
    A

    Large gradients that may destabilize training

    Explanation

    Gradient clipping limits gradient size to help stabilize training when gradients become large.

  104. 104

    What kinds of decisions can an AI solution architect make more clearly with a conceptual model of training?

    1. A

      Whether to use a hosted API, retrieval, prompting, fine-tuning, or training

    2. B

      Which correct labels to use without examining the task

    3. C

      How to guarantee that all models use the same architecture

    4. D

      How to eliminate every computational cost of serving a model

    Correct answer
    A

    Whether to use a hosted API, retrieval, prompting, fine-tuning, or training

    Explanation

    Understanding the roles and costs of different approaches helps guide choices among APIs, retrieval, prompting, fine-tuning, and training.

  105. 105

    Does an AI agent retrying a task necessarily perform backpropagation?

    1. A

      No; retries are impossible unless the model is retrained

    2. B

      Yes; backpropagation is required whenever a model changes its response

    3. C

      Yes; every retry computes gradients through the model

    4. D

      No; an agent can retry during inference without updating model weights

    Correct answer
    D

    No; an agent can retry during inference without updating model weights

    Explanation

    An agent can go back and retry a task without computing gradients or changing the model's weights.

  106. 106

    Why is backpropagation not the same as reasoning, reflection, or chain of thought?

    1. A

      Reflection and backpropagation are identical because both revisit earlier steps

    2. B

      Reasoning always changes model weights, while backpropagation does not

    3. C

      Backpropagation occurs whenever a model generates multiple tokens

    4. D

      Backpropagation is a training mechanism for computing gradients, not a name for inference-time reasoning

    Correct answer
    D

    Backpropagation is a training mechanism for computing gradients, not a name for inference-time reasoning

    Explanation

    Backpropagation computes gradients during training; reasoning and related behaviors do not necessarily involve a backward pass or weight updates.

Question 1 of 106
Question 1 of 106

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent