Understanding SOAP from the Perspective of Gradient Whitening

Yanqing Lu, Letao Wang, Jinbo Liu
9/26/2025
cs.LG

No confident code implementation found for this paper.

Abstract

Shampoo with Adam in the Preconditioner's eigenbasis (SOAP) has recently emerged as a promising optimization algorithm for neural network training, achieving superior training efficiency over both Adam and Shampoo in language modeling tasks. In this work, we analyze Adam, Shampoo, and SOAP from the perspective of gradient whitening, interpreting their preconditioners as approximations to the whitening matrix, which captures second-order curvature information. We further establish a theoretical equivalence between idealized versions of SOAP and Shampoo under the Kronecker product assumption. To empirically evaluate these insights, we reproduce the language modeling experiments using nanoGPT and grayscale image colorization. Our results show that SOAP exhibits similar convergence rate as Shampoo, and no significant advantage over both Adam and Shampoo in the final loss achieved, which aligns with their equivalence in theory.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{lu2025understanding,
  title  = {Understanding SOAP from the Perspective of Gradient Whitening},
  author = {Yanqing Lu and Letao Wang and Jinbo Liu},
  year   = {2025},
  eprint = {2509.22938},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.22938v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.22938.svg)](https://codeofpaper.com/paper/2509.22938)

Discussion