SGD with momentum escapes local minima better than vanilla SGD

Ever felt stuck on a hill, unable to find the way down?

Image: Gnsin, CC BY-SA 3.0, via Wikimedia Commons

SGD with momentum escapes local minima better than vanilla SGD

Ever felt stuck on a hill, unable to find the way down?

Imagine you're hiking and suddenly realize you're on a hill instead of a trail. You want to find the lowest point to start your descent safely.

Stochastic Gradient Descent (SGD) with momentum is like taking small, random steps downhill, but with a twist that helps you slide over small bumps more smoothly and consistently, avoiding getting stuck on small hills.

Example

Say you're walking down a hill (the hill represents a high-dimensional optimization problem). Normally, you might take a step forward (vanilla SGD), but with SGD with momentum, you take a step forward and then slide a bit more in the same direction, helping you avoid getting stuck on small hills (local minima).

Remember this

SGD with momentum helps escape local minima by combining random steps with a sliding motion, making it easier to find the lowest point.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath