Taming Momentum: Rethinking Optimizer States Through Low-Rank Approximation
Organizations: University of Science and Technology of China · NLPR & MAIS, Institute of Automation, Chinese Academy of Sciences · School of Artificial Intelligence, University of Chinese Academy of Sciences · Nanjing University
Abstract
Modern optimizers like Adam and Muon are central to training large language models, but their reliance on first- and second-order momenta introduces significant memory overhead, which constrains scalability and computational efficiency. In this work, we reframe the exponential moving average (EMA) used in these momenta as the training of a linear regressor via online gradient flow. Building on this equivalence, we introduce LoRA-Pre, a novel low-rank optimizer designed for efficient pre-training. Specifically, LoRA-Pre reduces the optimizer's memory footprint by decomposing the full momentum matrix into a compact low-rank subspace within the online linear learner, thereby maintaining optimization performance while improving memory efficiency. We empirically validate LoRA-Pre's efficacy by pre-training models from the Llama architecture family, scaling from 60M to 1B parameters. LoRA-Pre achieves the highest performance across all model sizes. Notably, LoRA-Pre demonstrates remarkable rank efficiency, achieving comparable or superior results using only 1/8 the rank of baseline methods. Beyond pre-training, we evaluate LoRA-Pre's effectiveness in fine-tuning scenarios. With the same rank, LoRA-Pre consistently outperforms all efficient fine-tuning baselines. Specifically, compared to standard LoRA, LoRA-Pre achieves substantial improvements of 3.14 points on Llama-3.1-8B and 6.17 points on Llama-2-7B, validating our approach's effectiveness across both pre-training and fine-tuning paradigms. Our code is publicly available at https://github.com/mrflogs/LoRA-Pre.
Figures & tables
| Model Size | 60M | 130M | 350M | 1B |
|---|---|---|---|---|
| 128 / 512 | 256 / 768 | 256 / 1024 | 512 / 2048 | |
| Training Tokens | 1.1B | 2.2B | 6.4B | 13.1B |
| Adam ( Kingma and Ba, 2015 ) | 34.09 | 25.08 | 18.80 | 15.56 |
| Muon ( Jordan et al., 2024 ) | 28.43 | 21.86 | 16.17 | 13.41 |
| GaLore ( Zhao et al., 2024 ) | 34.88 | 25.36 | 18.95 | 15.64 |
| Low-Rank ( Kamalakara et al., 2022 ) | 78.18 | 45.51 | 37.41 | 142.53 |
| Method | Llama-3.1-8B | Llama-2-7B | ||||
|---|---|---|---|---|---|---|
| GSM8K | MATH-500 | Average | GSM8K | MATH-500 | Average | |
| LoRA ( Hu et al., 2022 ) | 70.76 | 17.06 | 43.91 | 44.62 | 7.34 | 25.98 |
| rsLoRA ( Kalajdzievski, 2023 ) | 71.06 | 17.46 | 44.26 | 48.79 | 5.75 | 27.27 |
| DoRA ( Liu et al., 2024 ) | 71.06 | 17.86 | 44.46 | 44.39 | 6.55 | 25.47 |
| GaLore ( Zhao et al., 2024 ) | 65.08 | 18.65 | 41.87 | 36.44 | 8.33 | 22.39 |
| LoRA-Pre Adam | 76.44 | 17.66 | 47.05 | 57.35 | 6.94 | 32.15 |
| Model Size | 60M | 130M | 350M |
|---|---|---|---|
| Muon ( Jordan et al., 2024 ) | 28.43 | 21.86 | 16.17 |
| Muon w/o momentum | 32.15 | 24.23 | 17.33 |
| GaLore Muon ( Zhao et al., 2024 ) | 34.39 | 25.16 | 19.24 |
| Fira Muon ( Chen et al., 2024 ) | 34.45 | 24.85 | 17.40 |
| LoRA-Pre Muon | 30.76 | 23.05 | 16.97 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
| Parameter | Value | Perplexity | Status |
|---|---|---|---|
| (fix ) | 0.90 ( Default ) | 32.57 | Optimal |
| 0.95 | 37.62 | Stable | |
| 0.99 | 1458.92 | Diverged | |
| (fix ) | 0.90 | 34.61 | Stable |
| 0.95 ( Default ) | 32.57 | Optimal | |
| 0.999 | 1301.58 | Diverged |
Memory-Efficient Training
Memory-efficient training reduces the memory needed to optimize neural networks by compressing, recomputing, or relocating training state.
See all 87 papers