[ICLR 2025] LoRA-Pre: Taming Momentum via Low-Rank Online Regression

Taming Momentum: Rethinking Optimizer States Through Low-Rank Approximation

Summary
Problem
Method
Takeaways
Abstract

The paper introduces LoRA-Pre, a memory-efficient low-rank optimizer for LLM pre-training and fine-tuning. By reformulating Exponential Moving Average (EMA) momentum as an online linear regression task, the authors decompose the full momentum matrix into low-rank components (m = mB * mA), achieving SOTA performance on Llama models up to 1B parameters while significantly reducing the optimizer's memory footprint.

TL;DR

Training Large Language Models (LLMs) is a memory nightmare, largely due to the "hidden" cost of optimizer states (momenta). LoRA-Pre rethinks these states as parameters of an online linear regressor. By factorizing the momentum matrix into two low-rank matrices and updating them using a derived Newton-step closed-form rule, LoRA-Pre achieves better-than-full-rank performance with a fraction of the memory. It works across both pre-training and fine-tuning, outperforming baselines like GaLore and standard LoRA.

The "Momentum Tax" and the Failure of Periodic Updates

When you train a model with Adam, you aren't just storing the weights (); you are storing the first moment () and second moment (). For a 7B parameter model, this "Momentum Tax" consumes roughly 56GB of VRAM just for the optimizer.

Prior attempts to cut this tax, such as GaLore, project gradients into a low-rank subspace. However, they usually update this subspace periodically (e.g., every 200 steps) because SVD is expensive. This leads to Subspace Lag, where the optimizer is effectively pushing the weights in an outdated, suboptimal direction between updates, causing error accumulation.

The Insight: Momentum is a Secret Regressor

The authors provide a beautiful mathematical bridge. They show that the standard EMA update: is actually the solution to optimizing a linear model to fit the gradient history:

If momentum is just a linear model, why not compress the model itself? By parameterizing as (where and are low-rank), we turn the optimizer state into a Low-Rank Adaptation (LoRA) problem that evolves online.

Methodology: Continuous Subspace Adaptation

Unlike GaLore, which "freezes" the subspace between SVDs, LoRA-Pre uses Newton's Method to derive closed-form update rules for and . These updates occur at every single training step, ensuring the subspace is always perfectly aligned with the current gradient flow.

LoRA-Pre Overview Figure 1: Illustration of LoRA-Pre. Momentum updates are reframed as training a low-rank regressor without backprop.

For the second-order momentum (), which must be positive, they use a clever Hadamard product re-parameterization: . This ensures the optimizer never tries to take the square root of a negative number while maintaining the low-rank benefits.

Experimental Results: Doing More with Less (Rank)

The most striking result is Rank Efficiency. In 60M and 130M model tests, LoRA-Pre reached the same perplexity at Rank 16 that GaLore required Rank 128 or 256 to achieve.

Performance Comparison Table Table 1: Pre-training results showing LoRA-Pre Adam/Muon consistently beating full-rank and low-rank baselines.

Key Highlights:

  • Pre-training: On a 1B Llama model, LoRA-Pre Adam achieved a perplexity of 13.53, significantly better than GaLore (15.64) and even standard Adam (15.56).
  • Fine-tuning: In math tasks (GSM8K), LoRA-Pre Adam boosted Llama-3.1-8B performance by 3.14 points over standard LoRA.
  • Optimizer Versatility: It integrates seamlessly with Muon, a modern preconditioned optimizer, pushing the SOTA even further.

Rank vs Perplexity Figure 2: Performance vs. Rank. LoRA-Pre (red/purple) stays stable and efficient even at extremely low ranks where others fail.

Critical Analysis & Conclusion

LoRA-Pre succeeds because it treats the optimizer's "memory" as a dynamic entity rather than a static projection. By updating the low-rank factors via Newton's method, it effectively "learns" the most important directions of the gradient manifold in real-time.

Limitations:

  • The coupling of hyperparameters ( and ) is elegant but means that if your is very close to 1, the low-rank adaptation becomes very slow, potentially leading to instability.
  • While it reduces memory, the matrix inversions in the update rule ( add a slight computational overhead, though this is negligible for the large matrix dimensions typically found in LLMs.

Takeaway: LoRA-Pre proves that we don't need "full" momentum to train "full-rank" models. As we move toward 100B+ parameter models, online low-rank state compression will likely become the standard requirement for efficient training.

Find Similar Papers

Try Our Examples

  • Search for recent papers that investigate the "online linear regression" perspective of optimizer momentum beyond the LoRA-Pre framework.
  • Which original papers proposed the Muon optimizer and the GaLore method, and how do their subspace update frequencies compare to LoRA-Pre?
  • Examine research that applies low-rank momentum factorization to non-transformer architectures, such as State Space Models (SSMs) or ConvNets, to evaluate its generalizability.
Contents
[ICLR 2025] LoRA-Pre: Taming Momentum via Low-Rank Online Regression
1. TL;DR
2. The "Momentum Tax" and the Failure of Periodic Updates
3. The Insight: Momentum is a Secret Regressor
4. Methodology: Continuous Subspace Adaptation
5. Experimental Results: Doing More with Less (Rank)
5.1. Key Highlights:
6. Critical Analysis & Conclusion