AI engineering glossary · Calculus optimisation

What is momentum?

Momentum (also called Heavy-ball method, SGD with momentum): An optimisation trick that keeps a running velocity, an exponentially weighted sum of past gradients, and updates parameters using it. Steps in consistent directions build speed while oscillating directions cancel, which accelerates progress along narrow valleys.

Level: intermediateTopic: Calculus optimisation

Momentum: an example

With momentum 0.9, velocity = 0.9 * velocity + gradient, then weights change by learning rate times velocity.

Related terms

More Calculus optimisation terms

Where you learn it

Momentum is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.