# Beyond the Data Center: How AI Training Went Decentralized

The relentless scaling of AI has pushed training beyond the physical limits of any one location, forcing researchers to confront a fundamental challenge: how do you coordinate thousands of processors when they're separated by continents, not corridors? The answer lies in more efficient algorithms – methods that work by communicating less. This shift, powered by breakthroughs in federated optimization and crystallized in frameworks like DiLoCo, is enabling organizations to train billion-parameter models over standard internet connections, opening new possibilities for collaborative AI development at scale.

### **1\. The Starting Point: Distributed Training in Data Centers**

Modern AI training is inherently distributed. It has been consistently observed that scaling up data, parameters, and computation leads to substantial improvements in model performance, making it impossible to train foundation models (billions of parameters) on a single machine. The industry's default solution is the "centralized-distributed" model: purpose-built data centers housing thousands of GPUs in a single location, connected by ultra-fast networks like NVIDIA's NVLink or InfiniBand. These specialized interconnects operate at speeds orders of magnitude higher than standard networking, enabling the GPUs to function as one cohesive system.

The most common training strategy in this setting is **data parallelism**, where the dataset is split across GPUs. (Other approaches exist, like pipeline or tensor parallelism, which split the model itself across GPUs and are required for training the largest models, though they are more complex to implement.) Here's how a single training step using **mini-batch Stochastic Gradient Descent (SGD)** works (the same principle applies to Adam):

1. **Replicate and Distribute:** Load a copy of the model onto each GPU. Split the training data into small mini-batches.
    
2. **Parallel Computation:** Each GPU independently processes a different mini-batch and calculates a gradient – the direction to adjust the model's parameters.
    
3. **Synchronize and Aggregate:** All GPUs pause, share their gradients, and average them to produce a single, consolidated update.
    
4. **Update:** Apply this averaged update to every GPU's model copy, ensuring they all remain identical.
    
5. **Repeat:** Move to the next mini-batch and start again.
    

In essence, this is a cycle of parallel computation followed by mandatory synchronization. The constant communication, happening after every single training step, is only feasible because of the expensive, high-speed connections inside the data center. This reliance on frequent synchronization is the defining characteristic of centralized-distributed training. It works brilliantly until you leave the building.

### **2\. Hitting the Wall: The Great Communication Bottleneck**

To train the largest models, organizations must now build infrastructure at a breathtaking scale, often requiring multiple data centers in different cities or continents. This geographical separation creates a formidable obstacle. The algorithmic approach of step-by-step synchronization, which thrives inside a data center, breaks down when stretched across the globe.

The problem is network speed. Within a data center, InfiniBand transfers data at 400 Gb/s or more. The wide-area networks (WANs) connecting distant centers operate at speeds closer to 1 Gbps. That's a performance gap of several orders of magnitude, driven by the fundamental limits of distance and cost. Mini-batch SGD, with its assumption of near-instant communication, is incompatible with this reality.

This disparity creates a crippling bottleneck. When model parameters must synchronize after every step, powerful GPUs spend most of their time idle, waiting for data to crawl across slow networks. The result: the AI community cannot harness the massive computational resources distributed globally, from enterprise servers to consumer hardware, because existing algorithms require high-speed, centralized networks. This represents a vast, untapped reservoir of power.

### **3\. The Algorithmic Shift: Federated Optimization**

If frequent communication is the problem, the solution is to communicate less. This simple insight is the foundation of an algorithmic shift that adapts techniques from **Federated Learning** – a field originally focused on training models on decentralized data residing on endpoint devices, such as mobile phones, while preserving privacy. The core algorithm, [**Federated Averaging (FedAvg)**](https://arxiv.org/abs/1602.05629), showed that by allowing each device to perform multiple training steps locally before sending an update, the number of required communication rounds could be reduced by orders of magnitude.

Researchers realized this principle, doing more independent work between synchronizations, was the perfect solution for the performance bottleneck in geo-distributed setups. This led to the [Federated Optimization (FedOpt)](https://arxiv.org/abs/2003.00295) framework, which decouples local computation from global communication using a dual-optimizer approach.

The framework operates with two distinct optimizers:

* An **Inner Optimizer** (such as standard SGD) runs on each machine, performing many independent training steps on its local data slice. Each model replica makes significant progress on its own.
    
* An **Outer Optimizer** handles infrequent global synchronization. After many local steps, each worker calculates the total change in its model parameters. These changes are aggregated, and the outer optimizer uses this averaged update to adjust the global model for the next cycle.
    

This dual-optimizer architecture fundamentally changes the training dynamic. Instead of frantic, step-by-step communication between all nodes, the process becomes a series of extended, independent computation periods followed by a single aggregated update. This algorithmic shift, born from privacy research, provided the crucial breakthrough needed to make training over slow networks practical. The question was: could it work for massive language models?

![Source: Charles, Z., et al. (2025). "Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCo." arXiv:2503.09799](https://cdn.hashnode.com/res/hashnode/image/upload/v1760456440228/9630a74e-2cd9-45e6-a085-392fad94024d.png align="center")

*Source: Charles, Z., et al. (2025). "Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCo." arXiv:2503.09799*

### **4\. The Breakthrough: DiLoCo Proves It Works at Scale**

The answer came in the form of [**DiLoCo (Distributed Low-Communication)**](https://arxiv.org/abs/2311.08105), an algorithm that demonstrated the practical viability of federated optimization for large language models. DiLoCo provided a specific, carefully tuned recipe for training modern transformers over slow networks:

* **Inner Optimizer:** **AdamW**, the state-of-the-art optimizer for large language models, runs for many local training steps on each worker.
    
* **Outer Optimizer:** **Nesterov momentum**, a robust, well-understood algorithm, handles the infrequent global update.
    

The original experiments showed that DiLoCo could match the performance of fully synchronous data-center training while reducing communication between nodes by up to 500x. This was practical proof that training giant models over the internet is achievable.

The breakthrough gained rapid traction. [**OpenDiLoCo**](https://arxiv.org/abs/2407.07852), an open-source implementation, reproduced the original results and integrated the algorithm into a truly peer-to-peer framework using the Hivemind library, making the technique more accessible. This momentum culminated in successful large-scale pre-training runs by organizations like [**PrimeIntellect**](https://arxiv.org/abs/2412.01152), [**Nous Research**](https://nousresearch.com/nous-psyche/), and [**FlowerLabs**](https://arxiv.org/abs/2411.02908), which demonstrated successful pre-training of billion-parameter models using low-communication algorithms over the internet. These pioneering efforts moved DiLoCo-style training from a promising research paper to a validated method for building foundation models outside centralized providers.

### **5\. The Frontier: Advanced Techniques and Future Research**

The success of DiLoCo has ignited a surge of research focused on pushing efficiency and scale even further. A crucial step in maturing the approach has been the development of [**DiLoCo Scaling Laws**](https://arxiv.org/abs/2503.09799), which establish that DiLoCo's performance scales predictably and robustly with model size. These scaling laws predict that as models grow larger, a well-tuned DiLoCo can outperform traditional data-parallel training on a fixed compute budget while using orders of magnitude less bandwidth.

To handle models at the 100B+ parameter scale, researchers have extended DiLoCo's design with techniques like [**DiLoCoX**](https://arxiv.org/abs/2506.21263), which combines the dual-optimizer approach with pipeline parallelism. DiLoCoX enabled pre-training of a 107B parameter model over a standard 1 Gbps network. Further refinements include [**Streaming DiLoCo**](https://arxiv.org/abs/2501.18512), which overlaps communication and computation to hide network latency, and [**asynchronous approaches**](https://arxiv.org/abs/2401.09135) that prevent a single slow node from bottlenecking the entire system.

Innovation is also happening at the algorithmic core. Research into newer inner optimizers like **Muon** has led to [**MuLoCo**](https://arxiv.org/abs/2505.23725), a variant that allows model updates to be compressed down to 2 bits with negligible performance loss, resulting in an 8x reduction in data transfer. Perhaps the most ambitious research direction is **model parallelism over the internet**, where the model itself is split across different machines. Early research in this area, such as [**SWARM parallelism**](https://arxiv.org/abs/2301.11913), developed fault-tolerant methods for distributing model layers across heterogeneous and unreliable devices connected by slow networks. Building on these concepts, groups like [**Pluralis Research**](https://arxiv.org/abs/2506.01260) have demonstrated the possibility of training billion-parameter models where different layers are hosted on GPUs in entirely different geographic locations, opening the door to training on distributed consumer hardware connected only by standard internet.

### **6\. The Trust Challenge: Governance in Open Networks**

As training moves from controlled data centers to open, permissionless networks, a fundamental problem emerges: trust. In a truly decentralized system with no central authority, how can participants verify that the updates they receive from others are legitimate? What prevents a malicious participant from poisoning the model or a lazy one from claiming rewards for work they never did? This governance problem is the final hurdle.

One line of defense is **Byzantine robustness** – a concept from distributed computing that designs systems to function even when some participants are faulty or actively malicious. In a centralized system, a server can apply robust aggregation rules to discard malicious updates. This is harder in a peer-to-peer setting where there is no central aggregator. Instead, each honest node must evaluate updates from its neighbors and decide which to trust and which to discard.

Another approach involves cryptographic techniques that replace trust with verification. An early idea, [**Proof-of-Learning**](https://arxiv.org/abs/2103.05633), proposed that participants log training checkpoints to prove they expended the necessary computation. Other techniques like **Zero-Knowledge Proofs (ZKPs)** allow a worker to prove they executed the required training steps correctly without revealing underlying data, though their current computational overhead remains a challenge for verifying training of today's massive foundation models.

#### **Conclusion: The Dawn of a New AI Paradigm**

The journey from the high-walled data center to the open internet marks a profound shift in how artificial intelligence is created. We began with the physical limits of centralized training, where progress was dictated by access to expensive, co-located hardware. This led to the communication bottleneck, a wall that made training giant models over distributed networks impractical. Yet this wall was not broken by faster cables, but by more efficient algorithms.

The algorithmic shift, rooted in federated optimization and crystallized by DiLoCo, proved that communicating less frequently was the key. This breakthrough is now being rapidly advanced by techniques that establish scaling laws, overlap communication, explore novel optimizers, and even parallelize the model itself across the internet. The successful pre-training of billion-parameter models by a diverse ecosystem of researchers and companies is a testament to this new paradigm's power.

With the trust challenge being addressed through robust defenses and cryptographic verification, the path is clearing. Decentralized training is evolving from an engineering solution into a foundational pillar for a more open, collaborative, and accessible AI future. It promises a world where the ability to build powerful models is not confined to a handful of tech giants, but is distributed globally, unlocking the collective computational power and ingenuity of everyone.

---

### **References**

McMahan, H. B., et al. (2017). [*Communication-Efficient Learning of Deep Networks from Decentralized Data*](https://arxiv.org/abs/1602.05629). International Conference on Artificial Intelligence and Statistics (AISTATS).

Reddi, S., et al. (2021). [*Adaptive Federated Optimization*](https://arxiv.org/abs/2003.00295). International Conference on Learning Representations (ICLR).

Jia, H., et al. (2021). [*Proof-of-Learning: Definitions and Practice*](https://arxiv.org/abs/2103.05633). IEEE Symposium on Security and Privacy.

Ryabinin, Max, et al. (2023). [SWARM parallelism: Training large models can be surprisingly communication-efficient](https://arxiv.org/abs/2301.11913). International Conference on Machine Learning (ICML).

Douillard, A., et al. (2023). [*DiLoCo: Distributed Low-Communication Training of Language Models*](https://arxiv.org/abs/2311.08105).

Jaghouar, S., Ong, J. M., & Hagemann, J. (2024). [*OpenDiLoCo: An Open-Source Framework for Globally Distributed Low-Communication Training*](https://arxiv.org/abs/2407.07852).

Jaghouar, S., et al. (2024). [*INTELLECT-1 Technical Report*](https://arxiv.org/abs/2412.01152).

Liu, B., et al. (2024). [*Asynchronous Local-SGD Training for Language Modeling*](https://arxiv.org/abs/2401.09135).

Charles, Z., et al. (2025). [*Communication-Efficient Language Model Training Scales Reliably and Robustly: Scaling Laws for DiLoCo*](https://arxiv.org/abs/2503.09799).

Douillard, A., et al. (2025). [*Streaming DiLoCo with overlapping communication: Towards a Distributed Free Lunch*](https://arxiv.org/abs/2501.18512).

Psyche Team. (2025). [*Democratizing AI: The Psyche Network Architecture*](https://nousresearch.com/nous-psyche/). Nous Research Blog.

Qi, J., et al. (2025). [*DiLoCoX: A Low-Communication Large-Scale Training Framework for Decentralized Cluster*](https://arxiv.org/abs/2506.21263).

Sani, L., et al. (2025). [*Photon: Federated LLM Pre-Training*](https://arxiv.org/abs/2411.02908). Proceedings of the Conference on Machine Learning and Systems (MLSys).

Thérien, B., et al. (2025). [*MuLoCo: Muon is a practical inner optimizer for DiLoCo*](https://arxiv.org/abs/2505.23725).

Long, A., et al. (2025). [*Protocol Models: Scaling Decentralized Training with Communication-Efficient Model Parallelism*](https://arxiv.org/abs/2506.01260).
