One Part of the Recipe Swapped

OptimizersMedium+20 XP+20

One Part of the Recipe Swapped

Your team trains an image classifier from a published recipe: SGD with momentum 0.9 at a learning rate of 0.1, cut to a tenth at two milestones. It trains well. The logs show that individual weights' gradients are mostly between 0.0010.0010.001 and 0.010.010.01, and that a typical weight moves about 0.00050.00050.0005 per update.

A teammate swaps the optimizer for Adam with its default memory settings (0.90.90.9 and 0.9990.9990.999, bias correction on) and changes nothing else. The learning rate of 0.10.10.1 and the schedule stay exactly as they were.

Within the first 20 updates the loss shoots upward, and then it becomes NaN.

Which diagnosis is right?

Hints

Solve it to unlock the solution

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

Select all that apply.