Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Chamin P Hewa Koneputugodage, Thalaiyasingam Ajanthan, Sameera Ramasinghe, Hadi Mohaghegh Dolatabadi, Shamane Siriwardhana, Gil Avraham, Violetta Shevchenko, Karol Pajak, James Snewin, Alexander Long

Introduction: The Bottleneck in Decentralized Training

Training massive large language models (LLMs) typically requires expensive, high-bandwidth data centers. To democratize AI, researchers are increasingly exploring decentralized training—leveraging consumer-grade GPUs distributed across the internet.

A leading approach in this space is DiLoCo (Distributed Low-Communication), which allows individual workers to perform many local training steps before synchronizing with the global network. However, DiLoCo relies on a "global barrier" for its synchronization step. Every worker must stop computing and wait for a high-volume data exchange to complete. In low-bandwidth environments, this blocking communication causes severe computation stalls. Furthermore, if a single network link fails, the entire synchronization round can abort, making the system brittle at an internet scale.

The Solution: Factored Gossip DiLoCo

To make large-scale distributed training practical outside of high-bandwidth data centers, researchers introduce Factored Gossip DiLoCo. This framework relaxes exact synchronization in favor of approximate synchronization via mixing and gossip protocols.

By splitting the global synchronization process into a non-blocking background task and a minimal blocking "huddle," the method achieves up to a 2x speedup in wall-clock training time. Crucially, it maintains model stability and degrades gracefully under network delays and communication failures.

Key Innovations

Factorized Synchronization (Mix1 and Mix2)

The core of the approach factorizes the traditional synchronization barrier into two distinct operations:

  1. Mix1 (Non-blocking): A global averaging of model parameters that occurs entirely in the background while GPUs continue computing the next round of training. Because it overlaps with computation, it introduces no staleness—workers are always moving forward, effectively providing a "free" background sync.
  2. Mix2 (Blocking): A much smaller, gossip-based mixing step at the end of a round. Instead of a full global sync, workers exchange data with only a few neighbors. This tightens consensus between workers just enough to maintain optimization stability.

Functional vs. Weight Disagreement

A major insight of the paper is the shift from measuring weight disagreement (L2 distance) to measuring "functional disagreement" using Jensen-Shannon (JS) distance. Models can have different weights but still produce nearly identical output distributions. Traditional L2 metrics over-penalize weight drift, whereas JS distance correctly identifies when models are actually diverging in their behavior.

Using this insight, the authors developed the GlobalM1LocalM2-subset strategy. This approach applies the blocking Mix2 step only to the most "sensitive" parts of the model (such as the embeddings and the first few layers), further slashing communication overhead.

Experimental Results

The researchers evaluated their framework on FineWeb (training 600M and 1.5B parameter Llama-3 style models) and WikiText-103 (160M parameter ablations), using held-out batches to calculate JS distance during training. The results demonstrate substantial gains in low-bandwidth settings:

  • Compute Utilization: On a 200Mbps network (typical of high-end home internet), Factored Gossip DiLoCo improved compute utilization from 53% (standard DiLoCo) to between 66% and 100%, depending on the configuration.
  • Wall-Clock Speedup: Training a 1.5B parameter model to 1 trillion tokens at 200Mbps would take approximately 16 weeks with this method, compared to 29 weeks with standard DiLoCo.
  • Stability and Quality: The subset approach—syncing only 43% of parameters during the blocking step—achieved perplexity comparable to full synchronization, but with significantly less waiting.
  • Robustness to Failure: In simulations with a 5% communication failure rate, Factored Gossip DiLoCo maintained high utilization. Because gossip-based mixing is robust, a missed message simply results in slightly weaker mixing for that round. In contrast, standard all-reduce methods saw performance plummet due to constant restarts.

Limitations and Future Directions

While Factored Gossip DiLoCo presents a major step forward for decentralized training, the authors note a few limitations and areas for future work:

  • Linearity Assumptions: The theoretical proofs assume the outer optimizer is linear. While this holds for the Nesterov SGD used in the study, it may require more complex handling for other optimizers.
  • Exact Communication: The current paper focuses on the structural redesign of synchronization and uses exact data. Combining this factored approach with compression techniques, such as quantization or sparsification, is a natural next step to yield even greater efficiency gains.
  • Automated Tuning: Currently, the subset of parameters chosen for the blocking sync is determined offline. Future iterations could feature models that dynamically decide which layers require synchronization in real-time based on JS-distance spikes.

Summary updated

BibTeX
@inproceedings{koneputugodage2026factored,
  author = {Chamin P Hewa Koneputugodage and Thalaiyasingam Ajanthan and Sameera Ramasinghe and Hadi Mohaghegh Dolatabadi and Shamane Siriwardhana and Gil Avraham and Violetta Shevchenko and Karol Pajak and James Snewin and Alexander Long},
  title = {{Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=1MynM9hkFH},
}
Figure