TL;DR
Training large language models typically requires heavy adaptive optimizers like Adam, which triple memory overhead by tracking first- and second-order gradient moments. The authors introduce SCALE (Stochastic Column-normAlized Last-layer momEntum), a minimalist optimizer that pairs memory-free column-wise gradient normalization across all layers with first-order momentum applied exclusively to the output projection layer. Across LLaMA models up to 1B parameters, SCALE matches or beats Adam and modern alternatives while slashing optimizer state memory by 55–65%.
What Problem Does This Paper Address?
Standard deep learning wisdom holds that Large Language Models (LLMs) cannot be trained effectively with vanilla Stochastic Gradient Descent (SGD) due to severe gradient scale disparities across layers. Consequently, practitioners rely on Adam or RMSProp. However, Adam maintains two moving-average state tensors for every single weight parameter, consuming twice the model's weight memory just for the optimizer.
While recent memory-efficient techniques (such as GaLore, Fira, and APOLLO) compress optimizer states using low-rank approximations, they still retain substantial state overhead or fall back to full Adam on embedding/output layers. The authors tackle a foundational question: What is the absolute minimal set of optimizer states needed to reach state-of-the-art pretraining performance?
Methods
The authors build SCALE from the ground up by systematically isolating the two pillars of Adam: gradient normalization and exponential moving average (EMA) momentum.
-
Column-Wise Gradient Normalization (Memory-Free): Viewing optimizers through steepest descent under matrix operator norms, the authors compare singular-value, row-wise, sign, and column-wise normalizations. They show that normalizing gradients along the output dimension ($\ell_1 \to \ell_2$ operator norm): $$\Delta = - \left[ \frac{\text{col}_1(G)}{\|\text{col}_1(G)\|}, \dots, \frac{\text{col}_n(G)}{\|\text{col}_n(G)\|} \right]$$ significantly outperforms sign-SGD and row-wise normalization. Crucially, unlike the matrix-orthogonalization used in Muon (which requires costly Newton-Schulz iterations or SVD), column normalization requires virtually zero extra compute ($0.17\text{ ms}$ vs. $14.41\text{ ms}$ on a $4096 \times 4096$ matrix) and zero optimizer memory.
-
Selective Last-Layer Momentum: Empirical measurements reveal that gradient variance is heavily concentrated in the final language modeling head (
lm_head), with moderate variance in input embeddings and minimal variance across intermediate layers. -
The SCALE Algorithm:
- All internal weight matrices are updated using column-normalized SGD without momentum (zero optimizer states).
- Only the final output layer (
lm_head) maintains a first-order momentum buffer ($\beta = 0.9$). - Tiny 1D vector parameters (biases, normalization gains) are updated using standard Adam, consuming negligible memory.
Datasets
- Pretraining Dataset: The C4 (Colossal Clean Crawled Corpus) dataset (Raffel et al., 2020).
- Models: Autoregressive LLaMA architectures scaled across four sizes: 60M (1.4B tokens), 130M (2.6B tokens), 350M (7.8B tokens), and 1B (13.1B tokens).
- No new benchmarks were introduced.
Key Insights and Ideas
- Variance dictates the need for momentum: The authors provide a theoretical convergence proof (Theorem 2.1) establishing that layer-wise momentum primarily mitigates layer-specific gradient variance ($\sigma_l^2$). If intermediate layers have near-zero gradient variance, setting their momentum parameter $\beta_l = 0$ incurs almost no theoretical convergence penalty while eliminating nearly all optimizer state buffers.
- SVD-style orthogonalization is unnecessary when last-layer momentum is present: While Muon’s singular-value normalization beats column normalization in pure SGD, adding last-layer momentum closes the gap entirely. At 350M parameters, column normalization with last-layer momentum achieves a perplexity of 16.32, beating singular-value normalization with last-layer momentum (16.67) at a fraction of the compute cost.
- Near-SGD memory footprints are practical: Because the final projection layer accounts for only a minor fraction of parameters in billion-scale models, storing momentum only for that layer adds negligible overhead—requiring only 10% more memory than plain SGD for a 1B model, and ~2% for a 7B model.
Key Results
- Matches or Beats SOTA Perplexity: On LLaMA-1B, SCALE achieves an evaluation perplexity of 14.25, significantly outperforming standard Adam (16.52) and closely trailing Muon (14.18) and Stable-SPAM (13.97).
- Dramatic Memory Reductions: For LLaMA-1B (weights + optimizer states in BF16):
- Adam: 8.04 GB
- Muon: 5.36 GB
- GaLore / Fira: 4.76 GB
- SWAN / APOLLO-Mini: 3.20 GB
- SCALE: 2.81 GB (~35% of Adam's footprint; only slightly above SGD's 2.68 GB baseline).
- Superiority over Compressed Optimizers: Across all scales (60M–1B), SCALE consistently outperforms dedicated low-rank optimizers (GaLore, Fira, and APOLLO) in perplexity while using less memory.
- Learning Rate Robustness: Sensitivity sweeps show SCALE exhibits a stable learning rate basin comparable to Stable-SPAM.
Limitations and Future Work
- Scope of Evaluation: Empirical evaluations are limited to standard LLaMA-style decoder transformers trained on the C4 dataset. Performance on other architectures (e.g., MoE, encoder-decoder) and multi-modal domains remains unverified.
- Scale: Practical pretraining was evaluated up to 1B parameters; figures for 7B models represent analytical memory estimates rather than completed pretraining runs.
- Future Directions: The authors plan to scale SCALE to larger models (7B+) and evaluate downstream fine-tuning and broader pretraining corpora.
Summary updated