What is momentum?
Keeping a running velocity of past gradient steps so that consistent directions build up speed and zig-zags cancel out.
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 momentum?
- Keeping a running velocity of past gradient steps so that consistent directions build up speed and zig-zags cancel out.
- Where is momentum 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 momentum?
- Mini-batches trade an exact gradient for many fast, noisy steps.
- Where can I learn momentum step by step?
- In the lesson “Momentum and Adam” in Gradient’s course on the maths behind AI, with interactive diagrams and questions.