In the previous article, “Slow Is Fast, Part 1: Does Shampoo Lead to Muon in the End?”, we started from the average convergence result for convex optimization, established the “orthogonal slowest descent” framework, and used it to improve preconditioned optimizers with arbitrary Kronecker-product structure. We found that, after optimization within this framework, all these optimizers showed signs of approaching Muon. This prompted my pessimistic remark that “Shampoo leads to Muon in the end.”
Besides Kronecker products, another, simpler structured approximation to a preconditioning matrix is a diagonal approximation; RMSProp and Adam are common examples. Although a diagonal approximation is computationally simpler than a Kronecker product, neither contains the other. This raises a new question: if we apply orthogonal slowest descent to these optimizers, will we obtain any new results?
Analyzing the Objective #
Using the notation of the previous article, let the gradient be
Equivalently, the update rule is
Specifically, we introduce orthogonal matrices
Intuitively, we find a new orthogonal basis for
A Unified Form #
Observe that
Here,
Its objective can be rewritten as
We see that the objectives in both problems have the form
Stationarity Conditions #
First, let us derive the stationarity conditions for this problem. We introduce Lagrange multipliers
Writing
Multiplying both sides of the first equation by
As we proved in the previous article, this means that
Washing Away the Basis #
Let us first apply this conclusion to the objective
To my great surprise, the same conclusion extends to the main subject of this article, the objective
In other words, whether we use a Kronecker product or a diagonal approximation, orthogonal slowest descent washes away the preconditioning matrix’s “basis”: the update’s left and right singular-vector matrices reduce to those of the gradient (or momentum). Preconditioning can change, at most, the singular values. This is exactly how Muon is constructed. That is the first meaning of “leads to Muon” in the title.
Can the Singular Values Become Uniform? #
If we could prove that the diagonal entries of
In the previous article, we gave a detailed argument for the Kronecker-product case, but that argument is difficult to generalize. Here, we instead use a heuristic to get a sense of the properties of
Here,
Of course, because we can only change the orthogonal matrices within
The Product of the Singular Values #
Is the product of the singular values of
That is, the absolute value of the determinant of
The diagonal-approximation case is more troublesome. Although the Hadamard product is simple, it is not an intrinsic matrix operation, and introducing it makes many kinds of matrix analysis exceptionally difficult. Whether or not the matrices are square, we cannot effectively estimate the singular values or determinant of
Still, the only quantities we can vary within
Summary #
This article extended “orthogonal slowest descent” to diagonal preconditioning (the RMSProp and Adam families). By extracting the abstract form shared by the two objectives, we arrived at a unified conclusion: whether the preconditioner uses a Kronecker product or a diagonal approximation, orthogonal slowest descent eliminates its original basis and can change, at most, the singular-value spectrum of the gradient or momentum. We also briefly discussed whether those singular values tend to become balanced.