Moyan AI Training Institution LogoMoyan AI

Foundations · Foundational · Intermediate

Gradient Descent

The optimisation procedure that trains almost all neural networks by repeatedly stepping parameters in the direction that reduces loss.

What Gradient Descent is

Gradient descent treats training as walking downhill on a loss surface. The gradient points uphill, so the update moves the opposite way, scaled by a learning rate.

How it works

Stochastic gradient descent estimates the gradient on mini-batches instead of the full dataset. Adaptive optimisers such as Adam and AdamW maintain per-parameter step sizes and momentum, and schedules warm up then decay the learning rate.

Why it matters

Learning rate and optimiser choice dominate whether a large training run converges at all, which makes this the practical core of model training.

Common uses

  • Training every deep model
  • Fine-tuning
  • Embedding learning

Strengths

  • Scales to billions of parameters
  • Simple core idea

Watch for

  • Learning rate is finicky
  • No guarantee of a global optimum

Continue exploring

More in this collection

Browse all AI Concepts