Gradient Multi-Normalization for Stateless and Scalable LLM Training

Meyer Scetbon, Chao Ma, Wenbo Gong, Edward Meeds

TL;DR

Researchers from Microsoft have introduced SinkGD, a "stateless" optimizer that matches Adam’s performance while using significantly less memory. By treating gradient normalization as a multi-constraint optimization problem and solving it with an efficient Sinkhorn-based algorithm, they achieved a 3x effective speedup over Adam when training 1-billion-parameter LLaMA models.

What Problem Does This Paper Address?

Training Large Language Models (LLMs) is a memory-intensive endeavor. Most state-of-the-art models rely on Adam, an adaptive optimizer that accelerates convergence by storing "optimizer states"—specifically, the first and second moments of gradients. These states can triple the memory required for model parameters, creating a massive bottleneck in distributed training and limiting the size of models that can fit on a single GPU.

While simpler methods like Stochastic Gradient Descent (SGD) are "stateless" (storing no extra info), they generally fail to train LLMs effectively. Recent attempts to bridge this gap, like the SWAN optimizer, showed that you could achieve Adam-level performance by "whitening" gradients. However, SWAN is computationally expensive, relying on operations (like SVD or Newton-Schulz iterations) that don't scale well to massive matrices. The challenge is: Can we build an optimizer that is as memory-efficient as SGD but as fast and stable as Adam?

Methods

The authors propose a new framework called Multi-Normalized Gradient Descent (MNGD). The core idea is that instead of normalizing a gradient by a single global value, we should normalize it according to multiple norms simultaneously.

  1. The Framework: They prove that many popular optimizers are actually just specific instances of gradient normalization under different norms.
  2. The Algorithm (SinkGD): To make this practical, they introduce SinkGD. Instead of the expensive whitening used in SWAN, SinkGD performs alternating row-wise and column-wise $\ell_2$ normalization.
  3. The Sinkhorn Connection: They demonstrate that this alternating normalization is mathematically equivalent to a square-root version of the Sinkhorn algorithm, a classic method in optimal transport.
  4. Efficiency: Because it avoids matrix-matrix multiplications and matrix inversions, SinkGD has a computational complexity of $O(mn)$, making it as efficient as the standard operations already happening in a neural network layer.

Datasets

The researchers evaluated their optimizer by pre-training LLaMA-based models of various sizes (60M, 130M, 350M, and 1.3B parameters). All models were trained on the C4 (Colossal Clean Crawled Corpus) dataset, a standard benchmark for LLM pre-training.

Key Insights and Ideas

  • Normalization is Optimization: The paper provides a unified perspective showing that "adaptive" optimization can be viewed as "multi-normalization." If you normalize the gradient "just right" across rows and columns, you don't need to keep track of historical momentum.
  • Relaxing Constraints: The "aha moment" is realizing that SWAN’s expensive whitening (which enforces a spectral norm) can be relaxed to simple row/column normalization (Sinkhorn) without losing performance. This relaxation is what enables the jump from $O(m^3)$ to $O(mn)$ complexity.
  • Statelessness is Scalable: By eliminating optimizer states, SinkGD allows for much larger batch sizes or larger models on the same hardware, directly addressing the "memory efficiency vs. training performance" dilemma.

Key Results

  • 3x Speedup: On a 1.3B parameter LLaMA model, SinkGD achieved a 3x higher "effective throughput" compared to Adam. This means it reaches the same level of model quality (test perplexity) three times faster in wall-clock time.
  • Memory Savings: For a 1.3B model, SinkGD required only 2.98GB of memory for parameters and optimizer states, compared to 7.48GB for Adam—a reduction of over 60%.
  • Competitive Performance: SinkGD consistently outperformed other memory-efficient baselines like Galore, Apollo, and Fira, and even surpassed the "cited" performance of Adam in several perplexity benchmarks.
  • Throughput: SinkGD’s raw token throughput is marginally higher than Adam’s because it avoids the overhead of updating and storing moment buffers.

Limitations and Future Work

  • 2D Parameters Only: Currently, SinkGD is designed for 2D weight matrices (linear layers). In the paper's experiments, other components like embedding layers and normalization layers still used Adam.
  • Hyperparameter Sensitivity: While the authors used a "lazy-tuning" approach with success, the interaction between the Sinkhorn iterations ($L$) and the global learning rate might require more exploration for different architectures.
  • Beyond LLMs: The study focused strictly on LLaMA-style transformer architectures for language modeling. Whether these benefits translate to Computer Vision (CNNs/ViTs) or Reinforcement Learning remains an open question for future research.

Summary updated

BibTeX
@inproceedings{scetbon2025gradient,
  author = {Meyer Scetbon and Chao Ma and Wenbo Gong and Edward Meeds},
  title = {{Gradient Multi-Normalization for Stateless and Scalable LLM Training}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yJXNtwwA1g},
}
Figure