skip to content
← Scientific Spaces English

Making Model Training More Scientific, Part 11: A New Approach to Schedule-Free Learning Rates

In several earlier articles, we showed why learning rate schedules matter for last-iterate convergence. At the same time, a schedule-free learning rate has long been an ideal for practitioners. You specify neither a learning rate curve nor the number of training steps in advance, and you can stop training at any point and get a nearly optimal solution for the steps taken so far.

I was previously rather pessimistic about this approach, as I explained in “Making Model Training More Scientific, Part 8: Learning Rates for Multi-Stage Training”. But the recent paper “Conic-Lifting for Learning-rate-free Convex Optimization” achieves just that with a clever lifting construction! Under the assumptions of a bounded domain and convex optimization, it provably converges to the optimum at the ideal rate without a schedule.

How does it work? Is there anything we can borrow for deep learning? Let’s work through it together.

Review of the Basics #

Consider the projected update rule with a constant learning rate:

Here is the feasible set for and must be closed and convex. We define by

Then, for , the following inequality holds:

We call the expression on the left the linearized regret. Since we are considering a constant learning rate, the inequality is particularly easy to prove using the method from the first article, “Making Model Training More Scientific, Part 1: Convergence of the Average Loss in SGD”. The constant learning rate also means that only needs to be closed and convex, with no boundedness requirement.

In the inequality above, need not be an actual gradient. When is a gradient, however, convexity of the loss gives us

This connects the previous bound to the loss. It is the only place we use the assumptions that is a gradient and that the loss is convex. Finally, substituting gives an average convergence result. Minimizing the right-hand side of Eq. gives the optimal learning rate, which depends at least on the total number of training steps .

Lifting the Vectors #

Now assume that is a bounded, closed convex set. Introduce the scalar sequence and the constant , and define the lifted vectors:

Why require to be bounded? Only when is bounded, closed, and convex is the following feasible region for closed.

The region is a cone, hence the name “conic lifting.” We will need to project onto . If is unbounded, may fail to be closed, so the projection may be ill-defined. Similarly, the constraint ensures that is convex. The derivation below does not explicitly require , but if we let be arbitrary, becomes nonconvex and the proof no longer goes through.

We can leave the motivation for this lifting to the proof. Notice two features of these three lifted vectors. First, for any , take , divide its first coordinates by the last coordinate, and multiply by to recover . We call this decoding. Thus, in general, already contains the information in . Second, with this construction it is easy to check that always holds, so

In other words, the regret is exactly the same before and after lifting. The lifted vectors have an extra degree of freedom that lets us rescale them, and that freedom is what lets us eliminate the learning rate.

Applying the Bound #

Consider the update rule for the lifted vectors:

Then for any , we have

The first “” follows from the identity . The “” applies the basic bound , and the second “” substitutes the definitions of and . By the definition of , holds for every , which is essential for this bound.

The left-hand side is the fixed quantity we want to bound. Its upper bound on the right has four parameters, . For simplicity, we take , so is the zero vector. This will also be important for what follows. Rearranging gives

Fixing the Step Size #

Three parameters remain: . The key observation is that the right-hand side above is homogeneous of degree zero in . It depends only on their ratio . We can therefore fix without changing the minimum of the right-hand side. But can we actually fix to a particular value? Yes! The Euclidean projection onto the cone is positively homogeneous. That is, for every ,

Using this, we can prove by induction that the trajectories with learning rates and ,

always satisfy

Thus, the trajectory of is rescaled uniformly by a factor of . What we care about, however, is , which we decode by taking and dividing its first coordinates by its last coordinate. The factor cancels, so fixing to 1 leaves the actual parameter trajectory unchanged. With conic lifting and decoding by a ratio, the learning rate becomes an unobservable overall scale.

Fixing gives

Inside a Euclidean Ball #

Let us choose a special but representative . Since must be a bounded, closed convex set, we choose the simple Euclidean ball . By our assumptions we also have , and

Substituting and then choosing gives

Finally, choosing gives

The right-hand side already gives the ideal rate. If we further assume that is bounded, the right-hand side is . Dividing both sides by gives a convergence rate of , the best possible without further assumptions. This is a result about average convergence. In practice we may care more about the last iterate, and the two results are not entirely equivalent. Even so, it is a beautiful result.

The Explicit Update Rule #

Most importantly, the update rule that achieves this rate is

It has no learning rate hyperparameter and is genuinely schedule-free. For the Euclidean ball , we can also write the update explicitly. First define

The projection operator is defined by

Solving gives

Note that when , the corresponding can in fact be any vector satisfying . The expression above gives one natural choice, interpreted using . The paper instead returns the initial value . These choices do not affect the proof or its conclusion. In particular, if the projection does not modify the update, the update simplifies to

Further Thoughts #

I adapted the derivation above rather than following the paper verbatim. The paper contains more results, but this is as far as I will go in this post. Let me share a few thoughts about it.

When I first saw this result, I could hardly believe that a fully schedule-free algorithm could achieve the ideal rate, even under convexity. I then went through the derivation carefully and found no problem with it, but I did have a question. The algorithm essentially adjusts the learning rate based on . What if that quantity is zero?

Of course, if is zero occasionally, that generally does no harm. But what if is identically zero? The iteration would never get off the ground. Can really be identically zero? Yes. A loss such as is one example. So where is the catch, given that the earlier derivation is correct? It is the convexity assumption. A function of the form cannot be convex in !

This suggests that the new schedule-free idea depends strongly on convexity. My initial assessment is that it may offer little guidance for nonconvex optimization in deep learning. That makes it a little different from the earlier articles in this series. Their results also assumed convexity, yet many of them still offered insights for nonconvex optimization.

AdaGrad, for instance, also comes from convex optimization, but it works well for training deep learning models, as do its descendants RMSProp and Adam. Likewise, the last-iterate convergence results we derived earlier rely on schedules like linear decay, which also works well in practice. Many of these explanations are admittedly a stretch in hindsight, but we can still see that some results offer more guidance than others.

Summary #

This article introduced a new result on schedule-free optimization. The method adds a dimension to the original parameter space and uses a clever construction to make the regret identical before and after lifting. It then applies an existing convergence bound in the lifted space. On a bounded domain under convexity, the method automatically achieves the optimal convergence rate without an explicit learning rate setting.