What Kronecker Preconditioners Cannot See

Kronecker-factored gradient preconditioners trade storage and computation for a restricted model of second moments. We examine how factor fitting and Kronecker structure contribute distinct errors, and when coordinate-wise scaling can address the structural limitation.

What Kronecker Preconditioners Cannot See

Abstract

Kronecker-factored adaptive optimizers trade the flexibility of a full gradient second moments for lower storage/computation costs. We discuss in the specific context of the ICLR 2026 paper by Lin et al. : “KL-Shampoo”.
This KL interpretation gives a principled way to fit those factors jointly. But how much of the approximation error comes from the fitting rule, and how much comes from the representation itself?

We try to answer these questions using 2 families of diagonal second moments:

  1. In one, coupling the factors improves the forward-KL objective while changing the marginal statistics of the fitted moment.
  2. In the other, the optimum cannot respond to a growing interaction between the row and column axes.

We use intuitive explanations and simplifications to explain basics of the problem being discussed from first principles. Next, we use a simplified analytical framework to show the limitations of this technique and use toy examples to see instances where failure happen.

What we Try to Show

We show the following through examples and mathematical analysis:

Notations

We’ll use the following notations through the rest of the article, for $W\in\mathbb R^{m\times n}$:

Short Primer on Gradient Preconditioning

An Intuitive primer on second-order optimizers in the appendix

What preconditioners do

Rescale and mix gradient components across different parameter dimensions for easier convergence. Adagrad is an example.

They may also pefrom Gradient “whitening”: ie, linear transformation that takes correlated gradients with different scales and maps them into uncorrelated gradients.

Diagonal scaling normalizes individual second moments, while full whitening also removes cross-coordinate second moments.

1. Why Factor the Gradient Second Moment?

TLDR: Directly using the second moments $C$ is pretty computationally expensive. So, we approximate further with a simple decomposition of $C$ st.
$C \approx S = A \otimes B$, where A, B are Kronecker approximations.

For a linear layer in a neural net, let weight, gradient matrices be $W,G\in\mathbb R^{m\times n}$.

At $m=n=1k$, then $g$ has 1M coordinates (flattened). Dense second moment has $\approx 1.10T$ entries. However, if we separate it into two $1k \times 1k$ factors, we require only 2.1M entries.

Let $S=A\otimes B$ with decomposition factors $A \in \mathbb R^{m\times m},B \in \mathbb R^{n\times n}$. The entry that connects $(i,j)$ and $(k,l)$ is $A_{ik}B_{jl}$. We can get the right inverse-square-root transformation without fully computing $S$:

\[\tilde G=A^{-1/2}GB^{-1/2}\]

Real optimizers also add moving estimates, damping, momentum and other mechanisms on top.

Shampoo Optimizer

Shampoo tries to estimate $C$ through row and column second moments $L=\mathbb E[GG^\top]$ and $R=\mathbb E[G^\top G]$.
Notice that this is not $gg^\top$. $G$ is unflattened gradients for a layer. The original Shampoo paper uses inverse quarter powers of L, R:
Update step: $W_{t+1} = W_t − \eta L_t^{−1/4} G_t R_t^{−1/4}$

Other variants use inverse half powers. The KL-Shampoo paper interprets structured estimators through divergence minimization and develops KL-Shampoo and KL-SOAP.

Half power Shampoo and KL-Shampoo

Half-power Shampoo estimates the full second-moment matrix as $C\approx S=L\otimes R$,
where $L=\mathbb E[GG^\top],\qquad R=\mathbb E[G^\top G]$
and the gradient updates use inverse square roots: $W_{t+1} = W_t − \eta L_t^{−1/2} G_t R_t^{−1/2}$

For approximating the gradient second-moment matrix, we are ultimately interested in the quality of the resulting preconditioner, rather than the accuracy of the matrix reconstruction itself.
The KL-Shampoo paper proposes measuring the approximation error using forward KL divergence. It directly penalizes deviations from perfect whitening.

Joint fitting instead of independent fits

Using the Kronecker approximation $S=A\otimes B$, KL-Shampoo uses the following coupled estimation equations:

\[A=\frac1n\mathbb E[GB^{-1}G^\top], \qquad B=\frac1m\mathbb E[G^\top A^{-1}G].\]

In Shampoo, the two factors are estimated independently. Each factor captures gradient second moments along one dimension without accounting for the scaling in others.

In KL-Shampoo, each factor estimates the gradient second moments remaining after preconditioning along the other dimension. The two estimates are coupled.

Preconditioinig op: $\tilde G=A^{-1/2}GB^{-1/2}$

Thus, KL-Shampoo changes how we estimate the Kronecker factors, not the structure of the approximation itself.

2. Establishing a Baseline: Trace-Normalized Shampoo

For clarity, our baseline below is specifically the trace-normalized marginal-product fit, $L\otimes R/\operatorname{tr}(C)$, not a simulation of every Shampoo variant. We compare covariance proxies at a fixed target rather than optimization trajectories.

In the following section we intend to compare the half power Shampoo and the KL-Shampoo.

Since $L$ and $R$ are constructed from the same gradients, $\operatorname{Tr}(L)=\operatorname{Tr}(R)=\operatorname{Tr}(C)=T$

But, trace of a Kronecker product is the product of the individual traces: $\operatorname{Tr}(L\otimes R) =\operatorname{Tr}(L)\operatorname{Tr}(R)=T^2$

Our approximation has total second moment $T^2$, but the original matrix has $T$. We can correct this by rescaling:

\[C\approx\frac{L\otimes R}{\operatorname{Tr}(C)}\]

This is the trace-normalized Kronecker approximation.

For consistency with our Kronecker representation $S=A\otimes B$, absorb the normalization into the factors:
$A=\frac{L}{\sqrt T},\qquad B=\frac{R}{\sqrt T}$
So,
$S=A\otimes B=\frac{L\otimes R}{T}$

3. A 2×2 Model of Fitting and Representation

KL-Shampoo provides a principled way to improve how we fit the Kronecker factors. But even if we fit these factors optimally, how much of the original gradient second moment can they actually capture?

Firstly, let’s start with motivating usefulness of KL-Shampoo over the baseline variant.

Simplified Settings

To disentangle the limitations of the algorithms from those of the representation itself, we begin with some assumptions and simplifications:

  1. Use the case where full second-moment matrix $C$ is diagonal. This removes cross-coordinate interactions and allows us to focus on how individual gradient second moments are estimated.
  2. We’ll avoid going into KL-Divergence formulation, and stick to just the estimation formulation
  3. We’ll also use trace-normalized versions of the half-power shampoo.

Setup

So, Kronecker product estimates each coordinate’s second moment: $X_{ij}=a_i b_j$

For example, $2\times2$ gradient matrix: \(\underbrace{ \begin{bmatrix} V_{11}&V_{12}\\ V_{21}&V_{22} \end{bmatrix} }_{\text{True second moments }V} \approx \underbrace{ \begin{bmatrix} a_1b_1&a_1b_2\\ a_2b_1&a_2b_2 \end{bmatrix} }_{\text{Estimated second moments }X}\)

Both half-power Shampoo and KL-Shampoo use this representation. Where they differ is in how they estimate $A$ and $B$.

Trace-normalized half-power Shampoo

Shampoo independently accumulates the two factors (in both its quarter-power and half-power variants):
$L=\mathbb E[GG^\top],\qquad R=\mathbb E[G^\top G]$
For the remainder of our analysis, we consider the trace-normalized half-power variant so that we can directly compare its factor estimation vs KL-Shampoo.

In our diagonal setting, these equations simply reduce to computing the row and column totals of $V$:
$ L_{ii}=\mathbb E\left[\sum_j G_{ij}^2\right] =\sum_j V_{ij} \qquad$ and similarly, $\qquad R_{jj}=\sum_i V_{ij}$

Multiplying these together leads to the overall scale of the second moments being counted twice. As discussed earlier, we correct for this using trace normalization.

So, the diagonal entries of our fitted Kronecker factors $A$ and $B$ are

\[a_i=\frac{\sum_j V_{ij}}{\sqrt T}, \qquad b_j=\frac{\sum_i V_{ij}}{\sqrt T}\]

The resulting estimate is

\[\boxed{ X_{ij}=a_i b_j= \frac{ (\text{row }i\text{ total})\, (\text{column }j\text{ total}) }{ \text{grand total} } }\]

By construction, $X$ has the same row and column totals as $V$. This trace-scaled variant of half-power Shampoo is also studied in the KL-Shampoo paper.

However, matching these totals does not necessarily mean that the gradients are well normalized after preconditioning.

KL-Shampoo

KL-Shampoo jointly estimates using the coupled equations: $A=\frac1n\mathbb E[GB^{-1}G^\top], \qquad B=\frac1m\mathbb E[G^\top A^{-1}G]$

In our simplified diagonal setting, this reduces to
$a_i=\frac1n\sum_j\frac{V_{ij}}{b_j}, \qquad b_j=\frac1m\sum_i\frac{V_{ij}}{a_i}$

$\implies \boxed{\frac1n\sum_j\frac{V_{ij}}{a_i b_j}=1, \qquad \frac1m\sum_i\frac{V_{ij}}{a_i b_j}=1} $

Comparing this with the previous approach: Instead of directly accumulating the second moments along each row, we first account for the scaling already performed by the column factors, and vice versa.

After preconditioning, each gradient coordinate becomes $ \tilde G_{ij}=\frac{G_{ij}}{\sqrt{a_i b_j}} $
$\to$ Gradient second moment: $ M_{ij}=\mathbb E[\tilde G_{ij}^2] =\frac{V_{ij}}{a_i b_j} =\frac{V_{ij}}{X_{ij}}$
(Ideally, we want every entry of $M$ to be 1 for X $\approx$ V).

We’ve seen before that. $\frac1n\sum_j\frac{V_{ij}}{a_i b_j}=1$, and $\frac1m\sum_i\frac{V_{ij}}{a_i b_j}=1$. These are the row and column means of $M$.

So,

Observation I: At population-level optimum, KL-Shampoo normalizes the average second moment along every row and column after preconditioning. (While baseline shampoo approach matches row and column totals of second moments before preconditioning)

Let us see what difference this makes through a concrete example.

4. Experiment A: When joint fitting helps: one large coordinate

Consider the following second-moment table: $V= \begin{bmatrix}1&1
1&9\end{bmatrix}$

Here, bottom-right gradient has a significantly larger second moment than all others. A Kronecker approximation has no way of assigning a scaling factor exclusively to that. Instead, it must account for the increase through a combination of row and column factors.

Trace-normalized half-power Shampoo

The row and column totals are both $(2,10)$, and the grand total is 12. So, our estimated second moment table obtained through half-power shampoo: \(X_{\rm marg} = \frac1{12} \begin{bmatrix} 2\times2&2\times10\\ 10\times2&10\times10 \end{bmatrix} = \begin{bmatrix} 1/3&5/3\\ 5/3&25/3 \end{bmatrix}\)

Row and column totals of $X_{marg}$ will match those of $V$.
However, after preconditioning, the second moments: $M_{\rm marg}= \frac{V}{X_{\rm marg}}= \begin{bmatrix} 3&0.6
0.6&1.08 \end{bmatrix}$

(Elementwise matrix division)

Notice that the top-left coordinate now has a second moment of 3, even though its original second moment was 1. Matching the original row and column totals has not resulted in a particularly well-normalized gradient.

KL-Shampoo

Instead of estimating the factors independently, let us alternately update them using KL-Shampoo’s coupled estimation equations.

Start with $b_1=b_2=1$

The first update to the row factors gives:
$a_1=\frac12(1+1)=1$
$a_2=\frac12(1+9)=5$

Using these row factors, update the column factors:
$b_1=\frac12\left(\frac11+\frac15\right)=0.6$
$b_2=\frac12\left(\frac11+\frac95\right)=1.4$

Column factors now account for the scaling already performed by the row factors.

Figure: Alternating estimation of the KL-Shampoo factors. Each update normalizes one dimension of the preconditioned second-moment table $M$. At convergence, all row and column means equal 1, even though individual entries differ from 1.

Repeating these updates until convergence gives the following estimated and preconditioned second moments:
$X_{\rm KL}= \begin{bmatrix} 2/3&2
2&6 \end{bmatrix}, \qquad M_{\rm KL}= \begin{bmatrix} 1.5&0.5
0.5&1.5 \end{bmatrix}$

Comparing the final results:

KL-Shampoo-vs-shampoo

Method Estimated row totals Preconditioned row means
Marginal 2, 10 1.8, 0.84
Joint KL 2.67, 8 1, 1
Unrestricted 2, 10 1, 1

KL-Shampoo no longer matches the original row and column totals. Instead, it chooses factors that better normalize the gradient after preconditioning.

In this example, the largest preconditioned second moment has decreased from 3 to 1.5, and the ratio between the largest and smallest second moments has decreased from 5 to 3. But notice that neither method achieves perfect whitening. Even after finding the optimal KL fit, we are left with individual second moments that differ from 1.

Why can’t we find better factors that eliminate this remaining error?

Representation Limit with Kronecker Preconditioning

Our approximation takes the form $X_{ij}=a_i b_j$ . For any $2\times2$ table constructed this way, the products along the two diagonals must be equal: \(X_{11}X_{22} =(a_1b_1)(a_2b_2) =(a_1b_2)(a_2b_1) =X_{12}X_{21}\)

However, in our original second-moment table, $ V_{11}V_{22}=9, V_{12}V_{21}=1$
There is therefore no choice of row and column factors that can reconstruct $V$ exactly.

More interestingly, see the ratio between these two products (“cross-ratio”): $\frac{V_{11}V_{22}}{V_{12}V_{21}}=9$

After preconditioning, we have: $\frac{M_{11}M_{22}}{M_{12}M_{21}} =$ $\frac{V_{11}V_{22}}{V_{12}V_{21}} .\frac{X_{12}X_{21}}{X_{11}X_{22}} = \frac{V_{11}V_{22}}{V_{12}V_{21}}$

The row and column factors cancel out entirely in both methods.

So

5. Experiment B: When Joint-KL Fit Fails

So we saw previously that jointly estimating the Kronecker factors can improve the quality of preconditioning. But are there cases when even that doesn’t help?
Let’s take a scenario of a second moment table where we gradually increase the diagonal entries while decreasing the off-diagonal entries at the same time.

\[V(\delta)= \begin{bmatrix} 1+\delta&1-\delta\\ 1-\delta&1+\delta \end{bmatrix} \qquad 0\leq\delta<1\]

So every row in columns sums to 2, no matter what $\delta$ is, and the grand total still remains 4.

Half-power Shampoo

Shampoo always produces the same estimate in this situation:

\[X_{\rm marg}= \begin{bmatrix} 1&1\\ 1&1 \end{bmatrix}\]

The estimator cannot distinguish between different values of $\delta$ because the statistics it relies on (viz, sums of rows, cols, grand-total) remain unchanged. Note that we are still going with the assumption of a diagonal second moments matrix.

KL Shampoo

We saw that KL-Shampoo estimates its factors s.t. every row and column of the preconditioned second-moment table has a mean=1.

Here, $A=B=I$ is already an optimal solution, and satisfy the algorithms condition: every row and column of $V$ has a mean of 1. But it’s obviously not a good estimation.

\[X_{\rm KL}= \begin{bmatrix} 1&1\\ 1&1 \end{bmatrix}\]

So, $M_{\rm marg}=M_{\rm KL}=V(\delta)$

At $\delta=0.95$, $M= \begin{bmatrix} 1.95&0.05
0.05&1.95 \end{bmatrix}$

The fitted tables remain unchanged as the underlying second moments become increasingly unequal.

Even though every row and column having a mean=1, largest second moment is $39 \times$ the smallest. And yet neither methods were able to rectify this.
More generally, the condition number of the preconditioned second-moment matrix is: $\kappa=\frac{1+\delta}{1-\delta}$

Two distinct sources of error

Figure 2. In the first experiment, joint fitting improves the approximation. In the second, neither fitting procedure can capture the changing second moments.

Unlike the previous example, joint estimation of KL-Shampoo does not help here. The restriction that every second moment must be represented as a product of a row factor and a column factor is the problem.

Observation III: Even an optimally fitted Kronecker product can leave the gradient second-moment matrix arbitrarily ill-conditioned.

Next natural question is: How about we allow each gradient coordinate to have its own scaling factor?

6. SOAP: Independent Scaling in a Structured Basis

Shampoo’s preconditioning operation can be understood as three steps:

  1. rotate the gradient into a new basis
  2. rescale the individual coordinates
  3. rotate back to the original parameter space

Given how shampoo factors are derived: $A=\mathbb E[GG^\top], B=\mathbb E[G^\top G]$, They are always symmetric real matrices.
So it should be possible to eigendecompose them. \(A=Q_A\Lambda_AQ_A^\top, \qquad B=Q_B\Lambda_BQ_B^\top.\)

Now let’s perform a change of basis - express the gradient in terms of eigenvectors of $A$ and $B$ rather than the original parameter axis: \(G'=Q_A^\top GQ_B\)

Now, Shampoo scales each dimension of $G’$ with a product of a row-specific and a column-specific factor. This caused the problesm we saw before.
But, SOAP relaxes this restriction by maintaining a separate second-moment estimate for every coordinate in the transformed gradient:

\[D_{ij}=\mathbb E[(G'_{ij})^2]\]

Preconditioning op: $\tilde G’{ij}=\frac{G’{ij}}{\sqrt{D_{ij}}}$ (This is then transformed back to the original coordinate system)

Unlike Shampoo, SOAP does not restrict second-moment estimates to be products of row and column factors. Cost is that we need to maintaing $mn$ second-moment estimates.

Shared row and column factors versus independent coordinate estimates in a fixed product eigenbasis.

How it Helps

In our example from experiment B, SOAP can estimate each of these four second moments independently.

The resulting preconditioned second moments are

\(M_{SOAP}= \begin{bmatrix} 1&1\\ 1&1 \end{bmatrix}\) If SOAP uses the original coordinate basis in Experiment B, it can estimate all 4 second moments independently and achieve perfect whitening.

While SOAP removes the multiplicative restriction on individual scaling factors, these factors are still estimated in Shampoo’s eigenbasis. So, SOAP can account for individual second moments but cannot directly capture cross-coordinate correlations within that basis.

7. Better Whitening does not Guarantee Better Training

Our examples highlight two separate sources of errors:

But there is a third question: does better approximation of the gradient second moments necessarily translate into better optimization?

Good Second Moment Estimation $\neq$ Good Optimization

Gradients are always noisy, and the noise is NOT always isotropic. Under the assumption of a locally quadratic loss centered at the origin, with zero-mean stochastic noise and covariance $\Sigma,\qquad g=H\theta+\epsilon$
The error shows up in our second-moments too: $C=H\theta\theta^\top H+\Sigma$

Gradient second moment captures both curvature-related information and gradient noise.

Also, all of these parameters are constantly shifting in a model training setup. Even if an estimation is optimal for a fixed gradient distribution, if it’s not able to adapt quickly to changing distribution, it’s going to fall apart.

To judge a preconditioner, these are the questions to ask:

  1. Estimation: How well can it fit the chosen representation?
  2. Representation: What aspects of the gradient statistics can that chosen representation actually catch?
  3. Optimization: Does the transformation actually help in the optimization?

Improving one does not necessarily resolve the others.

References and reproducibility

[1] Lin et al., Understanding and Improving Shampoo and SOAP via Kullback–Leibler Minimization, ICLR 2026, especially §§2–5 and Eq. (4).

[2] Gupta et al., Shampoo: Preconditioned Stochastic Tensor Optimization, ICML 2018.

[3] Vyas et al., SOAP, ICLR 2025.

Appendix

Intuitive Primer on Second Order Optimizers

Typically Gradient Descent uses 1st-order derivatives of loss with respect to a parameter to make updates to that param. However, the local gradient at any point on the loss landscape only tells us a direction in which we need to go to reduce the loss and not how big a step we can safely take. So, gradient descent typically ends up being conservative with that step size. Large step, and we can oscillate in some params, too small and the convergence slows.

The question of how big a steps I should take can be traced by using Newton’s method by assuming that the lost landscape in the immediate vicinity is quadratic.

Intuitition for Grad Update steps

Using multivariate Taylor expansion for a loss fn, $L$ for a model param vector $\theta$, and update step $\Delta$:

\[L(\theta+\Delta) \approx L(\theta) +\nabla L(\theta)^\top\Delta +\frac12\Delta^\top\nabla^2 L(\theta)\Delta + ...\]

$\to$ retain upto the order 2 terms for quadratic assumption

\(L(\theta+\Delta) \approx L(\theta)+g^\top\Delta +\frac12\Delta^\top H\Delta\) where, $g=\nabla L(\theta)$ (flattened gradients: 1st derivatives),
and $H=\nabla^2 L(\theta)$ (Hessian: matrix of 2nd-order derivatives)

Now to minimize the loss landscape, differentiating the expression and setting it to $0$ gives: \(\boxed{\Delta=-H^{-1}g}\)

So, assuming the local loss landscape is quadratic/parabolic in nature, the inverse Hessian adjusts the update based on local curvature of the loss landscape

Practical Implementatin of Second-order Optimizer

Normally we don’t compute or use the Hessian matrix itself, since it’s expensive to compute and can lead to instabilities.
Instead, we use the second moments of gradients to construct a preconditioner. ie, $gg^\top$

For visualization, for $n$ params, flattened

\[g= \begin{bmatrix} g_1\\ g_2\\ \vdots\\ g_n \end{bmatrix}\]

then outer product

\[gg^\top= \begin{bmatrix} g_1^2 & g_1g_2 & \cdots\\ g_2g_1 & g_2^2 & \cdots\\ \vdots & & \ddots \end{bmatrix}\]

Over a minibatch, we accumulate the averaged value and use this for practical implementations: \(C=\mathbb E[gg^\top]\)

Now, if the variance of the all param second-moment variances are same (“isotropic second moments”), then $H \propto C^{1/2}$.

This is just an intuition for why inverse square root preconditioning using the gradient second moments is similar to Hessian based preconditioning. In practice though, the second moments capture gradient noise along with the curvature.

KL Objective

For approximating the gradient second-moment matrix, we are ultimately interested in the quality of the resulting preconditioner, rather than the accuracy of the matrix reconstruction itself. Inverse-square-root preconditioning transforms second moment $c$, estimated as $s$, into $c/s$. So, not absolute differences but relative estimation errors determine how properly a dimension is whitened.

The KL-Shampoo paper proposes measuring the approximation error using forward KL divergence between two zero-mean Gaussian distributions with second-moment matrices $C$ and $S$. For positive definite $C$ and $S$,

\[D_{\rm KL}(\mathcal N(0,C)\|\mathcal N(0,S)) =\frac12\left[ \operatorname{tr}(S^{-1}C) -\log\det(S^{-1}C)-d \right],\]

where $d=mn$ is the number of gradient coordinates.

Recall that the second-moment matrix after preconditioning is

\[M=S^{-1/2}CS^{-1/2}.\]

Let $\lambda_1,\ldots,\lambda_d$ be the eigenvalues of $M$. We can express the same KL objective as

\[D_{\rm KL} =\frac12\sum_{i=1}^d (\lambda_i-1-\log\lambda_i).\]

Each term is non-negative and minimized when $\lambda_i=1$. Thus, rather than penalizing absolute reconstruction errors in $C$, the KL objective directly penalizes deviations from perfect whitening.

Enjoy Reading This Article?

Here are some more articles you might like to read next: