Communication Efficient Distributed Training with Distributed Lion

Bo Liu, Lemeng Wu, Lizhang Chen, Kaizhao Liang, Jiaxu Zhu, Chen Liang, Raghuraman Krishnamoorthi, qiang liu

Abstract

Distributed training of large-scale models is increasingly bottlenecked by communication bandwidth rather than raw computational power. We present Distributed Lion (D-Lion), a framework designed to slash communication overhead by up to 30x compared to standard methods like AdamW. By leveraging the inherent sign-based nature of the Lion optimizer, D-Lion allows workers to exchange binary or low-precision vectors instead of massive high-precision gradients. Our results demonstrate that D-Lion maintains competitive performance across a variety of large-scale vision and language tasks, effectively breaking the traditional trade-off between compression and accuracy.

Introduction

Training modern "behemoth" models—such as Large Language Models (LLMs) and Large Vision Models (LVMs)—requires massive distributed clusters. In these systems, the primary bottleneck is often the communication bandwidth. In standard distributed training, every worker (GPU) must transmit its full gradient vector—typically composed of 32-bit floating-point numbers—to a central server for averaging. For models with billions of parameters, this creates a massive data traffic jam.

While existing research has explored gradient compression through sparsification or quantization, these techniques frequently lead to a "compression-accuracy trade-off," where model performance is sacrificed for training speed. D-Lion addresses this by making communication efficiency a native property of the optimization process.

The Distributed Lion Framework

D-Lion builds upon the Lion optimizer, a recently discovered alternative to AdamW that utilizes the sign of the momentum rather than its full magnitude. The key innovation of Distributed Lion is moving the sign operation from the server to the individual workers, enabling a more efficient communication loop:

  1. Local Optimization: Each worker maintains its own local momentum and calculates a binary update vector ($\delta$) using the sign function.
  2. Binary Communication: Instead of transmitting 32-bit floats, workers send these binary vectors (composed of 1s and -1s) to the server. This immediately reduces the upload bandwidth requirements by 32x.
  3. Aggregation: The server combines these binary updates using one of two strategies:
  4. Majority Vote (D-Lion-MaVo): The server takes a majority vote for each parameter and returns a binary vector.
  5. Averaging (D-Lion-Avg): The server averages the updates, resulting in a low-precision integer vector.
  6. Global Update: Workers receive the aggregated signal and update their local model parameters accordingly.

This approach is mathematically elegant because the Lion update rule only requires the sign of the momentum; therefore, transmitting high-precision magnitudes is essentially "wasted" bandwidth.

Theoretical Foundations and Scalability

The authors provide theoretical evidence showing that D-Lion converges in two distinct phases. In Phase I, the algorithm rapidly moves model parameters into a "feasible box." In Phase II, it optimizes the loss function within that box. This theoretical framework supports the observation that D-Lion-MaVo remains remarkably stable as the number of workers increases, a critical requirement for massive data-parallel training.

Experimental Results

The researchers stress-tested D-Lion across several standard and large-scale benchmarks, comparing it against full-precision optimizers and existing compression methods like Deep Gradient Compression (DGC) and TernGrad.

Computer Vision

On ImageNet-1K using a ViT-B/16 architecture, D-Lion-Avg achieved a Top-1 accuracy of 81.13%. This performance actually slightly outperformed standard AdamW (80.94%) and Global Lion (80.99%), demonstrating that the compression does not hinder the model's ability to learn complex visual features.

Language Modeling and Fine-tuning

In GPT-2++ pre-training (up to 760M parameters) on OpenWebText, D-Lion matched the validation perplexity of Global Lion. Furthermore, when fine-tuning LLaMA-7B, D-Lion remained competitive with full-precision optimizers across various zero-shot and few-shot reasoning tasks, including Arc-Challenge, BoolQ, and HellaSwag.

Conclusion and Future Work

D-Lion represents a significant step forward in communication-efficient distributed training, offering a 30x reduction in overhead without the typical loss in accuracy. However, the researchers noted an interesting modality-specific preference: D-Lion-Avg tends to perform better on vision tasks, while D-Lion-MaVo often excels in language tasks.

Future research will focus on investigating the theoretical reasons behind these task-specific behaviors and exploring hybrid approaches that combine D-Lion with asynchronous update techniques to achieve even greater speedups in large-scale AI development.

Summary updated

BibTeX
@inproceedings{liu2024communication,
  author = {Bo Liu and Lemeng Wu and Lizhang Chen and Kaizhao Liang and Jiaxu Zhu and Chen Liang and Raghuraman Krishnamoorthi and qiang liu},
  title = {{Communication Efficient Distributed Training with Distributed Lion}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=wDirCeTIoz},
}
Figure