arXiv:2610.08534cs.LGOct 2026

Manuscript Offprint

arXiv:2610.08534

How Bregman Divergences Shape Shampoo

Bing Liu, Wenjie Zhou, Chengcheng Zhao, Hongtao Zhang, Boao Kong, Felix Dangel, Wu Lin

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.

†^{\dagger}Corresponding author: chengchengzhao@zju.edu.cn.

Table 1: Overview of the divergence properties studied in this work. The exponent qDq_{\mathrm{D}} 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.

Property\DivergenceProperty\DivergenceFrobeniusvon NeumannSquare rootKL
Trace-power exponentqDq_{D}21 (limit)1/2^{1/2}0 (limit)
Weight on large eigenvaluesStrongModerateMildNone
Penalized moreOverestimationOverestimationSymmetricUnderestimation
Error with few samplesHighestHigherLowerLowest

Figure

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 (C0C_0) 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 C0C_0'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 qDq_{D} 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.

References (41)