Streaming DiLoCo with overlapping communication

Arthur Douillard, Yani Donchev, J Keith Rush, Satyen Kale, Zachary Charles, Gabriel Teston, Zachary Garrett, Jiajun Shen, Ross McIlroy, David Lacey, Alexandre Rame, Arthur Szlam, MarcAurelio Ranzato, Paul R BarhamCOLM 2025

TL;DR

This paper introduces "Streaming DiLoCo," a novel approach to distributed LLM training that significantly reduces communication bandwidth requirements. By synchronizing only subsets of model parameters, overlapping computation with communication, and quantizing gradients, they achieve comparable model quality to existing methods while using up to 100x less bandwidth.

What Problem Does This Paper Address?

Training massive Large Language Models (LLMs) requires an enormous amount of computational power, necessitating distributed training across thousands of accelerators. Traditionally, this involves frequent synchronization of model parameters and gradients between these accelerators, demanding high-bandwidth, low-latency communication links. This creates a bottleneck, making it expensive and complex to build and maintain the necessary infrastructure. While prior work like DiLoCo relaxed the strict co-location requirement, it still required high peak bandwidth during synchronization. This paper tackles the challenge of reducing this communication overhead without sacrificing training quality or speed.

Methods

The authors propose three key improvements to the DiLoCo framework:

  1. Streaming Synchronization: Instead of synchronizing all model parameters at once, they synchronize only subsets (fragments) of parameters sequentially. This breaks down the large communication burst into smaller, more frequent transfers, drastically reducing peak bandwidth requirements.
  2. Overlapping Communication with Computation: Workers can continue their inner optimization steps (computation) while the outer gradient synchronization is being communicated. This effectively hides communication latency, reducing the overall wall-clock time.
  3. Quantized Communication: The outer gradients exchanged between workers are compressed to just four bits per parameter. This significantly reduces the total amount of data that needs to be transferred.

By combining these techniques, they achieve substantial bandwidth reduction while maintaining competitive training performance.

Datasets

The paper uses the following datasets:

  • C4: Used for training and evaluating models across various scales (35 million to 4 billion parameters).
  • Dolma: Used for overtraining experiments with a 1 billion parameter model, focusing on larger token budgets.

Key Insights and Ideas

  • Decomposition is Key: Breaking down the massive communication requirement of full parameter synchronization into smaller, sequential fragment synchronizations is a highly effective way to reduce peak bandwidth.
  • Latency Hiding Works: Overlapping computation with communication is crucial for maximizing hardware utilization and reducing overall training time, especially in scenarios with heterogeneous hardware or network conditions.
  • Quantization Pays Off: Aggressively quantizing gradients (to 4-bit) for communication doesn't significantly degrade model performance, offering a substantial reduction in data transfer.
  • A "Distributed Free Lunch": The combination of these techniques offers a path towards achieving high compute utilization with significantly lower bandwidth, approaching a "distributed free lunch" scenario.

Key Results

  • Bandwidth Reduction: Streaming DiLoCo reduces required bandwidth by up to two orders of magnitude compared to traditional Data-Parallel training.
  • Compute Utilization: The proposed method achieves high compute utilization (up to 95%) with bandwidths as low as 1-5 Gbit/s, whereas Data-Parallel requires 100-300 Gbit/s for similar utilization.
  • Performance: The trained models achieve comparable evaluation loss and accuracy on downstream tasks (HellaSwag, Piqa, Arc-Easy) to Data-Parallel and the original DiLoCo.
  • Robustness: The method is robust to variations in inner step overlap (τ) and the number of replicas.

Limitations and Future Work

  • Simulation vs. Reality: The study relies heavily on simulations for compute utilization, acknowledging that real-world performance might differ due to factors like local bandwidth variations.
  • Hardware Lottery: The authors note that Data-Parallel's ubiquity is partly due to its suitability for available hardware, and bringing federated learning ideas to large-scale LLM training requires further research.
  • Scaling DiLoCo Replicas: A critical area for future work is understanding how to efficiently scale the number of DiLoCo replicas for LLM training.
  • Co-designed Architectures: The paper suggests that reducing communication bottlenecks opens doors for new co-designed architectures and training paradigms that leverage heterogeneous devices and compute arbitrage.

Summary updated

BibTeX
@inproceedings{douillard2025streaming,
  author = {Arthur Douillard and Yani Donchev and J Keith Rush and Satyen Kale and Zachary Charles and Gabriel Teston and Zachary Garrett and Jiajun Shen and Ross McIlroy and David Lacey and Alexandre Rame and Arthur Szlam and MarcAurelio Ranzato and Paul R Barham},
  title = {{Streaming DiLoCo with overlapping communication}},
  booktitle = {COLM},
  year = {2025},
  url = {https://openreview.net/forum?id=yYk3zK0X6Q},
}
Figure