Pro-KLShampoo: Enhancing KL-Shampoo Optimizers
- Pro-KLShampoo is a family of optimizers that reformulate KL-Shampoo by minimizing the KL divergence to achieve structured whitening using projection methods.
- It reduces computational and memory overhead by employing low-rank approximations, QR-based orthogonalization, and BFloat16 storage reparameterization.
- Empirical evaluations indicate that Pro-KLShampoo variants enhance training stability and efficiency in neural network pretraining compared to traditional methods.
Searching arXiv for the specified Pro-KLShampoo papers and closely related KL-Shampoo work. Pro-KLShampoo denotes a family of optimizer formulations built on KL-Shampoo, a Shampoo variant derived from minimizing the Kullback–Leibler divergence between a true gradient covariance and a Kronecker-structured approximation. In the literature supplied here, the term refers specifically to two 2026 developments: a projected, orthogonalization-based optimizer titled “Pro-KLShampoo: Projected KL-Shampoo with Whitening Recovered by Orthogonalization” (Sun et al., 7 May 2026), and a reparametrization framework for Shampoo-based methods titled “Reparametrizing Shampoo and SOAP for Subspace Basis Updates and BFloat16 Storage” (Milligan et al., 25 May 2026). Both works take KL-Shampoo as their point of departure, whose original formulation reframes Shampoo as covariance estimation under Gaussian assumptions and motivates a two-sided update through KL minimization rather than Frobenius-norm analysis (Lin et al., 3 Sep 2025). Across these papers, Pro-KLShampoo is characterized by attempts to preserve KL-Shampoo’s structured whitening behavior while reducing instability, memory cost, QR overhead, or precision sensitivity.
1. KL-Shampoo as the immediate precursor
KL-Shampoo begins from the observation that Shampoo maintains two Kronecker factors and to approximate the full second moment of the flattened gradient . Rather than analyzing these factors through Frobenius-norm bounds, the method treats as zero-mean Gaussian with covariance , and seeks a structured estimate by minimizing
This viewpoint yields two central consequences. First, if one factor is fixed, the KL minimizer recovers a Shampoo-style update; specifically, under a one-sided restriction with and , the minimizer satisfies
0
which recovers Shampoo’s update with power 1. Second, the joint minimization produces coupled “ideal” equations,
2
which motivate KL-Shampoo’s practical two-sided moving-average estimator (Lin et al., 3 Sep 2025).
The practical update uses the gradient matrix 3, forms
4
updates
5
and preconditions by
6
The paper describes this as a principled proximal-gradient step on the KL objective. It further introduces a QR-based “fast” KL-Shampoo that maintains orthonormal bases 7 via QR every 8 steps and updates only diagonal eigenvalue vectors 9 between QR steps (Lin et al., 3 Sep 2025).
This KL perspective is the conceptual substrate from which later Pro-KLShampoo variants emerge. A plausible implication is that once Shampoo is interpreted as structured covariance estimation rather than merely matrix accumulation, low-rank restrictions, projected parametrizations, and orthogonalization-based approximations become natural design axes.
2. Core limitation identified in Shampoo and the role of KL minimization
The original KL-Shampoo analysis argues that prior Shampoo analyses obscured a limitation by centering the estimation problem around Frobenius-norm considerations. In empirical terms, the reported limitation appears as instability when Shampoo is used without Adam-style grafting. The paper states that across NanoGPT (123M), NanoRWKV7 (162M), Llama (134M), and NanoMoE (227M), Shampoo with 0 fails to train reliably when Adam-grafting is disabled, and that all 120 random-search runs diverged on RWKV7 under this condition. Under the same hyperparameter-search budget, KL-Shampoo trains stably without Adam (Lin et al., 3 Sep 2025).
The same work contrasts three optimizer families. Shampoo updates factors through 1 and its transpose and needs Adam grafting if QR is infrequent. SOAP augments Shampoo with an extra RMSProp-style diagonal update in the eigenbasis of 2, which incurs an additional 3 vector. KL-Shampoo removes this heuristic addition by using the KL-derived two-sided factor updates and requiring only the Kronecker eigenvalues 4 and 5, rather than an extra 6-sized moment vector (Lin et al., 3 Sep 2025).
The reported empirical outcomes position KL-Shampoo as both stabilizing and competitive. On validation loss and perplexity, it matches or outperforms SOAP while using the same QR frequency, and in NanoGPT pretraining it achieves approximately 7–8 lower loss after 9 B tokens than SOAP, and approximately 0 better than Shampoo with grafting. The same summary also notes a tensor-valued extension on NanoMoE that outperforms baseline Shampoo variants (Lin et al., 3 Sep 2025).
Within the Pro-KLShampoo lineage, these claims are significant because later variants do not abandon KL-Shampoo’s two-sided covariance logic; instead, they attempt to compress or reparametrize it. This suggests that the primary object preserved across the family is not the exact state representation but the algebraic form of KL-derived whitening.
3. Projected KL-Shampoo with whitening recovered by orthogonalization
“Pro-KLShampoo: Projected KL-Shampoo with Whitening Recovered by Orthogonalization” (Sun et al., 7 May 2026) introduces a distinct optimizer under the Pro-KLShampoo name. Its central structural observation is that the eigenvalue spectra of KL-Shampoo’s Kronecker factors exhibit a “spike-and-flat” shape across layers, depths, and training stages in GPT-2 and LLaMA: a small number of dominant eigenvalues followed by an approximately uniform tail.
The paper provides an exact explanation under a rank-1 signal-plus-noise model
2
with 3, 4 deterministic and 5 i.i.d. zero-mean noise with variance 6. For stationary points 7 of
8
the right factor satisfies
9
so that 0 has exactly 1 identical bottom eigenvalues, yielding a perfect spike-and-flat spectrum (Sun et al., 7 May 2026).
To exploit this, the method restricts the larger Kronecker factor to the parametric family
2
Here 3 tracks the top-4 eigenspace of the whitened second moment 5, 6 stores the full spectrum on that subspace, and 7 collapses the remaining 8 directions to a single scalar. The associated stationarity conditions are
9
with 0. The paper also gives an upper bound on the approximation gap to full KL optimization, which vanishes when the tail eigenvalues are uniform (Sun et al., 7 May 2026).
The defining move of Pro-KLShampoo is then to recover per-direction whitening on the complement by orthogonalization rather than by explicitly estimating a full complement covariance. The preconditioned gradient decomposition is
1
The second term uses only scalar right-scaling on the complement. Pro-KLShampoo replaces it by its polar factor: 2 The paper states that this algebraically exactly matches the full KL-Shampoo complement update in its eigenbasis, but without forming a large eigendecomposition (Sun et al., 7 May 2026).
Algorithmically, Pro-KLShampoo alternates over minibatches between projecting 3 into the tracked subspace and its complement, updating exponential moving averages of 4, 5, and 6, tracking the top-7 eigenspace of 8 by a single QR step, and computing
9
The paper reports that for 0 with 1 and 2, memory drops from 3 floats in KL-Shampoo to 4, while the second factor’s QR cost is reduced from 5 to 6 and the right-factor state from size 7 to 8 (Sun et al., 7 May 2026).
4. Reparametrization, subspace QR, and BFloat16 storage
A second 2026 line, “Reparametrizing Shampoo and SOAP for Subspace Basis Updates and BFloat16 Storage” (Milligan et al., 25 May 2026), also addresses KL-Shampoo and related methods, but under a different notion of Pro-KLShampoo. Here the key idea is not a spike-and-flat model with orthogonalization; instead, it is a reparametrization of the preconditioner that supports BFloat16 storage and subspace basis updates.
For a weight matrix 9, the paper writes Shampoo’s factors as 0 and 1, and recalls that KL-Shampoo and related QR-based variants replace expensive eigendecomposition with QR updates every 2 steps. The reparametrization introduces the projected factor
3
where 4. Storing 5 is therefore equivalent to storing 6. The paper argues that under this parametrization one does not need to materialize 7 or 8 in full precision; instead, one updates 9, described as remaining nearly diagonal, in BFloat16 and rotates it in low-rank subspaces (Milligan et al., 25 May 2026).
The work proves algebraic equivalence between updates in the original and reparametrized systems. Given
0
one computes a QR factorization
1
and deduces
2
The rotated projected factor then becomes
3
According to the paper, these identities establish that updating 4 is algebraically equivalent to the original 5 QR update (Milligan et al., 25 May 2026).
The method then introduces subspace QR decomposition. Instead of factorizing the full 6 matrix 7, it updates only a block of size 8, for example 9 or 0. Writing
1
it performs
2
forms the block-diagonal rotation 3, and applies the same rotation formulas to 4 and 5. The paper gives the resulting cost as 6 plus two block matrix multiplications of cost 7, rather than 8 (Milligan et al., 25 May 2026).
This version of Pro-KLShampoo is therefore best understood as a systems-oriented refinement of QR-based KL-Shampoo and SOAP: it preserves the optimizer algebra while reducing precision and basis-update overhead.
5. Computational profile and memory characteristics
The three papers jointly provide a detailed picture of the computational trade space surrounding KL-Shampoo and Pro-KLShampoo variants.
The original KL-Shampoo paper describes each iteration as requiring two small matrix–matrix multiplications, 9 and 00, plus 01 elementwise operations for preconditioning, while QR incurs 02 every 03 steps, with 04 reported as working well. Its state consists of 05, 06, orthogonal bases 07, and eigenvalues 08, and it avoids SOAP’s extra 09 vector (Lin et al., 3 Sep 2025).
The projected-orthogonalization Pro-KLShampoo of (Sun et al., 7 May 2026) reduces the second Kronecker factor from 10 parameters to 11 by restricting it to a rank-12 subspace plus flat tail, and it changes the leading compute from KL-Shampoo’s 13 matrix multiplication with 14 amortized QR to 15 with 16 QR. The explicit memory comparison given is 17 floats for KL-Shampoo versus 18 for Pro-KLShampoo (Sun et al., 7 May 2026).
The reparametrized Pro-KLShampoo of (Milligan et al., 25 May 2026) instead compares “vanilla KL-Shampoo” with “Pro-KLShampoo” in terms of matrix-multiplication-equivalent cost. Vanilla KL-Shampoo with full-basis QR every 19 steps is summarized as approximately 20 matrix-multiplication units plus preconditioning, whereas Pro-KLShampoo with projected updates and subspace QR is summarized as approximately 21 units plus the same preconditioning term. On memory, vanilla KL-Shampoo stores two 22 factors in FP32, while Pro-KLShampoo stores two 23 projected factors in BFP16 (Milligan et al., 25 May 2026).
The following table organizes these reported state reductions.
| Method | State description | Reported reduction |
|---|---|---|
| KL-Shampoo | 24 | Avoids SOAP’s extra 25 vector |
| Pro-KLShampoo (Sun et al., 7 May 2026) | 26 | Right factor from 27 to 28 |
| Pro-KLShampoo (Milligan et al., 25 May 2026) | Projected factors 29 in BFP16 | FP32 factors replaced by BFP16 projected factors |
A plausible implication is that “Pro-KLShampoo” has become a label for multiple optimization pathways that target different bottlenecks in KL-Shampoo: one targets statistical structure in the spectrum, while the other targets numerical representation and basis-update mechanics.
6. Empirical behavior in pretraining workloads
The empirical record reported in these sources is concentrated on neural network pretraining, especially LLMs.
KL-Shampoo is described as stable without Adam grafting on NanoGPT (123M), NanoRWKV7 (162M), Llama (134M), and NanoMoE (227M), under the same 120-run hyperparameter search in which Shampoo without grafting fails to train reliably. On NanoGPT pretraining, KL-Shampoo is reported to achieve approximately 30–31 lower loss after 32 B tokens than SOAP, and approximately 33 better than Shampoo with grafting; on NanoMoE, its tensor-Kronecker extension outperforms baseline Shampoo variants (Lin et al., 3 Sep 2025).
The projected-orthogonalization Pro-KLShampoo reports extensive pretraining results at four scales: GPT-2 124M and 350M on FineWeb-10B, and LLaMA 134M and 450M on C4. The paper states that Pro-KLShampoo consistently outperforms KL-Shampoo at every tested subspace rank 34 in validation loss, peak per-GPU memory, and wallclock time to reach each loss level. Concrete examples include GPT-2 124M, where KL-Shampoo reaches 35 versus Pro-KLShampoo 36, and LLaMA 450M, where the gap is 37. Reported peak per-GPU memory examples include 38 GiB on GPT-2 350M and 39 GiB on LLaMA 450M. Reported time-to-loss improvements relative to KL-Shampoo at matched loss are approximately 40 for GPT-2 124M, 41 for GPT-2 350M, 42 for LLaMA 134M, and 43 for LLaMA 450M (Sun et al., 7 May 2026).
The reparametrized Pro-KLShampoo emphasizes BFloat16 robustness and time-cost trade-offs. On nanoGPT (123 M) and Llama3 (119 M), switching from FP32 to BFP16 storage causes the original KL-Shampoo to degrade by up to 44 in test loss, whereas Pro-KLShampoo remains within 45 and slightly improves in one setting. For 46, full-basis QR in FP32 is reported as approximately 47 runtime, subspace QR with 48 as approximately 49, and matrix-multiply only as approximately 50. Greedy block selection is reported to outperform random block selection; a single subspace update with 51 and 52 matches full-basis test loss while saving approximately 53–54 runtime. On Llama3 (313 M), 55 loses only 56 in loss while reducing wall-clock by approximately 57, and more frequent small-block updates recover most accuracy at still 58 lower runtime versus full basis (Milligan et al., 25 May 2026).
Because these evaluations are reported in different experimental programs, direct cross-paper ranking is not warranted from the supplied evidence alone. What can be stated is that both variants report gains relative to KL-Shampoo under the workloads they test.
7. Relationship to SOAP, Muon, and open questions
The Pro-KLShampoo literature is notable for placing KL-Shampoo in relation to two different neighboring optimizer families.
First, KL-Shampoo is repeatedly compared with SOAP. In the original KL-Shampoo work, SOAP is described as running an extra RMSProp-style diagonal update in the eigenbasis of 59, which requires an additional 60 vector. KL-Shampoo removes this heuristic component through KL-derived factor estimation and no extra 61 memories (Lin et al., 3 Sep 2025). The reparametrization paper then generalizes its projected-factor and subspace-QR construction to Shampoo-based methods employing QR, including KL-Shampoo, SOAP, and KL-SOAP, and states that it improves SOAP and KL-SOAP under BFP16 storage, enabling KL-SOAP to match or exceed KL-Shampoo (Milligan et al., 25 May 2026).
Second, the projected-orthogonalization Pro-KLShampoo directly links KL-Shampoo to Muon-style orthogonalization. The paper describes explicit Kronecker-factored preconditioning and orthogonalization of the gradient momentum as “two distinct frontiers,” typically developed in isolation, and proposes a hybrid in which a low-rank spectral restriction handles the spiked subspace while orthogonalization recovers whitening on the flat complement (Sun et al., 7 May 2026). This positioning matters conceptually because it reframes orthogonalization not as a separate optimizer family but as an exact algebraic surrogate for full KL-Shampoo whitening on a restricted complement.
Several limitations and unresolved issues are explicitly recorded. The original KL-Shampoo paper describes its results as preliminary and limited to language-model pretraining; vision and RL benchmarks remain to be tried. It also raises adaptive selection of QR frequency 62, and possible trade-offs introduced by mixed-precision or distributed variants (Lin et al., 3 Sep 2025). The reparametrization paper addresses mixed precision in part through BFloat16 storage, but it still depends on QR decomposition in FP32, since existing QR implementations require single-precision arithmetic and remain computationally expensive when preconditioning matrices are large (Milligan et al., 25 May 2026).
A common misconception would be to treat Pro-KLShampoo as a single canonical algorithm. The supplied literature shows instead that the label covers at least two technically distinct developments: one based on projected low-rank-plus-flat structure with orthogonalization (Sun et al., 7 May 2026), and another based on projected-factor reparametrization, subspace QR, and BFloat16 storage (Milligan et al., 25 May 2026). What unifies them is their dependence on KL-Shampoo’s KL-minimization perspective and their effort to preserve whitening quality while reducing practical bottlenecks.