skip to content
← Scientific Spaces English

Slow Is Fast, Part 2: Does Adam Also Lead to Muon?

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 and introduce a matrix . A diagonal approximation means that, in the vectorized formulation, the preconditioning matrix is diagonal: . Then

Equivalently, the update rule is , where denotes the Hadamard product. Our aim is to introduce an orthogonal transformation with Kronecker-product structure into , so that the principle of orthogonal slowest descent turns it into a better optimizer.

Specifically, we introduce orthogonal matrices , set , and replace the diagonal preconditioning matrix with . In other words, the update changes from to . Understanding this transformation requires a little background on Kronecker products, which we will not go into here.

Intuitively, we find a new orthogonal basis for , apply diagonal preconditioning in that basis, and then transform back. According to orthogonal slowest descent, we should minimize its inner product with , namely

A Unified Form #

Observe that

Here, means taking the square root in the Hadamard-product sense, that is, taking the square root element by element. In the previous article, we also solved

Its objective can be rewritten as

We see that the objectives in both problems have the form . We will therefore consider the general problem

Stationarity Conditions #

First, let us derive the stationarity conditions for this problem. We introduce Lagrange multipliers and define the auxiliary function

Writing , we take the gradients of with respect to and set them to zero, obtaining

Multiplying both sides of the first equation by and both sides of the second by , and using the orthogonality of , gives the stationarity conditions

As we proved in the previous article, this means that has the form , where is the SVD of and is diagonal. This is a common property of optimal solutions to the problem above, independent of the particular choice of . It is a remarkably strong conclusion.

Washing Away the Basis #

Let us first apply this conclusion to the objective from the previous article. Here, , and the update we care about is . By the result of the previous section, has the form : the eigenvector matrices of are completely eliminated.

To my great surprise, the same conclusion extends to the main subject of this article, the objective . Here, , and the update we care about is . Once again, the stationarity conditions imply that has the form .

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 tend to become balanced, the result would be even closer to Muon. This is the second meaning of “leads to Muon.”

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 . Without loss of generality, suppose . We have

Here, , and equality holds when . This shows that, provided the product of the singular values of is constant, the ideal minimum of is attained at (inverting the diagonal entries without changing the shape).

Of course, because we can only change the orthogonal matrices within , this ideal minimum is hard to attain. We can only conjecture that the result lies somewhere between the best case () and the worst case (). Their geometric mean is precisely , corresponding to uniform singular values.

The Product of the Singular Values #

Is the product of the singular values of actually constant? We will again discuss Kronecker products first, followed by diagonal approximations. For “Kronecker product + square matrix,” it is indeed constant:

That is, the absolute value of the determinant of remains unchanged under transformations of the orthogonal matrices . The product of the singular values is therefore unchanged, and the previous section’s conclusion applies. For non-square matrices, however, this identity no longer holds. We have two options: analyze the situation carefully using the method from the previous article, or assume without proof that the identity also holds approximately for non-square matrices.

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 are orthogonal matrices, and orthogonal transformations often leave determinants unchanged. We therefore conjecture that “the determinant of will not change appreciably either,” suggesting that also tends toward uniformity. Notice how weak this conjecture is: it is certainly not an identity, and we cannot even judge how accurate an approximation it is. It is more a matter of our “faith” in determinants and orthogonal matrices.

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.