Gradient

Courses

∇\nabla∇The maths behind AI0/72
π\piπMaths0/84
⋆\star⋆AI for everyone0/10
Γ\GammaΓGame theory0/49
py\texttt{py}pyPython for AI0/15
y^\hat{y}y^​Build your own AI0/15
All courses

Tuition

My tuitionOlympiad trackCompetitions

Practice

ProjectsAsk a questionTrain on a GPUExplorationsMaths StoriesUnsolved problemsPlaygroundScience labsMock testsOlympiad

Reference

GlossaryBlogDiscoveries
Glossary › Adam

What is Adam?

An optimiser that combines momentum with a separate step size for every parameter, based on the recent size of its gradients. The default for training transformers.

Where it is taught

Momentum and Adam. Plain gradient descent zig-zags in narrow valleys and crawls across flat ones. Two improvements fix that, and nearly every modern model is trained with them.

What the lesson leaves you with

  • Mini-batches trade an exact gradient for many fast, noisy steps.
  • Momentum averages recent steps, damping zig-zags and speeding up steady progress.
  • Adam adds a per-parameter step size, and is the default optimiser for modern models.
Open the lesson

Questions

What is Adam?
An optimiser that combines momentum with a separate step size for every parameter, based on the recent size of its gradients. The default for training transformers.
Where is Adam used in AI?
Plain gradient descent zig-zags in narrow valleys and crawls across flat ones. Two improvements fix that, and nearly every modern model is trained with them.
What is the key idea to remember about Adam?
Mini-batches trade an exact gradient for many fast, noisy steps.
Where can I learn Adam step by step?
In the lesson “Momentum and Adam” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.

Related terms

  • Batch
  • Epoch
  • Gradient descent
  • Learning rate
  • Loss
  • Momentum