A Landscape That Mostly Curves Up

OptimizersMedium+20 XP+20

A Landscape That Mostly Curves Up

Training has stalled at a flat point: the gradient is zero in every direction. Whether that point is a dead end depends on how the loss curves as you move away from it.

Here is a crude but classic toy model of a network with nnn weights. At a flat point, look along nnn separate directions, one for each weight. Along each direction the loss either curves up (stepping away along it, either way, raises the loss) or curves down (stepping away along it lowers the loss). In the model:

  • each direction curves up with probability 0.990.990.99 and down with probability 0.010.010.01;
  • the nnn directions behave independently of one another.

The flat point is then one of the lesson's three shapes:

what the nnn directions doshape of the flat point
every direction curves uplocal minimum
at least one curves up and at least one curves downsaddle point
every direction curves downlocal maximum

What is the smallest number of weights nnn for which a flat point in this model is more likely to be a saddle point than a local minimum?

Give a whole number.

Hints

Solve it to unlock the solution

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