The Price of a Steadier Step

OptimizersEasy+10 XP+10

The Price of a Steadier Step

A team trains an image classifier on 57,60057{,}60057,600 training examples with mini-batches of 323232, making one weight update per mini-batch. Their loss curve is jumpy, so they measure how noisy the steps are. Holding the weights fixed, they draw many mini-batches at each of three sizes and log one weight's mini-batch gradient:

batch sizeaverage of the mini-batch gradientsstandard deviation of the mini-batch gradients (the batch-to-batch wobble)
323232 (current)0.10.10.10.30.30.3
1281281280.10.10.10.150.150.15
5125125120.10.10.10.0750.0750.075

At the current batch size the wobble is three times the size of the signal underneath it. The team wants it no bigger than the signal itself, so a standard deviation of at most 0.10.10.1, and plans to get there by raising the batch size and changing nothing else.

Each mini-batch gradient is the average of BBB per-example gradients drawn independently from the training set, so the wobble follows one smooth rule in BBB, including at batch sizes the team did not log. Changing BBB leaves the average at 0.10.10.1; only the wobble changes. Every mini-batch is full, with no partial batch at the end of an epoch.

If they switch to the smallest batch size that meets the target, how many weight updates will one epoch contain?

Give a whole number.

Hints

Solve it to unlock the solution

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