MARS: Unleashing the Power of Variance Reduction for Training Large Models

Huizhuo Yuan, Yifeng Liu, Shuang Wu, Xun Zhou, Quanquan Gu

Training large language models (LLMs) demands immense computational resources, making the efficiency of optimization algorithms a critical bottleneck. While adaptive gradient methods like Adam and AdamW have become the de facto standard, they leave theoretical performance on the table. For over a decade, "Variance Reduction" (VR) algorithms have promised faster convergence by minimizing the noise inherent in stochastic gradient descent. Yet, despite theoretical brilliance, VR has historically failed to gain traction in deep learning.

A new optimization framework called MARS (Make vAriance Reduction Shine) bridges this gap. By reconciling preconditioned gradient methods with variance reduction, MARS enables models like GPT-2 to reach target validation losses using nearly 50% fewer tokens than AdamW.

The "Clean Slate" Opportunity in Modern LLMs

Why did variance reduction fail in traditional deep learning, and why is it viable now?

The authors identify a structural incompatibility: classic deep learning relied heavily on "noise-inducing" techniques like Batch Normalization, aggressive Data Augmentation, and Dropout. These techniques inherently break the mathematical structures and smoothness assumptions that variance reduction algorithms (like SVRG or STORM) rely upon to estimate and cancel out noise.

However, the architecture of modern LLMs has evolved. Pre-training pipelines have largely abandoned these noise-inducing techniques in favor of cleaner, more stable architectures (e.g., using LayerNorm or RMSNorm instead of BatchNorm, and dropping Dropout during pre-training). This "clean slate" environment creates a golden opportunity to revisit variance reduction, provided it can be integrated with the coordinate-wise adaptivity that makes optimizers like AdamW so successful.

The MARS Framework: Mechanics and Innovations

MARS is a unified, plug-and-play optimization framework designed to inject variance reduction into existing adaptive optimizers. The authors demonstrate its versatility through three distinct instantiations: MARS-AdamW, MARS-Lion, and MARS-Shampoo.

The framework relies on several core mechanisms to maintain stability and accelerate convergence:

  1. Scaled Stochastic Recursive Momentum (STORM): Instead of relying solely on the current batch's gradient, MARS employs a recursive estimator. It incorporates the difference between the gradient at the current weights and the previous weights—calculated on the same data batch—effectively canceling out common stochastic noise.
  2. The Scaling Parameter ($\gamma_t$): Unlike previous VR methods that apply a rigid update rule, MARS introduces a tunable scaling parameter. This controls the "strength" of the variance reduction, which the authors demonstrate is critical for maintaining stability in deep networks.
  3. Pre-Momentum Gradient Clipping: Deep transformers are notoriously sensitive to early-stage training volatility. MARS applies clipping to the intermediate variance-reduced gradient estimate before it enters the momentum calculation, preventing recursive updates from exploding.
  4. MARS-approx vs. MARS-exact: True variance reduction requires two gradient evaluations per step (one for the current weights, one for the previous). To mitigate this computational overhead, the authors introduce an "approximate" version (MARS-approx) that reuses gradients from the previous step. This strikes an optimal balance between computational efficiency and theoretical accuracy.

Theoretically, MARS is proven to achieve a convergence rate of $O(T^{-1/3})$, a strict mathematical improvement over the $O(T^{-1/4})$ rate typically associated with AdamW.

Empirical Triumphs: Token Efficiency and Downstream Performance

The theoretical superiority of MARS translates into striking empirical gains, evaluated primarily on OpenWebText and FineWeb-Edu 100B across various GPT-2 scales (125M to 1.5B parameters).

  • Massive Token Savings: When training a GPT-2 Large (770M) model, AdamW required 50 billion tokens to reach a validation loss of 2.58. MARS achieved this exact milestone using only 28 billion tokens—a near 50% reduction in data requirements.
  • Superior Final Convergence: Extended to the full 50-billion-token run, MARS achieved a final validation loss of 2.51, significantly outperforming AdamW's 2.57.
  • Downstream Task Accuracy: The pre-training improvements carry over to downstream benchmarks evaluated via the lm-evaluation-harness. On the HellaSwag benchmark, a model trained with MARS-AdamW achieved 44.64% accuracy, comfortably beating the AdamW baseline of 41.70%.
  • Wall-Clock Efficiency: Although the exact formulation of MARS carries a slightly higher per-iteration computational cost, its vastly superior token efficiency means it reaches target accuracy levels in significantly less total wall-clock time compared to AdamW or newer optimizers like Muon.

Limitations and Future Horizons

While MARS represents a major leap forward, it introduces new considerations for practitioners. The "exact" version's requirement for two gradient passes per iteration introduces memory and compute overhead, making the "approximate" version the more practical choice for most setups. Additionally, the framework introduces new hyperparameters (like the scaling factor $\gamma$, though 0.025 proved robust across many tasks) that may require tuning for novel architectures.

Finally, while MARS has been rigorously tested up to the 1.5B parameter scale (GPT-2 XL), its behavior on massive frontier models (e.g., Llama-3 at 70B+ parameters) remains an open question. However, given the theoretical guarantees and the clean architectural nature of modern LLMs, MARS stands as a highly promising successor to the AdamW era, finally making variance reduction shine at scale.

Summary updated

BibTeX
@inproceedings{yuan2025mars,
  author = {Huizhuo Yuan and Yifeng Liu and Shuang Wu and Xun Zhou and Quanquan Gu},
  title = {{MARS: Unleashing the Power of Variance Reduction for Training Large Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=CCNHyfAQXQ},
}
Figure