A Minimalist Optimizer Design for LLM Pretraining

Athanasios Glentis, Jiaxiang Li, Andi Han, Mingyi Hong
6/20/2025
cs.LGcs.AImath.OC

No official code found. Best implementation: OptimAI-Lab/Minimalist_LLM_Pretraining (23 stars, last commit 2025-08-07).

Abstract

Training large language models (LLMs) typically relies on adaptive optimizers such as Adam, which introduce extra operations and require significant more memory to maintain first- and second-order moments than SGD. While recent works such as GaLore, Fira and APOLLO have proposed state-compressed variants to reduce memory consumption, a fundamental question remains: What are the minimum modifications to plain SGD needed to match state-of-the-art pretraining performance? We systematically investigate this question using a bottom-up approach, and identify two simple yet highly (memory- and compute-) efficient techniques: (1) column-wise gradient normalization (normalizing the gradient along the output dimension), which boosts SGD performance without momentum; and (2) applying first-order momentum only to the output layer, where gradient variance is highest. Combining these two techniques lead to SCALE (Stochastic Column-normAlized Last-layer momEntum), a simple optimizer for memory efficient pretraining. Across multiple LLaMA models (60M-1B), SCALE matches or exceeds the performance of Adam while using only 35-45% of the total memory. It also consistently outperforms memory-efficient optimizers such as GaLore, Fira and APOLLO, making it a strong candidate for large-scale pretraining under memory constraints. For LLaMA 7B model, SCALE outperforms the state-of-the-art memory-efficient methods APOLLO and Muon, in terms of both perplexity and memory consumption.

View on arXivView PDF

Code Implementations(1)

A Minimalist Optimizer Design for LLM Pretraining

230Shell, PythonJun 18, 20251 years ago
llmoptimizerspretraining

Cite this paper

@article{glentis2025minimalist,
  title  = {A Minimalist Optimizer Design for LLM Pretraining},
  author = {Athanasios Glentis and Jiaxiang Li and Andi Han and Mingyi Hong},
  year   = {2025},
  eprint = {2506.16659},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.16659v2}
}

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/2506.16659.svg)](https://codeofpaper.com/paper/2506.16659)

Discussion