Frozen at Exactly One

OptimizersMedium+20 XP+20

Frozen at Exactly One

A tiny model has two weights and the loss

L(w1,w2)=w12+(w22−1)2L(w_1, w_2) = w_1^2 + (w_2^2 - 1)^2L(w1​,w2​)=w12​+(w22​−1)2

The lowest possible loss is 000, reached at (w1,w2)=(0, 1)(w_1, w_2) = (0,\ 1)(w1​,w2​)=(0, 1) and at (0, −1)(0,\ -1)(0, −1).

Because of a bug in the initialisation code, w2w_2w2​ starts at exactly 000. w1w_1w1​ starts at 333. The model is trained with plain full-batch gradient descent at a learning rate of 0.050.050.05, with no momentum. The log:

step0510203050100200
loss10.00004.13812.09421.13301.01621.00021.00001.0000

By step 200, both components of the gradient read 0.00000.00000.0000.

The run is restarted from the same starting point with one change. Which change brings the loss down near 000?

A saddle point: downhill in one direction, uphill in the other. The slope at the centre is zero, so descent stalls there even though it is nowhere near the bottom.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.