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

  • 110Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Network Learning
In a house-price model, adjustable numbers that determine how strongly inputs such as size or location affect the prediction are called
.

110 questions

  1. 1
    In a house-price model, adjustable numbers that determine how strongly inputs such as size or location affect the prediction are called
    _____
    .
    Hint

    Think of the adjustable knobs inside a model.

    Answer

    weights

  2. 2
    In the house-price example, changing the weight associated with house size changes how much
    _____
    influences the predicted price.
    Hint

    This is the input linked to that particular adjustable knob.

    Answer

    the size

  3. 3
    A neural network's adjustable parameters can number in the millions or even
    _____
    .
    Hint

    This is an even larger scale of parameter count.

    Answer

    billions

  4. 4
    When a neural network's prediction is wrong, the central training challenge is determining which weights to change, in which direction, and
    _____
    .
    Hint

    A useful update requires a direction as well as a magnitude.

    Answer

    by how much

  5. 5
    In the tea analogy, the amounts of tea, sugar, and milk, along with the brewing time, represent the model's
    _____
    .
    Hint

    These are the recipe choices that can be adjusted.

    Answer

    weights

  6. 6
    In the tea analogy, making the tea corresponds to
    _____
    in a neural network.
    Hint

    This is the stage where inputs are processed to produce an outcome.

    Answer

    forward propagation

  7. 7
    In the tea analogy, the taste and rating of the tea represent the model's
    _____
    .
    Hint

    This measures how unsatisfactory the result was.

    Answer

    loss

  8. 8
    In the tea analogy, tracing a poor rating backward to identify which recipe choices contributed to it represents
    _____
    .
    Hint

    This works backward from the result to analyze parameter effects.

    Answer

    backpropagation

  9. 9
    In the tea analogy, changing the recipe after receiving feedback corresponds to
    _____
    .
    Hint

    This is the step that uses information to adjust choices.

    Answer

    optimization

  10. 10
    In the tea analogy, repeatedly making the tea, assessing it, and adjusting the recipe represents
    _____
    .
    Hint

    This is the repeated learning process.

    Answer

    training

  11. 11
    The first stage in the basic neural-network loop sends input through layers to produce a
    _____
    .
    Hint

    It is the network's output before its error is evaluated.

    Answer

    prediction

  12. 12
    A network that assigns a cat image a higher probability for dog than for cat has made a
    _____
    before any learning update occurs.
    Hint

    The forward pass produces an output, but has not yet changed the weights.

    Answer

    guess

  13. 13
    The single number used during training to represent how wrong a model's prediction was is the
    _____
    .
    Hint

    It turns prediction error into a quantity the training process can use.

    Answer

    loss

  14. 14
    In the basic learning loop, the optimizer updates model
    _____
    after using gradient information.
    Hint

    These are the learned adjustable parameters.

    Answer

    weights

  15. 15
    The mathematical rule that connects the effect of a tap on water flow to the effect of water flow on tank level is the
    _____
    .
    Hint

    It combines dependent effects link by link.

    Answer

    chain rule

  16. 16
    Backpropagation determines how changing each parameter would affect the final
    _____
    .
    Hint

    It starts from the model's measured mistake.

    Answer

    error

  17. 17
    During a backward pass, backpropagation calculates gradient information through the network's
    _____
    .
    Hint

    This represents the connected operations that produced the prediction.

    Answer

    computational graph

  18. 18
    If increasing a weight from five point zero to five point one makes the error worse, training should move that weight in the
    _____
    direction.
    Hint

    The update should counteract the change that increased the error.

    Answer

    opposite

  19. 19
    A gradient describes both the direction the loss moves when a parameter changes and how
    _____
    the loss reacts.
    Hint

    The gradient conveys the magnitude of the loss's response as well as its direction.

    Answer

    strongly

  20. 20
    A gradient is information about a parameter change; it does not update the parameter by
    _____
    .
    Hint

    Another component must use the gradient to take a step.

    Answer

    itself

  21. 21
    In the foggy-hill analogy, the slope indicating which way is downhill represents the
    _____
    .
    Hint

    Backpropagation calculates this information about the slope.

    Answer

    gradient

  22. 22
    In the foggy-hill analogy, the component that actually takes a step after the downhill direction is known is the
    _____
    .
    Hint

    It uses the slope information rather than calculating it.

    Answer

    optimizer

  23. 23
    For a chain of dependent calculations, backpropagation efficiently applies the
    _____
    across the computational graph.
    Hint

    This calculus rule combines the effects of linked operations.

    Answer

    chain rule

  24. 24
    Backpropagation avoids recomputing every effect from scratch by reusing shared
    _____
    from earlier computations.
    Hint

    These are values already produced while calculating the network's output.

    Answer

    intermediate results

  25. 25
    The notation describing loss with respect to a weight asks how the loss changes if that weight changes
    _____
    .
    Hint

    It concerns the local effect of a small parameter change.

    Answer

    slightly

  26. 26
    Stochastic gradient descent, or SGD, takes a simple step in the
    _____
    direction.
    Hint

    This is the direction that aims to reduce loss.

    Answer

    downhill

  27. 27
    Unlike a simple SGD step, Adam keeps a running estimate of the slope and adapts the
    _____
    over time.
    Hint

    This is the movement size used to update a parameter.

    Answer

    step

  28. 28
    AdamW is a refinement of Adam that handles
    _____
    differently.
    Hint

    This term refers to a method related to controlling weight values.

    Answer

    weight decay

  29. 29
    The hyperparameter that controls the scale of each weight update is the
    _____
    .
    Hint

    It determines how large the optimizer's steps are.

    Answer

    learning rate

  30. 30
    If the learning rate is too small, training makes tiny updates and progress becomes
    _____
    .
    Hint

    The model still moves toward improvement, but very slowly.

    Answer

    painfully slow

  31. 31
    If the learning rate is too large, updates can overshoot the valley, making the loss jump around and possibly never
    _____
    .
    Hint

    The loss may fail to stabilize near a low point.

    Answer

    settle

  32. 32
    A learning rate is a hyperparameter because engineers choose it rather than
    _____
    it from data.
    Hint

    Contrast this with weights, which are adjusted during training.

    Answer

    learn

  33. 33
    In the training loop, forward propagation produces a prediction, and the loss measures its error before backpropagation calculates the
    _____
    .
    Hint

    These indicate how parameter changes affect the loss.

    Answer

    gradients

  34. 34
    In the simple model whose output is input multiplied by one weight, an input of five and a target output of ten require a final weight of
    _____
    .
    Hint

    Multiplying five by this value produces ten.

    Answer

    two

  35. 35
    Real training chooses weight updates using gradient-based updates rather than guessing parameter increments by
    _____
    .
    Hint

    The example's trial values illustrate the idea, not the actual update procedure.

    Answer

    hand

  36. 36
    A naive approach to training a model with a billion weights would require a separate full model evaluation for each weight to measure its
    _____
    .
    Hint

    The method tests how changing each individual weight influences the result.

    Answer

    effect

  37. 37
    Backpropagation computes gradients for all weights in a single
    _____
    after the forward calculation and loss computation.
    Hint

    This is the reverse stage of the training loop.

    Answer

    backward pass

  38. 38
    Because backpropagation's cost stays close to the cost of the forward pass instead of scaling with one full evaluation per weight, it helped make
    _____
    networks practical.
    Hint

    These networks have many layers and parameters.

    Answer

    deep

  39. 39
    A very deep computation graph can cause gradient signals to become extremely small, a problem called the
    _____
    .
    Hint

    The signal fades as it travels backward toward earlier layers.

    Answer

    vanishing gradient problem

  40. 40
    When gradients vanish, the earliest parts of the network learn slowly because their weights
    _____
    .
    Hint

    Very small gradient signals result in very small updates.

    Answer

    barely move

  41. 41
    When gradient values grow excessively and updates become unstable, the problem is called the
    _____
    .
    Hint

    Unlike vanishing gradients, the signals become too large.

    Answer

    exploding gradient problem

  42. 42
    The technique that caps the size of a gradient update to stabilize training is called
    _____
    .
    Hint

    It limits unusually large gradients.

    Answer

    gradient clipping

  43. 43
    Careful initialization, normalization layers, residual connections, and gradient clipping are practical tools for improving training
    _____
    .
    Hint

    These methods help prevent training from becoming difficult or unstable.

    Answer

    stability

  44. 44
    If every layer were purely linear, stacking layers would still produce a linear function, preventing the network from learning genuinely
    _____
    shapes.
    Hint

    These relationships cannot be represented by merely stacking linear transformations.

    Answer

    complex

  45. 45
    Activation functions let networks represent complicated relationships by introducing
    _____
    into the layers.
    Hint

    This prevents stacked layers from collapsing into one linear function.

    Answer

    nonlinearity

  46. 46
    Historically common activation functions included sigmoid and
    _____
    .
    Hint

    It is another traditional activation function named alongside sigmoid.

    Answer

    tanh

  47. 47
    The activation function that made deep networks much easier to train after sigmoid and tanh were common was
    _____
    .
    Hint

    Its name is an abbreviation for rectified linear unit.

    Answer

    ReLU

  48. 48
    Modern transformers commonly use smoother activation variants such as GELU and
    _____
    style feed-forward blocks.
    Hint

    This is the other modern transformer example mentioned with GELU.

    Answer

    SwiGLU

  49. 49
    For gradients to guide learning through a network, its structure needs to be useful, nonlinear, and
    _____
    .
    Hint

    Gradients rely on being able to calculate how outputs change with inputs or parameters.

    Answer

    differentiable

  50. 50
    The mathematics underlying backpropagation comes from calculus, especially the
    _____
    .
    Hint

    It describes derivatives through linked computations.

    Answer

    chain rule

  51. 51
    In a transformer, input tokens are first converted into
    _____
    before being processed by transformer blocks.
    Hint

    These are vector representations of tokens.

    Answer

    embeddings

  52. 52
    Within a transformer block, the component that mixes information between token positions is
    _____
    .
    Hint

    It allows positions to exchange information.

    Answer

    self attention

  53. 53
    Within a transformer block, the feed-forward network transforms
    _____
    .
    Hint

    It operates on the representations associated with token locations.

    Answer

    each position

  54. 54
    In a transformer, the final output projection produces values called
    _____
    before they are converted into token probabilities.
    Hint

    They are the scores immediately preceding probability conversion.

    Answer

    logits

  55. 55
    During transformer backpropagation, gradient information eventually flows back through the network into the
    _____
    .
    Hint

    These are the token representations at the beginning of the model's processing.

    Answer

    embeddings

  56. 56
    The mathematical and computational ideas behind backpropagation were used in control theory and optimization before becoming widely known for
    _____
    .
    Hint

    These are the models the method later helped train.

    Answer

    neural networks

  57. 57
    In 1974, Paul Werbos described using backpropagation-style ideas for neural networks in his
    _____
    .
    Hint

    This is the academic work in which he described the ideas.

    Answer

    doctoral thesis

  58. 58
    The 1986 landmark paper that helped make backpropagation practical and popular was published by David Rumelhart, Geoffrey Hinton, and
    _____
    .
    Hint

    He is the third researcher named with Rumelhart and Hinton.

    Answer

    Ronald Williams

  59. 59
    Backpropagation is a standard, efficient way to compute gradients for modern
    _____
    training.
    Hint

    This kind of training relies on gradients to guide parameter updates.

    Answer

    gradient-based

  60. 60
    Rule-based systems, search algorithms, expert systems, decision trees, and random forests can operate without
    _____
    .
    Hint

    These are examples showing that AI is broader than neural-network training.

    Answer

    backpropagation

  61. 61
    A neural network is a computational structure that can perform its forward calculations even if its weights were found without
    _____
    .
    Hint

    The network's structure is distinct from the method used to select its weights.

    Answer

    backpropagation

  62. 62
    In evolutionary strategies, networks with better scores are kept, their weights are mutated, and a new
    _____
    is created.
    Hint

    This is the next group of candidate networks in the population.

    Answer

    generation

  63. 63
    Zeroth order optimization estimates gradients by
    _____
    the system.
    Hint

    It tests the system to infer how changes affect the outcome.

    Answer

    probing

  64. 64
    Feedback alignment uses fixed random
    _____
    to provide feedback through a network.
    Hint

    These are connections used to transmit learning signals backward.

    Answer

    feedback connections

  65. 65
    Unlike gradient-based methods, target propagation sends target
    _____
    instead of gradients.
    Hint

    These are the layer-level values that the method uses as targets.

    Answer

    activations

  66. 66
    Forward mode differentiation is especially useful when the number of outputs is many and the number of inputs is
    _____
    .
    Hint

    It is suited to the case where inputs are the smaller count.

    Answer

    few

  67. 67
    For huge differentiable networks, backpropagation is computationally useful because it exploits known mathematical relationships instead of
    _____
    testing changes.
    Hint

    This contrasts backpropagation with uninformed trial and error.

    Answer

    blindly

  68. 68
    Modern large transformers are overwhelmingly trained with gradient-based optimization, with gradients computed through automatic differentiation, which is
    _____
    .
    Hint

    It is the reverse gradient-computation process discussed throughout the material.

    Answer

    backpropagation

  69. 69
    The conceptual model for LLM pretraining in which a model predicts the next token is
    _____
    .
    Hint

    The model learns to choose what text should follow the current sequence.

    Answer

    next token prediction

  70. 70
    In a next-token training example, the correct token is compared with the model's predicted probabilities to compute the
    _____
    .
    Hint

    This measures the mistake before gradients are calculated.

    Answer

    loss

  71. 71
    When an LLM answers a prompt during ordinary inference, it performs a forward computation but no backward pass through the
    _____
    .
    Hint

    These parameters remain unchanged while the model produces its answer.

    Answer

    weights

  72. 72
    During inference, an LLM produces a sequence by generating the next token, then the next, with no loss calculation or
    _____
    .
    Hint

    These are the changes made to parameters during training.

    Answer

    weight updates

  73. 73
    The distinction between training and inference is that training updates weights, while inference leaves the
    _____
    unchanged.
    Hint

    These are the model parameters altered during training.

    Answer

    weights

  74. 74
    Compared with inference, training must retain intermediate
    _____
    because the gradients need them.
    Hint

    These are values produced inside the network during the forward computation.

    Answer

    activations

  75. 75
    In addition to forward computation, loss, and backward computation, training must store gradients and
    _____
    .
    Hint

    Adam keeps additional values of this kind for every parameter.

    Answer

    optimizer state

  76. 76
    Adam increases training memory requirements partly because it keeps additional values for every
    _____
    .
    Hint

    These are the model's individual adjustable values.

    Answer

    parameter

  77. 77
    Although inference has real costs, including the key value cache, training is generally substantially heavier per
    _____
    processed.
    Hint

    This is the unit used to compare processing cost in the passage.

    Answer

    token

  78. 78
    GPUs suit neural-network training because they can run thousands of small numerical operations in
    _____
    .
    Hint

    Many operations can be performed at the same time.

    Answer

    parallel

  79. 79
    Training requires more computation than inference because it adds backward computation and optimizer work on top of the
    _____
    computation.
    Hint

    This is the computation inference mainly needs.

    Answer

    forward

  80. 80
    A conceptual example of a cat classifier and an LLM illustrates that both use the same training loop at different
    _____
    .
    Hint

    The process is structurally alike even though the models differ greatly in size and data.

    Answer

    scale

  81. 81
    A cat classifier that predicts dog incorrectly and an LLM predicting a next token follow the same structural sequence of prediction, loss, backpropagation, and
    _____
    .
    Hint

    This is the optimizer's change to the model after gradients are computed.

    Answer

    weight update

  82. 82
    Fine tuning is
    _____
    training of a model that already has pretrained parameters.
    Hint

    It continues training rather than starting with no prior training.

    Answer

    additional

  83. 83
    Fine tuning a pretrained model on specialized examples adapts it to a particular
    _____
    .
    Hint

    Examples might contain specialized incident data or terminology.

    Answer

    domain

  84. 84
    During fine tuning, examples pass through a forward pass, loss computation, backpropagation, and an optimizer that updates selected
    _____
    .
    Hint

    These are the values the fine-tuning process chooses to adjust.

    Answer

    parameters

  85. 85
    LoRA stands for
    _____
    .
    Hint

    It is a parameter-efficient fine-tuning method named in the material.

    Answer

    low rank adaptation

  86. 86
    In LoRA, most pretrained model parameters are
    _____
    rather than optimized.
    Hint

    They are left unchanged while smaller added components are trained.

    Answer

    frozen

  87. 87
    In LoRA, the small components that are optimized while the base model remains mostly unchanged are called trainable
    _____
    .
    Hint

    These are attached to the large pretrained model.

    Answer

    adapters

  88. 88
    LoRA dramatically reduces the amount of
    _____
    compared with updating all the pretrained parameters.
    Hint

    This is the part of the model's parameter state that must be optimized.

    Answer

    trainable state

  89. 89
    Even when LoRA trains only adapters, it still uses a forward pass, loss, backpropagation, and an
    _____
    .
    Hint

    It uses gradients to update the trainable adapter parameters.

    Answer

    optimizer

  90. 90
    Retrieval changes the context supplied to a model without retraining its base
    _____
    .
    Hint

    These are the pretrained parameters that retrieval leaves unchanged.

    Answer

    weights

  91. 91
    Full fine tuning can be expensive because it may update
    _____
    of parameters.
    Hint

    This is the scale of a large model's adjustable values.

    Answer

    billions

  92. 92
    A developer building prompt workflows, tool-calling agents, retrieval-augmented generation, or orchestration pipelines does not need to derive backpropagation's
    _____
    to be productive.
    Hint

    Conceptual understanding can be useful even without doing this.

    Answer

    mathematics

  93. 93
    An AI application developer should understand concepts such as weights, loss, gradients, optimizers, forward passes, and the difference between training and
    _____
    .
    Hint

    It is the process of using a trained model to produce outputs.

    Answer

    inference

  94. 94
    An AI or ML engineer should understand gradient computation, optimizer behavior, learning rates, training stability, batch size, and
    _____
    .
    Hint

    It is one of the practical training techniques listed for this role.

    Answer

    gradient accumulation

  95. 95
    The deeper mathematics for a model or research engineer includes derivatives, the chain rule, Jacobians, automatic differentiation, and
    _____
    .
    Hint

    It is the theoretical study of how optimization methods behave.

    Answer

    optimization theory

  96. 96
    The depth of backpropagation knowledge someone needs should match their
    _____
    .
    Hint

    Different roles require different levels of mathematical and practical depth.

    Answer

    responsibilities

  97. 97
    Choosing between a hosted API, retrieval, prompt engineering, fine tuning, or training is the kind of decision made by an AI solution
    _____
    .
    Hint

    This role chooses among different system-building approaches.

    Answer

    architect

  98. 98
    Understanding training costs helps engineers reason about why training infrastructure differs from
    _____
    infrastructure.
    Hint

    This is the infrastructure used to serve a trained model.

    Answer

    inference

  99. 99
    The choice between full fine tuning and parameter-efficient fine tuning matters because updating billions of parameters is
    _____
    .
    Hint

    The cost motivates methods that train only a smaller subset.

    Answer

    expensive

  100. 100
    When deciding between fine tuning and retrieval, remember that fine tuning changes model parameters, while retrieval changes the supplied
    _____
    .
    Hint

    This is the information provided alongside a prompt without retraining base weights.

    Answer

    context

  101. 101
    When deciding whether to use a frozen or trainable model, the key question is whether the model's
    _____
    should change at all.
    Hint

    These parameters are updated during training but left fixed when frozen.

    Answer

    weights

  102. 102
    Understanding that training stores activations, gradients, and optimizer state helps predict why it requires more
    _____
    than serving.
    Hint

    These additional stored values increase this resource requirement.

    Answer

    memory

  103. 103
    Understanding learning rates helps explain why optimization might diverge or learn
    _____
    .
    Hint

    A rate that is too small can produce this outcome.

    Answer

    slowly

  104. 104
    Accumulating gradients across micro batches is called
    _____
    .
    Hint

    The name describes combining gradient contributions across smaller batches.

    Answer

    gradient accumulation

  105. 105
    An agent that retries a task or reflects on an answer is not necessarily performing
    _____
    .
    Hint

    Retrying is not the same as computing gradients to update model weights.

    Answer

    backpropagation

  106. 106
    When a user asks an LLM a question and it produces an answer, the model is performing
    _____
    rather than a backward pass through its weights.
    Hint

    This is the forward-only process of using a trained model.

    Answer

    inference

  107. 107
    Backpropagation is fundamentally a training mechanism for computing gradients, not the same thing as reasoning, reflection, or
    _____
    .
    Hint

    This phrase refers to a style of reasoning rather than parameter-gradient computation.

    Answer

    chain of thought

  108. 108
    In the simple summary of the training loop, 'guess' means forward propagation, 'score' means loss, and 'trace' means
    _____
    .
    Hint

    This step works backward from the measured error.

    Answer

    backpropagation

  109. 109
    In the same training-loop summary, 'adjust' means the optimizer updating the
    _____
    .
    Hint

    These are the parameters changed using gradient information.

    Answer

    weights

  110. 110
    In the training-loop summary, repeating the guess, score, trace, and adjust steps is called
    _____
    .
    Hint

    This repeated process causes the model's parameters to improve.

    Answer

    training

1 of 110
Question 1 of 110

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent