Efficient Distributed Optimization under Heavy-Tailed Noise

Su Hyeong Lee, Manzil Zaheer, Tian Li

TL;DR

Researchers have introduced TailOPT, a new optimization framework designed to stabilize the training of Large Language Models (LLMs) in distributed environments. Its standout algorithm, $Bi^2Clip$, uses a clever "clipping from above and below" strategy to mimic the performance of memory-heavy optimizers like Adam while maintaining the lean communication and memory footprint of standard Stochastic Gradient Descent (SGD).

The Challenge of Distributed Training

Training modern AI models like LLMs is a massive distributed undertaking. To save time and bandwidth, engineers use "local updates"—letting individual GPUs perform several steps of training before syncing with the rest of the cluster.

However, two major hurdles remain:

  1. Heavy-Tailed Noise: Recent research shows that attention-based models (like Transformers) produce "spiky" gradients. Instead of well-behaved noise, they exhibit "heavy-tailed" distributions where extreme values are common. This often causes standard training algorithms to diverge or stall.
  2. The "Adam" Tax: To handle these spikes, practitioners usually rely on adaptive optimizers like Adam. But Adam requires storing and communicating extra "preconditioners" (moving averages of gradients), which can triple the memory requirements and clog up network traffic in distributed setups.

The authors sought a way to achieve the stability and adaptivity of Adam without the massive memory and communication overhead.

Introducing TailOPT and $Bi^2Clip$

The authors propose TailOPT, a general framework for nested optimization that handles both inner local steps and outer global steps. The most innovative component of this framework is an algorithm called $Bi^2Clip$ (Bi-directional, Bi-level Clipping).

  • Bi-directional Clipping: Standard clipping only caps large gradients (clipping from above). $Bi^2Clip$ also clips from below. By setting a lower threshold, it effectively amplifies tiny, rare signals that would otherwise be lost in the noise. This "boost" for small signals mimics the behavior of Adam’s adaptivity.
  • Bi-level Application: This clipping is applied at both the inner level (on the local GPU) and the outer level (during the global synchronization).
  • Theoretical Innovation: Unlike many papers that assume "bounded variance," this work provides convergence guarantees for cases where gradient variance is technically infinite (specifically, assuming only a finite $\alpha$-moment where $1 < \alpha < 2$).

Key Insights

  • Adaptivity is just "Soft Clipping": The core insight is that the preconditioning step in Adam can be viewed as a form of soft clipping. By explicitly clipping small values from below, you can force the model to pay attention to rare features without needing to store a massive history of gradient statistics.
  • Nested Stability: Heavy-tailed noise needs to be fought on two fronts. Local clipping prevents a single node from diverging, while global clipping ensures that the aggregate update doesn't jump too far into a bad region of the loss landscape.
  • Memory Parity with SGD: Because $Bi^2Clip$ only relies on two scalar thresholds, it uses the same amount of memory as vanilla SGD, making it significantly more scalable for billion-parameter models than Adam.

Experimental Evaluation and Results

The team evaluated TailOPT across a diverse set of benchmarks, including synthetic datasets simulating heavy-tailed distributions, NLP Encoders (RoBERTa on GLUE), Generative Models (T5 on WMT, Qwen2.5 on SQuAD), Computer Vision (ViT on CIFAR100), and non-IID federated learning datasets.

Key Results: * Superior Performance: On the GLUE benchmark, $Bi^2Clip$ achieved an average score of 84.52, outperforming the state-of-the-art distributed algorithm DiLoCo (83.08) and Adam-based baselines. * Efficiency Gains: In machine translation (WMT), $Bi^2Clip$ outperformed the "Adam-squared" baseline (which syncs Adam states) while avoiding the massive communication overhead of transmitting preconditioners. * Robustness: In synthetic tests with heavy-tailed noise, standard SGD and even some adaptive methods failed to converge, while $Bi^2Clip$ remained stable and reached the ground truth.

Convergence of different optimization methods under various synthetic noise distributions. $Bi^2Clip$ variants remain stable even under heavy-tailed noise where standard SGD fails.
  • Centralized Utility: Even in non-distributed, centralized training, $Bi^2Clip$ matched Adam’s convergence speed on SQuAD and CIFAR100 while using significantly less memory.

Limitations and Future Work

While highly effective, the framework has a few areas for future exploration:

  • Hyperparameter Tuning: Currently, the clipping thresholds follow a manual schedule. Future work could involve auto-tuning these based on real-time gradient statistics.
  • Coordinate-wise Granularity: While the paper uses coordinate-wise clipping, different layers of a neural network might benefit from layer-wise clipping thresholds.
  • Momentum Theory: While empirically tested with momentum, providing a rigorous convergence proof for the combination of momentum and heavy-tailed clipping remains an open theoretical challenge.

Summary updated

BibTeX
@inproceedings{lee2025efficient,
  author = {Su Hyeong Lee and Manzil Zaheer and Tian Li},
  title = {{Efficient Distributed Optimization under Heavy-Tailed Noise}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=6MZz9eJUnD},
}
Figure