Memory-Efficient LLM Pretraining via Minimalist Optimizer Design

Athanasios Glentis, Jiaxiang Li, Andi Han, Mingyi Hong

TL;DR

The researchers introduce SCALE, a minimalist optimizer that matches the performance of memory-heavy adaptive optimizers like Adam while using only 35–45% of the total memory. By combining column-wise gradient normalization across all layers with momentum applied exclusively to the final layer, SCALE achieves state-of-the-art pretraining results with a fraction of the hardware overhead.

What Problem Does This Paper Address?

Training Large Language Models (LLMs) is notoriously memory-intensive. Standard adaptive optimizers like Adam require storing two additional "optimizer states" (first and second-order moments) for every single parameter, effectively tripling the memory footprint compared to simple Stochastic Gradient Descent (SGD).

While vanilla SGD is memory-efficient, it fails to train LLMs effectively because it lacks the adaptive scaling needed to handle the complex loss landscapes of transformers. Recent "memory-efficient" optimizers (like GaLore or APOLLO) attempt to solve this by compressing optimizer states, but they often introduce significant computational complexity or still require substantial memory. The authors ask a fundamental question: What is the absolute minimum we need to add to plain SGD to match Adam’s performance?

Methods

The authors take a "bottom-up" approach to identify the most essential components of an optimizer. They developed SCALE (Stochastic Column-normAlized Last-layer momEntum) based on two key findings:

  1. Column-wise Gradient Normalization: Instead of the element-wise normalization used in Adam, SCALE normalizes the gradient of each weight matrix along its output dimension (columns). This stabilizes training and prevents "exploding" updates for frequent tokens without requiring any extra memory to store historical states.
  2. Selective Momentum: Momentum is the primary memory hog in optimizers. The authors discovered that gradient variance is not uniform across a model; it is significantly higher in the final output layer (the LM-head). SCALE applies first-order momentum only to this last layer, providing the necessary variance reduction where it matters most while saving massive amounts of memory in the rest of the network.

Datasets

The models were pretrained and evaluated using:

  • C4 (Colossal Clean Crawled Corpus): The primary dataset for pretraining LLaMA-style models.
  • GLUE Benchmarks: Used to verify that the optimizer also performs well during downstream fine-tuning tasks (specifically using RoBERTa-base).
  • Architectures: The team tested SCALE across a variety of architectures, including LLaMA (60M to 7B), GPT2-Medium, Qwen2-500M, and Gemma-2B.

Key Insights and Ideas

  • The "Special" Last Layer: The LM-head is unique because it maps hidden states to the entire vocabulary. The authors found that gradients for very frequent tokens (like "the" or "and") have much larger norms than others. Column-wise normalization specifically mitigates this imbalance, leading to more stable training.
  • Momentum Pareto Frontier: Applying momentum to every layer is redundant. By identifying the last layer as the "variance bottleneck," the authors found a Pareto-optimal point: you get nearly all the benefits of momentum with almost none of the memory cost.
  • Redundancy in Complexity: The paper suggests that many modern optimizers are "over-engineered." SCALE's ability to outperform complex SVD-based methods (like Muon) with just a few lines of code indicates that principled, simple modifications to SGD are often superior to complex state compression.

Key Results

  • Memory Savings: For a 1B parameter model, SCALE uses only 35% of the memory required by Adam and 59% of the memory required by other efficient optimizers like GaLore or Fira.
  • Performance: On LLaMA 7B, SCALE achieved a final evaluation perplexity of 12.59, outperforming Muon (12.72) and APOLLO (13.02) while using significantly less memory (13.74 GB vs. 26.95 GB for Muon).
  • Speed: Because it avoids expensive operations like Singular Value Decomposition (SVD), SCALE is approximately 18.5% faster in terms of throughput (tokens/sec) compared to SVD-based normalization methods.
  • Stability: In a 100B token run on LLaMA 7B, SCALE maintained a stable loss trajectory with no spikes, proving its robustness for long-term pretraining.

Limitations and Future Work

  • Model Scale: While the results on 7B models are impressive, the authors acknowledge that they haven't yet tested the optimizer on "frontier" scales (e.g., 70B+ parameters) due to computational constraints.
  • Fine-tuning Integration: The study focused primarily on pretraining. While preliminary GLUE results are promising, further research is needed to see how SCALE interacts with popular Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA.
  • Hyperparameter Sensitivity: Although the authors provide a sensitivity analysis, the optimal learning rate for SCALE may differ from Adam, requiring users to perform some initial tuning when switching optimizers.

Summary updated

BibTeX
@inproceedings{glentis2026memory,
  author = {Athanasios Glentis and Jiaxiang Li and Andi Han and Mingyi Hong},
  title = {{Memory-Efficient LLM Pretraining via Minimalist Optimizer Design}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=prvGhNz39e},
}
Figure