AI GLOSSARY · AI CONCEPTS

Backpropagation

Markdown version · Wikidata Q798503

Definition

Backpropagation computes derivatives through a neural network by applying the chain rule backward through its operations. An optimizer can use those gradients to update weights. Computing a gradient and applying an update are separate steps.

Also called: back propagation, backprop, backpropagation algorithm, back-propagation.

In plain language

Backpropagation works out how a small change to a network's internal values would affect a chosen output or loss. It applies the chain rule backward through the calculation. The result is a set of gradients, which an optimizer can use during training. A gradient measures local sensitivity; it is not a percentage share of blame or a complete explanation of a decision.

Technical definition

Backpropagation applies the chain rule in reverse through a differentiable computation to obtain requested derivatives. In neural-network training, a forward computation produces a loss and a backward computation obtains parameter gradients. An optimizer may then use those gradients in a separate update. Gradients can also support sensitivity calculations without changing parameters.

Worked examples in this catalogue

Catalogue examples point at a skill, guide or coding tool listed on this site, with what to run and what you see. An example marked illustrative describes the item from its own documentation; it was not executed for this page. Platform Scores are our assessment under a published method, not a safety guarantee.

  1. Guide · Illustrative, not executed

    What Is an LLM? The Facts Agent Users Need

    What you see
    The guide explains what a language model can and cannot do from the point of view of someone running a coding agent, including that it answers from its training and from whatever the request contains.
    Why it exercises the concept
    Backpropagation supports gradient-based training and other derivative calculations. The linked guide provides inference background; it does not demonstrate differentiation.
  2. Skill by Skill Almanac · Illustrative, not executed

    local-model-sizing 57/100 · Provisional, not yet measuredScored · Method v0.2 · How we score

    What you see
    Works out whether an open-weight language model will run on a given GPU, Mac or PC, with a script that computes weight, KV-cache and overhead memory per quantization.
    Why it exercises the concept
    The linked skill estimates weight-memory requirements. It does not compute gradients or perform training; differentiation and optimizer updates are separate operations.
  3. Coding tool · Illustrative, not executed

    Claude Code

    What to try
    /model
    What you see
    Claude Code opens a picker and switches the model for the rest of the session; later answers in the same session come from the model you picked.
    Why it exercises the concept
    An agent can write code that computes derivatives. Supplying ordinary context to a fixed-weight model request does not itself update its parameters.

How it shows up when you use agents

A fixed-weight inference request need not compute gradients or update parameters. An agent can nevertheless run training or gradient-based analysis code. Backpropagation is a calculation used in those workflows, not a guarantee that learning or an update occurred.

Where the idea does reach you:

  • Typing into a session is not training. In a fixed-weight request, corrections change the input context without updating parameters. If a model keeps repeating a mistake, change the prompt, the instruction file or the model, not the "training".
  • Changing the weights is a separate job. Adjusting a model to your data is called fine-tuning, and gradient-based methods are common. The training procedure and cost depend on the model and method.
  • Training write-ups mention gradients. A gradient-based training report should distinguish differentiation from the optimizer update.

If you came here from an agent error, the next action is to look at the prompt and the tool results, which are what you control. See Deep learning for where training sits in the larger picture.

Worked example (illustrative)

Take the toy loss L(w)=(2w−1)² at w=1. Applying the chain rule gives dL/dw=4(2w−1)=4. Computing that derivative leaves w equal to 1. A separate gradient step with learning rate 0.1 gives w_new=0.6. The chosen step lowers this toy loss from 1 to 0.04; this does not guarantee that every finite gradient step improves a general objective.

Common confusions

  • Backpropagation versus gradient descent. Backpropagation computes local derivatives of the selected objective. Gradient descent, or another optimiser, uses them to move the weights. The learning rate and optimization setup matter: a finite update need not reduce the loss, and a computed gradient does not itself update a weight. See Gradient descent.
  • Backpropagation versus the forward pass. The forward pass turns input into a prediction. A backward pass computes derivatives of a selected quantity. This can support training or other analyses; a forward-only request need not compute those derivatives.
  • Backpropagation versus a model learning from your chat. Adding text to a fixed-weight model request changes context, not parameters. Any later training or adaptation is a separate operation.
  • Backpropagation versus a loss function. The loss function measures how wrong the output is. Backpropagation turns that measurement into a gradient for each weight. See Loss function.
Show all 16 related terms

Terms that mention Backpropagation

20 terms mention this one

More in AI concepts

Next steps

  1. What Is an LLM? The Facts Agent Users Need The long-form guide.
  2. local-model-sizing A skill that exercises it.
  3. Neural network Related term.
  4. Deep learning Related term.
  5. All glossary terms A to Z and by family.

Sources

Definitions are written by Skill Almanac from these sources and were checked against them on 2026-11-24. Wikipedia is never the only source.

Review record

Last verified

Drafted by Claude (original draft) and Codex (automated revisions); sources and example targets checked by Independent automated source review (OpenAI Codex); not human peer review on 2026-11-24. Last verified .

Change log (8)
  • : Independent automated factual/example review completed. Cached US query estimate aligned to receipt; no traffic promise. Final technical gate recorded separately; publication disabled.
  • : First version.
  • : Verifier pass: applied verifier corrections to unsourced or overstated claims.
  • : Targeted correction from source-supported early audit; complete exact-version review remains pending.
  • : US volume updated from older derived-cache1000 to raw Google Ads observation5400, task11240105-2733-0367-0000-e642b2c1b725; not an AI-only traffic estimate.
  • : Learning-method scope and counterexample corrections; independent exact-version review pending.
  • : Aligned related-tool explanations with scoped definitions; no blanket claims about the full catalog.
  • : Automated review completed; approved for the staged public release. Search indexing is controlled by the release configuration.