Manuscript Offprint
arXiv:2610.24839A Statistical Viewpoint on Adam, Shampoo and Muon
Abstract
We provide new statistical insights into designing stochastic optimization methods. By modeling the gradient via a normal distribution, we argue that the stochastic gradient should be whitened using its covariance. We give an online method for estimating the mean and variance of the gradients based on regularized likelihood or, equivalently, through a maximum a posteriori estimate. We then show how to use structured approximations to the covariance within this same framework, which includes diagonal and Kronecker-factored approximations. The diagonal approximation results in a method that is very closely related to Adam and performs as well in practice. The Kronecker approximation results in the new MN method, which is a variant of Shampoo and KL-Shampoo. We also recover Muon by applying this same statistical framework to the gradient direction rather than the full gradient. By combining this with a whitening step, we arrive at MN-Muon, a novel preconditioned version of Muon. Our experiments on GPT-2-type models at Chinchilla scale indicate that MND, the diagonal implementation of MN, outperforms both the Distributed Shampoo and the KL-Shampoo implementations in terms of stability, final validation loss and time taken. MND-Muon, the diagonal implementation of MN-Muon, improves on Muon in 21 of 24 paired GPT-small runs and achieves a lower best validation loss on GPT-medium, where it remains stable over the six tested learning rates. However, we found that NorMuon was comparable to MND-Muon and achieved a slightly lower validation loss on GPT-medium and at GPT-small batch 512 on FineWeb.
1 Introduction
Here we present a new viewpoint for modeling stochastic pretraining methods based on whitening. Stochastic gradients are noisy estimates of the full-batch gradient, with some components having high variance and others low variance. We need to take this variance into account; otherwise, we might accidentally take a large step in a high-variance direction, leading the method astray.
To explain this whitening, let be a loss we wish to minimize with parameters , and let be a stochastic gradient evaluated at a given . Thus . With a sampled stochastic gradient, we may update our parameters using
where is a step size. Suppose now that we fit a normal model to our stochastic gradients, and assume . Instead of using as our update direction, we could use an estimate of the mean and update according to
This approach corresponds to using the momentum algorithm (Schaipp et al., 2025). But this momentum update ignores the variance in the gradients. Some of the coordinates of the gradient may have a very high variance, in which case we should be cautious and take a smaller step in these coordinates. For coordinates that have low variance, we can safely take larger steps. We can implement this idea by using the covariance to whiten our estimate of the mean. That is, the whitened gradient has independent coordinates, each with variance one. Taking a step using this whitened stochastic gradient corresponds to
Joint first authors.
SGD Whitened SGD

Figure 1: SGD and Whitened SGD on with stochastic gradients , where and . Right: final loss after 300 iterations versus base learning rate over five seeds. Left and middle: 300-step trajectories of SGD and Whitened SGD each with best base learning rate chosen from the right plot.
To illustrate, see Figure 1, where we compare SGD to Whitened SGD (1) on a simple quadratic loss with Gaussian noise. The left and middle panels of Figure 1 show the trajectories of the two methods, each with the best tuned base learning rate (over five seeds). SGD takes large, noisy steps in the high-variance direction, while Whitened SGD rescales those steps so it can make steadier progress toward the minimum.
In practice we will use an estimate of the mean whitened gradient and update according to
where and are estimates of the covariance and mean. We refer to methods that fit the format (2) as the whitened momentum methods.
Our starting point is in Section 2 where we show that by modeling the gradient through a Bayesian recursion or, equivalently, by solving a regularized likelihood optimization problem, we arrive at an online method for estimating both the variance and mean of the gradients. Our method can be seen as a full covariance matrix variant of Adam (Kingma and Ba, 2014).
In practice we cannot store the full covariance matrix or approximate its inverse square root. To arrive at a practical method, in Section 3 we show how to use structured approximations to the full covariance matrix, such as diagonal matrices or Kronecker-factored matrices with full or diagonal factors.
We then show that using a diagonal approximation in Section 4 we recover the update of the first and second moment estimates of Adam as a special case (Orvieto and Gower, 2025). However, the Adam update does not exactly fit the format of a whitened momentum method, because Adam uses the uncentered second moment to whiten momentum, instead of the centered second moment (covariance) as is used in the whitened momentum method (2). Combining this diagonal covariance with the whitened momentum step (2) yields Centered Adam, a variant of both Adam and AdaBelief (Zhuang et al., 2020). We do several experiments showing that Centered Adam performs as well as the original Adam method. Thus, explaining the practical effectiveness of Adam-like methods may not require an exact account of Adam itself: the closely related method Centered Adam achieves comparable performance and admits a simple interpretation as online gradient whitening using a diagonal covariance approximation.
In Section 5, we move beyond diagonal covariance approximations to the richer class of Kronecker-factored matrices. Within this class, we show that square-root (as opposed to quarter-root) variants of Shampoo fit the whitened momentum format (2), giving them an interpretation as gradient whitening with a Kronecker-factored covariance. Applying our covariance estimation approach to these Kronecker factors then yields new variants of KL-Shampoo (Lin et al., 2026), which we call the MN (Matrix Normal) method. This name reflects the underlying probabilistic model: a Gaussian distribution over matrices with a Kronecker-factored covariance is known as a Matrix Normal distribution.
The MN method has storage and computational costs of the same order as Shampoo, but requires substantially more optimizer state storage than Muon. For layers with a 1:4 aspect ratio, Shampoo and MN require 5.25 times as much optimizer state storage as Muon, counting momentum and covariance factors at the same precision. To arrive at an algorithm with storage comparable to that of Muon, we propose MND, which is a variant of our MN where the factors are diagonal matrices. Our experiments in Section 6 compare the MND methods to the most well-established variants of Shampoo, namely Distributed Shampoo (Shi et al., 2023) and KL-Shampoo on GPT-small and GPT-medium at Chinchilla scale. These experiments show that MND was the most robust method to the choice of learning rate and achieved a significantly lower final validation loss.
In Section 7 we go on to show that Muon also admits a statistical interpretation by modeling the behavior of the gradient direction, rather than the gradient itself. Using this interpretation we derive a new preconditioned version of Muon that we call MND-Muon. Benchmarking MND-Muon, we find it consistently improves upon Muon, but falls a little short of NorMuon in Section 8.
Background. Our work is largely motivated by the empirical success of Muon (Jordan et al., 2024), Adam (Kingma and Ba, 2014), Shampoo (Gupta et al., 2018) and its variants such as KL-Shampoo and Distributed Shampoo (Lin et al., 2026; Kasimbeg et al., 2025; Shi et al., 2023). More recently, Muon (Jordan et al., 2024) has emerged as one of the most competitive methods, having already been used to train several frontier models (Liu et al., 2025; GLM-4.5 Team, 2025; Kimi Team, 2025; DeepSeek-AI, 2026). Our technique for estimating the mean and covariance of the gradients can be seen as an extension of Orvieto and Gower (2025), but where we unify methods through the lens of gradient whitening, consider other structured approximations to the covariance matrix, and introduce a complete Bayesian interpretation. Another closely related line of work is by Lin et al. (2026), where the authors use a KL divergence projection of the uncentered gradient second moment onto the space of Kronecker-factored matrices to derive a new variant of Shampoo. Our methods can also be seen as KL projections, but where we jointly model the mean and variance, and show that the target mean and variance are the posterior mode of a Bayesian model. See Section A for a more detailed discussion of related work.
There are two ways we can use the above to design a method for updating our parameters. An optimization approach such as that of Orvieto and Gower (2025) would minimize the negative log-likelihood plus an additional regularizer that encourages the unknown to be close to . We call this the optimization approach. A Bayesian approach would choose a reasonable prior on to reflect our assumptions and then update our estimates using the posterior. Our method admits both interpretations.
An optimization viewpoint. The standard optimization approach encodes the importance of the past using a regularizer (Orvieto and Gower, 2025). That is, since we also expect the distribution of the gradients to change slowly across iterations, we prefer that remain close to in distribution. For this, we use the KL divergence between these two normal distributions to encourage their difference to be small; see the second term of (3).
In addition, we also want to be a likely observation; that is, we also want to maximize the likelihood of being sampled from . To balance this likelihood and regularizer, we solve
where is the hyperparameter used to control how much regularization we use. The above objective is a natural trade-off between our goal of making likely and our assumption that the distribution of changes slowly.
Our open source implementation is available at: https://github.com/parshakova/matrix_normal_optimizers
A Bayesian viewpoint. The Bayesian would encode this dependency on the past using a prior . The standard conjugate prior for a multivariate normal with unknown mean and covariance is the Normal-Inverse-Wishart distribution
where is used to discount the past. In the usual notation, is defined by
See Section B.1 for the detailed definition. The Bayesian approach would then compute the posterior distribution. We will then use this posterior to obtain point estimates by maximizing the posterior. Using Bayes' rule, the posterior is proportional to the product of the likelihood and prior. Thus, our point estimates are given by
When the prior is proper , conjugacy gives us that the posterior is a Normal-Inverse-Wishart distribution; see Propositions B.1 and B.2. To prepare for iteration , we raise this posterior density to the power and normalize again. The resulting distribution becomes the prior for the next gradient observation.
Fortunately, the Bayesian (5) and optimization (3) approaches agree.
Proposition 2.1 (Bayesian and optimization approaches agree). Assume and . Both (3) and (5) are equivalent to solving the projection problem
where the solution is given by
All proofs are given in the appendix.
To illustrate, in Figure 2 we compare the standard Momentum method to our Whitened Momentum (2) when using (7)–(8) on a simple two-dimensional quadratic. Here we can already see that the high variance of the Momentum method makes the method less stable and unable to achieve as low a loss as Whitened Momentum.
The resulting method (7)–(8) can be interpreted as a generalization of Adam’s first and second moment estimates that take into account a full covariance, as opposed to a diagonal covariance (Orvieto and Gower, 2025).
In neural networks, storing this full covariance matrix is practically impossible. Indeed, even for the nanoGPT model (Keller Jordan et al., 2024), which is a relatively small transformer language model with 124 million parameters, storing the full covariance matrix would exceed 300 terabytes. To circumvent this cost, we will use structured approximations for the covariance matrix.
Since both the Bayesian and optimization approaches boil down to solving a KL projection (6), we will from now on use this KL formulation to address this problem.
3 Structured approximations for the covariance
To reduce the costs of both storing and using the covariance matrix in the whitening step (2), we will impose that has some structure. Namely, is either diagonal or Kronecker-factored with full or diagonal factors. Let denote
The prior (4) is proper when , where is the dimension of the gradient with . If violates this inequality, then (4) still defines an unnormalized prior kernel, and thus the optimization interpretation (3) and the mode updates below remain valid.
Momentum Whitened Momentum

Figure 2: Momentum and Whitened Momentum using (7)–(8) with stochastic gradients , where . Right: final loss after 300 iterations versus base learning rate over five seeds. Left and middle: 300-step trajectories of each method with best base learning rate chosen from the right plot.
the class of structured positive definite matrices we are considering. We will now choose that best solves the projection problem (6), that is
Regardless of the structure of S, so long as the covariance is positive definite, solving for the mean always gives , which is the momentum update (7). Substituting back the solution into the above gives
Thus it only remains to solve for the covariance matrix. After dropping multiplicative and additive constants, solving the above KL projection is equivalent to
See Proposition C.1 for the details of the above. The next two sections are dedicated to solving this covariance estimation problem (11) for different choices of structure S, and testing the resulting whitened momentum method.
From the strict Bayesian viewpoint, this restriction to S breaks the exact Bayesian recursion, since the unconstrained MAP covariance given by (8) may not admit the structure imposed by S. But this does fit the update, then project pattern used in approximate sequential Bayesian inference (Opper, 1999); see Remark C.2 for more details.
This projection approach (10) was also the main motivation for the KL-Shampoo method (Lin et al., 2026), except that Lin et al. (2026) use the uncentered gradient second moment instead of as a target.
4 Diagonal approximation and Adam
The simplest structure we can work with is a diagonal matrix. Choosing S to be the class of positive definite diagonal matrices, we have that the solution to our covariance estimation problem (11) is given by , where
where denotes the elementwise product. See Section C.1 for the derivation. Though not immediately apparent, the update of Adam can be written with respect to this estimate of variance (12) and the mean estimate (7). Indeed, for , matching buffer initialization, and without bias correction, Orvieto and Gower (2025) showed that the Adam update is equivalent to
That is, instead of whitening the momentum using variance, the Adam update (13) whitens using an estimate of the uncentered second moment since
Consequently, Adam does not fit exactly the whitened momentum step (2).
The whitened momentum update, using (12) and the mean estimate (7), is given by

Figure 3: Final validation loss versus learning rate for Adam and Centered Adam on FineWeb. Solid lines: GPT-small; dashed lines: GPT-medium.
which we will refer to as the Centered Adam method, since it uses the centered second moment (the covariance).
Despite this difference between Centered Adam and Adam, we found that Centered Adam and Adam are very similar in practice. Figure 3 shows that the final validation losses achieved by running Adam and Centered Adam at Chinchilla scale are almost the same across all learning rates; see Section D for the experimental details.
Adam has been the method of choice for over a decade, and yet has eluded a simple explanation. It might be that we need not explain Adam. If Centered Adam matches the performance of Adam on most problems of interest, then it would be enough to understand Centered Adam, which does admit a simple explanation as a whitened momentum method (with a diagonal covariance estimate). It remains to be seen if Centered Adam performs as well as Adam at larger scales.
Relation to AdaBelief. AdaBelief (Zhuang et al., 2020) accumulates squared residuals around the updated momentum:
where . Since , setting gives under matching initialization. That is, without bias correction or numerical stabilizers, Centered Adam with learning rate is equivalent to AdaBelief with and learning rate . Our framework provides a covariance-estimation derivation and whitening interpretation of this update.
We now turn our attention to using a Kronecker-factored approximation to the covariance matrix, which will in turn result in a variant of Shampoo (more specifically KL-Shampoo), whose diagonal implementation outperforms the tested Shampoo implementations.
5 A Matrix Normal model of the gradients (MN)
Most parameters of a neural network are matrices. Let be a matrix parameter and the gradient with respect to at some given iterate . Our method (7)–(8) with a full covariance matrix is infeasible because storing would cost in storage.
However, once the covariance admits a Kronecker decomposition , storage becomes feasible at . Thus to arrive at a practical algorithm we will now assume that
This distribution (15) is also referred to as the Matrix Normal distribution which is denoted by
This factored form not only reduces storage, but can also be used to efficiently compute the whitened update (2). Indeed the whitened mean in (2) is now
Thus we only need to approximate inverse square roots of an and an matrix, rather than an matrix. Using (16), a step along the whitened mean (2) is
As a side note, using a Kronecker factorization leads to scale ambiguity since for all ,
Though this scale ambiguity does not affect the resulting product, it can result in numerical rounding issues if one of the factors races off to infinity, and the other to zero. To avoid such numerical issues we normalize our estimates of these factors to have equal trace .
Next we will compute this Kronecker factorization by solving (11) restricted to Kronecker-factored matrices.
5.1 Computing mean and covariance factors
Choosing S to be the set of Kronecker-factored matrices in (11) gives the following optimization problem
Recall that is given by (8). Initially, finding a global solution to (18) may seem hopeless, because the Kronecker constraint makes the problem nonconvex. Fortunately, despite being nonconvex, its minimizing Kronecker product is unique, and the factors can be found using alternating minimization over and followed by trace normalization.
Proposition 5.1 (Unique solution and alternating minimization). Assume and that and are positive definite. The function in (18) admits a unique global minimizer satisfying . For steps , if we alternately minimize
and rescale the factors reciprocally so that , we get convergence from any positive definite initialization: . Defining , each block minimization, before rescaling, admits the closed-form solution:
The minimizer of is unique because is strictly geodesically convex in the covariance product under the affine-invariant geometry; see Section E.1 and Corollary E.1 for details.
Though it may take many iterations in for (19) and (20) to converge to the solution, we found that using was sufficient in practice.
5.2 Algorithm
Computing the updates (19) and (20) requires storing and inverting the factor matrices, which can be computationally expensive and numerically sensitive, as discussed in Section G. Indeed, storing and costs in memory, which can be significantly more than the required for storing Adam's second-moment estimator. Because of this cost in memory, our experiments are focused on using diagonal factors. For these diagonal factors we write and , where and . By restricting the factors to diagonal matrices in (18), we obtain our MND (Matrix Normal Diagonal) method, see Algorithm 1. The diagonal-factor updates are derived in Section E.3. We also implement the (approximate) full MN (Matrix Normal) method, see Algorithm 3.
Algorithm 1 MND method
Require: Gradient matrix , step size , momentum coefficient , and
1: Initialize , , and
2: for do
3: ,
4: see (23)
5:
6: , where trace balancing
7:
8:
9: end for
Relation to KL-Shampoo. The MN method is closely related to KL-Shampoo (Lin et al., 2026), whose full-matrix factor updates are
Here weights the previous factor estimate and can differ from the momentum discount . KL-Shampoo computes both new factors from . In each MN iteration, the column-factor update instead uses the newly computed row factor . For , the remaining differences between (19)–(20) and KL-Shampoo (21)–(22) are the absence of the extra on the innovation, the replacement of the trace weights by and , and the use of instead of . These differences arise because KL-Shampoo does not jointly model the mean and the factors. We will test each of these differences in our experiments further down in Sections 6 and H.
Relation to Shampoo. While we take a likelihood approach to finding and , we could have taken a moment matching approach instead. By Lemma E.2 we have that
We show how Shampoo can be seen as a method that uses an exponential moving average to fit these identities; see Section E.4.
6 Experiments with MND
We now compare MND, which uses diagonal covariance factors, against two popular variants of Shampoo: KL-Shampoo (Lin et al., 2026) and the official implementation of Distributed Shampoo (Shi et al., 2023).
Numerical details. Implementing our diagonal version MND in a numerically stable way was straightforward. Since diagonal factors allow elementwise inverses and inverse square roots, we could explicitly clip these inverses to be numerically stable as follows
Finally, to take care of the scale ambiguity, we enforce .
To test what component of the MN method most contributes to its effectiveness, we consider three variants of MN. MND refers to the implementation in Algorithm 1, whereas MND (uncentered) refers to Algorithm 1 but where the samples are uncentered , and finally we use MND ( ) to refer to the variant that uses both uncentered samples and a separate factor discount to update the factors. This MND ( ) uses essentially the same update to the factors as KL-Shampoo (21)–(22), except that the factors are diagonal, and the prior terms retain the trace weights.
Results. Figure 4 compares the methods when training a 124M-parameter GPT-small model on FineWeb-10B (Penedo et al., 2024) for 2.5B tokens, at Chinchilla scale (Hoffmann et al., 2022). We evaluate each learning rate with seeds 1, 2, and 42 and select the rate with the lowest mean final validation loss. The method-specific grids and training settings are given in Section H.1. At their selected learning rates, centered and uncentered MND attain mean validation losses of 3.373 and 3.376, respectively, compared with 3.409 for MND ( ), 3.444 for KL-Shampoo, and 3.494 for Distributed Shampoo. Diagonal covariance factors store entries per matrix, compared with for dense factors. Figure 5 extends the comparison to GPT-medium, trained for 7.09B tokens with batch size 768 and the same three seeds. At both model sizes, centered MND achieves the lowest mean final validation loss over the tested learning rate grids, followed closely by uncentered MND. The small gap suggests that centering has a limited effect on the best validation loss in these experiments, consistent with the similar performance of Centered Adam and Adam in Section 4. The tested MND ( ) variant performs worse than both variants that use a shared decay factor, so introducing a separate does not improve the best validation loss. Among the two established implementations, KL-Shampoo achieves a lower best mean validation loss on GPT-small, whereas Distributed Shampoo achieves a lower best mean validation loss on GPT-medium. Both attain higher best mean validation losses than all three MND variants at both model sizes.
The MN method. We also test the full-factor MN method in Section H, but we found it not to be as competitive as MND; see Figure 11 for example. We find that MN underperformed because of numerical stability issues in approximating the matrix inverse. Indeed, MN needs matrix inverses in (19) and (20), and inverse square roots in (17). We compute both with Newton–Schulz iterations (Higham, 2008), which use only matrix multiplications and, therefore, run fast on GPUs (Amsel et al., 2025). Newton–Schulz is numerically stable for the inverse square root (Higham, 1997; 2008), but for the inverse it is unstable in BF16, the precision that makes it affordable, see Section G for details. Another alternative would be to use an exact SVD, as is done periodically in the official Distributed Shampoo implementation Shi et al. (2023). But computing a full SVD is very slow on GPU, so we ruled out this approach. We conjecture that a stable, GPU-friendly matrix inversion is needed to make the full MN method truly competitive.
MND (uncentered) MND MND ( ) KL-Shampoo Distributed Shampoo

Learning rate
Hours
Figure 4: GPT-small on FineWeb, batch 512, 2.5B tokens. Left: validation loss versus learning rate. Right: training loss versus recorded training hours at tuned rates. Lines: three-seed means; shading: seed ranges. Times are cumulative step times averaged across seeds. Details: Section H.1.
7 A statistical view of Muon
We now switch to the Muon method. We first show that the update direction of the Muon method is the mode of a Matrix Langevin distribution. We use this to motivate a Bayesian viewpoint of Muon. This Bayesian view of Muon requires assuming an isotropic model of the gradient. We use this to motivate a preconditioned view of Muon by instead assuming an anisotropic model of the gradient.
7.1 Muon as a Matrix Langevin mode
The Muon update is given by
where is the momentum estimate
The polar factor in (24) is given by , where is a compact singular value decomposition. For simplicity, we assume that Polar is applied only to full rank matrices. Thus, Muon models the direction (singular vectors) of the momentum estimate and discards its singular values. This direction also has a geometric interpretation, since the space of matrices with unit singular values is known as the Stiefel manifold (Bernstein and Newhouse, 2024),
This gradient direction also has a statistical interpretation, as the mode of a Matrix Langevin distribution. The Matrix Langevin distribution has density
with respect to the uniform measure, where . It favors directions aligned with M. By Lemma F.1, the unique mode of (27) is Polar(M). Thus,
That is, Muon’s direction is the unique mode of . Next we derive the entire Muon update, including the momentum recursion (25), from a Bayesian observation model.
MND (uncentered) MND MND ( ) KL-Shampoo Distributed Shampoo

Learning rate
Hours
Figure 5: GPT-medium on FineWeb, batch 768, 7.09B tokens. Left: validation loss versus learning rate. Right: training loss versus recorded training hours at tuned rates. Lines: three-seed means; shading: seed ranges. Times are cumulative step times averaged across seeds.
7.2 A Bayesian view of Muon
Suppose the gradient is a noisy observation of a latent direction , with isotropic Matrix Normal noise:
To both encode that we want only the direction and to make use of previous gradients, we define the prior as
As in Section 2, controls forgetting: larger values give more weight to past information. With , the initial direction prior is uniform. With the likelihood (29) and the prior (30), we can now write down the posterior distribution of our desired direction , which by Bayes' rule is
This posterior also has a Matrix Langevin distribution (see Lemma F.2). Indeed, since is constant on , the likelihood (29) is proportional to . Thus the likelihood times the prior (31) gives
where the updated momentum is given by (25). Since the posterior again has distribution , its unique mode, or maximum a posteriori estimate, is given by
where we used Lemma F.1. Equation (33) gives precisely the Muon update (24). Raising this posterior density to the power and renormalizing gives the prior (30) for the next iteration. This discounting changes the concentration of the distribution but preserves its mode, giving a recursive Bayesian interpretation of momentum followed by polar decomposition.
7.3 From Muon to MN-Muon
The isotropic model (29) treats all gradient coordinates as equally noisy. To account for different noise levels and correlations, we now introduce positive definite row and column covariance factors and , and use the following anisotropic likelihood model for the gradient
Whitening gives the isotropic model of the previous subsection
Thus is the covariance of , and is its mean. Unlike the MN model of Section 5, the mean depends on the covariance factors.
It is convenient to start with the Bayesian approach. Suppose we are given positive definite factors and , together with the momentum of previously whitened gradients, , which is recursively defined as
These quantities remain fixed while we estimate the current direction and factors. The momentum need not lie on . As in the isotropic model, we use the direction prior
Again, discounts past information, with the same interpretation as in Section 2. For the covariance factors, set and , and choose the Inverse-Wishart density kernel
This kernel is maximized when . Multiplying the likelihood, direction prior, and factor kernel gives the joint posterior kernel
This product cannot be normalized over unrestricted factors: scaling one factor up and the other down leaves it unchanged, making its integral infinite. We estimate the direction and factors jointly by maximizing this kernel
After observing , we multiply the likelihood (34) by the priors (36)–(37). For any fixed positive definite factors , the conditional posterior of is again Matrix Langevin (Lemma F.2):
where
Thus the conditional MAP direction is
This is momentum followed by polar decomposition in whitened coordinates. Setting and recovers the isotropic Muon model.
The direction prior and conditional posterior are therefore conjugate for fixed covariance factors, but this conjugacy does not extend to the factors. As in Section 5, imposing Kronecker structure prevents an exact conjugate covariance update; here the covariance-dependent mean adds a further coupling. Consequently, we cannot estimate independently of the factors and then estimate the covariance. We can, however, substitute the conditional MAP direction (42) into the joint posterior and numerically optimize the resulting profiled objective over the factors. Profiling maximizes over the direction rather than integrating it out.
After these updates, we retain for the next iteration. Raising the conditional direction posterior to the power and renormalizing gives the next direction prior. Rebuilding the factor kernel around the new estimates approximates posterior propagation (Section F.3).
7.4 Optimization problem
Given the priors (36)–(37) and the observation model (34), computing the joint posterior mode of is equivalent to solving the regularized likelihood problem
Proposition F.3 establishes this equivalence. We can interpret the objective above analogously to (3): (i) we want estimates that make the newly observed gradient likely; but (ii) since gradients are expected to move slowly across iterations, we want the whitened mean direction to stay close to the previous whitened momentum, and likewise with the covariance. We could penalize a single joint distribution instead, as in (3); however, that does not propagate the whitened momentum that recovers Muon.
Unlike the optimization problem underlying MN (18), the optimization problem above (43) couples the direction D and covariance factors R, C through the whitened gradient. The problem is nonconvex, but we can alternate between tractable updates of these three variables, holding the others fixed (Proposition 7.1).
Proposition 7.1 (Blockwise updates). Each block of (43) has a simple solution given the others:
(i) Direction D. For fixed factors, minimizing over gives Polar , that is, the momentum update (41) followed by (42).
(ii) Factors. For fixed D and C, the objective is strictly convex in , so it has a unique minimizer over ; likewise for C.
(iii) Diagonal factors. If R and C are diagonal, both factor minimizers have closed forms.
The explicit factor updates and the first-order conditions characterizing the dense-factor minimizers are derived in Section F.5.
We minimize (43) by alternating over the blocks, starting from the previous estimates: update R, then C, rescale them so that , and then update D. The rescaling changes nothing, since the objective depends on the factors only through .
Proposition 7.2 (Descent and limit points). Suppose the exact block updates of Proposition 7.1 are repeated in the order R, C, trace balancing, then D, starting from any and . Then the objective (43) never increases, and the trace-balanced iterates remain bounded. Every limit point is a critical point; at that point, each of D, R, and C minimizes the objective with the other two held fixed.
Unlike Proposition 5.1, this result does not guarantee a globally optimal solution. The coupling between direction and covariance breaks the geodesic convexity exploited in Section 5, so which critical point is reached can depend on the warm start. For a fixed gradient and fixed previous estimates, one exact sweep from a feasible direction also decreases this objective.
7.5 Algorithm
Restricting the factors to diagonal matrices and , a row–column sweep with held fixed uses
where vector powers are entrywise, denotes entrywise multiplication,
and is applied entrywise for , with
We refer to the resulting method as the MND-Muon (Matrix Normal Diagonal Muon) method (Algorithm 2). The numerical factor solver uses , clipped inverses and inverse square roots (23), and reciprocal trace balancing. The latter preserves the covariance product and equalizes traces when its trace guards are inactive. We initialize so that the first factor sweep has ; this is an initialization convention rather than a point on . The first polar update produces a feasible direction, so the block descent result in exact arithmetic applies to subsequent sweeps.
Algorithm 2 MND-Muon method
Require: Gradient matrix , step size , momentum coefficient , and
1: Initialize , , , and
2: for do
3:
4:
5:
6:
7: , where
8:
9:
10:
11: end for
Relation to Muon. If the factors are fixed at and , then Algorithm 2 reduces to the Muon method.
Relation to MN. When the direction term is absent (e.g., , as in the first iteration), the diagonal updates reduce to , and more generally the factor updates become alternating updates on uncentered second moments. They differ from (19) and (20) in using the raw gradient instead of the centered and in lacking the extra factor on the new observation. Both differences arise because the mean is no longer a free parameter that can be profiled out.

Learning rate
Iterations
Figure 6: GPT-small on FineWeb, batch 512. Left: validation loss versus learning rate after 1B tokens (seed 42). Right: training loss through 2.5B tokens at selected rates, with three-seed means and shaded seed ranges. Mean final validation losses after 2.5B tokens are 3.327 for NorMuon, 3.329 for MND-Muon, and 3.336 for Muon (Section I.1).
8 Experiments with MND-Muon
All experiments in this section use the diagonal-factor implementation, MND-Muon (Algorithm 2), with .
8.1 GPT-small
We train GPT-small (124M parameters) for 2.5B tokens, using 1024-token sequences. For each optimizer, corpus, and effective batch size, we select the learning rate by validation loss in separate 1B-token runs with seed 42 (Section I).
On FineWeb at batch 512, Figure 6 compares MND-Muon with Muon, NorMuon, AdamW, Distributed Shampoo, and KL-Shampoo, using nine learning rates per optimizer for the 1B-token sweep with seed 42. We hold the selected learning rates fixed for the 2.5B-token runs with seeds 42, 1, and 2. At the selected learning rate of 0.03, MND-Muon reaches mean final validation loss 3.329, compared with 3.336 for Muon. NorMuon, also at 0.03, has the lowest mean loss of 3.327. The remaining baselines reach 3.381 for AdamW, 3.449 for KL-Shampoo, and 3.501 for Distributed Shampoo.
At a fixed 2.5B-token budget on FineWeb and SlimPajama, increasing the batch size generally improves the validation performance of Muon, NorMuon, and MND-Muon (Figures 12 and 13 in Section I.2). The validation loss gaps between MND-Muon and Muon, and between NorMuon and Muon, shrink as batch size increases, indicating that both methods provide larger gains over Muon at smaller batches.
8.2 GPT-medium
We compare MND-Muon, Muon, and NorMuon on GPT-medium (353M active parameters), trained on FineWeb for 7.09B tokens at batch 768 with seed 42. We test six learning rates per method, each for the full training budget. The lowest final validation losses are 3.0139 for MND-Muon at learning rate 0.045, 3.017 for Muon at 0.04, and 3.007 for NorMuon at 0.045 (Figure 7).
On this grid, MND-Muon maintains validation losses between 3.014 and 3.016 across the tested rates from 0.02 to 0.06, a range of 0.0024 nats per token. Muon is unstable at 0.045 (loss 6.295), as is NorMuon at 0.09 (loss 6.071). The right panel compares training at each method's best tested rate. Full results and the largest-rate stability comparison are in Section I.3.
MND-Muon Muon NorMuon

Learning rate
Iterations
Figure 7: GPT-medium on FineWeb: 7.09B tokens, batch 768, seed 42. Left: validation loss versus learning rate. Right: training loss at the best tested rates (MND-Muon: 0.045; Muon: 0.04; NorMuon: 0.045). Final validation losses are 3.007 for NorMuon, 3.014 for MND-Muon, and 3.017 for Muon.
9 Conclusions, limitations and future work
Our work postulates that several stochastic optimization methods can be seen as instances of a whitened momentum method (2). Using different structured approximations for the covariance, we arrive at variants of Adam and Shampoo.
There are a few limitations of our work, which also point to future work. First, our justification for using a whitened momentum method (2) is mostly empirical: The methods that follow from this framework work well. But having more theoretical insight into the whitened momentum method on toy models or certain classes of functions would lend further evidence. Furthermore, we have so far only verified experimentally the new Centered Adam, MND and MND-Muon on two different sizes of GPT-2 at Chinchilla scale. More models, datasets and scales are needed to strengthen our conclusions.
Our approach required assuming the gradients have a Gaussian distribution, which could be reasonable for image classification tasks, but has been shown to be unreasonable for language models (Zhang et al., 2020; Kunstner et al., 2023). This raises the question of whether we could use other distributions to model the gradient, and whether we could match those distributions to the distributions of the gradients.
Finally, our statistical model of Muon again required assuming a Gaussian model for the gradient, and thus it remains open what the result would be for a different, heavier-tailed model of the gradient distribution.
Acknowledgements
We thank Umut Simsekli and Lénač Chizat for initial conversations regarding an early version of the draft. In particular, we would like to acknowledge that Lénač Chizat had also independently developed a Bayesian filtration view of the two momentum buffers of Adam.
References
N. Amsel, D. Persson, C. Musco, and R. M. Gower. The Polar Express: Optimal matrix sign methods and their application to the Muon algorithm. arXiv preprint arXiv:2505.16932, 2025.
J. Bernstein and L. Newhouse. Old optimizer, new norm: An anthology, 2024.
T. Broderick, N. Boyd, A. Wibisono, A. Wilson, and M. Jordan. Streaming variational Bayes. Advances in Neural Information Processing Systems, 26, 2013.
DeepSeek-AI. DeepSeek-V4: Towards highly efficient million-token context intelligence. Technical Report arXiv:2606.19348, DeepSeek-AI, 2026.
A. Dewulf, D. Pai, L. Yang, A. Zhang, and B. Keigwin. Aurora: A leverage-aware spectral optimizer, 2026.
T. George, C. Laurent, X. Bouthillier, N. Ballas, and P. Vincent. Fast approximate natural gradient descent in a Kronecker-factored eigenbasis. In Advances in Neural Information Processing Systems, volume 31, 2018.
GLM-4.5 Team. GLM-4.5: Agentic, reasoning, and coding (ARC) foundation models. arXiv preprint arXiv:2508.06471, 2025.
V. Gupta, T. Koren, and Y. Singer. Shampoo: Preconditioned stochastic tensor optimization. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 1842–1850. PMLR, 2018.
N. J. Higham. Stable iterations for the matrix square root. Numerical Algorithms, 15(2):227–242, 1997. doi: 10.1023/A:1019150005407.
N. J. Higham. Functions of Matrices: Theory and Computation. SIAM, Philadelphia, PA, 2008. ISBN 978-0-89871-646-7. doi: 10.1137/1.9780898717778.
J. Hoffmann, S. Borgeaud, A. Mensch, E. Buchatskaya, T. Cai, E. Rutherford, D. de Las Casas, L. A. Hendricks, J. Welbl, A. Clark, T. Hennigan, E. Noland, K. Millican, G. van den Driessche, B. Damoc, A. Guy, S. Osindero, K. Simonyan, E. Elsen, O. Vinyals, J. W. Rae, and L. Sifre. Training compute-optimal large language models. In Proceedings of the 36th International Conference on Neural Information Processing Systems, 2022.
K. Jordan, Y. Jin, V. Boza, J. You, F. Cesista, L. Newhouse, and J. Bernstein. Muon: An optimizer for hidden layers in neural networks. Blog post and software, 2024.
P. Kasimbeg, F. Schneider, R. Eschenhagen, J. Bae, C. S. Sastry, M. Saroufim, B. Feng, L. Wright, E. Z. Yang, Z. Nado, S. Medapati, P. Hennig, M. Rabbat, and G. E. Dahl. Accelerating neural network training: An analysis of the AlgoPerf competition. In The Thirteenth International Conference on Learning Representations, 2025.
Keller Jordan, Jeremy Bernstein, Brendan Rappazzo, @fernbear.bsky.social, Boza Vlado, You Jiacheng, Franz Cesista, Braden Koszarsky, and @Grad62304977. modded-nanogpt: Speedrunning the NanoGPT baseline. Software repository, 2024.
M. E. Khan and H. Rue. The Bayesian learning rule. Journal of Machine Learning Research, 24(281):1–46, 2023.
Kimi Team. Kimi K2: Open agentic intelligence. arXiv preprint arXiv:2507.20534, 2025.
D. P. Kingma and J. Ba. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
J. Knoblauch, J. Jewson, and T. Damoulas. An optimization-centric view on Bayes' rule: Reviewing and generalizing variational inference. Journal of Machine Learning Research, 23(132):1–109, 2022.
R. Kulhavý and M. B. Zarrop. On a general concept of forgetting. International Journal of Control, 58(4):905–924, 1993. doi: 10.1080/00207179308923034.
F. Kunstner, L. Balles, and P. Hennig. Limitations of the empirical Fisher approximation for natural gradient descent. In Advances in Neural Information Processing Systems, volume 32, 2019.
F. Kunstner, J. Chen, J. W. Lavington, and M. Schmidt. Noise is not the main factor behind the gap between SGD and Adam on transformers, but sign descent might be. In The Eleventh International Conference on Learning Representations, 2023.
Z. Li, L. Liu, C. Liang, W. Chen, and T. Zhao. NorMuon: Making Muon more efficient and scalable, 2025.
W. Lin, S. C. Lowe, F. Dangel, R. Eschenhagen, Z. Xu, and R. B. Grosse. Understanding and improving Shampoo and SOAP via Kullback–Leibler minimization. In The Fourteenth International Conference on Learning Representations, 2026.
J. Liu, J. Su, X. Yao, Z. Jiang, G. Lai, Y. Du, Y. Qin, W. Xu, E. Lu, J. Yan, et al. Muon is scalable for LLM training. arXiv preprint arXiv:2502.16982, 2025.
Z. Liu, R. Zhang, Z. Wang, Y. Zhao, Y. Su, Z. Yang, and Z. Zhang. Muon : Boosting Muon via adaptive second-moment preconditioning, 2026.
C. Louizos and M. Welling. Structured and efficient variational deep learning with matrix Gaussian posteriors. In Proceedings of the 33rd International Conference on Machine Learning, volume 48 of Proceedings of Machine Learning Research, pages 1708–1716. PMLR, 2016.
J. Martens and R. Grosse. Optimizing neural networks with Kronecker-factored approximate curvature. In Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pages 2408–2417. PMLR, 2015.
P. S. Maybeck. Stochastic Models, Estimation, and Control, volume 1. Academic Press, 1979.
T. P. Minka. Expectation propagation for approximate Bayesian inference. In Proceedings of the Seventeenth Conference on Uncertainty in Artificial Intelligence, UAI'01, pages 362–369, San Francisco, CA, USA, 2001. Morgan Kaufmann Publishers Inc. ISBN 1558608001.
C. V. Nguyen, Y. Li, T. D. Bui, and R. E. Turner. Variational continual learning. In International Conference on Learning Representations, 2018.
M. Opper. A Bayesian approach to on-line learning. In D. Saad, editor, On-line learning in neural networks, pages 363–378. Cambridge University Press, 1999. doi: 10.1017/CBO9780511569920.017.
A. Orvieto and R. M. Gower. In search of Adam's secret sauce. In Advances in Neural Information Processing Systems, 2025.
G. Penedo, H. Kydliček, L. Ben allal, A. Lozhkov, M. Mitchell, C. Raffel, L. Von Werra, and T. Wolf. The FineWeb datasets: Decanting the web for the finest text data at scale. Advances in Neural Information Processing Systems, 37:30811–30849, 2024.
Y. Ren and D. Goldfarb. Tensor normal training for deep learning models. In Advances in Neural Information Processing Systems, volume 34, pages 26040–26052, 2021.
H. Ritter, A. Botev, and D. Barber. Online structured Laplace approximations for overcoming catastrophic forgetting. Advances in Neural Information Processing Systems, 31, 2018.
F. Schaipp, G. Garrigos, U. Şimşekli, and R. M. Gower. Tracking the median of gradients with a stochastic proximal point method. Transactions on Machine Learning Research, 2025. Expert Certification.
H.-J. M. Shi, T.-H. Lee, S. Iwasaki, J. Gallego-Posada, Z. Li, K. Rangadurai, D. Mudigere, and M. Rabbat. A distributed data-parallel PyTorch implementation of the distributed Shampoo optimizer for training neural networks at-scale. arXiv preprint arXiv:2309.06497, 2023. doi: 10.48550/arXiv.2309.06497.
C. Si, D. Zhang, and W. Shen. AdaMuon: Adaptive Muon optimizer, 2025.
D. Soboleva, F. Al-Khateeb, R. Myers, J. R. Steeves, J. Hestness, and N. Dey. SlimPajama: A 627B token cleaned and deduplicated version of RedPajama. Dataset release, 6 2023.
M. West and J. Harrison. Bayesian forecasting and dynamic models. Springer, 2 edition, 1997. doi: 10.1007/b98971.
A. Wiesel. Geodesic convexity and covariance estimation. IEEE Transactions on Signal Processing, 60(12):6182–6189, 2012. doi: 10.1109/TSP.2012.2218241.
A. Zellner. Optimal information processing and Bayes's theorem. The American Statistician, 42(4):278–280, 1988. doi: 10.1080/00031305.1988.10475585.
G. Zhang, S. Sun, D. Duvenaud, and R. Grosse. Noisy natural gradient as variational inference. In Proceedings of the 35th International Conference on Machine Learning, volume 80 of Proceedings of Machine Learning Research, pages 5852–5861. PMLR, 2018.
J. Zhang, S. P. Karimireddy, A. Veit, S. Kim, S. Reddi, S. Kumar, and S. Sra. Why are adaptive methods good for attention models? In Advances in Neural Information Processing Systems, volume 33, 2020.
Y. Zhang, S. Xing, J. Huang, K. Lv, Y. Zhou, X. Qiu, Q. Guo, and K. Chen. Mousse: Rectifying the geometry of Muon with curvature-aware preconditioning, 2026.
J. Zhuang, T. Tang, Y. Ding, S. C. Tatikonda, N. Dvornek, X. Papademetris, and J. Duncan. AdaBelief optimizer: Adapting stepsizes by the belief in observed gradients. In Advances in Neural Information Processing Systems, volume 33, 2020.
Contents
1 Introduction 1
2 A Gaussian model for the gradients 3
3 Structured approximations for the covariance 4
4 Diagonal approximation and Adam 5
5 A Matrix Normal model of the gradients (MN) 6
5.1 Computing mean and covariance factors 7
5.2 Algorithm 8
6 Experiments with MND 9
7 A statistical view of Muon 10
7.1 Muon as a Matrix Langevin mode 10
7.2 A Bayesian view of Muon 11
7.3 From Muon to MN-Muon 12
7.4 Optimization problem 13
7.5 Algorithm 14
8 Experiments with MND-Muon 15
8.1 GPT-small 15
8.2 GPT-medium 15
9 Conclusions, limitations and future work 16
A Extended background 22
B Derivations and proofs of Section 2 24
B.1 Joint prior 24
B.2 Joint posterior 25
B.3 Closed-form solution and equivalence between optimization and Bayesian approaches 26
C Derivations and proofs of Section 3 26
C.1 Diagonal projection and the second moment in Adam 27
D Adam and Centered Adam experiments 28
E Derivations and proofs of Section 5 28
E.1 Proof of Proposition 5.1 28
E.2 Proof of Corollary E.1 31
E.3 Diagonal covariance factors and MND 32
E.4 Shampoo via moment matching 32
F Derivations and proofs of Section 7 33
F.1 Prior 33
F.2 Posterior 34
F.3 Discounting 35
F.4 Optimization problem 35
F.5 Proof of Proposition 7.1 36
F.6 Proof of Proposition 7.2 38
G Numerical instability of Newton–Schulz 39
H Further MN method experiments 41
H.1 MND comparison protocol 41
H.2 MN comparison 42
I Further MND-Muon experiments 43
I.1 Experimental setup 44
I.2 GPT-small: learning rates and detailed results 45
I.3 GPT-medium: setup and full learning rate sweep 47
A Extended background
Matrix Normal models and Kronecker-structured approximations appear in several approaches to neural-network optimization. Their relationship depends on what the factors represent and how they enter the update. We first review gradient models, second-moment estimators, and curvature approximations, then discuss their connections to our methods.
Tensor normal gradient models. Prior work has made use of a tensor normal model in Tensor Normal Training (TNT) (Ren and Goldfarb, 2021). TNT assumes that the sampling-based gradient tensor follows a tensor-normal distribution, so that its covariance has a Kronecker-separable form. For a matrix-valued parameter, this reduces to a Matrix Normal model in which the gradient covariance is represented by separate row and column covariance factors, whose inverses define an approximate natural-gradient update. Our centered formulation instead models gradients computed with observed training labels and jointly estimates their generally nonzero mean and residual covariance. The resulting factors scale the update by inverse-square-root whitening of the estimated gradient noise, rather than inverse Fisher preconditioning.
Structured second-moment estimation. A second line of related work consists of Kronecker-structured adaptive optimizers. Recent work interprets structured second-moment estimation in Shampoo and SOAP through covariance estimation and Kullback–Leibler minimization (Lin et al., 2026). In particular, KL-Shampoo admits a maximum-likelihood interpretation under a zero-mean Matrix Normal model and uses the fitted factors for whitening. Fitting a zero-mean model to uncentered gradients targets a second moment that contains both residual variability and the mean-gradient contribution. Our centered formulation jointly estimates the mean and residual covariance through a KL-regularized likelihood. This joint estimation uses gradient residuals , obtained by centering each gradient using the previous mean estimate, and a shared discount parameter for momentum and covariance. It also introduces an additional factor in the covariance update, giving the residual contribution a weight of .
Kronecker-factored curvature. There is also a large literature on Kronecker-factored curvature and natural gradient methods. K-FAC (Martens and Grosse, 2015) approximates Fisher blocks by Kronecker products, and EK-FAC (George et al., 2018) refines this approximation by estimating diagonal second moments in a Kronecker-factored eigenbasis; the corrected matrix need not itself be a single Kronecker product. These representations are related to Matrix Normal preconditioning, but their statistical targets differ. For a negative log-likelihood gradient , the model Fisher is
where is the training input distribution. The gradient has zero mean under the model label expectation, so the Fisher is also a covariance under that distribution. The empirical Fisher instead averages outer products of per-example gradients with observed labels; it estimates an uncentered second moment and need not capture Fisher curvature (Kunstner et al., 2019). Such second moments can still inform adaptation to gradient noise. Our centered formulation explicitly models the covariance of the actual stochastic-gradient residuals and uses to whiten the mean gradient, whereas a natural-gradient update uses . Thus our statistical target and the matrix power used in the update both differ from Fisher preconditioning.
Preconditioned Muon. Concurrent work, Mousse (Zhang et al., 2026), combines Muon with Kronecker-factored statistics derived from Shampoo. It performs orthogonalization in whitened coordinates and motivates the update through an anisotropic constraint on the step. Its factors are estimated from uncentered gradient Gram matrices; it whitens accumulated momentum and applies the preconditioning factors again after the polar step. Whitening before polar decomposition is therefore shared with our approach. Our formulation derives the whitening transformation from a gradient observation model, and MN-Muon estimates its factors jointly with the direction and accumulates momentum from already-whitened gradients. It then uses the polar factor directly as the update direction in Algorithm 2, without the additional factor multiplication after orthogonalization used by Mousse.
NorMuon (Li et al., 2025) and AdaMuon (Si et al., 2025) apply adaptive scaling after orthogonalization. NorMuon tracks an EMA of the mean squared entry in each row of the orthogonalized update and uses it to scale that row. AdaMuon takes the elementwise sign of the momentum before orthogonalization and tracks a separate second moment for each entry of the resulting polar factor. NorMuon and AdaMuon estimate their adaptive scales from orthogonalized updates, whereas MN-Muon estimates its covariance factors from the gradient observation and the previous direction.
Muon (Liu et al., 2026) applies elementwise second-moment scaling before orthogonalization. It divides accumulated momentum by the square root of a moving average of squared gradients, aiming to improve the conditioning of the subsequent Newton–Schulz iteration. This shares the order of preconditioning and orthogonalization with MN-Muon, but uses uncentered gradient statistics and preconditions momentum after accumulation. In MN-Muon, each gradient is whitened before it enters the momentum average.
Aurora (Dewulf et al., 2026) addresses nonuniform neuron updates through row balancing. For tall matrices, it alternates damped row normalization with polar computations, seeking updates with approximately orthonormal columns and equal row norms. The row scaling is determined within this inner iteration. Aurora chooses its row scaling to equalize the row norms of the update, whereas MN-Muon derives its whitening factors from the anisotropic gradient likelihood and covariance prior.
Matrix Normal weight models. Finally, Matrix Normal distributions have also appeared in Bayesian deep learning, though typically as distributions over weights rather than over stochastic gradients. Matrix-Gaussian variational posteriors were used by Louizos and Welling (Louizos and Welling, 2016) to model correlations among the input and output dimensions of a neural network layer. Noisy natural gradient methods have also been interpreted as variational inference with Gaussian or matrix-variate Gaussian posteriors (Zhang et al., 2018). These works provide useful probabilistic background for matrix-variate Gaussian structure in neural networks, but they are complementary to the present gradient-observation viewpoint.
Online Bayesian updating and projection. Our recursion alternates an exact conjugate Normal-Inverse-Wishart update with a Kullback–Leibler projection onto a Kronecker-structured family, placing it in the long line of “update, then project” methods for sequential Bayesian inference. The classical instance is assumed density filtering (Maybeck, 1979; Opper, 1999), which projects each exact posterior onto a tractable family in the forward-KL direction; for exponential families this reduces to moment matching, and ADF forms the basis of expectation propagation (Minka, 2001). Reverse-KL projection instead yields a one-observation variational inference problem with the previous approximation as prior, since the Bayesian posterior itself solves a KL-regularized variational problem (Zellner, 1988; Knoblauch et al., 2022). This view underlies streaming variational Bayes (Broderick et al., 2013) and variational continual learning (Nguyen et al., 2018), and connects to natural-gradient methods through the Bayesian learning rule (Khan and Rue, 2023). Our projection lies on this variational side: over the mean and covariance, it is a reverse-KL projection onto Normal-Inverse-Wishart distributions with a Kronecker-structured scale matrix. Raising the previous approximate posterior to the power implements exponential forgetting (Kulhavý and Zarrop, 1993) and is closely related to the discount factors used in Bayesian dynamic linear models (West and Harrison, 1997). Kronecker-structured approximations have also been propagated online for network weights, as in structured Laplace methods for continual learning (Ritter et al., 2018). Unlike these parameter-belief methods, we maintain beliefs over the parameters of the stochastic gradient distribution, making the Bayesian update closed form and leaving the Kronecker projection iterative.
Details of Figures 1 and 2. Both figures minimize from , with Gaussian gradient noise of covariance . Each run takes 300 steps with , for ; the horizontal axis shows . Within each seed, both methods and all tested rates use the same noise draws. For each method, we test each learning rate with seeds and choose the learning rate with the smallest average final loss. Shading shows the range over these seeds. All displayed trajectories use seed 7. Whitened SGD uses the exact noise covariance. Whitened Momentum uses , initializes momentum at the first gradient and covariance at , and whitens with .
B Derivations and proofs of Section 2
B.1 Joint prior
When the prior is proper, we model the latent parameters , hierarchically through
Here, and .
The Inverse-Wishart distribution. The distribution has density proportional to . In our case, the dimension is , and we choose the degrees of freedom as
and the scale matrix is . The density is therefore proportional to
The density is proper as long as the degrees of freedom exceed , that is, when . Whenever this condition fails, we use the joint expression below as an unnormalized prior kernel. Its mode and the regularized likelihood interpretation still hold for every , but it need not define a probability distribution.
Joint prior density. The conditional normal density is
Multiplying the two densities, the powers of combine to . Using
the two exponentials combine into a single trace, giving
When proper, the joint prior above follows a Normal-Inverse-Wishart distribution; otherwise it has the same unnormalized kernel. In the usual notation , defined by and , we have
It is the conjugate prior for a multivariate normal with unknown mean and covariance.
Mode of the joint prior density. The mode of the joint prior above is precisely , which is one of the motivations behind this parametrization. This is proved as a proposition below.
Proposition B.1. Assume and that is positive definite. Then the joint prior kernel (46), over and positive definite , is such that
Consequently the prior kernel has a unique maximizer at .
Proof. First note that the KL divergence between two normal distributions is given by
(49)
Taking logarithms in the joint prior (46) gives
which proves (48). Since the KL is a proper divergence, we have that it is only minimized (or the negative is maximized) when the inputs are equal, that is, when .
B.2 Joint posterior
By conjugacy, observing the gradient turns the Normal-Inverse-Wishart prior above into a Normal-Inverse-Wishart posterior whose mode follows the recursions (7)–(8). Hence we need to store only these two statistics, not the full posterior (Proposition B.2).
Proposition B.2. Assume , , and that is positive definite. Let the prior on be given by (46), and let be the likelihood. The resulting posterior is then given by
where and are defined in (7) and (8).
Proof. By Bayes' rule, the posterior is proportional to the Gaussian likelihood times the prior (46),
Completing the square gives
(51)
Using (8), the posterior is proportional to
(52)
This is the desired NIW density with parameters , , and . The scale matrix is positive definite and by the assumptions.
The new observation increases the NIW parameter from in (47) to in (50). Raising the posterior density to the power restores the original weight for the next iteration. Thus acts as a forgetting factor, reducing the influence of past observations. More precisely, raising (52) to this power gives the joint prior kernel (46) with replaced by . For a structured covariance, the next prior is instead constructed with the projected , as described in Section 3.
B.3 Closed-form solution and equivalence between optimization and Bayesian approaches
Proposition 2.1 (Bayesian and optimization approaches agree). Assume and . Both (3) and (5) are equivalent to solving the projection problem
\left(\hat{\boldsymbol{m}}_{t},\hat{\boldsymbol{\Sigma}}_{t}^{\prime}\right)=\underset{\boldsymbol{m},\boldsymbol{\Sigma}\succ0}{\mathrm{a r g m i n}}\mathrm{K L}\Big(\mathcal{N}(\hat{\boldsymbol{m}}_{t},\hat{\boldsymbol{\Sigma}}_{t}^{\prime})\left\|\mathcal{N}(\boldsymbol{m},\boldsymbol{\Sigma})\right\), \tag{6}where the solution is given by
Proof. Assume and . By Bayes' rule, maximizing (5) is equivalent to minimizing the negative log likelihood plus the negative log prior. By Proposition B.1, the latter is the KL regularizer in (3), up to an additive constant. Thus the Bayesian and optimization objectives have the same minimizers.
Next, completing the square as in (51) gives the posterior kernel (52), with and given by (7)–(8). Since and the remaining covariance term is positive semidefinite, . Using the Gaussian KL formula (49) with this new mean and covariance, we obtain
-\log p(\boldsymbol{m},\boldsymbol{\Sigma}\mid\boldsymbol{g}_{t},\hat{\boldsymbol{m}}_{t-1},\hat{\boldsymbol{\Sigma}}_{t-1})=\frac{1}{1-\beta}\mathrm{K L}\Big(\mathcal{N}(\hat{\boldsymbol{m}}_{t},\hat{\boldsymbol{\Sigma}}_{t}^{\prime})\left\|\mathcal{N}(\boldsymbol{m},\boldsymbol{\Sigma})\right\)+\mathrm{c o n s t}.The multiplicative factor is positive and the constant is independent of , which proves the equivalence with (6). The KL divergence is nonnegative and vanishes exactly at . This proves both the claimed updates and uniqueness.
Under the proper-prior condition in Proposition B.2, the kernel above is the density of the NIW posterior (50). For other values of , the same algebra proves the statements for the unnormalized Bayesian objective.
C Derivations and proofs of Section 3
We now show that the mean update and covariance projection solve the regularized likelihood problem for any prescribed covariance structure.
Proposition C.1. Assume and , and let be a nonempty class of positive definite matrices in . Let and be given by (7) and (8). A pair with solves (3) restricted to if and only if and solves (11). Equivalently, it solves the structured KL projection (9) if and only if and solves (10). These equivalences do not require existence or uniqueness of a minimizer over an arbitrary .
Proof. Let denote the objective in (3). By Proposition 2.1 and the Gaussian KL formula (49),
For each , the quadratic term is nonnegative and vanishes only at . Since the restriction concerns only the covariance, this mean is optimal for every . Substituting it leaves
Finally, by (49),
Dropping the positive multiplicative and additive constants gives (11) and (10). The same quadratic mean term appears in the structured joint KL projection, proving all the equivalences.
Remark C.2. From the strict Bayesian viewpoint, the restriction to S in (9) breaks the exact Bayesian recursion, since the unconstrained MAP covariance given by (8) may not admit the structure imposed by S, in which case it cannot be the solution to (11). This construction follows the update, then project pattern used in approximate sequential Bayesian inference (Opper, 1999). After each observation, we retain the updated mean from (7) and project the Gaussian covariance onto S via (10). We then use to construct the next prior through (4) and repeat after observing . This gives an approximate Bayesian recursion in which the projection acts on the fitted gradient distribution, summarized by its MAP mean and covariance.
C.1 Diagonal projection and the second moment in Adam
Let be the positive definite diagonal matrices and write , with . By Proposition C.1, it suffices to minimize
Each is positive. Putting gives , which is uniquely minimized at because , with equality only at . Thus is the diagonal of . Taking the diagonal in (8), with , proves (12).
To relate this covariance to the uncentered second moment, set . The identity
and (7)–(12) give
Hence and follow the two uncorrected Adam buffer recursions when and . This proves (13) when and the buffers are used without bias correction.
D Adam and Centered Adam experiments
The Adam and Centered Adam methods in Figure 3 use AdamW and its centered variant. Both initialize and use and . Their moment updates and bias corrections are
The two methods differ in the diagonal estimate used to scale the update:
where all vector operations are entrywise, and is the decoupled weight decay coefficient. Centered Adam uses the AdamW denominator for updates 1 to 50, then switches to the centered denominator at update 51. This avoids the zero centered variance of the first observation. The switch preserves the buffers, bias-correction counter, and learning rate schedule; these 50 updates are included in the training budget.
The model architectures and FineWeb split follow Sections I.1 and I.3. GPT-small uses 4,743 updates at batch 512 (2.49B tokens), with seeds 1, 2, and 42; GPT-medium uses 9,016 updates at batch 768 (7.09B tokens), with seed 42. Sequences have length 1024. Runs use BF16 autocast, FP32 parameters and optimizer state, compiled updates, and highest FP32 matrix-multiplication precision. Weight decay is zero ( ) and the global gradient-norm clip is 1. The learning rate rises linearly for 10% of the updates, stays constant for 80%, and decays linearly for the final 10%. Final validation evaluates all complete batches of the held-out 100M-token split and reports cross-entropy in nats per token.
Each learning rate is tested for the full training budget. The GPT-small grid is
and the GPT-medium grid is
For each method and model size, the best rate minimizes final validation loss, averaged over the three seeds for GPT-small and using one seed for GPT-medium. Figure 3 displays the range 0.0003–0.01: solid lines are three-seed means, shading spans the seed minimum and maximum, and dashed lines use only one seed. Figure 8 shows the training losses at these selected rates.
E Derivations and proofs of Section 5
E.1 Proof of Proposition 5.1
By Proposition C.1, the mean has already been eliminated and it remains to solve the covariance problem (18). We prove the closed-form block updates, existence and uniqueness after trace normalization, and convergence of alternating minimization. The argument uses the geodesic convexity of Kronecker-structured covariance estimation (Wiesel, 2012).
Proposition 5.1 (Unique solution and alternating minimization). Assume and that and are positive definite. The function in (18) admits a unique global minimizer satisfying
Adam Centered Adam

Iterations
Iterations
Figure 8: Adam and Centered Adam on FineWeb at the learning rates selected from the sweeps in Figure 3. Left: GPT-small, with learning rate 0.003 for both methods; lines show means over three seeds; shading: seed ranges. Right: GPT-medium, one seed, with learning rates 0.006 for Adam and 0.003 for Centered Adam.
. For steps , if we alternately minimize
and rescale the factors reciprocally so that , we get convergence from any positive definite initialization: . Defining , each block minimization, before rescaling, admits the closed-form solution:
Proof. For every positive definite and every positive definite , the same scalar inequality used in Section C.1 gives
where are the eigenvalues of . Indeed, their sum is and their product is , so the equality follows by taking logarithms; the inequality follows from . Equality holds if and only if . In the proof below we use (55) with . This matrix is positive definite because is positive definite and the rank-one term in (8) is positive semidefinite.
Step 1: f on Kronecker products. Let and be positive definite, and set , where . We use four standard identities:
(i) ;
(ii)
(iii)
(iv) for every matrix .
Together with (8), these give
(56)
The last trace can equivalently be written as .
Step 2: The block minimizations. For positive definite C, let denote the right-hand side of (19) with replaced by C. For positive definite R, let denote the right-hand side of (20) with replaced by R.
Note that . Hence is a positive multiple of plus a positive semidefinite matrix, and is therefore positive definite. The same argument shows that is positive definite.
Fix C. By (56), the terms of that depend on R are
By (55), this is uniquely minimized at , which gives (19). Symmetrically, for fixed , the function is uniquely minimized at , which gives (20).
Both maps are continuous and scale-equivariant: and for . The rescaling step therefore changes neither nor the relation .
Step 3: Compact sublevel sets and existence. Fix . Let be the set of positive definite pairs with and . We show that is compact.
Let . Each summand in (55) is at least 1. Hence each satisfies . Since as and as , all eigenvalues of lie in an interval that depends only on . Consequently , with and .
Since and , both traces lie in . In particular, and are at most . Since , we also get , and likewise for .
Thus is contained in the compact set of pairs whose eigenvalues all lie in . On that set, and are continuous, so is closed in it and hence compact.
The reciprocal rescaling (R, C) preserves and hence . Choosing makes the traces equal. Thus every positive definite pair can be trace normalized without changing . Choose such that is nonempty. The continuous function attains its minimum over the compact set , and this minimum is the global minimum.
Step 4: Geodesic convexity and uniqueness. For positive definite matrices A and B of equal size and , let
This is positive definite, with and . Let be an eigendecomposition of , and take . Then
The first expression is affine in . In the second, the weights are positive and each is convex, strictly so when . Hence is convex, and strictly convex unless all , that is, unless .
Now suppose and . Then , and by the mixed-product property . Diagonalizing both factors shows that the -th power of a Kronecker product of positive definite matrices is the Kronecker product of their -th powers. Hence
In particular, this curve stays within Kronecker products of positive definite matrices.
Suppose were both global minimizers. By strict convexity, at the feasible point would be strictly smaller than the minimum, which is a contradiction. The minimizing product is therefore unique.
It remains to show uniqueness of the normalized factors. Suppose with all four matrices positive definite. Comparing the -th blocks gives . Taking and using yields with . Substituting back gives . The normalization determines uniquely. This proves the existence and uniqueness of .
Step 5: Blockwise minimizers are global minimizers. Let be positive definite with and . The function is smooth on the open set of positive definite pairs. By Step 2, is an unconstrained minimizer in each block separately. Both partial derivatives therefore vanish there, and hence so does the full derivative.
Let for . By (57) and Step 4, is convex. By the chain rule and the vanishing derivative, . Hence , that is, . So is a global minimizer. By Step 4, .
Step 6: Convergence of the alternating scheme. Consider the normalized iterates for , and let . Write the factors before normalization as and . The normalized pair is , where . By Step 2 and invariance under this reciprocal rescaling,
Here the intermediate row factor is the unnormalized block minimizer; normalization is applied only after both block minimizations. The sequence is nonincreasing and, by (55), bounded below by . It therefore converges to some limit . All iterates lie in the compact set of Step 3.
Let be the limit of a convergent subsequence . This limit is a positive definite pair with . Up to rescaling, which does not affect ,
By continuity of and , the right-hand side converges to , and the left-hand side converges to . Also . Using the block-minimizing property of and then that of ,
All inequalities are therefore equalities.
The second equality says that minimizes . By uniqueness of the block minimizer, . The first equality then reads , so by the same uniqueness.
By Step 5, . Since is normalized, Step 4 gives . The iterates lie in a compact set, and every convergent subsequence has this same limit. Hence the whole sequence converges to .
E.2 Proof of Corollary E.1
Finally, we combine all the results above to obtain a proof of Corollary E.1.
Corollary E.1 (Solution to (18)). Assume and that and are positive definite. The covariance projection problem (18) admits a global solution, unique in under the normalization . Together with , it also solves the regularized likelihood problem (3) restricted to , and it is unique in under the normalization . This solution is given by the mean update (7), together with the limit of the factor updates (19) and (20) iterated to convergence.
Proof. Since and are positive definite, . By Proposition 5.1, the covariance problem (18) has a unique minimizing Kronecker product, and its factors are unique when their traces are equal. The same proposition proves that the normalized factor iterates (19)–(20) converge to these factors from any positive definite initialization.
Apply Proposition C.1 with . It shows that adjoining the unique mean from (7) gives a global solution of (3) restricted to this . Uniqueness of the mean and of the trace-normalized factors gives uniqueness of the resulting triple.
E.3 Diagonal covariance factors and MND
For completeness, we derive the diagonal-factor specialization used in Algorithm 1. Write and , with positive entries, and assume the previous factors are likewise diagonal and positive. Let as in Proposition 5.1. For fixed , the row-dependent terms in (56) are
where denotes the elementwise reciprocal. By the scalar minimization in Section C.1, the unique row minimizer is
Similarly, the unique column minimizer, using this new row factor, is
Starting a sweep at makes the first inner product equal to , giving the row update in Algorithm 1. The column update and reciprocal trace balancing then give the remaining factor steps. The clipped inverses in that algorithm agree with these exact minimizers whenever the entries being inverted are at least ; clipping otherwise gives a stabilized update. The algorithm uses one sweep per observation.
If the exact block updates are instead iterated to convergence, the existence, uniqueness after trace normalization, and convergence arguments in Section E.1 apply within the class of diagonal factors. Indeed, diagonal matrices remain diagonal along the geodesics used there, and the block minimizers above are positive and unique. Thus this specialization solves the diagonal-factor restriction of (18).
E.4 Shampoo via moment matching
We can estimate the covariance factors and using products of the gradients. Indeed, the relationship between the moments of the centered residuals and and is given by the following lemma.
Lemma E.2 (Matrix Normal Gram moments). Let , where and . Then
Thus the expected Gram matrices are proportional to the covariance factors.
Proof. By the definition of the Matrix Normal distribution, . Thus, , and . Therefore
Similarly,
□
Note this relationship requires access to the population mean of the gradient , which is infeasible in practice. We can use the identities (58) to build estimates of our factor matrices and as follows.
Let be our current estimate of the mean gradient (often using momentum) and let be our estimate of the centered gradient. To estimate the expectations in (58) we can use an exponential moving average given by
If one uses instead of the centered residual , then the same formulas estimate uncentered second moments rather than the covariance of the Matrix Normal noise. This is often the choice made by adaptive optimizers such as Shampoo (Gupta et al., 2018).
There are a few disadvantages to the above approach. First, replacing the population mean by changes the Gram moments; the moment identities do not by themselves account for the error in this mean estimate. Furthermore, (59) does not correct for the scale of the factors. Indeed, the identity (58) that gives the factor depends on the trace of , which is not reflected in the updates (59). Our approach of modeling jointly, on the other hand, can more properly address these issues.
F Derivations and proofs of Section 7
Throughout this section, , the previous factors and are positive definite, and . We write , so that for every .
F.1 Prior
The Stiefel manifold is compact. We equip it with its uniform measure, that is, the unique probability measure invariant under for orthogonal and . For , the Matrix Langevin distribution has density
with respect to the uniform measure. The normalizing constant is finite and positive, since the integrand is continuous and positive on a compact set.
Suppose has full row or column rank, i.e., . Let be a compact singular value decomposition, with and having orthonormal columns and with . We write , which lies in . This polar factor does not depend on the chosen decomposition. For , , and for , .
Lemma F.1 (Mode of the matrix Langevin distribution). Let have rank .
(i) , where is the nuclear norm. A maximum is attained at Polar( ).
(ii) Polar(F) is the unique maximizer.
(iii) Polar(aF) = Polar(F) for every a > 0.
Consequently, since (60) is increasing in , Polar( ) is the unique mode of .
Proof. Using , we have . For the upper bound, let and . All singular values of equal one, so , and in particular each column of has Euclidean norm at most one. Hence
Since all , equality in the bound forces for all . Since each column of has norm at most one, this forces .
Assume first , so and is orthogonal. From we get . Let . Then , and, since and ,
Hence and . If , apply the same argument to and , using .
Finally, is a singular value decomposition of with the same and . Since the polar factor is unique, this gives .
F.2 Posterior
Recall that means . Since , its density is
Lemma F.2 (Conditional posterior of the direction). Fix positive definite and . Under the model , , and the priors (36)–(37), we have
with as in (41). If has full rank, its unique mode is .
Proof. The prior kernel factorizes as the product of (36) and (37). For fixed factors, the factor kernel is constant in , so the conditional direction density is proportional to the likelihood times (36). This density is proper because is compact.
With , the exponent of the likelihood is
As a function of , the likelihood is thus proportional to . Multiplying by the kernel of (36) gives
since . This is the kernel of . If has full rank, Lemma F.1 gives its unique mode as .
F.3 Discounting
By discounting a density with factor we mean replacing it with the density proportional to , whenever the latter is integrable. This is exponential forgetting: it downweights all accumulated information by the same factor .
Direction. The density (60) satisfies , so discounting gives . This is always a proper distribution, since is compact. Applying this to the conditional posterior of Lemma F.2, with the factors set to their estimates , gives
which is (36) with replaced by , that is, the direction prior at time .
The weights admit a pseudo-count interpretation. The prior carries weight , the new observation adds weight one, and the posterior carries weight . Discounting multiplies the posterior weight by , which restores . The effective number of pseudo-observations is therefore constant over time.
Covariance. The joint posterior of the factors is not of the form (37), because the raw mean depends on the factors. The covariance prior at time is instead obtained by discounting the kernel . This kernel has mode . It also carries the same log-determinant weight as the posterior kernel, which combines weight from the prior with weight from the likelihood. Its -power is exactly (37) with replaced by . Replacing the posterior over the factors with a kernel of the prior's form, centered at the current estimate, plays the role that the Kronecker projection plays in Section 5. The analogous Normal-Inverse-Wishart discounting for Section 5 is derived in Section B.2.
F.4 Optimization problem
Write the posterior kernel as
We call any maximizer of over and positive definite , a joint posterior mode. This definition does not require the kernel to be normalizable.
Let denote the objective in (43). With , and , define
(62)
Proposition F.3 (MAP formulation). For every and positive definite and ,
Consequently, the joint posterior modes are exactly the minimizers of in (43), equivalently of .
Proof. All additive constants below are independent of (D, R, C). Each weighted KL penalty in is a negative log-prior, up to a constant. For the direction, the Gaussian KL formula gives
where we used and the Matrix Langevin prior (36). For the covariance, the same KL formula gives
where we used the prior kernel (37). The terms involving only and the dimensions are constant.
The first term in is the negative log-likelihood . Since is the product of the likelihood and the two priors, these identities give
To obtain the identity with , set . Using the mean parameterization in (43), we have . Thus, by (61),
Moreover, the trace and vectorization identities give
Combining the likelihood and the two KL penalties yields
Here the log-determinant coefficient is . This proves the second equality. Finally, , is strictly decreasing, and , so the three optimization problems have the same solutions.
F.5 Proof of Proposition 7.1
Proposition 7.1 (Blockwise updates). Each block of (43) has a simple solution given the others:
(i) Direction D. For fixed factors, minimizing over gives Polar , that is, the momentum update (41) followed by (42).
(ii) Factors. For fixed D and C, the objective is strictly convex in , so it has a unique minimizer over ; likewise for C.
(iii) Diagonal factors. If R and C are diagonal, both factor minimizers have closed forms.
Proof. By Proposition F.3, it suffices to minimize over each block. We use const for terms independent of the block being optimized.
First, recall in (62) depends on the factors only through , so the rescaling , , leaves unchanged.
(i) Direction. Fix and set
Minimizing (62) over the direction D reduces to
For full rank F, Lemma F.1 gives the unique minimizer Polar(F).
(ii) Factors. Fix D and . Define
where . Using
and , the terms of that depend on are
since is symmetric, only the symmetric part of contributes to the trace.
The change of variable is a bijection on the positive definite cone, with inverse . Thus the row block is equivalent to
since . The matrix is positive definite: its first term is positive definite because , , and ; its second term is positive semidefinite.
We show that has a unique minimizer. For any nonzero symmetric ,
so is strictly convex. To establish existence, let be the eigenvalues of A. Then
The function is bounded below and tends to as or . Hence every sublevel set of restricts the eigenvalues of to a compact interval in and is compact. Continuity gives existence; strict convexity gives uniqueness.
Differentiating along symmetric directions, the necessary and sufficient optimality condition is
Its unique positive definite solution gives . If , the solution is , so .
The column block also has a unique minimizer by the same argument, transposing and D and exchanging the row and column factors.
(iii) Diagonal factors. Suppose the previous and current factors are diagonal, with and , where entrywise. For fixed and , let be as in (44), set , and define and , with vector powers taken entrywise. The row objective separates over the entries of :
Setting reduces each scalar problem to minimizing over . This function is strictly convex, and its derivative vanishes at the unique positive root of , giving
where is defined in (45). The column update follows by exchanging rows and columns and replacing by ; in a row-then-column sweep, it uses the updated .
F.6 Proof of Proposition 7.2
Proposition 7.2 (Descent and limit points). Suppose the exact block updates of Proposition 7.1 are repeated in the order R, C, trace balancing, then D, starting from any and . Then the objective (43) never increases, and the trace-balanced iterates remain bounded. Every limit point is a critical point; at that point, each of D, R, and C minimizes the objective with the other two held fixed.
Proof. We work with in (62) which is equivalent to (43) as per Proposition F.3. Start from any and . One sweep consists of:
(i) Minimize over the factors:
(ii) Balance the traces:
(iii) Minimize over the direction: choose .
The factor minimizers are unique and positive definite by Proposition 7.1. The direction minimizer exists because is compact.
Step 1: Descent and convergence of the objective. Write . Trace balancing preserves and hence . Since each minimization can only decrease the objective,
To bound below, set and . Using , we can write (62) as
where . Cauchy–Schwarz therefore gives
with . By (55), the right-hand side is at least . Thus is nonincreasing and bounded below, so it converges to a finite limit .
Step 2: Compactness of the iterates. Let . Since , (64) implies
In (55), each term is at least 1 and tends to infinity as or . Thus the eigenvalues of stay in a fixed compact interval in , which gives constants such that for all .
For , trace balancing gives
Also, . Hence every eigenvalue of both factors lies in . Since is compact, all iterates with lie in a compact set. In particular, limit points exist and their factors are positive definite.
Step 3: Optimality of each block at every limit point. Denote the unique factor minimizers by and . Both maps are continuous: the Hessian of in the proof of Proposition 7.1 is positive definite, and the coefficients and in (63) vary smoothly with the fixed blocks. The implicit function theorem therefore makes the solution , and hence , locally smooth; uniqueness identifies these local solutions with the row minimizer. The column argument is identical.
Take a convergent subsequence . Continuity of the factor maps gives
Both intermediate objective values in Step 1 lie between and , so they converge to . Sending to the limit gives
The first equality and uniqueness of the row minimizer imply . Substituting this into the second equality and using uniqueness of the column minimizer gives . Thus both factor blocks are optimal at the limit.
For the direction block, each satisfies
Taking the limit along the same subsequence proves that minimizes , although the minimizing direction need not be unique.
Finally, is smooth on the feasible product manifold. Optimality of each block makes its derivative vanish along every feasible tangent direction in that block. Since these tangent spaces form the tangent space of the product manifold, the full derivative vanishes at . Thus every limit point is a critical point.
G Numerical instability of Newton–Schulz
To invert the covariance factors in MN, we use the Newton–Schulz iteration
where A is symmetric positive definite. Although this iteration converges quadratically to in exact arithmetic Higham (2008), finite precision can limit its accuracy or cause divergence. Two numerical examples illustrate these difficulties.
BF16 FP32 FP64

Iteration k
Eigenvalue index i
Figure 9: Newton–Schulz on the GPT-small Muon gradient-Gram EMA. Left: residual . Right: eigenvalues of in descending order. The cross marks the first nonfinite BF16 iterate ( ).
For each working precision in {BF16, FP32, FP64}, we apply Newton–Schulz iteration (65) to formed in that precision, with in both examples. We evaluate the unnormalized residual
in FP64 against the common target.
GPT-small gradient-Gram EMA. We train GPT-small on FineWeb for 400 Muon updates with global batch 512 and context length 1024, using BF16 autocast with FP32 parameters and optimizer state. We use seed 42, Muon momentum 0.95, zero weight decay, and peak learning rate 0.03, with 40 warmup, 320 constant-rate, and 40 decay updates.
Let be the gradient of the first transformer block's MLP input projection, after gradient accumulation and before clipping. Along this training trajectory, we accumulate in FP64
and set . This matrix has ; adding gives . As shown in Figure 9, at iteration 42 the FP32 residual is approximately , while FP64 reaches . BF16 produces its first nonfinite iterate at .
Ill-conditioned synthetic matrix. We construct a matrix in FP64, with eigenvalues logarithmically spaced from 1 to and an orthonormal basis obtained by QR decomposition of a Gaussian matrix. The unregularized condition number is approximately ; with , the shifted condition number is approximately . In Figure 10, BF16 and FP32 become nonfinite at iterations 35 and 60, respectively, whereas FP64 reaches a residual of approximately at iteration 65.
These examples show that additional Newton–Schulz iterations need not improve the inverse approximation in finite precision. We also encountered divergent training runs when increasing the number of inversion steps. Reliable matrix inversion in low precision therefore remains a practical obstacle for the full MN method.
— BF16 — FP32 — FP64

Figure 10: Newton–Schulz on the synthetic matrix. Left: residual . Right: eigenvalues of in descending order. Crosses mark the first nonfinite BF16 and FP32 iterates ( and ).
H Further MN method experiments
H.1 MND comparison protocol
Training and selection. Figure 4 uses GPT-small on FineWeb with effective batch 512, microbatch 8, context 1024, BF16 autocast, compiled updates, and highest FP32 matrix-multiplication precision. The schedule has linear warmup, constant learning rate, and linear decay; weight decay is zero and the global gradient-norm clip is 1. Each run has 4,743 optimizer updates, except KL-Shampoo, whose declared token budget produces 4,744 updates. Final validation evaluates all complete batches of the held-out split, as in Section I.1. For each rate we run seeds 1, 2, and 42 to the full budget and select the lowest mean final validation loss. The grids are
MND variants: ,
Distributed Shampoo: ,
KL-Shampoo: .
Training curves use a per-seed exponential moving average assigning weight 0.05 to the current loss, followed by the seed mean and minimum–maximum band. The horizontal axis shows cumulative recorded training hours, averaged across seeds at matching optimizer updates.
Each run uses one H100 GPU. GPT-small uses 64 gradient-accumulation steps with microbatch 8 (effective batch 512), while GPT-medium uses 96 (effective batch 768). MND takes approximately 2.8 and 21 recorded training hours, respectively.
Table 1: Selected learning rates and final validation losses for Figure 4. Losses are means population standard deviations over seeds 1, 2, and 42.
| Method | Learning rate | Validation loss |
|---|---|---|
| MND (uncentered) | 0.003 | 3.376 ± 0.00141 |
| MND | 0.003 | 3.373 ± 0.00122 |
| MND () | 0.003 | 3.409 ± 0.00280 |
| KL-Shampoo | 0.003 | 3.444 ± 0.0105 |
| Distributed Shampoo | 0.001 | 3.494 ± 0.00681 |
Algorithm 3 The (approximate) MN method with full factors
Require: Gradient matrix , step size , momentum coefficient , , and
1: Initialize , , and
2: for do
3: ▷ centered residual
4: ▷ update momentum
5:
6:
7: ▷ balance factors (67)
8:
9:
10: end for
Implemented diagonal recursion. All three variants use momentum decay , , no shrinkage, and one row/column sweep. Momentum starts at zero and the factor vectors at and . In the factor updates, centered and uncentered MND weight the previous factors by and the sample terms by ; the variant instead uses and . Centered samples subtract the previous momentum; the other variants use .
H.2 MN comparison
First we experiment with the full MN (Matrix Normal) method. Our focus here is on comparing the differences between Algorithm 3 and the KL-Shampoo method (Lin et al., 2026).
For both the matrix inverse and inverse square root in Algorithm 3 we use the Newton–Schulz method (Higham, 2008). The Newton–Schulz methods use polynomials of the matrix to approximate the (square root) inverse, and thus are GPU-friendly (Amsel et al., 2025).
To make the inversions more numerically stable, we apply the following shrinkage maps
Furthermore, to tackle the scale ambiguity in the factors and , we will fix the scale of these factors through their trace by applying the trace balancing operations
This trace balancing prevents one factor, say , from gradually becoming very large while becomes very small, which can cause floating-point issues.
Due to numerical instabilities of Newton–Schulz inversion, we replace the matrix products inside the trace terms of (19) and (20) by identity matrices, in particular , yielding the simplified factor updates in Algorithm 3.
For all of our experiments in this section we train a 124M-parameter GPT-small model on FineWeb-10B (Penedo et al., 2024) for 2.5B tokens (about 20 tokens per parameter, Chinchilla-style). We use seeds 1, 2, and 42. For all three MN variants, the learning rate grid is
For KL-Shampoo, it is
MN (uncentered) MN MN ( ) KL-Shampoo Distributed Shampoo

Learning rate
Iterations
Figure 11: Comparing three full-factor MN variants with KL-Shampoo and Distributed Shampoo on GPT-small for 2.5B tokens. Left: final validation loss versus learning rate. Right: training loss at the selected learning rates, smoothed separately per seed by an EMA with weight 0.05 on the current loss. Lines show means over three seeds; shading: seed ranges.
for Distributed Shampoo, it is
We select each method's learning rate by its mean final validation loss over the three seeds.
The main differences between our Algorithm 3 and the associated implementation of KL-Shampoo (Lin et al., 2026) are: 1) using centered samples, 2) a shared covariance discount and the additional multiplicative factor , and 3) a row-then-column sweep, shrinkage, Newton–Schulz inversion, and trace balancing. We compare variants to gauge the importance of centering and the covariance discount. We use MN to denote Algorithm 3, which contains all three of these differences. We use MN (uncentered) to denote the use of 2) and 3), that is, Algorithm 3 where . Finally, we use MN ( ) to denote Algorithm 3 but where , and replace in the factor prior terms by and in the evidence terms by . That is, MN ( ) uses KL-Shampoo-style factor updates, with a row-then-column sweep, shrinkage, trace balancing, and Newton–Schulz inversion. See Figure 11 for the comparison between all of these variants, where we have also included the official implementation of Distributed Shampoo (Shi et al., 2023) as a baseline. Selected learning rates and corresponding mean final validation losses are: MN (uncentered) (0.0006, 3.458), MN (0.0006, 3.453), MN ( ) (0.0006, 3.455), KL-Shampoo (0.003, 3.444), and Distributed Shampoo (0.001, 3.494).
On this learning rate sweep, each MN variant reaches a lower minimum validation loss as compared to Distributed Shampoo and has a wider basin of competitive learning rates. But KL-Shampoo achieves the lowest final validation loss. All variants also remain above the tuned AdamW mean of 3.381 in Figure 6. Centered MN achieves the lowest mean validation loss among the MN variants (3.453). For uncentered gradients, using a shared gives a slightly higher mean loss (3.458) than using a separate (3.455).
I Further MND-Muon experiments
This appendix supplements the experiments in Section 8 with training and optimizer settings, learning rate selection, and complete numerical results. All reported MND-Muon experiments use the diagonal direction method in Algorithm 2.
https://github.com/yorkerlin/KL-Methods
Table 2: GPT-small training settings. Batch-dependent entries follow the order 32, 64, 128, 512.
| Setting | Value |
|---|---|
| Microbatch per GPU | 8 sequences |
| Effective batch | 32, 64, 128, 512 sequences |
| Accumulation steps | 4, 8, 16, 64 |
| Tokens per optimizer step | 32,768; 65,536; 131,072; or 524,288 |
| Learning rate selection budget | 1,000,341,504 tokens |
| Final training budget | 2,486,697,984 tokens |
| Final optimizer steps | 75,888; 37,944; 18,972; or 4,743 |
| Learning rate schedule | linear warmup (10%), constant (80%), linear decay (10%) |
| Weight decay | 0 |
| Global gradient-norm clip | 1 |
| Implementation | BF16 autocast; torch.compile |
| FP32 matmul precision | highest |
I.1 Experimental setup
Baselines. For GPT-small, we compare MND-Muon with Muon, NorMuon, AdamW, Distributed Shampoo, and KL-Shampoo on FineWeb at batch 512 (Figure 6). AdamW uses ; Distributed Shampoo uses (0.9, 0.999), Adam grafting, and preconditioning every 100 steps; KL-Shampoo uses (0.9, 0.98), preconditioning every 10 steps, and no gradient normalization. Muon uses Nesterov momentum with coefficient 0.95. For AdamW, Distributed Shampoo, and KL-Shampoo, we sweep peak learning rates
the learning rate grid for Muon, NorMuon, and MND-Muon is given in Section I.2. For each method, we select the learning rate with the lowest validation loss after 1B tokens using seed 42, then train fresh runs for 2.5B tokens with seeds 42, 1, and 2 at that fixed learning rate. The right panel shows the mean training curve and pointwise minimum and maximum across these three seeds, after smoothing each seed with a 25M-token exponential moving average. The selected rates for MND-Muon, Muon, and NorMuon are all 0.03; those for AdamW, Distributed Shampoo, and KL-Shampoo are 0.003, 0.0006, and 0.003, respectively. The comparison across corpora and batch sizes includes MND-Muon, Muon, and NorMuon (Figure 13). Paired runs share initialization, token order, training budget, schedule, numerical precision, and validation data, with learning rates selected separately for each method.
Model. GPT-small has 12 layers, width 768, 12 attention heads, and 123,551,232 active parameters. Each layer uses width-2048 SwiGLU blocks, RMSNorm, rotary-style positional transforms, and PyTorch scaled-dot-product attention. The model has tied input/output embeddings, bias-free linear maps, and no dropout. Linear and embedding weights are initialized from centered Gaussians with standard deviation 0.02; residual projections use , where . Normalization scales start at one. The context length is 1024 and the vocabulary size is 50,257.
Data and loss. We use FineWeb-10B (Penedo et al., 2024) and a sequential 10.1B-token prefix of SlimPajama-627B (Soboleva et al., 2023), denoted SlimPajama. We tokenize documents with GPT-2, prepend an end-of-text token to each document, and concatenate them in dataset order. Training batches contain consecutive 1024-token sequences from this stream. We reserve the first 100M tokens for validation and evaluate final loss over all complete batches in this split. Loss is cross-entropy in nats per token.
Each paired GPT-small run uses one GPU. The Muon baselines use 80 GB NVIDIA A100 SXM4 or H100 PCIe GPUs; the new MND-Muon final runs use H100 or H200 GPUs. Table 2 gives the common training settings.
Optimizers. MND-Muon and Muon use polar updates for hidden-layer matrices, with the settings in Table 3. MND-Muon updates the row factor once, then the column factor once, holding the previous direction fixed. The tied embed-
Table 3: Optimizer settings used for both model sizes.
| Setting | MND-Muon | Muon |
|---|---|---|
| Matrix momentum | whitened-gradient EMA, 0.9 | Nesterov, 0.95 |
| Factor discount | 0.9 | — |
| Covariance factors | diagonal, direction-dependent | — |
| Factor updates per step | one row, then one column | — |
| Factor inverse floor | — | |
| Polar Express iterations | 5 | 5 |
ding/output matrix and nonmatrix parameters use a bias-corrected AdamW-style update with , , and the same base learning rate and schedule as the matrix updates.
NorMuon uses the authors' implementation with Nesterov momentum 0.95, five BF16 Newton–Schulz iterations, and a row mean-square EMA with coefficient 0.95. It normalizes rows of the orthogonalized update, restores its Frobenius norm, and applies the implementation's shape scaling. The Newton–Schulz and row-normalization stabilizers are and , respectively. Its auxiliary Adam updates use the same (0.95, 0.95) coefficients, stabilizer, and swept learning rate as the other methods.
I.2 GPT-small: learning rates and detailed results
We compare the methods on FineWeb and SlimPajama at effective batch sizes 32, 64, 128, and 512. For each method, corpus, and batch size, we select the learning rate with the lowest validation loss in the 1B-token sweep with seed 42. The learning rate grid is
We then train from initialization for 2.5B tokens at the selected learning rate using seeds 42, 1, and 2. Table 5 lists the selected learning rates.
FineWeb training curves. Paired runs share initialization and token order. At batch 64, mean final validation losses are 3.368 for MND-Muon, 3.362 for NorMuon, and 3.409 for Muon; at batch 128, they are 3.338, 3.340, and 3.354, respectively. For Figure 12, we smooth each seed's training loss with a 25M-token exponential moving average before computing the pointwise mean and minimum–maximum band. The horizontal axis counts optimizer updates: 37,944 at batch 64 and 18,972 at batch 128. Table 4 gives the independently selected learning rates and final validation losses for all three plotted methods. The bands describe training-loss variation; the table reports sample standard deviations of the final validation losses.
Table 4: FineWeb results corresponding to Figure 12. Validation loss is the mean sample standard deviation over seeds 1, 2, and 42 after 2.5B tokens. Bold marks the lowest unrounded mean loss for each batch size.
| Batch | Method | Learning rate | Validation loss |
|---|---|---|---|
| 64 | MND-Muon | 0.01 | |
| 64 | Muon | 0.01 | |
| 64 | NorMuon | 0.006 | |
| 128 | MND-Muon | 0.03 | |
| 128 | Muon | 0.02 | |
| 128 | NorMuon | 0.02 |
MND-Muon
Muon
NorMuon

Figure 12: FineWeb training loss versus iteration through 2.5B tokens. Lines: three-seed means; shading: seed ranges. Protocol and results: Section I.2.
Table 6: Final validation loss after 2.5B tokens. Entries are means sample standard deviations over seeds 1, 2, and 42. Bold marks the lowest unrounded mean loss in each row.
| Dataset | Batch | MND-Muon | Muon | NorMuon |
|---|---|---|---|---|
| FineWeb | 32 | 4.165 ± 1.21 | 4.343 ± 1.41 | 3.492 ± 0.0229 |
| FineWeb | 64 | 3.368 ± 0.0157 | 3.409 ± 0.0285 | 3.362 ± 0.00592 |
| FineWeb | 128 | 3.338 ± 0.0105 | 3.354 ± 0.0104 | 3.340 ± 0.00932 |
| FineWeb | 512 | 3.329 ± 0.000796 | 3.336 ± 0.000471 | 3.327 ± 0.00149 |
| SlimPajama | 32 | 3.151 ± 0.00150 | 3.234 ± 0.0643 | 3.162 ± 0.00162 |
| SlimPajama | 64 | 3.090 ± 0.00343 | 3.135 ± 0.0487 | 3.109 ± 0.0177 |
| SlimPajama | 128 | 3.066 ± 0.00278 | 3.090 ± 0.00369 | 3.070 ± 0.00306 |
| SlimPajama | 512 | 3.068 ± 0.000238 | 3.083 ± 0.00209 | 3.071 ± 0.00221 |
Table 5: Learning rates selected using seed 42; columns give effective batch size.
| Dataset | Method | 32 | 64 | 128 | 512 |
|---|---|---|---|---|---|
| FineWeb | MND-Muon | 0.03 | 0.01 | 0.03 | 0.03 |
| FineWeb | Muon | 0.03 | 0.01 | 0.02 | 0.03 |
| FineWeb | NorMuon | 0.01 | 0.006 | 0.02 | 0.03 |
| SlimPajama | MND-Muon | 0.02 | 0.02 | 0.02 | 0.03 |
| SlimPajama | Muon | 0.02 | 0.02 | 0.01 | 0.02 |
| SlimPajama | NorMuon | 0.006 | 0.01 | 0.01 | 0.02 |
Validation results. Figure 13 compares all three methods across batch sizes, showing mean validation losses and the full seed ranges. MND-Muon and NorMuon each outperform Muon in all eight corpus–batch means, and in 21 and 22 of the 24 seed pairs, respectively. MND-Muon has the lowest mean at FineWeb batch 128 and all four SlimPajama batches; NorMuon has the lowest mean at FineWeb batches 32, 64, and 512. Table 6 reports mean final validation losses and sample standard deviations for MND-Muon, Muon, and NorMuon over seeds 1, 2, and 42. All 72 completed endpoints are retained, including MND-Muon's FineWeb batch-32 seed-42 loss of 5.565 and Muon's seed-1 loss of 5.967. At this batch, NorMuon attains . Its only seed-level losses higher than Muon's are FineWeb batch 32, seed 2, and SlimPajama batch 64, seed 1.
MND-Muon
Muon
NorMuon

Effective batch (FineWeb)
Effective batch (SlimPajama)
Figure 13: Final validation loss versus effective batch size after 2.5B tokens on FineWeb (left) and SlimPajama (right). Lines show means over seeds 1, 2, and 42; shading spans their minimum and maximum.
Table 7: Training settings for the GPT-medium sweep.
| Setting | Value |
|---|---|
| Effective batch | 768 sequences of 1024 tokens |
| Tokens per optimizer update | 786,432 |
| Training budget | 7,090,470,912 tokens; 9,016 updates |
| Schedule | linear warmup, constant, linear decay toward zero |
| Warmup and decay | 901 updates each |
| Weight decay | 0 |
| Global gradient-norm clip | 1 |
| Numerical precision | BF16 autocast; FP32 parameters and state |
| Implementation | torch.compile; FP32 matmul precision highest |
| Seed | 42 |
| Validation | one evaluation at the end of each run |
I.3 GPT-medium: setup and full learning rate sweep
We use the same optimizer settings as for GPT-small (Table 3) and test six learning rates per method, including NorMuon. All eighteen runs use seed 42 and share initialization and token order.
Model. GPT-medium has 24 layers, width 1024, 16 attention heads, width-2730 SwiGLU blocks, and 353,454,080 active parameters. Other architecture and initialization settings follow Section I.1.
Data and loss. We use the FineWeb-10B data and validation split described in Section I.1. The split is made in token order; one document spans the training and validation shards.
Table 7 gives the training settings. All runs use single-node DDP with 32 accumulation steps per update.
Learning rate selection. We test peak learning rates
for Muon and
for MND-Muon and NorMuon. Each learning rate is tested for the full 7.09B-token budget with seed 42.
Complete results. Table 8 reports all eighteen final validation losses. The best losses are 3.013852 for MND-Muon at 0.045, 3.017372 for Muon at 0.04, and 3.007364 for NorMuon at 0.045. Muon's loss of 6.295429 at 0.045 and NorMuon's loss of 6.070581 at 0.09 exceed the displayed validation loss range. Figure 7 uses each method's best tested learning rate; the stability comparison uses 0.09 for MND-Muon and NorMuon, and 0.045 for Muon, its largest completed rate.
Table 8: Final GPT-medium validation loss after 7.09B training tokens, seed 42. Bold entries mark the best rate for each method before rounding; a dash denotes an untested combination.
| Learning rate | MND-Muon | Muon | NorMuon |
|---|---|---|---|
| 0.012 | 3.026 | 3.033 | 3.015 |
| 0.020 | 3.016 | 3.024 | 3.011 |
| 0.030 | 3.015 | 3.018 | 3.008 |
| 0.035 | — | 3.018 | — |
| 0.040 | — | 3.017 | — |
| 0.045 | 3.014 | 6.295 | 3.007 |
| 0.060 | 3.016 | — | 3.010 |
| 0.090 | 3.024 | — | 6.071 |
Figure 14 shows the validation loss sweep and training at each method's largest tested rate. MND-Muon remains stable at 0.09; Muon at 0.045 and NorMuon at 0.09 develop large loss spikes.

Learning rate
Iterations
Figure 14: GPT-medium on FineWeb, batch 768, seed 42. Left: final validation loss after 7.09B training tokens versus peak learning rate. Right: training loss versus iteration at each method's largest tested rate, smoothed with a 25M-token exponential moving average. MND-Muon at 0.09 remains stable (final loss 3.024); Muon at 0.045 and NorMuon at 0.09 develop large loss spikes (6.295 and 6.071).