Can Model Merging Improve Aggregation in DiLoCo?

Stefan Horoi, Benjamin Thérien, Guy Wolf, Eugene BelilovskyNeurIPS 2026

TL;DR

Training massive language models across loosely connected GPU clusters usually forces an unpleasant trade-off: communicate rarely to save bandwidth, and your model’s quality tanks as you add more workers. By recognizing that distributed training updates are mathematically identical to model merging, the authors borrow a trick from the merging playbook to build IsoLoCo—an algorithm that lets up to 128 distributed "islands" of compute train together with dramatically less performance loss and virtually zero speed penalty.

What Problem Does This Paper Address?

Traditionally, pre-training a large language model (LLM) requires housing thousands of GPUs under one roof with ultra-fast, expensive interconnects so they can synchronize gradients at every step (Data-Parallel training, or DP).

Recently, DiLoCo (Distributed Low-Communication) offered an enticing alternative: split training across poorly connected "islands" of compute (workers). Each worker trains its own copy of the model independently for dozens of "inner steps" (using AdamW), and only occasionally pauses to average its accumulated weight changes—called pseudo-gradients—with everyone else in a global "outer step" (using Nesterov SGD).

DiLoCo slashes communication costs, but it has an Achilles' heel: scaling. As you increase the number of workers or let them train longer in isolation, their local models drift apart. Simply averaging their updates causes conflicting parameter changes—a phenomenon that degrades final model quality compared to standard data-parallel training.

Methods

The authors start with a crisp conceptual bridge: DiLoCo’s outer synchronization step is structurally identical to task arithmetic in post-training model merging, just repeated iteratively.

Figure 2: DiLoCo as iterative model merging. Dots represent model checkpoints, with blue dots denoting locally trained models: fine-tuned experts in model merging and worker replicas in DiLoCo respectively. Blue arrows are local updates—task vectors in merging and pseudo-gradients in DiLoCo—measuring displacement from the shared initialization. Red arrows denote aggregation: a one-shot merge on the left, and an outer-optimizer update on the right. Formally, with SGD, DiLoCo’s outer step reduces to task-arithmetic merging (Equations (1) and (2)), applied iteratively.

In model merging, combining independently fine-tuned experts often causes "parameter interference." Guided by this analogy, the authors benchmark five state-of-the-art merging techniques (like TIES and DARE) as drop-in replacements for DiLoCo’s simple averaging. The runaway winner is Iso-C (Isotropic merging in Common subspace). Iso-C sums the weight updates for each 2D layer, runs a Singular Value Decomposition (SVD), and replaces all singular values with their average—flattening dominant directions so a few loud updates don't drown out the rest.

Building on this, the authors introduce IsoLoCo, which makes two key innovations over raw Iso-C:

  1. Momentum Integration: They wrap the SVD-flattened pseudo-gradients inside DiLoCo’s Nesterov momentum outer loop.
  2. Fast Newton–Schulz Acceleration: Because running exact SVDs on GPUs is sluggish, they approximate the orthogonalization using 5 fast matrix-multiplication steps (Newton–Schulz iterations) and estimate the singular-value mean using the matrix's Root Mean Square (RMS), which can be computed cheaply beforehand.

Datasets

The authors pre-train LLaMA-style decoder-only transformers (178M, 512M, and 1B parameters) on the DCLM-Baseline dataset, tokenized with the LLaMA-2 tokenizer. Training follows compute-optimal Chinchilla scaling (20 tokens per parameter), and models are evaluated on a held-out 100M-token validation split of DCLM-Baseline. No new datasets are introduced.

Key Insights and Ideas

  • Taming the bullies, not boosting the whispers: Why does equalizing singular values help so much? Through ablations, the authors clip only high singular values down to the mean, versus boosting only low ones up. Clipping the highs captures nearly 100% of IsoLoCo's gains—meaning worker interference is largely driven by a few aggressive, high-energy gradient directionshijacking the global update.
  • Sparsity flops in pre-training: Popular merging methods that prune small updates (TIES, DARE) fail to improve DiLoCo, performing best only when pruning is nearly turned off.
  • Momentum isn't everything: Remarkably, plain SGD paired with Iso-C aggregation beats standard DiLoCo even without outer momentum, proving that cleaner aggregation is just as vital as optimizer dynamics.
  • Orthogonal gains with Muon: Pairing IsoLoCo's outer step with the spectrum-flattening Muon inner optimizer (a setup called MuLoCo) compounds the benefits at high worker counts, because Muon speeds up local convergence while IsoLoCo fixes cross-worker aggregation.

Key Results

IsoLoCo consistently outperforms DiLoCo across model scales (178M to 1B), synchronization intervals (30 to 240 inner steps), and extreme worker counts (up to $R = 128$).

Validation loss degradation over AdamW Data-Parallel training as worker count scales from 1 to 128.
  • Superior Worker Scaling: On 178M models with 128 workers, standard DiLoCo suffers a 16.5% validation loss penalty compared to the gold-standard AdamW DP baseline (3.355 vs. 2.881). IsoLoCo cuts that degradation nearly in half to 9.7% (3.160). At $R \le 4$ workers, IsoLoCo actually beats synchronous Data-Parallel training.
  • Virtually Free Speedup: Replacing SVD with Newton–Schulz + RMS makes the orthogonalization step up to two orders of magnitude faster, yielding an ~15–21% end-to-end training speedup. This puts IsoLoCo within 0.6% of standard DiLoCo’s wall-clock time while sacrificing only ~0.45% in validation loss (2.902 vs. 2.889 at $R=8$).
  • Beating MuLoCo Cheaply: For $R \ge 32$, combining IsoLoCo + Muon achieves the lowest validation loss of all tested methods. Meanwhile, IsoLoCo with standard AdamW matches or beats MuLoCo at high worker counts despite orthogonalizing $30\times$ less often.

Limitations and Future Work

Due to academic compute budgets, experiments top out at 1B-parameter dense transformers on language modeling; Mixture-of-Experts (MoE) architectures, larger scales, and non-text modalities remain untested. Additionally, the paper is purely empirical and does not provide formal convergence proofs for merging-based outer optimizers. Future directions include combining IsoLoCo with aggressive gradient compression, decentralized pipelining, and building a theoretical framework for why isotropic aggregation works—even in the curious single-worker ($R=1$) case where it still improves training.

Summary updated

Abstract

Model merging techniques, which aggregate independently finetuned models into one to combine their capabilities, have become a topic of significant interest in recent years, with a broad array of methods having been proposed to tackle this problem. Simultaneously, an emerging trend in distributed learning has been the use of methods such as local SGD and DiLoCo, which greatly reduce communication costs by periodically aggregating the independently trained local models. However, these communication-efficient methods have been shown to degrade in performance relative to the FLOP-matched data-parallel gold standard as the number of independent local models grows and as the number of local training steps before global communication is increased. In this work, we draw an explicit analogy between the pseudo-gradient aggregation step in local SGD/DiLoCo and task arithmetic-based model merging, establishing a straightforward way to utilize merging methods in the context of distributed optimization. We then evaluate multiple state-of-the-art model merging methods in this setting and identify one method in particular, Iso-C, as a promising approach for improving DiLoCo. We find that DiLoCo SGD with Iso-C aggregation outperforms not only simple pseudo-gradient averaging but even the momentum-based DiLoCo, despite lacking a momentum mechanism itself. Building on this finding, we propose IsoLoCo, which adapts Iso-C for distributed training by equipping it with Nesterov momentum. Our empirical evaluations on language model pre-training across varying numbers of local workers show that IsoLoCo significantly outperforms DiLoCo, with the gap between them widening as the number of workers increases. This advantage remains present across model sizes and inner step counts, confirming that merging-inspired aggregation is an effective strategy for low-communication distributed training.
BibTeX
@inproceedings{horoi2026can,
  author = {Stefan Horoi and Benjamin Thérien and Guy Wolf and Eugene Belilovsky},
  title = {{Can Model Merging Improve Aggregation in DiLoCo?}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Co0vrgB98e},
}
Figure