Skip to main content

Gradient Descent

Gradient Descent

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

Update parameters in the direction opposite the gradient, in small steps, so the loss goes down.

What it is
Each step computes a gradient on a batch and scales it by the learning rate before updating weights. SGD, Adam and AdamW are variants that differ in how they use gradient history.
Gradient descent takes repeated small steps on the loss surface: the gradient gives the direction and the learning rate gives the step size.
Gradient descent takes repeated small steps on the loss surface: the gradient gives the direction and the learning rate gives the step size.
Why it matters

Learning rate, batch size and optimizer interact. The same hyperparameters often stop working when the model or data changes.

Chinese aliases

Sources
  • PyTorch optimization loop tutorial ↗
  • Goodfellow et al., Deep Learning, Chapter 8 ↗
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 →