An optimizer that uses momentum as a state variable has the following basic form:
The differences between various optimizers are mainly reflected in the update function
Yet the protagonist of this post is precisely momentum. We will bring a new perspective to the momentum mechanism: momentum can be seen not only as an average of gradients, but also as the solution to an online regression problem. Starting from this, we can naturally arrive at several recent works.
Basic Concepts #
As with Muon, this post mainly considers matrix parameters in linear layers: suppose we have a linear layer
The simplest optimizer is gradient descent (at the parameter level)
However, following the ideas in "Why Do We Prefer Isotropy? An Understanding Based on Steepest Descent", we believe that parameters are essentially by-products of the model, and changes at the model feature level are what correlate most directly with model performance. Ideally, we would like to achieve gradient descent at the feature level
The problem is that
Regression Objective #
How can we achieve this indirectly? Let the final update rule be
where
Notice that
Switching Perspectives #
Now we know that through the adjusted gradient
From this perspective, we can try using
This is roughly the Newton-Muon optimizer. The reason I say "roughly" is that the original Newton-Muon actually uses a scheme of preconditioning first and then applying EMA (that is, performing EMA on
If the input is isotropic, then we can expect
Incremental Updates #
A more general and more playful approach is: instead of trying to find an analytical solution, directly optimize objective
If we update
where
Of course, to get DeltaMomentum running, there are also some details to keep in mind, mainly regarding the normalization of
Related Work #
In fact, recently there have been more and more explorations of constructing preconditioners based on inputs. Besides Newton-Muon and DeltaMomentum, Tian Xie previously published another slightly different result in Steepest Descent in Feature Space; in our notation here, it is roughly
That is,
There may be other similar works, but I really cannot recall any others; readers are welcome to add them in the comments section (note: a reader pointed out DoPr). From the experimental results, some attempts have indeed achieved positive outcomes—for example, Newton-Muon performs better than Muon on Speedrun (see here), so overall, this direction still has some merit.
Further Thoughts #
However, this input-oriented preconditioner design also has some unsatisfactory aspects.
First, at the implementation level: it requires us to record the autocorrelation matrix
Second, at the theoretical level: constructing the preconditioner from actual inputs may restrict the optimizer's exploration to the subspace spanned by the inputs, leading to insufficient exploration of the remaining directions and thus suboptimal performance. A relatively simple mitigation strategy is to increase
Overall, this direction is still in its infancy—an early outline has emerged, but both engineering and theoretical issues remain far from completely resolved, with no fewer open questions than conclusions.
Summary #
Starting from the idea of having 'parameter gradient descent' approximate 'feature gradient descent', this post reinterprets momentum as the solution to an online regression problem, which in turn leads to several related works. Interestingly, this trajectory aligns remarkably well with the evolution of linear attention from Vanilla to DeltaNet and then to MesaNet; the two appear to have much they can borrow from each other.