← Build notes

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.

Animated light infographic. The headline: 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. Two context cards follow. First, a dial: the learning rate sets how big a step a model takes each time it corrects itself; too small and it crawls, too big and training can blow up. Second, at billion-parameter scale, 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, drawn as a tiny square beside a large one. Below, Rule 1, set before training: a schedule of shrinking steps guaranteed safe, computed from the data, the number of layers and the weight penalty, with no trial runs for the step size. A vertical log-scale ruler of first step sizes places Rule 2's constant cap at 10 to the 0, the 3-layer first step below 10 to the minus 4, and the 4-layer first step below 10 to the minus 7, a roughly 100-fold drop. The catch: it plans for the worst case, so the safe steps are tiny. Next to it, Rule 2, which watches the run: it resizes each step to the model's current state under a constant cap, with the same guarantee and faster progress in our test. Figure 5 from the paper plots relative loss against training epochs on a log scale for a 3-layer network: both curves start at 1.0, Rule 1's worst-case schedule levels off near 0.91, and Rule 2's resized steps drop to about 0.68. At the bottom, the takeaway: price a guarantee at the worst case, then make it watch the run. A side note gives the method, full analysis on a simplified network then tests on a practical one, states that the proof covers linear networks only, and that both rules also held in tests with a nonlinear tanh output layer. Animated light infographic. The headline: 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. Two context cards follow. First, a dial: the learning rate sets how big a step a model takes each time it corrects itself; too small and it crawls, too big and training can blow up. Second, at billion-parameter scale, 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, drawn as a tiny square beside a large one. Below, Rule 1, set before training: a schedule of shrinking steps guaranteed safe, computed from the data, the number of layers and the weight penalty, with no trial runs for the step size. A vertical log-scale ruler of first step sizes places Rule 2's constant cap at 10 to the 0, the 3-layer first step below 10 to the minus 4, and the 4-layer first step below 10 to the minus 7, a roughly 100-fold drop. The catch: it plans for the worst case, so the safe steps are tiny. Next to it, Rule 2, which watches the run: it resizes each step to the model's current state under a constant cap, with the same guarantee and faster progress in our test. Figure 5 from the paper plots relative loss against training epochs on a log scale for a 3-layer network: both curves start at 1.0, Rule 1's worst-case schedule levels off near 0.91, and Rule 2's resized steps drop to about 0.68. At the bottom, the takeaway: price a guarantee at the worst case, then make it watch the run. A side note gives the method, full analysis on a simplified network then tests on a practical one, states that the proof covers linear networks only, and that both rules also held in tests with a nonlinear tanh output layer.
The whole post in one graphic. Open the graphic full size ↗

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.