Skip to main content

Backpropagation

Backpropagation

  • Core concepts
  • Stage 4 · Under the Hood
  • refs checked 2026-11-17
What problem it solves

Work backward from the loss to find how each layer’s parameters should change. It is the core algorithm of neural-network training.

What it is
The forward pass computes predictions and loss; the backward pass applies the chain rule layer by layer to get gradients. PyTorch’s autograd records the computation graph and performs this step automatically.
The forward pass computes outputs and loss; the backward pass applies the chain rule layer by layer to produce gradients for every parameter.
The forward pass computes outputs and loss; the backward pass applies the chain rule layer by layer to produce gradients for every parameter.
Why it matters

Without it, a training failure looks like magic. Vanishing gradients, exploding gradients and accumulation all live here.

Chinese aliases

Sources
  • Goodfellow et al., Deep Learning, Chapter 6 ↗
  • PyTorch autograd mechanics ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →