1
$\begingroup$

Classical gradient descent algorithms sometimes overshoot and escape minima as they depend on the gradient only. You can see such a problem during the update from point 6.

enter image description here

In classical GD algorithm, the update equation is

$$\theta_{t+1} = \theta_{t} - \eta \times \triangledown_{\theta} \ell$$

In the momentum based GD algorithm, the update equations are

$$v_0 = 0$$ $$v_{t+1} = \alpha v_t + \eta \times \triangledown_{\theta} \ell $$ $$\theta = \theta - \eta \times \triangledown_{\theta} \ell$$

I am writing all the equations concisely by removing the obvious variables used such as inputs to loss functions. In the lecture I'm listening to, the narrator says that momentum-based GD helps during the update at point 6 and the update will not lead to point 7 as shown in the figure and goes towards minima.

But for me, it seems that even momentum-based GD will go to point 7 and the update at point 7 will be benefited from the momentum-based GD as it does not lead to point 8 and goes towards minima.

Am I correct? If not, at which point does the momentum-based GD actually help?

$\endgroup$
1
  • $\begingroup$ Your momentum update equations look wrong. Importantly, the last one which updates parameters is not modified from basic gradient descent. It doesn't use the momentum. Could you check whether this is really the version you want to ask about? $\endgroup$ Commented Mar 7 at 8:23

3 Answers 3

0
$\begingroup$

What your professor most probably means is that since momentum adds your previous gradient to the current (as in a moving average). The speed built up till point 7 (moving in to the right) will added to the gradient from 7 to 8 that is going to the left, causing them to cancel each other out (what might cause the update to turn small enough for the loss to converge instead of explode). So it helps at the point where the gradient suddenly changes direction, as the momentum will cancel it out partially.

$\endgroup$
0
$\begingroup$

Actually it won't go to 7, but will go to somewhere less far away. Because the previous gradients at 5 and before are less steep, the accumulated gradient with momentum will be smaller and it will not shoot as far. The end effect is less overshoot and so it helps in this case.

$\endgroup$
0
$\begingroup$

Your concern is valid that's why there's another Nesterov accelerated gradient method specifically proposed to further address such edge case where various momentum based methods using past and current gradients may still overshoot at point 6 and even beyond. Nesterov momentum is essentially a form of one-step look ahead momentum which can reduce the amount of oscillation near your steep global/local minima.

However, with the usually very small learning rate the vanilla momentum methods have much better convergence rate near minima in general compared to traditional gradient descent first order methods. And as your source correctly claims in your above sharp minimum rare cases, momentum based optimization methods will obviously dampen the updated amount at each iteration point, thus comparing to traditional gradient descent methods they'll tend to not overshoot at point 6 and beyond.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .