Guaranteed-stable training has a price
In our 4-layer test, the step size our first rule set before training was below one ten-millionth. A second rule kept the same guarantee and won the speed back.
Guaranteed-stable training has a price. In our 4-layer test, the learning rate our first rule set before training was below one ten-millionth. A second rule kept the guarantee and won the speed back.
Why it matters
The learning rate is the dial that sets how big a step a model takes each time it corrects itself. Too big, and training can blow up. Too small, and it crawls.
At billion-parameter scale, tuning is so costly that Microsoft and OpenAI researchers tuned a model about 170 times smaller and copied the settings to a 6.7-billion-parameter GPT-3, for about 7% of its training cost.
We work at the other end on purpose, along a long-standing route in deep learning theory: full analysis on a simplified network, then tests on a practical one.
In our new paper, we devised a recipe that sets, in advance, a schedule of shrinking steps guaranteed safe for a specific class of networks, from facts known before training such as the data, the number of layers and how hard we penalize large weights (the numbers it learns). No trial runs for the step size; the penalty and decay rate remain your choice.
The catch: it plans for the worst case, so the safe steps are tiny, and far smaller at 4 layers than at 3.
So we devised a second rule that resizes each step to the model’s current state. Same guarantee, and faster progress in our test.
What I take from this: price a guarantee at the worst case, then make it watch the run.
How it works
Classic SGD guarantees pick the step from a global smoothness constant. Deep linear networks with squared loss have none.
In our experiments, the deterministic schedule’s first step was below 10⁻⁴ at depth 3 and 10⁻⁷ at depth 4. What surprised me: from 3 to 4 layers the computed weight ceiling shrank, yet that step dropped roughly 100-fold. The theory needs a steeper penalty for deeper networks, and we chose a steeper one still.
The adaptive rule rescales each step to the current weight size, under a constant cap. We established the same bounded-weights and convergence guarantee, and at depth 3 it drove the penalized loss down faster (Figure 5).
The same pattern shows up in gradient-clipping theory: under weaker smoothness, clipped gradient descent can converge arbitrarily faster, in the worst case, than a fixed step size.
Limits: the proof covers linear networks only. In our tests, both rules also kept weights bounded and the loss settling with a nonlinear (tanh) output layer.
The image is Figure 5, annotated. If your team works on training stability or optimizer design, let’s compare notes.