Machine Learning Fundamentals · free preview

Momentum on an Ill-Conditioned Loss

When the loss curves far more sharply in one direction than another, gradient descent cannot take a step that is safe in every direction, and momentum averages past gradients to keep moving along the flat one.

1. A loss with a ravine

A loss with a ravine

2. Averaging the past gradients

Averaging the past gradients

3. What momentum does and does not fix

What momentum does and does not fix

4. Why momentum helps on a ravine

On f(x)=0.1x12+2x22f(\mathbf{x}) = 0.1x_1^2 + 2x_2^2, plain gradient descent zigzags across the steep x2x_2 wall while advancing slowly along the flat x1x_1 floor. Which path property is most plausible after momentum is added?

5. The velocity update

With β=0.9\beta = 0.9, v0=0v_0=0, and g1=2g_1=2, the first velocity is v1=2v_1=2. If the next gradient is g2=1.8g_2=1.8, the updated velocity v2=βv1+g2v_2 = \beta v_1 + g_2 is ____. Answer with one value.

Practice this interactively

Free account · instant grading · spaced review that schedules itself.

Start this course for free