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
Then, for
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
In the inequality above,
This connects the previous bound to the loss. It is the only place we use the assumptions that
Lifting the Vectors #
Now assume that
Why require
The region is a cone, hence the name “conic lifting.” We will need to project onto
We can leave the motivation for this lifting to the proof. Notice two features of these three lifted vectors. First, for any
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
The first “
The left-hand side is the fixed quantity we want to bound. Its upper bound on the right has four parameters,
Fixing the Step Size #
Three parameters remain:
Using this, we can prove by induction that the trajectories with learning rates
always satisfy
Thus, the trajectory of
Fixing
Inside a Euclidean Ball #
Let us choose a special but representative
Substituting and then choosing
Finally, choosing
The right-hand side already gives the ideal rate. If we further assume that
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
The projection operator
Solving gives
Note that when
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
Of course, if
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.