Table of Contents
Fetching ...

Gradient Multi-Normalization for Stateless and Scalable LLM Training

Meyer Scetbon, Chao Ma, Wenbo Gong, Edward Meeds

TL;DR

The paper tackles the challenge of memory-heavy optimizers in large-language model training by proposing a stateless, gradient-normalization-based approach that extends beyond a single norm. It introduces Multi-Normalized Gradient Descent (MNGD) and shows SWAN as a specific case, then presents SinkGD with SR-Sinkhorn as a scalable implementation that lowers computational cost to $\mathcal{O}(mn)$ while preserving memory efficiency. The method achieves substantial practical gains, including up to a 3× speedup over Adam and strong memory savings during LLaMA pretraining up to $1$B parameters. Empirically, SinkGD matches or surpasses competitive baselines on 60M–1.3B LLaMA tasks, highlighting the viability of multi-norm gradient normalization for stateless optimization in large-scale NLP. The work combines theoretical convergence insights with a practical, efficient algorithmic design that could influence future memory-aware optimization strategies for large models.

Abstract

Training large language models (LLMs) typically relies on adaptive optimizers like Adam (Kingma & Ba, 2015) which store additional state information to accelerate convergence but incur significant memory overhead. Recent efforts, such as SWAN (Ma et al., 2024) address this by eliminating the need for optimizer states while achieving performance comparable to Adam via a multi-step preprocessing procedure applied to instantaneous gradients. Motivated by the success of SWAN, we introduce a novel framework for designing stateless optimizers that normalizes stochastic gradients according to multiple norms. To achieve this, we propose a simple alternating scheme to enforce the normalization of gradients w.r.t these norms. We show that our procedure can produce, up to an arbitrary precision, a fixed-point of the problem, and that SWAN is a particular instance of our approach with carefully chosen norms, providing a deeper understanding of its design. However, SWAN's computationally expensive whitening/orthogonalization step limit its practicality for large LMs. Using our principled perspective, we develop of a more efficient, scalable, and practical stateless optimizer. Our algorithm relaxes the properties of SWAN, significantly reducing its computational cost while retaining its memory efficiency, making it applicable to training large-scale models. Experiments on pre-training LLaMA models with up to 1 billion parameters demonstrate a 3X speedup over Adam with significantly reduced memory requirements, outperforming other memory-efficient baselines.

Gradient Multi-Normalization for Stateless and Scalable LLM Training

TL;DR

The paper tackles the challenge of memory-heavy optimizers in large-language model training by proposing a stateless, gradient-normalization-based approach that extends beyond a single norm. It introduces Multi-Normalized Gradient Descent (MNGD) and shows SWAN as a specific case, then presents SinkGD with SR-Sinkhorn as a scalable implementation that lowers computational cost to while preserving memory efficiency. The method achieves substantial practical gains, including up to a 3× speedup over Adam and strong memory savings during LLaMA pretraining up to B parameters. Empirically, SinkGD matches or surpasses competitive baselines on 60M–1.3B LLaMA tasks, highlighting the viability of multi-norm gradient normalization for stateless optimization in large-scale NLP. The work combines theoretical convergence insights with a practical, efficient algorithmic design that could influence future memory-aware optimization strategies for large models.

Abstract

Training large language models (LLMs) typically relies on adaptive optimizers like Adam (Kingma & Ba, 2015) which store additional state information to accelerate convergence but incur significant memory overhead. Recent efforts, such as SWAN (Ma et al., 2024) address this by eliminating the need for optimizer states while achieving performance comparable to Adam via a multi-step preprocessing procedure applied to instantaneous gradients. Motivated by the success of SWAN, we introduce a novel framework for designing stateless optimizers that normalizes stochastic gradients according to multiple norms. To achieve this, we propose a simple alternating scheme to enforce the normalization of gradients w.r.t these norms. We show that our procedure can produce, up to an arbitrary precision, a fixed-point of the problem, and that SWAN is a particular instance of our approach with carefully chosen norms, providing a deeper understanding of its design. However, SWAN's computationally expensive whitening/orthogonalization step limit its practicality for large LMs. Using our principled perspective, we develop of a more efficient, scalable, and practical stateless optimizer. Our algorithm relaxes the properties of SWAN, significantly reducing its computational cost while retaining its memory efficiency, making it applicable to training large-scale models. Experiments on pre-training LLaMA models with up to 1 billion parameters demonstrate a 3X speedup over Adam with significantly reduced memory requirements, outperforming other memory-efficient baselines.

Paper Structure

This paper contains 40 sections, 7 theorems, 96 equations, 4 figures, 4 tables, 6 algorithms.

Key Result

Lemma 3.5

Let $g$ a norm satisfying Assumption assump-norm. Then and for all $x\in\mathbb{R}^d$, $g^*(\mathcal{P}_g(x))=\Vert \mathcal{P}_g(x)\Vert_2^2=c^2$, where $g^*$ is the dual norm associated with $g$.

Figures (4)

  • Figure : (a) 350M LLaMA model
  • Figure : (a) 350M LLaMA model
  • Figure : (b) 1.3B LLaMA model
  • Figure : (c) Training Throughputs

Theorems & Definitions (20)

  • Remark 3.1
  • Remark 3.2
  • Remark 3.4
  • Lemma 3.5
  • Theorem 3.6
  • Remark 3.7
  • Remark 3.8
  • Remark 4.1
  • proof
  • proof
  • ...and 10 more