Manuscript Offprint
arXiv:2610.08534How Bregman Divergences Shape Shampoo
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
ABSTRACT
Understanding the principles behind Shampoo has recently guided the development of more effective neural network optimizers. These methods learn a preconditioner by optimizing the Frobenius or Kullback-Leibler (KL) divergence against the gradient second moment. In this work, we investigate how the choice of divergence shapes preconditioning, which remains unclear and blocks further improvements. To do so, we develop a unified Bregman divergence framework that connects all popular divergences, allowing us to study them jointly. Through empirical spectral analysis of gradient second moments, we examine how divergence choice shapes Kronecker approximation and interacts with finite-sample error in preconditioning. We find that some divergences can better compensate for finite-sample underestimation of the empirical second moment, helping explain the differing behavior of their corresponding Shampoo variants. We further validate this explanation through GPT-2 pretraining experiments. By connecting divergence choice to practical training behavior, we believe our framework provides principled guidance for understanding the foundations of, and further improving, Shampoo.
1 INTRODUCTION
Shampoo's empirical success (Dahl et al., 2023; Kasimbeg et al., 2025) raises a fundamental question: what makes its preconditioner effective? This question has motivated a growing body of work (Morwani et al., 2025; Vyas et al., 2025; An et al., 2025; Eschenhagen et al., 2025; 2026; Lin et al., 2026) with the goal of developing more effective neural network optimizers. A promising approach is to view Shampoo's update scheme as a Kronecker-factored approximation of the full-matrix gradient second moment via Bregman divergence minimization (Lin et al., 2026). This approach recovers existing variants and produces new ones, including F-Shampoo with Frobenius divergence, VN-Shampoo with von Neumann divergence, and KL-Shampoo with Kullback-Leibler divergence. Recent studies have reported strong performance of KL-Shampoo in LLM pretraining (Eschenhagen et al., 2026; Zhang et al., 2026). However, the variants derived from different divergences perform very differently in practice (Figure 1, right). The framework of Lin et al. (2026) does not explain this performance gap. Given that improvements to Shampoo have been driven by understanding its principles, we argue that explaining this gap is essential for guiding the design of better variants, since many other Bregman divergences remain to be explored and evaluated. For example, preconditioned stochastic gradient descent (PSGD, Li, 2018; 2019) is a related method that has shown promising results (Frans et al., 2025) but whose success remains poorly understood. Surprisingly, we show that PSGD's strong performance can also be understood through its connection to a new Bregman divergence. Thus, our central question is:
How and why do different divergence objectives lead to differences in training performance?
To answer this question, we consider effects that are often conflated in practice. (1) The Kronecker factorization does not exactly capture the second moment. (2) Finite samples introduce errors both in the second moment and in the estimated Kronecker factors. (3) They also interact with each other.
Joint last authors.
Corresponding author: chengchengzhao@zju.edu.cn.
Table 1: Overview of the divergence properties studied in this work. The exponent indexes the trace-power family; spectral weighting and error asymmetry determine how approximation error is allocated, while few-sample error measures the stability of Kronecker factor estimation.
| Frobenius | von Neumann | Square root | KL | |
|---|---|---|---|---|
| Trace-power exponent | 2 | 1 (limit) | 0 (limit) | |
| Weight on large eigenvalues | Strong | Moderate | Mild | None |
| Penalized more | Overestimation | Overestimation | Symmetric | Underestimation |
| Error with few samples | Highest | Higher | Lower | Lowest |

Figure 1: Divergences shape preconditioning and training. Left and middle: A GPT-2 checkpoint (output_proj) at step 2,500, ordered by decreasing eigenvalue. Left: Empirical second-moment () eigenvalues become less reliable toward the tail, increasingly underestimating held-out scales (Section 4.1). Middle (smoothed curves, asinh y-axis for better resolution near zero): KL stays closest to the held-out target (dashed zero line), followed by SQ, compensating 's scale errors (Section 5). Right: GPT-2 validation loss relative to KL with asinh y-axis; lower is better (Section 6).
when used for preconditioning in practice. Divergence choice determines how these effects shape the resulting preconditioner. Thus, we decompose the question into the following sub-questions:
(Q1) How does divergence choice shape approximation errors?
(Q2) How does finite sampling affect Kronecker approximation?
(Q3) How do divergence choices and finite sampling jointly affect preconditioning?
By answering these questions, we make the following contributions:
(C1) A unified analysis of Kronecker approximation. We unify the three divergences from Lin et al. (2026) into a trace-power Bregman family and introduce a fourth, the square-root (SQ) divergence, which recovers the gradient-whitening objective of PSGD and yields SQ-Shampoo. We show how the family exponent determines which parts of the spectrum are prioritized, and whether over- or underestimation is penalized more (Table 1).
(C2) Finite-sample effects on Kronecker approximation. Finite sampling enters in two places. On GPT-2, we show that empirical gradient second moments severely underestimate tail eigenvalues even when gradients outnumber dimensions (Figure 1, left). As for the Kronecker factor estimation, the same exponent also controls the finite-sample error, with KL achieving the lowest error (Table 1, last row).
(C3) Explaining differences in inverse-root preconditioning. Last, we study how divergence-dependent approximation (C1) interacts with the two finite-sample effects in (C2) during preconditioning. The divergence properties help explain why SQ and KL better compensate for underestimated empirical eigenvalues (Figure 1, middle) and more reliably recover their large-sample gains from short gradient histories (Table 3). Consistently, SQ and KL also achieve lower GPT-2 validation losses than F and VN, with KL's advantage growing at larger widths.
Together, these results help explain how divergences affect preconditioning and training performance, and provide practical criteria for designing better Kronecker-factored optimizers.
Kronecker Approximation and Preconditioning For factors , , we consider methods that approximate by a Kronecker product , with inverse-root preconditioning:
Shampoo. Shampoo (Gupta et al., 2018; Anil et al., 2020) maintains averages , of and . Its preconditioning step is . Motivated by gradient second-moment approximation, modern Shampoo variants (Shi et al., 2023; Morwani et al., 2025; Eschenhagen et al., 2025) use , while original Shampoo (Gupta et al., 2018) uses .
PSGD. Preconditioned stochastic gradient descent (PSGD, Li, 2018; 2019) learns a preconditioner P that acts on the stochastic gradient as . Its Fisher-type gradient-whitening objective is
with unique dense solution . PSGD-Kron restricts the preconditioner to a Kronecker product and learns the factors through relative-gradient updates (Li, 2019).
Although PSGD and Shampoo were developed independently, we will show in the next section that PSGD-Kron is closely related to a Shampoo variant under a new Bregman divergence. This allows us to understand them and explain their strong performance in a unified way.
Bregman matrix divergences. For a strictly convex, differentiable , we apply spectrally to SPD matrices. Given the eigendecomposition , and . Since , is also strictly convex on SPD matrices, whenever is strictly convex. For , the Bregman matrix divergence (Dhillon & Tropp, 2008) is
where is the Frobenius inner product. It is nonnegative and vanishes exactly when . Choosing , , or gives Frobenius (F), von Neumann (VN), or Kullback-Leibler (KL) divergence, respectively. The KL divergence is also known as the LogDet divergence in the literature. Appendix B gives matrix formulas for these divergences.
Deriving Shampoo methods via Bregman divergence minimization. Lin et al. (2026) derive F-, VN-, and KL-Shampoo variants from the stationarity condition of the following Bregman objective:
with different generators . However, these variants perform differently in practice (Figure 1, right) when training neural networks. The relationship between the choice of and empirical training performance remains unknown, as the authors do not explain it. Understanding this connection helps guide the design of better Kronecker-factored optimizers. Appendix A discusses related work in detail.
3 KRONECKER APPROXIMATION ERROR ALLOCATION
We first address Q1: How does divergence choice shape approximation errors? We use a trace-power Bregman family to unify Shampoo variants and connect the Kronecker-constrained PSGD objective in Equation (1) to the Bregman formulation in Equation (3). Then, within this family, we compare how the divergences allocate spectral approximation error.
3.1 A TRACE-POWER FAMILY OF KRONECKER PRECONDITIONERS
Unified analysis of Bregman objectives. We formulate the objectives above through a trace-power Bregman family, obtained by extending scalar divergence generators (Cichocki & Amari, 2010) to SPD matrices via spectral functions (Amari, 2014). Our unification further clarifies the choice of the generators and lets us connect PSGD-Kron and study its related variant within the same framework.
Proposition 1 (Unification of Shampoo and PSGD-Kron via the Trace-Power Bregman Objective). The objectives of F-, VN-, and KL-Shampoo and the gradient-whitening objective of PSGD-Kron belong to the same trace-power Bregman family, generated by . Here, is applied spectrally to the eigenvalues of M as defined in Section 2. The four scalar generators are shown in Figure 2:

Figure 2: The family of scalar generators inducing trace-power Bregman divergences we study through one unifying lens. Shown with an asinh vertical scale.
Let denote the exponent for divergence D. Frobenius has , while von Neumann and KL divergences arise as and , respectively, for which we denote the exponents by and . The square-root (SQ) member, , recovers PSGD-Kron's gradient-whitening objective equation 1 under , up to a positive scale and an additive constant.
Setting gives the coupled stationarity equations:
Every joint stationary point satisfies these coupled equations. See proof in Appendix B.1.
Square-root (SQ) Shampoo. To better understand how the choice of Bregman divergence shapes optimization, we consider a new Shampoo variant—square-root (SQ)-Shampoo—that is induced by the Bregman family and recovers PSGD's objective function by setting in Equation (4). We consider this variant because the existing PSGD method does not employ a Shampoo-like scheme.
We consider four divergences in this work. For a fair comparison, we adopt the estimation technique suggested by Lin et al. (2026) in our study of divergence-induced update schemes, which reduces cost and resembles Shampoo's update scheme. Implementation details are given in Appendix C. We then examine how these divergences allocate approximation error under limited Kronecker capacity (Section 3.2).
3.2 SPECTRAL ERROR ALLOCATION UNDER LIMITED KRONECKER CAPACITY
As our theory (Appendix B.2) and empirical results (Figure 5, left) show, a single Kronecker product generally cannot match C exactly. The divergence therefore determines how the remaining approximation errors are penalized. These penalty properties are not specific to gradient second moments, so we first derive them for arbitrary SPD matrices to isolate the effect of the divergence itself.
Proposition 2 (Spectral Error Decomposition and Scaling). Let , have eigenpairs and ordered by decreasing eigenvalue, and set . Writing for the scalar Bregman divergence generated by , we have
For the trace-power scalar generator , write and . Both mismatch costs behave similarly when eigenvalues are re-scaled: for any , they satisfy
Thus q controls how strongly both mismatch costs depend on eigenvalue scale.
Eigenspace mismatch. Keeping the eigenvectors fixed (and hence P unchanged), multiplying all eigenvalues of both matrices by multiplies the eigenspace-mismatch cost by . Thus larger q places greater relative weight on the same eigenspace misalignment at larger eigenvalue scales.
Eigenvalue (spectral) mismatch. Writing , , , and , the scalar eigenvalue penalties are
(6)
For fixed relative mismatch r, the weights show that larger q puts more emphasis on large eigenvalues (Figure 3, left). We call their associated eigenvectors leading directions.
Over- versus under-estimation and asymmetry. For , the fitted values and over- and under-estimate by the same multiplicative factor. Their penalties satisfy (Figure 3, right)
(7)

Figure 3: Left: Normalized penalties for . Smaller q places less emphasis on large eigenvalues; KL is scale-independent. Right: versus r, with a log horizontal scale and an asinh vertical scale. F and VN favor underestimation over reciprocal overestimation, KL shows the opposite preference, and SQ is symmetric.
Table 1 summarizes these properties together with the finite-sample results from Section 4.2. Appendix B.3.4 gives the Kronecker decomposition and shows that the same penalty rules still hold.
Takeaway. Smaller gives more weight to the tail spectrum and penalizes underestimation more strongly, encouraging larger fitted eigenvalues. These larger eigenvalues can help avoid excessive inverse-root amplification, motivating smaller in preconditioner design.
4 FINITE-SAMPLE EFFECTS ON KRONECKER APPROXIMATION
We now turn to Q2: How does finite sampling affect Kronecker approximation? Finite sampling enters in two places: the empirical second-moment target and the estimated Kronecker factors in Equation (4). We examine the reliability of the target before Kronecker fitting, and then study divergence-dependent factor estimation from limited samples.
4.1 RELIABILITY OF THE EMPIRICAL SECOND-MOMENT TARGET
We test the reliability of the empirical gradient second moment by computing its eigenvectors on one data split and comparing second-moment values along the same directions on other independent data splits (Figure 1, left).
Shared experimental design (full details in Appendix E). Sections 4.1 and 5 use the same setup. First, we train a model (GPT-2 (Jordan et al., 2024) on FineWeb, 12 layers, hidden size 128) with AdamW and collect a large number of mini-batch gradients (batch size 64, sequence length 512), at selected checkpoints (100, 2,500, and 4,500) during training. We then split those gradients into four disjoint splits (each of size ). Each split gives rise to an empirical gradient second moment with the nth mini-batch gradient in split . In what follows, we focus on the query, value, and output projection weights of the model's 5th block, for which . Thus, rank deficiency is not forced by the sample count. We repeated the analyses on checkpoints generated by training with Shampoo and find similar results (Appendix E.6). This large-sample setting provides an offline reference for subsequent preconditioning comparisons.
Are empirical second-moments reliable? Following high-dimensional covariance estimation work (Ledoit & Wolf, 2012), we estimate eigenvectors on a source split s and test their directional scales on a held-out split . Let denote the eigenpairs of the empirical moment on split . To assess the representativeness of the source eigenvalues, we keep the source directions fixed and compare their directional scales across splits. Along each direction, the source scale is and the held-out scale is . These scales can agree even if is not an eigenvector of . We measure held-out scale error by comparing held-out and source scales:
Interpretation. Zero indicates cross-split agreement; positive values indicate underestimation and negative values indicate overestimation. Larger absolute values indicate greater mismatch. Thus, values close to zero across the spectrum indicate reliable empirical second moments.
Remark 3. We focus on eigenvalue (scale) reliability, without eigenvector stability. These directions need not remain eigenvectors across splits. What matters is whether the scales along these directions reproduce on independent data, supporting the scaling applied by the preconditioner is stable.
Empirical eigenvalues become less reliable toward the tail. In Figure 1 (left), using the AdamW step-2,500 output projection, held-out scale error is near zero for large eigenvalues and rises toward smaller eigenvalues, showing increasingly severe underestimation. Held-out scale error remains near zero in leading directions and strongly positive in the tail across checkpoints and projections from both AdamW and Distributed Shampoo (Table 9 and Figure 9). We also compare scales along directions selected from a third split , independently of both splits above. The resulting cross-fit errors stay near zero across the spectrum, supporting sampling noise as the source of the scale differences (see Appendix E.1.1).
Held-out scale as the correction. Covariance estimation and mini-batch curvature debiasing consider a correction based on separate data: keep the estimated eigenvectors, but replace their sample eigenvalues with scales measured along those directions on an independent batch (Ledoit & Wolf, 2012; Tatzel et al., 2025). Here, the replacement for is precisely the held-out scale in Equation (8). This motivates using it as the reference for preconditioner gains in Section 5.2
Takeaway. Even with many gradients, empirical second moments can underestimate the tail of the spectrum. Using one data split to estimate the eigenvectors and another to measure their scales reveals this finite-sample bias. Under inverse-root preconditioning, such underestimation can lead to overly large gains, and is even more pronounced in practice with short gradient histories.
4.2 FINITE-SAMPLE STABILITY OF KRONECKER FACTORS
The previous subsection shows finite-sample bias in the second moment. In practice, Kronecker factors are also estimated from shorter gradient histories, introducing another source of sampling error. We use a controlled model to isolate how divergence choice affects this factor estimation.
Model and isolated empirical factor estimation. To separate sampling error from approximation error in Kronecker approximation, we consider an exact Kronecker Gaussian model :
Fixing and replacing the expectation in Equation (4) with the sample expectation over independent gradients gives the empirical estimate
Analogously, we define the right-side counterpart of to be the empirically estimated right factor on samples when fixing the left factor to be .
Proposition 4 (Finite-Sample Factor Stability). Define the effective rank and the relative factors and , which in the case of perfect estimation simplify to the identity matrix. Under Equation (9), the estimator in Equation (10) and its right-factor counterpart, with the opposite factor fixed at its population value, satisfy
Since is non-increasing in , as shown in Figure 4, left, these errors satisfy
with equality when the opposite factor has a flat spectrum. See proof in Appendix B.4.
Why Frobenius fitting has larger estimation error. For a long-tailed , puts most of its weight on a few large eigenvalues, reducing the effective number of directions that average out sampling noise. Equivalently, has a smaller effective rank, leading to larger estimation error. KL weights all directions equally, giving the largest effective rank and the smallest error under the assumptions of Proposition 4.
Scope, limitations, and empirical evidence. Here, our aim is to compare finite-sample factor stability across F, VN, SQ, and KL using the common exponent q introduced in Section 3.1. Joint Kronecker Gaussian estimation has been extensively studied in statistics. In particular, McCormack & Hoff (2025) characterize the asymptotic efficiency loss of VN relative to KL, while Franks et al. (2026) give high-probability error bounds for KL. However, these results do not directly provide a finite-sample comparison across all four divergences in our setting.
Our analysis estimates one factor with the other fixed under an exact Kronecker Gaussian model. This removes the coupling between factors and isolates the effect of spectral weighting, yielding a unified exact error formula for all four divergences. To test whether the ordering persists under joint fitting beyond these assumptions, we fit both factors on synthetic long-tailed non-Kronecker Gaussian gradients. The mean errors follow the predicted ordering at every tested sample size (Figure 4, right). Section 5.3 further examines the recovery of large-sample inverse-root gains on real gradients, without Gaussian or Kronecker assumptions.

Figure 4: Left: Effective rank for eigenvalues . Right: Mean squared relative Frobenius error of the jointly fitted (Equation (19)) on non-Kronecker gradients over 20 repeats, relative to each method's 4096-sample fit. Both results favor smaller , consistent with the theoretical prediction in Proposition 4.
Takeaway. With limited gradient samples, smaller gives more accurate Kronecker factor estimates under our model, with KL achieving the lowest expected relative error. The same trend also holds empirically beyond these assumptions. This favors smaller for preconditioners, where more stable factor estimates lead to reliable preconditioning from limited gradient histories.
5 FROM KRONECKER APPROXIMATIONS TO PRECONDITIONING
Q1 characterizes divergence-dependent approximation error allocation, while Q2 shows how finite sampling affects both the empirical target and Kronecker factor estimation. We now address Q3: how do divergence choice and finite sampling jointly affect preconditioning? We first examine whether large-sample Kronecker fits on real gradients follow the spectral predictions from Q1. Then, we ask how these fits interact with the finite-sample bias identified in Q2 when converted into inverse-root gains, and whether these gains remain reliable with short gradient histories.
5.1 LARGE-SAMPLE KRONECKER FITS
We fit each Kronecker state to the empirical second moment , using all gradients in split 0. These large-sample fits show how different divergences allocate approximation error and whether the observed results, shown in Figure 5, match the predictions in Section 3.2.
Eigenvalues. We compare empirical and fitted eigenvalues in decreasing order. F underestimates much of the empirical spectrum, while VN follows it; SQ and KL have larger fitted tail eigenvalues. The same pattern holds across the other checkpoints and projections; see Figure 13.
Eigenspaces. Let and contain the leading eigenvectors of and . Following Song et al. (2025), we measure their subspace overlap by , where 1 means identical subspaces and 0 means orthogonal subspaces. F best matches the leading eigenvector, while KL achieves higher overlap for most larger subspaces. Since inverse-root gains depend on both eigenspace overlap and fitted eigenvalues, we examine their joint effect in Section 5.2.
AdamW, step 2500, output

F VN SQ KL
Figure 5: Large-sample Kronecker fits. Left: empirical and fitted eigenvalues. Right: overlap of the leading subspaces. The fitted spectra and eigenspaces follow the divergence-dependent preferences predicted in Section 3.2.
Takeaway. The Kronecker fits reflect the spectral preferences predicted in Section 3.2.
5.2 PRECONDITIONING GAINS OF LARGE-SAMPLE FITS
The previous subsection shows that divergence choice leads to different eigenvalues and eigenspaces in the Kronecker fits. To answer Q3, we now ask how these differences translate into preconditioning through . We compare the resulting preconditioning gains with held-out inverse-root scales to test whether each fit compensates for the finite-sample scale errors identified in Section 4.1.
Following the held-out correction in Section 4.1, we use scales measured on independent data along the fixed source eigenvectors as the reference for preconditioning. Let be the eigenpairs of the source second moment . We average the three held-out directional scales, , and use as the reference gain along . For a fitted state , we define the held-out gain error as
Interpretation. Zero means matching the scaling factor estimated from held-out data; positive and negative values mean larger and smaller scales, respectively. Our goal is to keep this error close to zero across the whole spectrum.

Figure 6: Smoothed log held-out gain error for the output projection at AdamW step 2,500. Closer to zero is better; with asinh vertical scale. Left: large-sample fit; middle: 40-sample fits (4 repeats); right: EMA (16 repeats). Black solid: large-sample in all panels; dashed: the held-out target.
Divergence choice shapes inverse-root gains. KL and SQ better compensate for empirical second-moment scaling error and stay closer to the held-out target across the whole spectrum, with KL achieving the lowest error (Figure 6, left, and Table 2). Results across the remaining checkpoints and projections show the same pattern (Appendix E.3).
Link to divergence properties. The behavior above follows the spectral preferences in Section 3.2. F and VN emphasize the leading spectrum and tend to underestimate the remaining eigenvalues,
Table 2: Absolute held-out gain error (Equation (11), ). KL has the lowest mean error, followed by SQ. Each experiment contributes the median over all directions and repeats; entries show mean sample SD across nine checkpoint-projection pairs per training optimizer.
| Optimizer | Method | Large-sample | 40-sample | EMA |
|---|---|---|---|---|
| AdamW | F | |||
| VN | ||||
| SQ | ||||
| KL | ||||
| Distributed Shampoo | F | |||
| VN | ||||
| SQ | ||||
| KL |
whereas KL weights errors uniformly across the spectrum and tends to overestimate; SQ lies in between. This yields larger eigenvalues for SQ and KL, which can reduce excessive inverse-root amplification during preconditioning and brings the gains closer to the held-out targets (more details in Appendix E.4).
Takeaway. KL, closely followed by SQ, best compensates for the finite-sample underestimation in the empirical second moment, keeping inverse-root gains closer to the desired scaling across the spectrum.
5.3 FEW-SAMPLE FITS AND ONLINE EMA
The large-sample behavior is useful in practice only if it can be recovered from short gradient histories. We therefore evaluate both few-sample fitting and online EMA using two metrics: recovery error, which measures how closely each method reproduces its own large-sample gains, and the held-out gain error from Section 5.2, which measures agreement with the held-out target.
Configuration. All four methods follow the EMA scheme of Lin et al. (2026), detailed in Appendix C.5, with and eigendecomposition every five steps. Equal-weight fits use gradients, close to the nominal EMA effective sample size . Each EMA repeat uses 512 gradients to reduce initialization effects. Table 8 summarizes these settings.
Recovery error. For this metric, the reference is each method's large-sample fit . Let be the few-sample or EMA fit, and let be the eigenpairs of . We compare inverse-root amplification along the reference directions :
Interpretation. The gain mismatch is zero when the large-sample scaling is recovered; positive and negative values indicate stronger and weaker amplification, respectively. We also want to keep this error close to zero across the whole spectrum.
Table 3: Recovery error (Equation (12), ). KL has the lowest mean error, followed by SQ. Each experiment contributes the median over all reference directions and repeats; entries show mean sample SD across nine checkpoint-projection pairs per training optimizer.
| Divergence | AdamW | Distributed Shampoo | ||
|---|---|---|---|---|
| Few-sample | EMA | Few-sample | EMA | |
| F | ||||
| VN | ||||
| SQ | ||||
| KL | ||||
Finite-sample gain results. KL has the lowest recovery error, followed by SQ, VN, and F, across both 40-sample fits and EMA and both checkpoint sources (Table 3). The same ordering holds for aggregate held-out gain error (Table 2 and Figure 6, middle and right). Additional results in Appendix E.5 show the same trend.
For EMA weights , the effective sample size is .
Connecting Q1 and Q2. Q1 shows that SQ and KL put more emphasis on the entire spectrum and produce larger fitted tail eigenvalues. Q2 reveals two finite-sample effects: the empirical second moment underestimates the tail, while lower- factor estimates are more stable with limited gradients. Together, these effects explain why SQ and KL better compensate for the empirical second moment bias and recover their large-sample gains more reliably.
Takeaway. Divergence choice and finite sampling jointly shape preconditioning. KL, closely followed by SQ, best compensates for tail underestimation and yields more reliable gains from short gradient histories.
6 GPT-2 TRAINING
We next test whether the gain differences observed above are reflected in GPT-2 training.
Prediction. More generally, we expect preconditioners whose inverse-root gains stay close to the held-out targets across the spectrum and remain reliable with short gradient histories to perform better in training. This suggests the held-out gain and recovery errors in Section 5 as practical metrics for evaluating optimizer designs. For the methods studied here, we therefore expect KL and SQ to perform similarly and better than F and VN, with a slight advantage for KL.
We compare F-, VN-, SQ-, and KL-Shampoo by their final validation losses after training 12-layer GPT-2 models on FineWeb at several widths. Across widths 256–1,536, all methods use 5,100 updates and spectral EMA ( ). Appendix F gives the full settings and training curves.
| Method / width | 256 | 512 | 768 | 1024 | 1536 |
|---|---|---|---|---|---|
| F | 3.8281 | 3.5082 | 3.3993 | 3.3528 | 3.3111 |
| VN | 3.7573 | 3.4377 | 3.2876 | 3.1979 | 3.0972 |
| SQ | 3.7450 | 3.4173 | 3.2661 | 3.1824 | 3.0817 |
| KL | 3.7475 | 3.4180 | 3.2660 | 3.1769 | 3.0758 |
Table 4: Final GPT-2 validation loss on FineWeb after 5,100 updates ( ); one run per configuration. SQ and KL outperform F and VN at every width. Bold marks the lowest loss in each column.
SQ and KL achieve lower validation losses than F and VN at every width, consistent with this prediction (Figure 1, right, and Table 4). Their losses are similar at smaller widths, while KL achieves lower losses at the two largest widths.
7 CONCLUSION
We used a trace-power Bregman family to unify divergence-based Shampoo variants and connect SQ-Shampoo to PSGD-Kron, showing how divergence choice shapes Kronecker approximation error. We then identified two finite-sample effects: empirical second moments can underestimate tail eigenvalues, while divergence choice also affects the stability of Kronecker factor estimation. Together, these effects explain why SQ and KL better compensate for the underestimation of empirical second moments and recover their large-sample gains more reliably from short gradient histories. Consistently, SQ and KL achieve lower GPT-2 validation losses than F and VN. Our held-out gain and recovery errors provide practical metrics for evaluating new preconditioners.
REFERENCES
Naman Agarwal, Rohan Anil, Elad Hazan, Tomer Koren, and Cyril Zhang. Disentangling adaptive gradient methods from learning rates. arXiv preprint arXiv:2002.11803, 2020.
Shun-Ichi Amari. Natural gradient works efficiently in learning. Neural Computation, 10(2):251–276, 1998.
Shun-ichi Amari. Information geometry of positive measures and positive-definite matrices: Decomposable dually flat structure. Entropy, 16(4):2131–2145, 2014.
Kang An, Yuxing Liu, Rui Pan, Yi Ren, Shiqian Ma, Donald Goldfarb, and Tong Zhang. ASGO: Adaptive structured gradient optimization. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Rohan Anil, Vineet Gupta, Tomer Koren, Kevin Regan, and Yoram Singer. Scalable second order optimization for deep learning. arXiv preprint arXiv:2002.09018, 2020.
Zhidong Bai and Jack W Silverstein. Spectral analysis of large dimensional random matrices, volume 20. Springer, 2010.
Daniel Bartz. Cross-validation based nonlinear shrinkage. arXiv preprint arXiv:1611.00798, 2016.
Andrzej Cichocki and Shun-ichi Amari. Families of alpha-beta-and gamma-divergences: Flexible and robust measures of similarities. Entropy, 12(6):1532–1568, 2010.
George E Dahl, Frank Schneider, Zachary Nado, Naman Agarwal, Chandramouli Shama Sastry, Philipp Hennig, Sourabh Medapati, Runa Eschenhagen, Priya Kasimbeg, Daniel Suo, et al. Benchmarking neural network training algorithms. arXiv preprint arXiv:2306.07179, 2023.
Inderjit S Dhillon and Joel A Tropp. Matrix nearness problems with bregman divergences. SIAM Journal on Matrix Analysis and Applications, 29(4):1120–1146, 2008.
John Duchi, Elad Hazan, and Yoram Singer. Adaptive subgradient methods for online learning and stochastic optimization. Journal of Machine Learning Research, 12(61):2121–2159, 2011.
Pierre Dutilleul. The mle algorithm for the matrix normal distribution. Journal of Statistical Computation and Simulation, 64(2):105–123, 1999.
Runa Eschenhagen, Alexander Immer, Richard Turner, Frank Schneider, and Philipp Hennig. Kronecker-factored approximate curvature for modern neural network architectures. Advances in Neural Information Processing Systems, 36:33624–33655, 2023.
Runa Eschenhagen, Aaron Defazio, Tsung-Hsien Lee, Richard E. Turner, and Hao-Jun Michael Shi. Purifying shampoo: Investigating shampoo's heuristics by decomposing its preconditioner. In The Thirty-ninth Annual Conference on Neural Information Processing Systems, 2025.
Runa Eschenhagen, Anna Cai, Tsung-Hsien Lee, and Hao-Jun Michael Shi. Clarifying shampoo: Adapting spectral descent to stochasticity and the parameter trajectory. arXiv preprint arXiv:2602.09314, 2026.
Cole Franks, Rafael Oliveira, Akshay Ramachandran, and Michael Walter. Near optimal sample complexity for matrix and tensor normal models via geodesic convexity. The Annals of Statistics, 54(1):93–119, 2026.
Kevin Frans, Sergey Levine, and Pieter Abbeel. A stable whitening optimizer for efficient neural network training. Advances in Neural Information Processing Systems, 38:174086–174110, 2025.
Kaixin Gao, Xiaolei Liu, Zhenghai Huang, Min Wang, Zidong Wang, Dachuan Xu, and Fan Yu. A trace-restricted kronecker-factored approximation to natural gradient. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 7519–7527, 2021.
Roger Grosse and James Martens. A kronecker-factored approximate fisher matrix for convolution layers. In International Conference on Machine Learning, pp. 573–582. PMLR, 2016.
Vineet Gupta, Tomer Koren, and Yoram Singer. Shampoo: Preconditioned stochastic tensor optimization. In International Conference on Machine Learning, pp. 1842–1850. PMLR, 2018.
Tom Heskes. On “natural” learning and pruning in multilayered perceptrons. Neural Computation, 12(4):881–901, 2000.
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, 2024. URL https://github.com/KellerJordan/modded-nanogpt.
Priya Kasimbeg, Frank Schneider, Runa Eschenhagen, Juhan Bae, Chandramouli Shama Sastry, Mark Saroufim, Boyuan Feng, Less Wright, Edward Z. Yang, Zachary Nado, Sourabh Medapati, Philipp Hennig, Michael Rabbat, and George E. Dahl. Accelerating neural network training: An analysis of the algoperf competition. In The Thirteenth International Conference on Learning Representations, 2025.
Juno Kim, Eshaan Nichani, Denny Wu, Alberto Bietti, and Jason D Lee. Sharp capacity scaling of spectral optimizers in learning associative memory. arXiv preprint arXiv:2603.26554, 2026.
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
Brian Kulis, Mátyás A Sustik, and Inderjit S Dhillon. Low-rank kernel learning with bregman matrix divergences. Journal of Machine Learning Research, 10(13):341–376, 2009.
Frederik Kunstner, Lukas Balles, and Philipp Hennig. Limitations of the empirical fisher approximation for natural gradient descent. Advances in Neural Information Processing Systems, 32, 2019.
Olivier Ledoit and Michael Wolf. Nonlinear shrinkage estimation of large-dimensional covariance matrices. The Annals of Statistics, 40(2):1024–1060, 2012. doi: 10.1214/12-AOS989.
Xi-Lin Li. Preconditioned stochastic gradient descent. IEEE Transactions on Neural Networks and Learning Systems, 29(5):1454–1466, 2018.
Xi-Lin Li. Preconditioner on matrix lie group for sgd. In International Conference on Learning Representations, 2019.
Wu Lin, Felix Dangel, Runa Eschenhagen, Kirill Neklyudov, Agustinus Kristiadi, Richard E Turner, and Alireza Makhzani. Structured inverse-free natural gradient descent: Memory-efficient & numerically-stable kfac. In Forty-first International Conference on Machine Learning, 2024.
Wu Lin, Scott C. Lowe, Felix Dangel, Runa Eschenhagen, Zikun Xu, and Roger Baker Grosse. Understanding and improving shampoo and SOAP via kullback-leibler minimization. In The Fourteenth International Conference on Learning Representations, 2026.
Bing Liu, Wenjie Zhou, and Chengcheng Zhao. Rethinking Bregman divergences in Kronecker-factored optimizers. In ICML Workshop on High-dimensional Learning Dynamics, 2026.
James Martens and Roger Grosse. Optimizing neural networks with kronecker-factored approximate curvature. In International Conference on Machine Learning, pp. 2408–2417. PMLR, 2015.
James Martens, Jimmy Ba, and Matt Johnson. Kronecker-factored curvature approximations for recurrent neural networks. In International Conference on Learning Representations, 2018.
Andrew McCormack and Peter Hoff. Information geometry and asymptotics for kronecker covariances. Bernoulli, 31(4):3165–3186, 2025.
Depen Morwani, Itai Shapira, Nikhil Vyas, Eran Malach, Sham M Kakade, and Lucas Janson. A new perspective on shampoo's preconditioner. In The Thirteenth International Conference on Learning Representations, 2025.
Yi Ren and Donald Goldfarb. Tensor normal training for deep learning models. Advances in Neural Information Processing Systems, 34:26040–26052, 2021.
Hao-Jun Michael Shi, Tsung-Hsien Lee, Shintaro Iwasaki, Jose Gallego-Posada, Zhijing Li, Kaushik Rangadurai, Dheevatsa Mudigere, and Michael Rabbat. A distributed data-parallel py-torch implementation of the distributed shampoo optimizer for training neural networks at-scale. arXiv preprint arXiv:2309.06497, 2023.
Minhak Song, Kwangjun Ahn, and Chulhee Yun. Does sgd really happen in tiny subspaces? In 13th International Conference on Learning Representations. International Conference on Learning Representations (ICLR), 2025.
Lukas Nicola Tatzel, Bálint Mucsányi, Osane Hackel, and Philipp Hennig. Debiasing mini-batch quadratics for applications in deep learning. In International Conference on Learning Representations, volume 2025, pp. 41298–41337, 2025.
Valentin Thomas, Fabian Pedregosa, Bart Merriënboer, Pierre-Antoine Manzagol, Yoshua Bengio, and Nicolas Le Roux. On the interplay between noise and curvature and its effect on optimization and generalization. In International Conference on Artificial Intelligence and Statistics, pp. 3503–3513. PMLR, 2020.
Nikhil Vyas, Depen Morwani, Rosie Zhao, Itai Shapira, David Brandfonbrener, Lucas Janson, and Sham Kakade. Soap: Improving and stabilizing shampoo using adam for language modeling. In International Conference on Learning Representations, volume 2025, pp. 93423–93444, 2025.
Shuche Wang, Fengzhuo Zhang, Jiaxiang Li, Cunxiao Du, Chao Du, Tianyu Pang, Zhuoran Yang, Mingyi Hong, and Vincent Tan. Muon outperforms adam in tail-end associative memory learning. In International Conference on Learning Representations, volume 2026, pp. 37382–37419, 2026.
Lei Wu, Mingze Wang, and Weijie Su. The alignment property of sgd noise and how it helps select flat minima: A stability analysis. Advances in Neural Information Processing Systems, 35:4680–4693, 2022.
Ashley Zhang, Ben Keigwin, Dhruv Pai, and Alec Dewulf. Online kl shampoo. 2026. URL https://tilderesearch.com/blog/online-kl-shampoo.
Zhanxing Zhu, Jingfeng Wu, Bing Yu, Lei Wu, and Jinwen Ma. The anisotropic noise in stochastic gradient descent: Its behavior of escaping from sharp minima and regularization effects. In International Conference on Machine Learning, pp. 7654–7663. PMLR, 2019.
APPENDIX CONTENTS
A Related Work 15
B Proofs 16
B.1 Proof of Proposition 1 16
B.2 Limited Kronecker Capacity 18
B.3 Spectral Error Decomposition and Kronecker Approximations 18
B.3.1 Proof of Proposition 2 18
B.3.2 Divergence-Specific Spectral Penalties 19
B.3.3 Reciprocal Asymmetry 19
B.3.4 Kronecker Approximations 20
B.4 Proof of Proposition 4 20
B.5 Local Geometry of SQ and KL 21
C Preconditioner Update Details 22
C.1 Original Shampoo 22
C.2 PSGD-Kron, SQ-Shampoo, and KL-Shampoo 22
C.3 Divergence-Based Factor Statistics 22
C.4 Offline Fixed-Point Fits 23
C.5 Online EMA Updates 23
D Synthetic Validation 23
D.1 Experimental Setup 23
D.2 Metrics and Results 24
D.3 Directional Gain Interventions on a Quadratic 25
E Real-Gradient Experimental Details 26
E.1 Empirical Second Moments and Finite-Sample Effects 26
E.1.1 Finite-Sample Tail Selection 26
E.1.2 High-Dimensional Sampling and Tail Signals 27
E.2 Reliability Across Checkpoints 27
E.3 Inverse-Root Gain Across Checkpoints 28
E.4 Kronecker Fits of Different Divergences 30
E.5 Gain Recovery with Short Gradient Histories 31
E.6 Diagnostics on Distributed Shampoo Checkpoints 33
F GPT-2 Training Details and Full Results 34
A RELATED WORK
Natural gradients and structured curvature. Natural gradient descent uses the Fisher metric to account for parameter-space geometry (Amari, 1998). Layered Fisher approximations (Heskes, 2000) and K-FAC (Martens & Grosse, 2015) make this approach tractable by exploiting network structure. Subsequent work extends Kronecker factorizations to convolutional layers (Grosse & Martens, 2016), recurrent networks (Martens et al., 2018), and general linear layers with weight sharing (Eschenhagen et al., 2023). Tensor Normal Training uses a tensor-normal model of sampled gradients to approximate the Fisher (Ren & Goldfarb, 2021), TKFAC imposes trace constraints (Gao et al., 2021), and SINGD incorporates inverse-free updates to avoid explicit matrix inversion (Lin et al., 2024).
Shampoo and Kronecker approximation. AdaGrad preconditions gradients using their accumulated second moments (Duchi et al., 2011), while Adam uses an exponential moving average of squared gradients for coordinate-wise scaling (Kingma & Ba, 2015). Shampoo exploits tensor structure to construct a Kronecker-factored bound on full-matrix AdaGrad (Gupta et al., 2018). Distributed computation, infrequent inverse-root updates, and learning-rate grafting make Shampoo practical at scale (Anil et al., 2020; Agarwal et al., 2020; Shi et al., 2023). SOAP applies Adam in Shampoo's eigenbasis to improve training performance and stability (Vyas et al., 2025). Morwani et al. (2025) show that the Kronecker product of Shampoo's statistics corresponds to one power-iteration step from identity initialization toward the Frobenius-optimal Kronecker approximation. In their experiments, its cosine similarity to the target closely tracks that of the optimal approximation. They also examine how batch gradients and label sampling affect the estimation.
Matrix divergences and Kronecker estimation. Bregman matrix divergences provide alternatives to Frobenius approximation (Dhillon & Tropp, 2008), with applications to positive-semidefinite kernel learning (Kulis et al., 2009). For Kronecker approximation, the LogDet (KL divergence between two zero-mean multivariate Gaussian distributions) objective corresponds to matrix-normal maximum likelihood, which estimates row and column covariance factors alternately (Dutilleul, 1999). Franks et al. (2026) establish nearly optimal finite-sample guarantees for joint maximum likelihood estimation without condition-number assumptions. McCormack & Hoff (2025) study partial-trace estimation, corresponding to VN fitting, and relate its statistical error and asymptotic efficiency loss to the factor spectra. Lin et al. (2026) formulate gradient second-moment estimation through matrix divergences, yielding F-, VN-, and KL-Shampoo. We study spectral error allocation and finite-sample stability across F, VN, SQ, and KL in a trace-power family. Our fixed-factor analysis is complemented by joint fits on synthetic non-Kronecker and real gradients.
Reliability of empirical second moments. Empirical gradient second moments can differ substantially from curvature matrices like the Fisher and Hessian (Kunstner et al., 2019; Thomas et al., 2020). Furthermore, with finite samples, empirical eigenvalues systematically misestimate population scales along their eigenvectors. Prior work addresses this bias through nonlinear covariance shrinkage or cross-validation (Ledoit & Wolf, 2012; Bartz, 2016) in high-dimensional covariance estimation. A similar selection bias occurs in deep-learning Hessian and GGN estimates: directions with extreme curvature on one mini-batch have less extreme scales on others (Tatzel et al., 2025). We examine these estimation effects in mini-batch gradient second moments and their consequences for divergence-dependent Kronecker preconditioning.
B PROOFS
Throughout the theoretical analysis, following Eschenhagen et al. (2025); Lin et al. (2026), we assume the gradient second moment to be positive definite.
Matrix notation and divergence formulas. For , matrix functions act on its eigenvalues:
We use and write for the Hessian on a perturbation . Substituting the generators , , and into Equation (2) gives
In particular, . For row-wise vectorization, .
B.1 PROOF OF PROPOSITION 1
For , and . Substitution into Equation (2) gives
L'Hôpital's rule gives as and as . The derivative converges to and , respectively. For fixed , we can obtain
For , which we call square root (SQ), and . Substituting into Equation (2) yields
Under , this becomes
The first two terms are exactly the PSGD objective in Equation (1); the last term is independent of P. Thus SQ and PSGD have the same objective up to a positive scale and an additive constant. For , the change of variables gives , so the correspondence also holds under the Kronecker constraint.
We now derive the factor equation in Equation (4). For ,
By substituting this into the Bregman divergence and keeping only the terms that depend on S, we can derive
For ,
and the definition of gives
Fix R, and write
Combining all the equations above, we can write the objective that depends on as
For , let . Then , and
Thus the stationary equation gives . The objective is strictly convex in , so this stationary point is the unique minimizer.
For the VN defined by , . The limit established above gives
Using
and the row-wise vectorization identity
the terms depending on L reduce to
Here is fixed, so the term involving is constant in . Set . Then
whose gradient with respect to X is
Setting this to zero gives . Since is strictly convex on symmetric matrices, this is the unique minimizer.
For the KL defined by , . Its affine terms cancel in the divergence, giving
Using and , the terms that depend on are
Setting , we can derive:
Setting the gradient to zero gives , hence
Since is strictly convex, this is the unique minimizer.
The cases q = 1 and q = 0 give the same formula, so all cases can be written as
Exchanging L and R gives
B.2 LIMITED KRONECKER CAPACITY
A single Kronecker product generally cannot represent a gradient second moment exactly. The factors and have free parameters after accounting for reciprocal rescaling, fewer than the parameters of a general symmetric matrix when . Exact matching is possible for second moments with Kronecker structure; otherwise, the choice of divergence determines how approximation errors are allocated.
B.3 SPECTRAL ERROR DECOMPOSITION AND KRONECKER APPROXIMATIONS
B.3.1 PROOF OF PROPOSITION 2
Notation and spectral costs. Write , , , and , with both spectra ordered decreasingly. The scalar divergence and cost on eigenspace misalignment are
where is the Kronecker delta.
Spectral decomposition. By the definition of the Bregman matrix divergence,
Since is a spectral function, its gradient is given by . Therefore, for ,
Let . Then is orthogonal and , so that . Using the cyclic property of the trace,
Similarly, using ,
Substituting Equations (15) and (16) into Equation (14) gives
Adding and subtracting yields
The first term measures eigenvalue mismatch for aligned eigenspaces; is the cost of eigenspace misalignment.
Nonnegativity of . Since is orthogonal, is doubly stochastic. The Birkhoff–von Neumann theorem therefore gives , where are permutation matrices, , and . Both and are decreasing, since the eigenvalues are ordered and is convex. The rearrangement inequality says that pairing them in this order maximizes their product sum. Thus, for each permutation associated with ,
Taking the weighted average gives
which proves .
B.3.2 DIVERGENCE-SPECIFIC SPECTRAL PENALTIES
We overlook the affine terms. For Frobenius, and , which gives
For von Neumann, and , and hence
For the square-root member, and , giving
For LogDet, and , which yields
Setting gives Equation (6), which establishes the scalar scale dependence in Equation (5). By using the exponents in Proposition 1, Frobenius and KL give
For von Neumann, using , we obtain
For SQ, gives directly. Therefore, for ,
B.3.3 RECIPROCAL ASYMMETRY
Substituting and into Equation (6) proves Equation (7). For F, when ; for SQ, the two penalties are equal. For VN and KL, the differences are and , respectively, where . Since and for , VN penalizes overestimation more, while KL penalizes underestimation more.
B.3.4 KRONECKER APPROXIMATIONS
Let have eigenpairs ordered by decreasing eigenvalue, and let and have eigenpairs , , and , , respectively. Sort the eigenvalue products in decreasing order. If the -th product comes from the -th eigenvalue of and the -th eigenvalue of , write and . The corresponding eigenpair of is
Set , , and as in Proposition 2. We can obtain:
For Kronecker approximations, both mismatch terms retain the scaling relations in Equation (5), and the scalar penalties still satisfy the reciprocal-error comparisons in Equation (7).
B.4 PROOF OF PROPOSITION 4
We only prove the result for the left factor; the right-factor result follows symmetrically. Let , . By Equation (10), we have
Let denote the -th row of , so . Then
where we use and the independence of different rows. Hence, and . Using , we obtain
For , independence together with gives
Hence, only the N diagonal terms remain, yielding
Let denote the -th row of . For the diagonal entries, . Since and is symmetric, the Gaussian quadratic-form identity gives
For , using the independence of and and ,
and therefore
Summing over the m diagonal and off-diagonal entries yields
Combining this with Equation (17) and dividing by gives
The right-factor identity follows by exchanging with .
It remains to compare the four exponents . For positive eigenvalues , define and . Then
so is non-decreasing. Noting that the log effective rank is , we have
Thus effective rank is decreasing in . Evaluating at gives
Since the expected estimation error is proportional to the reciprocal of effective rank, we obtain
The inequalities become equalities for an isotropic opposite-factor spectrum.
B.5 LOCAL GEOMETRY OF SQ AND KL
We compare the local penalties of SQ and KL through their Hessians. KL matches the Gaussian Fisher geometry up to a constant factor; SQ does not.
For and symmetric , Taylor expansion gives
Thus the Hessian determines the penalty for small perturbations. For eigenvalue perturbations, , giving for SQ and for KL.
To compare this geometry with Gaussian Fisher information, consider the auxiliary model with density function . The directional score for a symmetric perturbation is
Its second moment gives the Fisher quadratic form:
The KL generator satisfies
Hence its Hessian equals twice the Gaussian Fisher information operator (Lin et al., 2026). SQ does not share the Gaussian Fisher geometry. At , its Hessian is , whereas the Gaussian Fisher operator is . Their ratio, , varies with , so they cannot agree. Among the four divergences, only KL has a Hessian proportional to the Gaussian Fisher operator for every .
C PRECONDITIONER UPDATE DETAILS
We describe the factor updates of original Shampoo, PSGD-Kron, SQ-Shampoo, and KL-Shampoo, then specify the factor statistics, offline fitting procedure, and online EMA scheme used in our experiments.
C.1 ORIGINAL SHAMPOO
In the EMA form of Shampoo (Gupta et al., 2018; Anil et al., 2020), the marginal statistics satisfy
Ignoring momentum, the parameter update is . This applies the inverse square root of : for original Shampoo, while applies the inverse square root of .
C.2 PSGD-KRON, SQ-SHAMPOO, AND KL-SHAMPOO
Under , SQ-Shampoo shares PSGD's population gradient-whitening objective (Equation (13)), but uses different factor updates.
Factor updates. PSGD parameterizes the preconditioner as and optimizes on a matrix Lie group (Li, 2019). In the Kronecker form,
With row-wise vectorization, the parameter update is . For the original relative-gradient coordinates , the factors follow
where , are the factor-wise relative gradients of the whitening objective in Equation (1). The official implementation also provides other update geometries, including .
Our SQ- and KL-Shampoo implementations follow the spectral EMA scheme of Lin et al. (2026). Both average the factor statistics over time, update eigenvalue estimates in the current eigenbases, and periodically refresh bases. The two methods differ in the statistics supplied to this scheme: SQ uses the square-root divergence statistics, while KL uses the KL statistics in Table 6. Algorithm 1 gives the full update.
Table 5: Objectives and update schemes discussed here. Objectives are expressed in , up to positive scale and additive constants; the PSGD row refers to gradient whitening.
| Method | Population objective | Factor updates discussed here |
|---|---|---|
| PSGD-Kron | SQ divergence | Original relative-gradient steps; other geometries are available |
| SQ-Shampoo | SQ divergence | Spectral EMA of SQ statistics |
| KL-Shampoo | KL divergence | Spectral EMA of KL statistics |
C.3 DIVERGENCE-BASED FACTOR STATISTICS
Table 6 gives the factor statistics for F-, VN-, SQ-, and KL-Shampoo, obtained by setting in Equation (4). These statistics define both the offline and online updates that follow. For SQ-Shampoo, gives the bilateral fixed-point iteration
Table 6: Instantaneous factor statistics for the Shampoo variants.
| Method | ||
|---|---|---|
| F-Shampoo | ||
| VN-Shampoo | ||
| SQ-Shampoo | ||
| KL-Shampoo |
C.4 OFFLINE FIXED-POINT FITS
Given gradients, the offline bilateral rule for F-, VN-, SQ-, and KL-Shampoo is
followed by under-relaxation,
We initialize and , use , and iterate to numerical convergence.
Remark on few-sample fitting. We later consider fits with , where the empirical second moment is necessarily singular. This does not affect the iterations above: they require only positive-definite factors. For KL, the updates correspond to the criterion , with , which remains finite for singular .
C.5 ONLINE EMA UPDATES
Following the KL-Shampoo implementation of (Lin et al., 2026), the optimizer maintains factor accumulators for the eigenbases and separate eigenvalue estimates . Writing and , Algorithm 1 applies to .
Algorithm 1 Online EMA update for a Shampoo variant
Require: Matrix gradients , current momentum , method D, second-moment EMA decay , basis period , and initialized state
1: for do
2: Form and
3: Precondition as
4:
5:
6:
7:
8: if then
9: Refresh from by eigendecomposition/QR, while preserving
10: end if
11: Return the preconditioned statistic
12: end for
The input is the current momentum, with when momentum is disabled. It is preconditioned before is added into the preconditioner statistics. The coefficient controls the EMA of both the factor accumulators and eigenvalue estimates. In the EMA diagnostics, for all four methods.
D SYNTHETIC VALIDATION
We examine spectral error allocation and finite-sample stability using a smooth, long-tailed second moment that is not exactly Kronecker.
D.1 EXPERIMENTAL SETUP
For matrix gradients , the empirical gradient second moment is
F-, VN-, SQ-, and KL-Shampoo share samples and use the offline updates in Appendix C. Table 7 shows the detailed settings.
Table 7: Settings for the synthetic experiments.
| Setting | Additional parameters | ||
|---|---|---|---|
| Smooth long-tailed |
Smooth long-tailed spectrum. We combine three matrix-normal components with different eigenvalue decay rates and orientations:
where and have i.i.d. standard Gaussian terms. The weights give the components different strengths. We control their eigenvalue decay through
where are independently sampled orthogonal matrices and . The second-moment factors and have eigenvalues and , respectively, so larger gives faster decay. The resulting second moment is generally not a single Kronecker product. We also add isotropic noise with and scale the gradients by .
Fitting. We generate a fixed pool of 4096 gradients. All methods start from and and use a relaxation coefficient of 0.3. We stop when the sum of the two factors' relative Frobenius changes falls below , or after 10,000 iterations.
D.2 METRICS AND RESULTS
For , let denote descending eigenvalues and the leading eigenvectors. We measure cumulative eigenvalue error and leading-subspace overlap by
Finite-sample stability. For each divergence D, let be its fit to the full 4096-sample pool and its fit to samples in repeat . We measure the squared relative Frobenius error
This error is invariant to reciprocal factor rescaling. If and , it reduces to , whose expectation is in Proposition 4. Here both factors are estimated jointly, and the reference is each method's large-sample Kronecker fit.
We use 20 random permutations of the same pool and fit the first gradients. Figure 4 (right) plots .
Figure 7 shows that F prioritizes large eigenvalues but severely underestimates small ones; VN follows more mildly. SQ and KL have larger fitted tail eigenvalues. The mean stability errors follow at every tested , consistent with the theoretical ordering despite jointly fitting the non-Kronecker second moment.



Figure 7: Smooth synthetic setting. From left to right: empirical and fitted spectra, cumulative spectral error, and leading-subspace overlap. Finite-sample stability is shown in Figure 4 (right).
D.3 DIRECTIONAL GAIN INTERVENTIONS ON A QUADRATIC
We test whether gain differences explain the methods’ training performance by replacing KL’s leading or tail gains with those of F or SQ in a stochastic quadratic.
Setup. To model stochastic gradient noise, we use linear regression with squared loss , where and are independent. Its population loss is , so it is equivalent to the quadratic .
We set and , where is the population second moment of the generator in Equation (18). Each minibatch gradient averages sample gradients. Its population second moment is , with expectation over minibatch draws:
At each step, we fit the Kronecker factors to 40 independent mini-batch gradients reshaped into , then update with a separate mini-batch. We fit the factors using the offline updates in Appendix C, with no EMA.
We run F, VN, SQ, and KL for 1,000 steps at a shared learning rate (Figure 8). Within each seed, all methods share the same initialization and mini-batches. We initialize , with a Gaussian vector normalized to norm 2, giving .
Gain replacement. At the current , fit KL and the comparison method to the same gradients. Write in decreasing eigenvalue order and . For selected directions , set
We replace KL's gains in the first 39 (top 10%) or last 96 (bottom 25%) directions by rescaling each to match . Starting from the same KL iterate at step 900, we continue to step 1,000 using the original training minibatches and learning rate, recomputing the factors and population eigenbasis at each step.
Results. F reaches the highest loss (Figure 8, left). Averaged over the last 20 updates and 3 seeds, KL achieves a loss of 0.00844. Replacing KL's leading or tail gains with F's raises the loss to 1.441 and 0.03333, respectively (middle and right). The corresponding SQ replacements yield 0.00857 and 0.00855, close to KL.

Figure 8: Quadratic training loss averaged over 3 seeds. Left: four methods. Middle and right: replacing KL gains from step 900. F gains raise loss in either region; SQ gains leave it close to KL.
E REAL-GRADIENT EXPERIMENTAL DETAILS
We analyze query, value, and attention-output gradients from block 5 of a 12-layer, four-head GPT-2 model trained with AdamW. We freeze the model at steps 100, 2500, and 4500, giving nine checkpoint-projection pairs. Table 8 summarizes the shared settings; Appendix E.6 extends the diagnostics to Distributed Shampoo checkpoints.
Table 8: Shared settings for real-gradient diagnostics.
| Setting | Specification |
|---|---|
| Gradient pools | Four splits per experiment; 20,480 FP32 mini-batch gradients per split, assigned by round-robin interleaving |
| Gradient collection | Batch size 64; sequence length 512 |
| Large-sample fit | All 20,480 gradients in split 0 |
| Few-sample fit | 40 gradients from split 0; four repeats |
| Fixed-point solver | Relaxation ; tolerance ; at most 1,000 steps |
| Online EMA | 16 disjoint chronological repeats from split 0, each with 512 gradients; ; eigendecomposition every five steps |
All four methods retain their eigenvalue EMAs during each eigenbasis refresh. Reliability uses all splits. For gain calibration, split 0 supplies the fits and source eigenvectors; splits 1, 2, and 3 supply the held-out directional scales in Section 5.2.
Numerical details. Second moments and eigendecompositions use FP64. We sort eigenvalues in decreasing order and retain those exceeding times the largest eigenvalue, where d = 16,384 and is FP64 machine precision. For reliability summaries, retained directions are grouped by rank into top 0–10%, middle 10–40%, lower 40–75%, and tail 75–100%.
E.1 EMPIRICAL SECOND MOMENTS AND FINITE-SAMPLE EFFECTS
E.1.1 FINITE-SAMPLE TAIL SELECTION
Cross-fit control. We take eigenvectors of from a third split and compare their scales on splits and :
The direction is therefore selected independently of both second-moment estimates being compared. We compare the six pairs with , using each remaining split to select directions. This gives 12 comparisons without reverse pairs that would cancel the signed log-ratios. Cross-fit scale errors have medians and IQRs near zero across the spectrum (Figure 9), supporting sampling-induced selection bias rather than distribution shift.
Selection bias. Another independent split estimates the population second moment along each source eigenvector. The identity below shows that underestimating the source eigenvalue raises the expected held-out ratio, with larger relative errors giving larger ratios. Let denote the ratio before taking the logarithm in Equation (8).
Proposition 5 (Finite-Sample Tail Selection). Let and be independent empirical gradient second moments drawn from the same distribution, where and denote their zero-mean finite-sample estimation errors. For a source eigenpair with ,
Thus, if the source error along this direction is negative, , its conditional expected held-out ratio is larger than one.
Proof. Conditional on , the vector and the denominator are fixed. Independence and give . Substituting yields Equation (20).
Why ratios rise toward the tail. Selecting directions with small sample eigenvalues can favor downward sampling fluctuations, so their scales may increase when evaluated on an independent split. In Equation (20), the downward estimation error is divided by the source eigenvalue . Small tail eigenvalues can therefore turn downward errors into large held-out ratios.
E.1.2 HIGH-DIMENSIONAL SAMPLING AND TAIL SIGNALS
Finite-sample spectral distortion is well documented in high-dimensional covariance estimation (Ledoit & Wolf, 2012; Bartz, 2016), and similar selection bias has also been observed in mini-batch Hessian and GGN estimates (Tatzel et al., 2025). With , the spectral distortion observed here may partly be explained by Marčenko–Pastur-type spreading (Bai & Silverstein, 2010). However, this does not explain why the leading scales are much more consistent across splits than the tail. Prior work has reported alignment between the leading subspaces of the empirical second moment and the Hessian (Zhu et al., 2019; Wu et al., 2022; Liu et al., 2026). This may help explain the stronger reproducibility of the leading scales, although the connection remains to be established.
Tail directions and learning signals. If class occurs with probability and produces gradient , with orthonormal , then . For comparable , infrequent classes correspond to directions with small second-moment scales. This illustrates how tail directions can carry useful signals (Wang et al., 2026; Kim et al., 2026). However, finite-sample noise can still severely underestimate their scales.
E.2 RELIABILITY ACROSS CHECKPOINTS
Figure 9 shows held-out scale error for all 9 experiments. Table 9 reports all four regions, including absolute held-out scale error. We take the median over all directions in each region and all 12 comparisons within an experiment, then report the mean and sample standard deviation across the nine checkpoint-projection pairs per training optimizer.
Table 9: Held-out scale error across all four eigenvalue regions. Zero indicates agreement; positive indicates underestimation, and larger indicates greater mismatch. Entries show mean sample SD across nine checkpoint-projection pairs per training optimizer, using each's regional median.
| AdamW checkpoints | ||||
|---|---|---|---|---|
| Metric | Top (0–10%) | Middle (10–40%) | Lower (40–75%) | Tail (75–100%) |
| Signed | ||||
| Cross-fit | ||||
Distributed Shampoo checkpoints
| Metric | Top (0–10%) | Middle (10–40%) | Lower (40–75%) | Tail (75–100%) |
|---|---|---|---|---|
| Signed | ||||
| Cross-fit |
Figure 9: Held-out scale error. Rows: steps 100, 2500, 4500. Bands show split-comparison IQRs.
Query
Step 100
Value

Output

Step 2500



Step 4500




E.3 INVERSE-ROOT GAIN ACROSS CHECKPOINTS
Figures 10–12 show the gains of large-sample fits, few-sample fits, and EMA states at all three checkpoints. Within each checkpoint-projection pair, all fits use the same split-0 directions and the same scales averaged over splits 1, 2, and 3 (Equation (11)). Evaluations use the numerically retained directions from split 0. The black solid curve shows the source preconditioner , with error ; the dashed line marks zero.
Large-sample curves use one fit per method. Few-sample and EMA curves average held-out gain error over 4 repeats and 16 repeats, respectively. For Table 2, we take the median absolute held-out gain error over all retained directions and repeats within each experiment, then report the mean and sample standard deviation across nine experiments. This is median(|e_{D,i}|), not |median(e_{D,i}|).
Figure 10: Held-out gain error on AdamW checkpoints at step 100. Rows: large-sample fit, 40-sample fit, EMA with eigendecomposition every five steps.
Query
Value


Output

Figure 10: Held-out gain error on AdamW checkpoints at step 100 (continued).



Figure 11: Held-out gain error on AdamW checkpoints at step 2500. Rows: large-sample fit, 40-sample fit, EMA with eigendecomposition every five steps.
Query

Value

Output

Figure 12: Held-out gain error on AdamW checkpoints at step 4500. Rows: large-sample fit, 40-sample fit, EMA with eigendecomposition every five steps.
Query

Value

Output

Few-Sample Fit (N=40)
Few-Sample Fit (N=40)
Few-Sample Fit (N=40)
Online EMA ( )
Online EMA ( )
Online EMA ( )
Online EMA ( )
E.4 KRONECKER FITS OF DIFFERENT DIVERGENCES
We compare fitted spectra across all nine checkpoint-projection pairs and show how fitted eigenvalues and eigenvectors determine gains. Each fit uses the same split-0 gradients as the empirical second moment (Figure 13).
Spectral preferences. F and VN put more weight on large eigenvalues and penalize overestimation more than reciprocal underestimation (Table 1). SQ gives large eigenvalues less weight and penalizes reciprocal errors equally. KL weights relative errors equally across scales and penalizes underestimation more strongly. These preferences help explain the larger fitted tail eigenvalues of SQ and KL in Section 5.1.
How small eigenvalues increase gains. Let be the eigenpairs of in decreasing order, and write . Then
Each overlap is divided by a fitted eigenvalue, so even a small overlap can matter when that eigenvalue is tiny. Since , we can also write
With aligned eigenvectors, only the first term remains. The second term shows how gains change when the fitted eigenvectors differ from the source eigenvectors.
Let be the total squared overlap with fitted eigenvectors whose eigenvalues satisfy . Then
If , the gain exceeds the held-out target, even if the leading eigenvalues are fitted well.
Figure 13: Large-sample spectra. Rows: steps 100, 2500, 4500.
Step 100
Query

Value

Output
Step 2500

Reference Spectrum

Reference Spectrum

Step 4500

Reference Spectrum

Reference Spectrum

Reference Spectrum

E.5 GAIN RECOVERY WITH SHORT GRADIENT HISTORIES
Recovery is measured against each method’s own large-sample fit over all 16,384 reference directions (Equation (12)). For Figure 14, we first average the log gain ratios across 4 offline or 16 EMA repeats, and then average every 64 consecutive directions. For Table 3, we compute the median absolute log gain ratio over all directions and repeats without binning, and report the mean and sample SD across nine checkpoint-projection pairs.
Figure 14: Large-sample fit recovery on AdamW checkpoints at step 2500. Rows: F, VN, SQ, KL. Solid: 40-sample fits; dashed: EMA with eigendecomposition every five steps.
Query

F
Value
State Reproduction

Output
State Reproduction

Figure 14: Large-sample fit recovery on AdamW checkpoints at step 2500 (continued).




E.6 DIAGNOSTICS ON DISTRIBUTED SHAMPOO CHECKPOINTS
We train the same GPT-2 model with Distributed Shampoo (Shi et al., 2023), using inverse-square-root factors and Adam grafting.
We use the same checkpoint steps, projections, gradient collection, fitting settings, and aggregation as for AdamW (Appendix E). All four divergences are fitted to the new gradients. Figure 15 shows step 2500; the main-text tables summarize all nine checkpoint-projection pairs.
Figure 15: Distributed Shampoo diagnostics at step 2500. Top: held-out scale error and cross-fit controls. Remaining rows: held-out gain error for large-sample fits, 40-sample fits (four repeats), and EMA (512 gradients, 16 repeats, eigendecomposition every five steps).
Query

Query
Value

Value
Output

Output

Large-Sample Fit (N=20,480)

Large-Sample Fit (N=20,480)

Few-Sample Fit (N=40)
Few-Sample Fit (N=40)
Few-Sample Fit (N=40)
Online EMA ( )
Online EMA ( )
Online EMA ( )
F GPT-2 TRAINING DETAILS AND FULL RESULTS
Models and data. The 12-layer models use the architecture from (Jordan et al., 2024). FineWeb provides 3B training tokens. Each run processes 2.67B tokens with sequence length 1024 and a global batch of 512 sequences.
Training settings. Grid searches at model widths up to 768 found nearly identical optimal learning rates across the tested optimizers. We therefore use a shared learning rate across optimizers at each larger width without further searches. Learning-rate tuning can absorb an overall gain offset, but cannot correct gain errors that vary across directions, layers, or checkpoints. Within each width, methods share initialization, data order, and learning rate (Table 10). We follow (Lin et al., 2026) for the other hyperparameters. The schedule uses 250 warmup steps, a constant-rate phase, and 1450 steps of linear decay. The embedding and other non-matrix valued parameters use AdamW with learning rate 0.0036, , and no weight decay.
Table 10: Final validation loss after 5, 100 steps; one run per configuration.
| Width | Params (M) | LR | F | VN | SQ | KL |
|---|---|---|---|---|---|---|
| 256 | 22.3 | 0.0024 | 3.8281 | 3.7573 | 3.7450 | 3.7475 |
| 512 | 63.5 | 0.0024 | 3.5082 | 3.4377 | 3.4173 | 3.4180 |
| 768 | 123.6 | 0.0018 | 3.3993 | 3.2876 | 3.2661 | 3.2660 |
| 1024 | 202.5 | 0.0012 | 3.3528 | 3.1979 | 3.1824 | 3.1769 |
| 1536 | 417.0 | 0.0008 | 3.3111 | 3.0972 | 3.0817 | 3.0758 |
Training results. Table 10 supplements Table 4 with parameter counts and learning rates. Figure 16 shows the validation-loss trajectories from step 2,000 to the end of training.

Figure 16: Validation loss from step 2,000 at all five widths.