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.
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.