ConceptioArchivearXiv CS
arXiv CSopen access

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Unknown · 2026 · arxiv_cs
arXiv CS · Papers · License: Open Access · 2026
Open Source ↗Direct PDF ↓
clouddistributedcomputingparallelcomputing
distributed computing, parallel computing, cloud

PLURALIS RESEARCH

F AC T O R E D G O S S I P D I L O C O : R E D U C I N G B L O C K I N G C O M M U N I C AT I O N I N D I L O C O Chamin Hewa Koneputugodage1 , Thalaiyasingam Ajanthan1 , Sameera Ramasinghe1 , Hadi Mohaghegh Dolatabadi1 , Shamane Siriwardhana1 , Gil Avraham1 , Violetta Shevchenko1 , Karol Pajak1 , James Snewin1 and Alexander Long1

arXiv:2606.22768v1 [cs.LG] 22 Jun 2026

1

Pluralis Research

To make large-scale distributed training practical outside high-bandwidth datacenters, we must reduce blocking, high-volume synchronization. While DiLoCo communicates infrequently, its outer synchronization remains bandwidth-heavy and brittle to stragglers and transient failures. We relax exact synchronization to approximate synchronization via mixing/gossip, which degrades gracefully under delays and communication failures. This allows us to factorize DiLoCo synchronization into a non-blocking mixing step that overlaps computation with no staleness, and a blocking mixing step that tightens worker agreement, yielding a tunable trade-off between compute utilization and optimization stability. On up to billion-parameter language models in low-bandwidth settings, our framework substantially improves compute utilization compared to DiLoCo, with training progress ranging from comparable to closely matching it, and is more robust to failures.

Keywords: Distributed Training, Federated Learning, Gossip Algorithms, Language Models, DiLoCo

1 . I N T RO D U C T I O N Scaling large language model (LLM) training continues to unlock major gains in capability (Brown et al., 2020; Grattafiori et al., 2024; Liu et al., 2024a), but centralized clusters face hard communication, energy, and infrastructure bottlenecks. This motivates distributed training, as well as decentralized training across geographically and administratively separated collaborators (Avraham et al., 2025; Ryabinin et al., 2020; 2023). To be practical, such settings must mitigate communication bottlenecks, especially in low-bandwidth, consumer-grade settings. One popular approach is DiLoCo (Douillard et al., 2023), which reduces communication frequency by running many local optimization steps between synchronization steps. However, its outer synchronization remains (i) high-volume and blocking (it stalls computation), and (ii) brittle: bandwidth-efficient global collectives (e.g., ring all-reduce (Patarasuk and Yuan, 2009)) are global barriers, dominated by the slowest link, and can abort on a single link failure, requiring retries (Meta Platforms, 2024). Because DiLoCo relies on successful synchronizations to reset disagreement, such failures cannot be ignored without risking instability. In this paper, we address these problems with approximate synchronization. DiLoCo already tolerates some disagreement between workers during local steps, and its global synchronization resets this to zero. We relax exact global synchronization to non-global synchronization that keeps disagreement low. Since synchronization is fundamentally an averaging operation, mixing/gossip is the natural relaxation (Koloskova et al., 2020; Lian et al., 2017). Furthermore, it is less sensitive to delays and degrades gracefully under transient failures, where missed exchanges simply yield weaker mixing rather than aborting the round. Tolerating approximate synchronization also lets us factorize outer synchronization into two components: a non-blocking mixing step (Mix1) that overlaps with computation without temporal staleness, and a blocking mixing step (Mix2) that more strongly enforces consensus for stability. We can choose the mixing operator for each step; in particular, we use overlapped global averaging for Mix1 to bound disagreement with minimal

Published at ICML 2026. Corresponding author(s): [email protected] © 2026 Pluralis Research. All rights reserved.

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Figure 1: Comparison of DiLoCo and our approach. We replace exact per-round synchronization with approximate synchronization via two operations: Mix1 mixes previous outer-step parameters (non-blocking, overlaps communication without temporal staleness) and Mix2 mixes the latest outer gradient (blocking). This enables us to use overlapped global averaging for Mix1 and a minimal amount of mixing that is sufficient for stability for Mix2. compute impact, and use blocking non-global mixing in Mix2 to tighten this bound and improve stability, at the cost of lower compute utilization. Our experiments show large compute-utilization gains with convergence ranging from comparable to closely matching DiLoCo, improved robustness to communication failures, and an empirical study of how disagreement bounds relate to optimization stability and the trade-off between compute utilization and stability.

2 . R E L AT E D W O R K Synchronous Data Parallel. Synchronous data parallel (sync-DP) averages gradients globally before each update (Goyal et al., 2017; Sergeev and Balso, 2018). This is equivalent to single-worker optimization with a larger effective batch, but requires expensive global communication. Local SGD and Periodic Model Synchronization. Methods that reduce synchronization frequency by taking multiple local steps have a long lineage: early parallel-SGD work periodically averaged worker parameters (McDonald et al., 2010; Zinkevich et al., 2010), DOWNPOUR added asynchronous parameter-server SGD (Dean et al., 2012), Elastic Averaging SGD (EASGD) (Zhang et al., 2015) replaced direct averaging with an elastic pull toward a slowly-moving center variable, and blockwise model-update filtering (BMUF) (Chen and Huo, 2016) added a global momentum term over averaged updates that presaged the outer-optimizer view. Federated Learning (FL) (Kairouz et al., 2021; Li et al., 2021) later refined these ideas: Local SGD (Stich, 2019) and FedAvg (McMahan et al., 2017) use periodic global parameter averaging, while FedOpt (Reddi

2

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

et al., 2021) treats the multi-step parameter change as an outer gradient for a global outer optimizer. DiLoCo (Douillard et al., 2023) adapts FedOpt to LLM training with AdamW (Loshchilov and Hutter, 2019) as the inner optimizer and Nesterov accelerated SGD (Kallusky et al., 2025; Nesterov, 1983) as the outer optimizer, enabling many more inner steps between global synchronizations. Decentralized SGD and Gossip-based Optimization. Gossip-based methods replace global synchronization with sparse peer-to-peer communication, improving consensus via local mixing over a graph rather than enforcing exact global agreement each round (Assran et al., 2019; Blot et al., 2016; Kempe et al., 2003; Koloskova et al., 2020; Lian et al., 2017). Several works combine gossip with periodic averaging (Chen et al., 2021; Guo et al., 2022; Koloskova et al., 2020; Wang and Joshi, 2021), but target the FL objective rather than reducing blocking communication. The closest to our approach is NoLoCo (Kolehmainen et al., 2025), which has a similar factorized structure: they apply Mix2 with pairwise gossip, use a damped correction in the outer update that incorporates Mix1 with pairwise gossip, and using pipeline randomization to reduce worker divergence. Unlike our work, they do not study varying Mix1/Mix2 or explicitly optimize for reduced blocking and higher compute utilization. Overlapping Communication and Computation. Overlapping communication and computation masks communication overhead and improves utilization, especially for high-latency cross-site links. To preserve semantics, communication is launched as early as possible but awaited at required synchronization points (e.g., gradient bucketing in sync-DP, or overlapping pipeline-parallel transfers with compute). In practice, these synchronization points limit overlap. Asynchronous methods instead increase overlap by tolerating temporal staleness, e.g., parameter-server SGD (Agarwal and Duchi, 2011; Dean et al., 2012; Feyzmahdavian et al., 2015; Mishchenko et al., 2022; Paine et al., 2013; Recht et al., 2011; Zhang et al., 2013), asynchronous gossip (Lian et al., 2018), and asynchronous pipeline scheduling (Ajanthan et al., 2025a; Huang et al., 2019; Narayanan et al., 2019; 2021), often with delay correction (Ajanthan et al., 2025a; Zheng et al., 2017). Overlapping Communication and Computation with DiLoCo. Asynchrony has also been explored for DiLoCo-style methods. Liu et al. (2024b) push outer gradients to a server and mitigate outer-momentum staleness via less frequent momentum updates and fewer local steps for slow workers. Ajanthan et al. (2025b) improve upon this by adding look-ahead delay correction that extrapolates in the negative momentum direction. Streaming DiLoCo (Douillard et al., 2025) overlaps outer-gradient averaging with a few local steps, then merges the resulting stale parameters with the latest via a weighted average. Kale et al. (2025) increases overlap to a full outer step and reduces staleness by updating the averaged outer gradient with each worker’s latest contribution. To our knowledge, our approach is the first to overlap communication and computation in a DiLoCo-based setting without introducing temporal staleness. In this paper, we focus on exact communication (no quantization or sparsification) to isolate the effects of topology and synchronization structure. Compression is largely orthogonal and could be added on top. We also do not study staleness-based/asynchronous update schemes, which target a different axis by tolerating stale information rather than restructuring synchronization.

3 . P R E L I M I NA R I E S DiLoCo. Following Khaled et al. (2025), let 𝑥𝑟 ∈ R𝑑 be the globally synchronized outer parameters at round 𝑟, and 𝑦𝑚,𝑟,ℎ the inner parameters on worker 𝑚 ∈ {1, ..., 𝑀 } after ℎ ∈ {0, ..., 𝐻} local steps, using stochastic input

3

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

batch 𝑏𝑚,𝑟,ℎ . DiLoCo updates on each worker 𝑚 as 𝑦𝑚,𝑟,0 = 𝑥𝑟

(1)

for ℎ = 0, 1, . . . , 𝐻 − 1 in sequence: 𝑔𝑚,𝑟,ℎ = ∇𝑦𝑚,𝑟,ℎ ℒ(𝑦𝑚,𝑟,ℎ , 𝑏𝑚,𝑟,ℎ )

(2)

𝑦𝑚,𝑟,ℎ+1 = InnerOpt (𝑦𝑚,𝑟,ℎ , 𝑔𝑚,𝑟,ℎ )

(3)

Δ𝑚,𝑟 = 𝑦𝑚,𝑟,𝐻 − 𝑦𝑚,𝑟,0 1 ∑︁𝑀 Δ𝑟 = Δ𝑚,𝑟 𝑚=1 𝑀 𝑥𝑟+1 = OuterOpt (𝑥𝑟 , −Δ𝑟 ) .

(4) (5) (6)

Gossip-based Mixing. Given values 𝑣𝑚,𝑟 on each worker 𝑚 at round 𝑟 (e.g., parameters or gradients), gossip-based mixing has each worker compute ∑︁𝑀 𝑣𝑚,𝑟+1 = Mix𝑊𝑟 (𝑣𝑚,𝑟 ) := 𝑤𝑚,𝑛,𝑟 𝑣𝑛,𝑟 (7) 𝑛=1

where 𝑊𝑟 ∈ R𝑀 ×𝑀 has entries 𝑤𝑚,𝑛,𝑟 and is symmetric and doubly stochastic. When 𝑊𝑟 is implicit, we 1 write Mix𝑟 . Global averaging corresponds to 𝑊𝑟 = 𝑊 = 𝑀 1𝑀 1𝑇𝑀 , while local/gossip averaging uses sparse 1 1 ∑︀𝑀 1𝑀 1⊤ 𝑊𝑟 . Let 𝑋𝑟 = [𝑥1,𝑟 , ..., 𝑥𝑀,𝑟 ] ∈ R𝑑×𝑀 and 𝑋 𝑟 = [𝑥𝑟 , ..., 𝑥𝑟 ] = 𝑋𝑟 𝑀 𝑚=1 𝑥𝑚,𝑟 . 𝑀 , where 𝑥𝑟 = 𝑀 After one mixing step the stacked values are 𝑋𝑟 𝑊 , ideally equal to 𝑋 𝑟 . Mixing quality is summarized by the contraction factor 0 ≤ 𝜌 ≤ 1, the reduction in squared distance to the global average. For mixing matrices 𝑊 ∼ 𝒲, define the expected contraction factor 𝜌 by ]︀ [︀ E𝑊 ‖𝑋𝑟 𝑊 − 𝑋‖2𝐹 ≤ 𝜌‖𝑋𝑟 − 𝑋 𝑟 ‖2𝐹 . (8) Thus, global averaging corresponds to 𝜌 = 0, and no averaging corresponds to 𝜌 = 1. Apart from these two, we also use synchronous pairwise random gossip: each communication round samples a random matching (set of disjoint pairs), and within each pair workers average their values. This has expected contraction factor 𝑀 −2 1 𝜌pair = 2(𝑀 −1) ≈ 2 (Boyd et al., 2006), so the high-probability upper bound on the contraction factor is likely to satisfy 12 < 𝜌↑pair < 1. Gossip-based Optimization. The classic way to do gossip averaging is to mix the parameters after each optimizer step (Blot et al., 2016; Jin et al., 2016; Koloskova et al., 2020): 𝑔𝑚,𝑟 = ∇𝑥𝑚,𝑟 ℒ(𝑥𝑚,𝑟 , 𝑏𝑚,𝑟 )

(9)

𝑧𝑚,𝑟+1 = Opt (𝑥𝑚,𝑟 , 𝑔𝑚,𝑟 )

(10)

𝑥𝑚,𝑟+1 = Mix𝑟 (𝑧𝑚,𝑟+1 ) .

(11)

Another variation is to average parameters before each optimization step (Jiang et al., 2017; Lian et al., 2017) 𝑥𝑚,𝑟 = Mix𝑟 (𝑧𝑚,𝑟 )

(12)

𝑔𝑚,𝑟 = ∇𝑧𝑚,𝑟 ℒ(𝑧𝑚,𝑟 , 𝑏𝑚,𝑟 )

(13)

𝑧𝑚,𝑟+1 = Opt (𝑥𝑚,𝑟 , 𝑔𝑚,𝑟 )

(14)

where 𝑥𝑚,0 = 𝑧𝑚,0 = 𝑥0 . Unrolled, the order of operations (𝑔𝑚,𝑟 , 𝑧𝑚,𝑟+1 , 𝑥𝑚,𝑟+1 ) is still the same, However, now the gradient 𝑔𝑚,𝑟 is calculated at 𝑧𝑚,𝑟 , while being applied in the optimizer step to 𝑥𝑚,𝑟 . The benefit of this approach is that it allows the mixing communication and the gradient computation to overlap. However, in the classic formulation the gradient in the 𝑟 + 1th round has information from other workers after their optimization step in round 𝑟, while in this variation the gradient does not. Thus, while the gradient is not temporally stale, it is noisier than in the classic version. 4

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

4 . F AC T O R E D G O S S I P D I L O C O We first discuss our factored gossip formulation in Section 4.1. We then show that it allows for a more communication friendly (but noisier) rearrangement of DiLoCo in Section 4.2, and further discuss implications on overlapping communication in Section 4.3. Finally, we discuss the importance of consensus, as well as how to control and measure its effects, in Section 4.4. 4.1 O U R F AC T O R E D G O S S I P F O R M U L AT I O N The mixing operation in Equation (11) can be considered as a combination of the mixing operation in Equation (12) and mixing on the computed gradients plus resulting update. Thus, we consider a factorization into Mix1, a non-blocking parameter mixing operation like Equation (12), and Mix2, a blocking gradient mixing operation: 𝑥𝑚,𝑟 = Mix1𝑟 (𝑧𝑚,𝑟 )

(15)

𝑔𝑚,𝑟 = ∇𝑧𝑚,𝑟 ℒ(𝑧𝑚,𝑟 , 𝑏𝑚,𝑟 )

(16)

Δ𝑚,𝑟 = Opt(𝑧𝑚,𝑟 , 𝑔𝑚,𝑟 ) − 𝑧𝑚,𝑟

(17)

[ Δ 𝑚,𝑟 = Mix2𝑟 (Δ𝑚,𝑟 )

(18)

[ 𝑧𝑚,𝑟+1 = 𝑥𝑚,𝑟 + Δ 𝑚,𝑟 .

(19)

Here, 𝑧𝑚,𝑟 represents the result after the 𝑟th update step, and 𝑥𝑚,𝑟 represents a further mixed representation of it. As the gradient in the 𝑟 + 1th optimization round is calculated at 𝑧𝑚,𝑟 , the communication for 𝑥𝑚,𝑟 can overlap that computation. Thus, the 𝑟 + 1th optimization round has two mixing operation: Mix1 which is non-blocking communication of parameters after the previous update step, and Mix2 which is blocking communication of parameter differences (essentially an outer gradient) after the latest update step. Applying this for our DiLoCo case gives 𝑥𝑚,𝑟 = Mix1𝑟 (𝑧𝑚,𝑟 )

(20)

𝑦𝑚,𝑟,0 = 𝑧𝑚,𝑟

(21)

for ℎ = 0, 1, . . . , 𝐻 − 1 in sequence: 𝑔𝑚,𝑟,ℎ = ∇𝑦𝑚,𝑟,ℎ ℒ(𝑦𝑚,𝑟,ℎ , 𝑏𝑚,𝑟,ℎ )

(22)

𝑦𝑚,𝑟,ℎ+1 = InnerOpt (𝑦𝑚,𝑟,ℎ , 𝑔𝑚,𝑟,ℎ )

(23)

Δ𝑚,𝑟 = 𝑦𝑚,𝑟,𝐻 − 𝑦𝑚,𝑟,0

(24)

[ Δ 𝑚,𝑟 = Mix2𝑟 (Δ𝑚,𝑟 ) (︁ )︁ [ 𝑧𝑚,𝑟+1 = OuterOpt 𝑥𝑚,𝑟 , −Δ 𝑚,𝑟 .

(25) (26)

Vanilla DiLoCo corresponds to not having Mix1 and Mix2 being a global average. Since all workers start from the same initialization, a global Mix2 enforces exact consensus and makes Mix1 redundant, though at the cost of heavy blocking communication. In contrast, Mix1 can overlap DiLoCo’s large number of inner steps 𝐻, thus it has a lot of time before it can block the next outer step. This factorization raises natural questions: How necessary is blocking Mix2 for convergence? Can it be removed if Mix1 is sufficiently global (or perhaps fully global)? When, if ever, is it beneficial to use both mixing operations? For intuition, in Section E we analyze a simplified setting where both optimizers are SGD, under strong stability assumptions. Let 𝜌1 , 𝜌2 ∈ [0, 1] denote the contraction factors of Mix1 and Mix2. For 𝜌1 < 1, we

5

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

show that for any 𝑟, ℎ the expected average distance between any two workers is bounded: ⎡ ⎤ 𝑀 ∑︁ 1 E⎣ 2 ‖𝑦𝑚,𝑟,ℎ − 𝑦𝑠,𝑟,ℎ ‖2 ⎦ ≤ 2𝜂 2 𝜎 2 𝐻𝐹, 𝑀

(27)

𝑚,𝑠=1

𝜌2 where 𝐹 = 1 + 1−𝜌 , 𝜂 is the inner learning rate, and 𝜎 2 bounds gradient variance. We also show that the 1 vanilla DiLoCo case (𝜌1 = 1, 𝜌2 = 0) lies on the boundary of this regime: the global Mix2 enforces exact consensus at the start of every outer round, so the bound reduces to 2𝜂 2 𝜎 2 𝐻 (i.e. 𝐹 = 1 by convention), matching Khaled et al. (2025).

The bound highlights that both Mix1 and Mix2 reduce consensus error, but Mix1 is critical: if 𝜌1 → 1 without a global Mix2, the consensus error can diverge. In contrast, 𝜌2 mainly tightens the bound, setting 𝜌2 = 1 keeps it finite but looser. Thus we consider the following four main configurations • DiLoCo: Our framework with 𝜌1 = 1, 𝜌2 = 0, so 𝐹 = 1 • LocalM1M2: Our framework with pairwise gossip for both Mix1 and Mix2, so 𝜌1 = 𝜌2 = 𝜌↑pair and thus 𝐹 > 2. Note that this baseline is very similar to NoLoCo (Kolehmainen et al., 2025), though with dampening and pipeline randomization removed. • GlobalM1LocalM2: Our framework with global averaging for Mix1 and pairwise gossip for Mix2, so 𝜌1 = 0, 𝜌2 = 𝜌↑pair and 32 < 𝐹 < 2. Note that this has the same amount of blocking communication as LocalM1M2. • GlobalM1: Our framework with global averaging for Mix1 and no Mix2, thus no blocking communication, so 𝐹 = 2. Note that this is a fixed factor regardless of 𝑀 . We also consider the following variant to demonstrate that the JS-distance metric introduced in Section 4.4 is a useful measure for improving consensus and convergence: • GlobalM1LocalM2-subset: global Mix1 with pairwise-gossip Mix2 applied only to a subset of parameter blocks (token embeddings, LM-Head, and the first 2 transformer layers, 43% of parameters at 1.5B). The subset is selected offline via per-block JS-distance sensitivity (Section D.3). Note that GlobalM1 is still approximate synchronization, since the parameters are not synchronized at the end of the outer step. Only by having Mix2 as global will the outer step be globally synchronized. However, reducing Mix2 (by decreasing 𝜌2 ) reduces blocking communication while linearly decreasing the consensus error in Equation (27). Detailed per-worker pseudo-code, including the asynchronous launch of Mix1, is in Algorithm 1 (Section A). 4.2 R E A R R A N G E D D I L O C O We now show that our framework with Mix2 removed and Mix1 as global averaging is essentially DiLoCo with rearranged steps and noisier outer gradients. Note that we have globally consistent parameters after Mix1, so 𝑥𝑚,𝑟 = 𝑥𝑟 . We also make the assumption that the outer update step is linear in the outer gradient and has global parameters, thus OuterOpt(𝑥𝑟 , 𝑔𝑚,𝑟 ) = 𝑥𝑟 − 𝛾(𝑎𝑟 𝑔𝑚,𝑟 + 𝑏𝑟 ) where 𝑎𝑟 and 𝑏𝑟 do not depend

6

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

on 𝑚. Then our formulation is 𝑦𝑚,𝑟,0 = 𝑧𝑚,𝑟

(28)

Δ𝑚,𝑟 = 𝑦𝑚,𝑟,𝐻 − 𝑦𝑚,𝑟,0

(29)

𝑧𝑚,𝑟+1 = OuterOpt (𝑥𝑟 , −Δ𝑚,𝑟 )

(30)

= 𝑥𝑟 − 𝛾 (−𝑎𝑡 Δ𝑚,𝑟 + 𝑏𝑡 ))

(31)

𝑀

𝑥𝑟+1 =

1 ∑︁ 𝑧𝑚,𝑟+1 𝑀

(32)

= OuterOpt (𝑥𝑟 , −Δ𝑟 )

(33)

𝑚=1

1 ∑︀𝑀 where Δ𝑟 = 𝑀 𝑚=1 Δ𝑚,𝑟 . This is equivalent to the original DiLoCo algorithm in Equation (6) with two differences. First, the initial point of the inner optimization steps 𝑦𝑚,𝑟,0 starts at the local value 𝑧𝑚,𝑟 rather than its globally consistent value 𝑥𝑟 . This makes the local outer gradients −Δ𝑚,𝑟 more noisy, they are still proper outer gradients but they are computed starting at noisy point 𝑧𝑚,𝑟 = 𝑥𝑟 + 𝜖𝑚 rather than globally consistent point 𝑥𝑟 . Second, the global average happens after the optimizer step, rather than before, and is a parameter average not a gradient average. Due to the assumptions on the optimizer step 𝑥𝑟+1 has the exact same value as DiLoCo, the result of the outer optimizer on 𝑥𝑟 and the global average of the local outer gradients, though with noisier local outer gradients. However this rearrangement allows the communication of the global averaging to overlap the next (𝑟 + 1th ) optimization round’s computation.

In the appendix (Section B) we show that DiLoCo’s outer optimizer satisfies linearity, and to satisfy global parameters we need to also synchronize the state. However, as discussed there, this greatly increases the communication volume, and its performance does not justify it. 4.3 D I F F E R E N T I AT I N G N O N - B L O C K I N G C O M M U N I C AT I O N A N D S TA L E N E S S The analysis as rearranged DiLoCo in the previous section provides a clear comparison between our nonblocking operation and asynchronous methods for DiLoCo that introduce staleness. In order for there to not be staleness, the 𝑟th outer optimization step that yields 𝑧𝑚,𝑟 (Equations (26) and (30)) must come before the computation (local steps) in the 𝑟 + 1th round. This is a hard synchronization point. As explained in Section 2, asynchronous methods like Douillard et al. (2025) do not obey this, introducing staleness. We compare against Streaming DiLoCo’s staleness-introducing communication–computation overlap approach in Section B.2. Our formulation factorizes the communication coming up to that point as Mix1 and Mix2. As explained earlier, having Mix1 overlap computation does not introduce staleness because 𝑧𝑚,𝑟 has the same number of outer update steps as 𝑥𝑚,𝑟 . Thus, workers compute their next outer gradient from the latest local update 𝑧𝑚,𝑟 , rather than the latest global update 𝑥𝑚,𝑟 , so 𝑧𝑚,𝑟 is temporally correct but only represents a local average rather than a globally average. This introduces a starting-point noise term, not a temporal lag, so the outer gradients are noisier than DiLoCo’s but never stale. After the outer gradients have been computed and potentially mixed with Mix2, workers then apply them to a more global starting point due to Mix1. Note that Mix2 by definition reduces noise in the outer gradients, so it can directly compensate for the disparity between 𝑥𝑚,𝑟 and 𝑧𝑚,𝑟 . 4.4 C O N S E N S U S C O N T RO L W I T H G O S S I P Kong et al. (2021) observe that the performance gap between local and global averaging is highly related to the consensus distance between workers, which they define as the average L2 distance between worker parameters and the mean parameters. They theoretically show, and empirically validate, that when consensus distance is below a critical threshold, local averaging converges as fast as global averaging. Khaled et al.

7

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

(2025) similarly connect consensus distance to optimization performance, where their convergence rates depend on a result similar to Equation (27). As a result, it is important to understand and measure the consensus distance. During training we log the more efficient L2 consensus distance of Kong et al. (2021) 𝑀

1 ∑︁ 𝐶𝐷𝐿2 (𝑋) = ‖𝑥𝑚 − 𝑥‖2 . 𝑀

(34)

𝑚=1

As we show in Section 5, the ordering of our logged L2 distance matches 𝐹 in Equation (27). However, the trend in L2 distance does not match the trend in training performance. We designate this to the theory using strong assumptions to relate L2 distance to function value and its loss. In their proof (Khaled et al., 2025), via assumptions on smoothness, convexity and Lipschitz constants, bounds on L2 distance are converted to bounds on gradients and then to bounds on function loss. Thus, we also measure functional distance via the Jensen–Shannon (JS) distance between each worker’s per-token output distribution and that of the averaged parameters, 𝑀

1 ∑︁ 𝐶𝐷𝐽𝑆 (𝑋) = 𝐽𝑆 (𝑓 (𝑥𝑚 , 𝑏), 𝑓 (𝑥, 𝑏)) 𝑀

(35)

𝑚=1

where 𝑓 (𝑥, 𝑏) := softmax(logits(𝑥, 𝑏)) produces a per-token probability distribution and 𝑏 is a held-out batch, sampled once and reused at every measurement (full details in Section D). As we show in Section 5 and Figure 6, this tracks training performance much better: instability and loss spikes typically coincide with spikes in JS distance. The JS-distance metric can also be used to determine that not all parameter blocks contribute equally to functional disagreement. We exploit this with the GlobalM1LocalM2-subset configuration introduced earlier, which applies Mix2 only to the most sensitive blocks. The per-block sensitivity analysis, the choice of subset, and a subset-size ablation are in Section D.3. The configuration’s results in Table 1 and Figures 2 to 4 demonstrate that the JS-distance metric is useful in determining a good compromise between reduced communication volume and training performance.

5 . R E S U LT S As we target public, internet-scale decentralized training, our experimental setting differs substantially from DiLoCo (Douillard et al., 2023; 2025). We assume single-GPU workers on consumer networks, roughly 50Mbps–1Gbps, rather than multi-GPU datacenter nodes with 10–100Gbps links. This constrains model size due to per-device memory limits, though this could be alleviated using model parallelism. Pipeline parallelism is especially favorable here because bandwidth is amortized per stage, and its longer forward–backward step times hide more communication (Ramasinghe et al., 2025; Ryabinin et al., 2023). However, this is beyond the scope of this paper. 5.1 T R A I N I N G E X P E R I M E N T S We train a 1.5B parameter Llama 3 model (Grattafiori et al., 2024) on FineWeb (Penedo et al., 2024), and run experiments for 10B tokens, with main experiments replicated to 30B tokens (compute optimal). In our setup, we use 8 workers, each with a 40GB A100 GPU. We train with a sequence length of 1024 and a batch size of 512. We use a peak learning rate of 3 × 10−4 and a warmup of 1000 steps, with linear learning rate decay to zero. In order to plot validation loss, since FineWeb does not have a validation set we make a running validation set by randomly excluding some documents from the training set (deterministic across runs). 8

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Table 1: Summary of our experimental configurations and results. The top section contains the main results comparing our four configurations, with ablations in the following sections. Here, local denotes pairwise gossip averaging, global denotes full averaging across all replicas, and GBS is the global batch size (perworker batch is GBS/𝑀 ). The two 𝑀 = 16 blocks correspond to two scaling strategies: GBS=512 keeps the global batch fixed (so the per-worker batch halves relative to 𝑀 = 8), while GBS=1024 keeps the per-worker batch fixed to the 𝑀 = 8 baseline (so the global batch doubles). All runs use AdamW (inner LR 3×10−4 ) as the inner optimizer and SGD with Nesterov momentum (outer LR 0.7, momentum 0.9) as the outer optimizer, matching DiLoCo’s hyperparameters. Overall, overlapped global Mix1 communication substantially boosts compute utilization, while adding Mix2 improves consensus and convergence at the cost of utilization (since it is blocking). 𝑀

𝐻

GBS Mix1

Mix2 Val PPL at 𝑇 tokens Compute Util. at Max Distance 𝑇 =10B 𝑇 =30B 100Mbps 200Mbps L2 JS

8 8 8 8 8 8 8 8 8 8 8 8 8 16 16 16 16 16 16 16 16 16 16 8 8

100 100 100 100 500 500 500 500 1k 1k 1k 1k 100 100 100 100 100 100 100 100 100 500

512 512 512 512 512 512 512 512 512 512 512 512 512 512 512 512 512 512 1024 1024 1024 1024 1024 512 512

global local none local global local local none global local local none global local none local global local none local local local

Config (row) Sync DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 DiLoCo LocalM1M2 GlobalM1LocalM2 GlobalM1 DiLoCo LocalM1M2 GlobalM1LocalM2 GlobalM1 Sync DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 Sync DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset GlobalM1LocalM2-subset

none local global global none local global global none local global global none local global global none local global global global global

17.53 18.65 19.37 19.42 18.80 22.67 23.13 22.78 23.17 28.17 28.82 28.13 28.65 17.22 19.99 22.24 21.39 20.70 18.17 20.91 23.01 22.26 21.48 19.15 23.06

14.85 15.52 15.83 15.91 15.60 -

1% 36% 49% 56% 36% 74% 83% 83% 100% 85% 91% 91% 100% 0% 21% 24% 26% 17% 1% 34% 49% 52% 34% 45% 92%

1% 53% 66% 100% 66% 85% 91% 91% 100% 92% 95% 95% 100% 1% 34% 49% 52% 34% 1% 51% 66% 100% 66% 82% 96%

0 65.5 234.8 145.1 106.5 148.1 407.1 201.7 285.9 204.2 435.9 283.2 384.8 0 69.0 546.3 154.3 109.9 0 66.0 483.2 144.2 108.9 123.6 239.7

0 0.21 0.24 0.34 0.22 0.26 0.26 0.26 0.42 0.27 0.27 0.27 0.49 0 0.23 0.26 0.35 0.22 0 0.20 0.24 0.31 0.22 0.22 0.28

We show our main results in Table 1 (top section) and Figure 2. As mentioned in Section 4.1, LocalM1M2 is very similar to NoLoCo, and thus functions as a strong baseline. We also compare against a reimplementation of NoLoCo, though without pipeline randomization as it is orthogonal to our DP focus, in Section B.1. Table 1 shows a clear utilization-performance trade-off under these low bandwidth settings. Sync-DP achieves the best validation perplexity (17.53) but essentially no utilization ( 1%). DiLoCo (H=100) is the main baseline, reaching moderate utilization (36% @100Mbps, 53% @200Mbps) with reasonable perplexity (18.65/15.52 at 10B/30B tokens). Purely local mixing (LocalM1M2) improves utilization (49%/66%) but has worse perplexity (19.37/15.83) and much larger divergence. Using Mix1 alone (GlobalM1) maximizes utilization (56% @100Mbps, 100% @200Mbps) but suffers a slight penalty in perplexity (19.42/15.91) and increases divergence. Adding Mix2 restores stability: GlobalM1LocalM2 improves perplexity to 18.80/15.60 while keeping DiLoCo-like utilization at 100Mbps and improving it at 200Mbps. The subset-Mix2 variant further boosts utilization (45%/82%) with a modest perplexity cost.

9

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset

Validation Perplexity

45 40 35 30 25 20 15

0

20000

40000

Training Steps

60000

80000

30

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset

28

Validation Perplexity

50

26 24 22 20 18

0

30

2000

3000

Time (min)

4000

5000

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset

28

Validation Perplexity

1000

26 24 22 20 18

0

500

1000

1500

Time (min)

2000

2500

3000

Figure 2: Validation perplexity curves. (Left) Validation perplexity per step. (Middle) Validation perplexity over time with 100Mbps bandwidth. (Right) Validation perplexity over time with 200Mbps bandwidth. While GlobalM1LocalM2 has the smallest perplexity gap to DiLoCo, removing blocking communication yields much faster convergence with respect to wall time. 5.2 C O M P U T E U T I L I Z AT I O N Following Douillard et al. (2025), we build a simple compute-utilization simulator and report on a range of bandwidth. Our simulator has four components, forward/backward compute, outer optimization compute, Mix1 communication, and Mix2 communication, and assumes a fixed per-link bandwidth between any pair of workers. We additionally provide a simulation of a 5% communication failure rate. When Mix1’s global all-reduce is fully hidden under the local-step compute, our methods achieve substantially higher utilization than DiLoCo. In our settings this occurs for 𝐻 = 100 once bandwidth exceeds roughly 200Mbps, and for 𝐻 = 500 across the full bandwidth range. More precisely, at our 1.5B-parameter 𝑀 = 8 setup the minimum 𝐻 for full Mix1 overlap is 𝐻 ≈ 180 at 100Mbps and 𝐻 ≈ 90 at 200Mbps. In this regime, GlobalM1 reaches 100% utilization and adding various levels of Mix2 (in regards to number of parametes) reduces utilization smoothly. However, when Mix1 cannot be fully overlapped due to extremely low bandwidth, utilization can drop sharply, and can even fall below DiLoCo, since we now pay for two communication phases. Notably, a bandwidth-optimal all-reduce requires at most about twice the bandwidth of pairwise gossip, so the utilization differences are driven primarily by blocking and restart behavior rather than raw bandwidth alone. Translated to wall-clock time, training to 1T tokens at 200Mbps with 𝑀 = 8 and 𝐻 = 100 takes approximately 16 weeks for GlobalM1 versus 29 weeks for DiLoCo. Under simulated failures, all-reduce must restart while mixing can proceed with effectively weaker mixing, making DiLoCo’s utilization degrade across bandwidth. In contrast, our methods only lose utilization once failures push communication time beyond what computation can hide, and LocalM1M2 is unaffected since it avoids all-reduce entirely.

10

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Compute Utilization

1.0 0.8

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset

0.6 0.4 0.2 0.0

100Mbps

Compute Utilization

1.0

1Gbps

Bandwidth

0.8

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset

0.6 0.4 0.2 0.0

10Gbps

100Mbps

1Gbps

Bandwidth

10Gbps

Figure 3: Compute utilization under different bandwidths for 𝑀 = 8 workers and either Top 𝐻 = 100, or Bottom 𝐻 = 500 inner steps. Dotted lines show results with 5% communication failure rate. When Mix1 is fully hidden, utilization approaches 100%, and under failures the drop is smaller than all-reduce baselines until communication exceeds the available overlap. Memory overhead. Our methods add no GPU-memory overhead beyond DiLoCo: the outer optimizer state lives on CPU and is communicated via GLOO, so the only extra per-step allocation is a single parameter-sized buffer for the outer update. In our setup, peak VRAM during local steps is 28.29 GiB and rises to 29.89 GiB during the outer step, identical across DiLoCo and our four configurations. 5.3 D I S TA N C E M E T R I C S We plot L2 and JS consensus distances in Figure 4. Sync-DP has zero distance by construction, and DiLoCo returns to zero at the end of each outer step (𝐻 = 100). Both metrics spike at the end of warmup and settle into a steady-state level. For DiLoCo, distances quickly rise to steady state as workers drift during local computation. The non-global blocking methods show the same qualitative behavior in L2, sharp drops after each outer step (not to zero) followed by rapid return to steady state, consistent with partial consensus followed by local-step drift. JS distance behaves differently: it spikes after the outer step and then decays during the subsequent local steps. This suggests the outer update is the main source of short-term instability, while the local trajectory re-stabilizes the model. L2 curves are cleanly separated and roughly matches the theory in with Section 4.1 peak near the end of warmup: DiLoCo is lowest; GlobalM1 reaches roughly 2× DiLoCo; GlobalM1LocalM2 and GlobalM1LocalM2subset sit between about 1.5× and 2×; and LocalM1M2 is highest (>2×). This matches the ordering predicted by Section 4.1.

11

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

150

0.35

1.5 × DiLoCo peak

0.15

1.0 × DiLoCo peak

0.10

100 50

Sync-DP DiLoCo GlobalM1 GlobalM1LocalM2-subset GlobalM1LocalM2 LocalM1M2

0.30 0.25

JS Distance

L2 Distance

200

Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2 GlobalM1LocalM2-subset 2.0 × DiLoCo peak

0.20

0.05

0

0.00

0

2500

5000

7500

10000 12500 15000 17500 20000

0

Training Steps 0.35

5000

7500

10000 12500 15000 17500 20000

Training Steps

Sync-DP DiLoCo GlobalM1 GlobalM1LocalM2-subset GlobalM1LocalM2 LocalM1M2

0.30 0.25

JS Distance

2500

0.20 0.15 0.10 0.05 0.00 0

2500

5000

7500

10000 12500 15000 17500 20000

Training Steps

Figure 4: Distance plots. (Left & Middle) L2 and JS distance per step respectively. Note that Sync-DP has zero distance everywhere due to its global synchronization, and DiLoCo has zero at the end of every outer step (every 𝐻 = 100 steps) due to the global synchronization there. (Right) Range (min and max) as well as median JS distance per step within a window of 125 steps. L2 distance aligns with our theory on consensus distance, while JS distance highlights instability that is reduced most by adding Mix2. Sync-DP DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2

35

PPL

30 25 20 15 M=4 M=4, H=100 M=8 M=8, H=100 WikiText, 160M

M=8, H=1k

M=4 M=4, H=100 M=8 M=8, H=100 FineWeb, 600M

M=8, H=1k

M=8 M=8, H=100

M=8, H=500 M=8, H=1k M=16 M=16, H=100 FineWeb, 1.5B

Figure 5: Scaling ablations. Validation perplexity for different number of workers (𝑀 ) and inner steps (𝐻) on three different model sizes, 160M parameters on WikiText, and 600M parameters on FineWeb, and 1.5B parameters on FineWeb. The ablations show a growing trade-off with scale: higher 𝑀 and 𝐻 amplify the cost of imperfect consensus, while stronger mixing mitigates the perplexity hit. JS curves are less separable but reveal stability effects within an outer step. Methods with local Mix2 (GlobalM1LocalM2 and LocalM1M2) show much smaller within-step variation, indicating Mix2 stabilizes the outer update. GlobalM1LocalM2 is slightly lower overall, reflecting the benefit of global non-blocking Mix1. GlobalM1 exhibits large drift within an outer step, yet its minimum within each outer step is comparable to GlobalM1LocalM2 and below LocalM1M2, suggesting global Mix1 improves the eventual (steady-state) functional consensus even when short-term instability is higher. The median plot highlights this steady state: all three methods in our formulation remain close to DiLoCo, with LocalM1M2 consistently highest and GlobalM1/GlobalM1LocalM2 similar for most of training (diverging late when GlobalM1’s learning rate drops), consistent with their broadly similar validation performance.

12

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

6 . A B L AT I O N S Scaling. In Figure 5 we evaluate two smaller Llama-style models (160M on WikiText (Merity et al., 2017) and 600M on FineWeb (Penedo et al., 2024)) while varying 𝑀 and 𝐻. On WikiText, Sync-DP is not always best, with DiLoCo and other low-communication variants sometimes slightly better, whereas on FineWeb Sync-DP remains strongest, consistent with our 1.5B results. For 𝐻 = 100, performance is broadly similar across methods for both 𝑀 = 4 and 𝑀 = 8, except that LocalM1M2 degrades at 𝑀 = 8 on WikiText, consistent with larger consensus error at higher worker counts. Increasing to 𝐻 = 1𝑘 has only a small effect at 160M, but is noticeably worse at 600M (and at 1.5B), indicating reduced tolerance to long local intervals as scale increases. Changing the number of inner steps (𝐻 = 100, 500, 1𝑘). Increasing 𝐻 raises compute utilization (Figure 3) but can stress stability for non-blocking GlobalM1. In Table 1, GlobalM1’s max JS distance grows from 0.34 (𝐻 = 100) to 0.42 (𝐻 = 500) and 0.49 (𝐻 = 1𝑘), with a corresponding (small) perplexity gap to DiLoCo at each 𝐻 (19.42 vs. 18.65; 23.17 vs. 22.67; 28.65 vs. 28.17 at 10B tokens). At the same time, GlobalM1 achieves much higher utilization, reaching 100% once Mix1 is fully hidden (already at 𝐻 = 500 in our bandwidth range). Adding blocking communication via GlobalM1LocalM2-subset substantially reduces disagreement at 𝐻 = 100 and 𝐻 = 500 (max JS 0.22 and 0.28) while only slightly lowering utilization (45%/82% at 𝐻 = 100 and 92%/96% at 𝐻 = 500), yielding a favorable utilization–stability trade-off compared to DiLoCo (36%/53%, 74%/85%). Increasing the number of workers to 𝑀 = 16. Table 1 includes two 𝑀 = 16 blocks: Global-BS-fix (GBS=512, per-worker batch halves) and Local-BS-fix (GBS=1024, per-worker batch matched to the 𝑀 = 8 baseline). All methods show a slight perplexity drop relative to 𝑀 = 8, with the gap between non-blocking and blocking methods slightly widening, consistent with Charles et al. (2025) showing DiLoCo degrades with more workers and the longer convergence of mixing at larger 𝑀 . Compute utilization is markedly higher under Local-BS-fix because the larger per-worker compute hides the all-reduce more effectively, while perplexity is somewhat worse since global batch is also larger.

7. CONCLUSION AND FUTURE WORK We introduce Factored DiLoCo, a restructuring of DiLoCo’s outer synchronization that reduces blocking communication while preserving the key role of synchronization in reducing worker disagreement. Our approach factorizes synchronization into two mixing operations: a non-blocking Mix1 that can be overlapped with local computation without temporal staleness, and a blocking Mix2 that enforces stronger consensus when needed for stability. This factorization exposes a simple trade-off between compute utilization and optimization stability, where Mix1 provides a bounded level of consensus with minimal impact on utilization, and Mix2 tightens consensus at an explicit blocking cost. In low-bandwidth regimes representative of consumer-grade decentralized settings, we empirically show that Factored DiLoCo substantially improves compute utilization with training progress ranging from comparable to closely matching DiLoCo across model scales and hyperparameter regimes. Most importantly, these gains reduce perplexity per unit wall-clock time, a metric on which decentralized training struggles (Figure 2, middle and right). We also observe more graceful degradation under transient communication failures, due to mixing-based synchronization avoiding having to abort and restart communication under failures. Beyond standard parameter-space disagreement, we find that functional discrepancy, measured by JS distance on logits, better tracks optimization instability, motivating its use for determining when to use blocking communication. We further use this metric to identify the parameter blocks driving consensus error, and verify in an ablation (Section D.3) that applying Mix2 only to these blocks recovers most of the full-Mix2 stability. There are several promising directions for further developing the framework itself. First, we could determine whether to use Mix2 and with how many parameters automatically based on real-time signals (such as JS13

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

distance spikes), rather than manually choosing such hyperparameters. Second, our analysis uses simplifying assumptions, thus extending the theory to more realistic assumptions could give better insights on how to navigate the compute utilization - optimization stability trade-off. Third, while we demonstrate improved robustness to transient failures, fully fault-tolerant decentralized training remains a challenge, especially under correlated delays and partial communication. Beyond extending the framework itself, several orthogonal axes can also be incorporated to further reduce communication cost and/or improve consensus, and may compound gains when combined with our synchronization factorization. Pipeline parallelism amortizes bandwidth per stage and lets longer forward–backward step times hide more communication (Ramasinghe et al., 2025; Ryabinin et al., 2023), pipeline-parallel randomization reduces worker disagreement at the model-parallel level (Kolehmainen et al., 2025), parameter partitioning with per-partition communication schedules (Douillard et al., 2025) trades off bandwidth and consensus at finer granularity, and compression (quantization, sparsification, low-rank) reduces the payload of each communication round. The JS-distance metric could in particular guide where or how to apply compression.

REFERENCES Alekh Agarwal and John C Duchi. Distributed delayed stochastic optimization. In Advances in Neural Information Processing Systems (NeurIPS), 2011. Thalaiyasingam Ajanthan, Sameera Ramasinghe, Gil Avraham, Yan Zuo, and Alexander Long. Nesterov method for asynchronous pipeline parallel optimization. In International Conference on Machine Learning (ICML), 2025a. Thalaiyasingam Ajanthan, Sameera Ramasinghe, Gil Avraham, Yan Zuo, and Alexander Long. Momentum look-ahead for asynchronous distributed low-communication training. In ICLR Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025b. Mahmoud Assran, Nicolas Loizou, Nicolas Ballas, and Mike Rabbat. Stochastic gradient push for distributed deep learning. In International Conference on Machine Learning (ICML). PMLR, 2019. Gil Avraham, Yan Zuo, Violetta Shevchenko, Hadi Mohaghegh Dolatabadi, Thalaiyasingam Ajanthan, Sameera Ramasinghe, Chamin Hewa Koneputugodage, and Alexander Long. Node0: Model parallel training over the internet with protocol models, 2025. URL https://github.com/PluralisResearch/ node0. Matt Beton, Matthew Reed, Seth Howes, Alex Cheema, and Mohamed Baioumy. Improving the efficiency of distributed training using sparse parameter averaging. In ICLR Workshop on Modularity for Collaborative, Decentralized, and Continual Deep Learning, 2025. Michael Blot, David Picard, Matthieu Cord, and Nicolas Thomé. Gossip training for deep learning. arXiv preprint arXiv:1611.09726, 2016. Stephen Boyd, Arpita Ghosh, Balaji Prabhakar, and Devavrat Shah. Randomized gossip algorithms. IEEE Transactions on Information Theory, 2006. doi: 10.1109/TIT.2006.874516. Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. In Advances in Neural Information Processing Systems (NeurIPS), 2020. Zachary Charles, Gabriel Teston, Lucio Dery, Keith Rush, Nova Fallen, Zachary Garrett, Arthur Szlam, and Arthur Douillard. Communication-efficient language model training scales reliably and robustly: Scaling laws for DiLoCo. In Advances in Neural Information Processing Systems (NeurIPS), 2025. 14

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Kai Chen and Qiang Huo. Scalable training of deep learning machines by incremental block training with intra-block parallel optimization and blockwise model-update filtering. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP). IEEE, 2016. Yiming Chen, Kun Yuan, Yingya Zhang, Pan Pan, Yinghui Xu, and Wotao Yin. Accelerating gossip SGD with periodic global averaging. In International Conference on Machine Learning (ICML), 2021. Jeffrey Dean, Gregory S. Corrado, Rajat Monga, Kai Chen, Matthieu Devin, Quoc V. Le, Mark Z. Mao, Marc’Aurelio Ranzato, Andrew W. Senior, Paul A. Tucker, Ke Yang, and A. Ng. Large scale distributed deep networks. In Advances in Neural Information Processing Systems (NeurIPS), 2012. Arthur Douillard, Qixuan Feng, Andrei A Rusu, Rachita Chhaparia, Yani Donchev, Adhiguna Kuncoro, Marc’Aurelio Ranzato, Arthur Szlam, and Jiajun Shen. DiLoCo: Distributed low-communication training of language models. arXiv preprint arXiv:2311.08105, 2023. Arthur Douillard, Yanislav Donchev, Keith Rush, Satyen Kale, Zachary Charles, Zachary Garrett, Gabriel Teston, Dave Lacey, Ross McIlroy, Jiajun Shen, et al. Streaming DiLoCo with overlapping communication: Towards a distributed free lunch. arXiv preprint arXiv:2501.18512, 2025. Hamid Reza Feyzmahdavian, Arda Aytekin, and Mikael Johansson. An asynchronous mini-batch algorithm for regularized stochastic optimization. In IEEE Conference on Decision and Control (CDC). IEEE, 2015. Pierre Foret, Ariel Kleiner, Hossein Mobahi, and Behnam Neyshabur. Sharpness-aware minimization for efficiently improving generalization. In International Conference on Learning Representations (ICLR), 2021. Priya Goyal, Piotr Dollár, Ross B. Girshick, Pieter Noordhuis, Lukasz Wesolowski, Aapo Kyrola, Andrew Tulloch, Yangqing Jia, and Kaiming He. Accurate, large minibatch SGD: Training ImageNet in 1 hour. arXiv preprint arXiv:1706.02677, 2017. Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, et al. The llama 3 herd of models, 2024. URL https://arxiv.org/abs/2407.21783. Yuanxiong Guo, Ying Sun, Rui Hu, and Yanmin Gong. Hybrid local SGD for federated learning with heterogeneous communications. In International Conference on Learning Representations (ICLR), 2022. Yanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Dehao Chen, Mia Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V Le, Yonghui Wu, et al. GPipe: Efficient training of giant neural networks using pipeline parallelism. In Advances in Neural Information Processing Systems (NeurIPS), 2019. Zhanhong Jiang, Aditya Balu, Chinmay Hegde, and Soumik Sarkar. Collaborative deep learning in fixed topology networks. In Advances in Neural Information Processing Systems (NeurIPS), 2017. Peter H. Jin, Qiaochu Yuan, Forrest N. Iandola, and Kurt Keutzer. How to scale distributed deep learning? arXiv preprint arXiv:1611.04581, 2016. Peter Kairouz, H Brendan McMahan, Brendan Avent, Aurélien Bellet, Mehdi Bennis, Arjun Nitin Bhagoji, Kallista Bonawitz, Zachary Charles, Graham Cormode, Rachel Cummings, et al. Advances and open problems in federated learning. Foundations and Trends in Machine Learning, 2021. Satyen Kale, Arthur Douillard, and Yanislav Donchev. Eager updates for overlapped communication and computation in DiLoCo. arXiv preprint arXiv:2502.12996, 2025. Dominik Kallusky, Vinay Rao, Vishal Nandavanam, and Hao-Jun Michael Shi. SNOO: Step-k Nesterov outer optimizer - the surprising effectiveness of Nesterov momentum applied to pseudo-gradients, 2025. URL https://arxiv.org/abs/2510.15830. 15

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

David Kempe, Alin Dobra, and Johannes Gehrke. Gossip-based computation of aggregate information. In IEEE Symposium on Foundations of Computer Science (FOCS), 2003. Ahmed Khaled, Satyen Kale, Arthur Douillard, Chi Jin, Rob Fergus, and Manzil Zaheer. Understanding outer optimizers in local SGD: Learning rates, momentum, and acceleration, 2025. URL https://arxiv.org/ abs/2509.10439. Jari Kolehmainen, Nikolay Blagoev, John Donaghy, Oğuzhan Ersoy, and Christopher Nies. NoLoCo: No-allreduce low communication training method for large models. arXiv preprint arXiv:2506.10911, 2025. Anastasia Koloskova, Nicolas Loizou, Sadra Boreiri, Martin Jaggi, and Sebastian Stich. A unified theory of decentralized SGD with changing topology and local updates. In International Conference on Machine Learning (ICML), 2020. Lingjing Kong, Tao Lin, Anastasia Koloskova, Martin Jaggi, and Sebastian Stich. Consensus control for decentralized deep learning. In International Conference on Machine Learning (ICML), volume 139, 2021. Qinbin Li, Zeyi Wen, Zhaomin Wu, Sixu Hu, Naibo Wang, Yuan Li, Xu Liu, and Bingsheng He. A survey on federated learning systems: Vision, hype and reality for data privacy and protection. IEEE Transactions on Knowledge and Data Engineering, 2021. Xiangru Lian, Ce Zhang, Huan Zhang, Cho-Jui Hsieh, Wei Zhang, and Ji Liu. Can decentralized algorithms outperform centralized algorithms? a case study for decentralized parallel stochastic gradient descent. In Advances in Neural Information Processing Systems (NeurIPS), 2017. Xiangru Lian, Wei Zhang, Ce Zhang, and Ji Liu. Asynchronous decentralized parallel stochastic gradient descent. In International Conference on Machine Learning (ICML). PMLR, 2018. Aixin Liu, Bei Feng, Bing Xue, Bingxuan Wang, Bochao Wu, Chengda Lu, Chenggang Zhao, Chengqi Deng, Chenyu Zhang, Chong Ruan, et al. DeepSeek-v3 technical report. arXiv preprint arXiv:2412.19437, 2024a. Bo Liu, Rachita Chhaparia, Arthur Douillard, Satyen Kale, Andrei A Rusu, Jiajun Shen, Arthur Szlam, and Marc’Aurelio Ranzato. Asynchronous local-SGD training for language modeling. arXiv preprint arXiv:2401.09135, 2024b. Ilya Loshchilov and Frank Hutter. Decoupled weight decay regularization. In International Conference on Learning Representations (ICLR), 2019. Ryan McDonald, Keith Hall, and Gideon Mann. Distributed training strategies for the structured perceptron. In Annual Conference of the North American Chapter of the Association for Computational Linguistics (NAACL), 2010. Brendan McMahan, Eider Moore, Daniel Ramage, Seth Hampson, and Blaise Aguera y Arcas. Communication-efficient learning of deep networks from decentralized data. In International Conference on Artificial Intelligence and Statistics (AISTATS), pages 1273–1282. PMLR, 2017. Stephen Merity, Caiming Xiong, James Bradbury, and Richard Socher. Pointer sentinel mixture models. In International Conference on Learning Representations (ICLR), 2017. Inc. Meta Platforms. TorchFT: Fault tolerance for PyTorch distributed training. https://github.com/ pytorch/torchft, 2024. Konstantin Mishchenko, Francis Bach, Mathieu Even, and Blake Woodworth. Asynchronous SGD beats minibatch SGD under arbitrary delays. In Advances in Neural Information Processing Systems (NeurIPS), 2022. 16

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Deepak Narayanan, Aaron Harlap, Amar Phanishayee, Vivek Seshadri, Nikhil R Devanur, Gregory R Ganger, Phillip B Gibbons, and Matei Zaharia. Pipedream: Generalized pipeline parallelism for DNN training. In ACM Symposium on Operating Systems Principles (SOSP), pages 1–15, 2019. Deepak Narayanan, Amar Phanishayee, Kaiyu Shi, Xie Chen, and Matei Zaharia. Memory-efficient pipelineparallel DNN training. In International Conference on Machine Learning (ICML), pages 7937–7947. PMLR, 2021. Yurii Nesterov. A method for solving the convex programming problem with convergence rate o (1/k2). Soviet Mathematics Doklady, 269:543–547, 1983. Tom Le Paine, Hailin Jin, Jianchao Yang, Zhe L. Lin, and Thomas S. Huang. GPU asynchronous stochastic gradient descent to speed up neural network training. arXiv preprint arXiv:1312.6186, 2013. Adam Paszke, Sam Gross, Francisco Massa, Adam Lerer, James Bradbury, Gregory Chanan, Trevor Killeen, Zeming Lin, Natalia Gimelshein, Luca Antiga, et al. PyTorch: An imperative style, high-performance deep learning library. In Advances in Neural Information Processing Systems (NeurIPS), 2019. Pitch Patarasuk and Xin Yuan. Bandwidth optimal all-reduce algorithms for clusters of workstations. Journal of Parallel and Distributed Computing, 2009. Guilherme Penedo, Hynek Kydlíček, Anton Lozhkov, Margaret Mitchell, Colin A Raffel, Leandro Von Werra, Thomas Wolf, et al. The FineWeb datasets: Decanting the web for the finest text data at scale. In Advances in Neural Information Processing Systems (NeurIPS), 2024. Sameera Ramasinghe, Thalaiyasingam Ajanthan, Gil Avraham, Yan Zuo, and Alexander Long. Protocol models: Scaling decentralized training with communication-efficient model parallelism, 2025. URL https://arxiv.org/abs/2506.01260. Benjamin Recht, Christopher Re, Stephen Wright, and Feng Niu. Hogwild!: A lock-free approach to parallelizing stochastic gradient descent. In Advances in Neural Information Processing Systems (NeurIPS), 2011. Sashank Reddi, Zachary Charles, Manzil Zaheer, Zachary Garrett, Keith Rush, Jakub Konečnỳ, Sanjiv Kumar, and H Brendan McMahan. Adaptive federated optimization. In International Conference on Learning Representations (ICLR), 2021. Max Ryabinin, Alexander Borzunov, Michael Diskin, Anton Gusev, Denis Mazur, Vsevolod Plokhotnyuk, Alexey Bukhtiyarov, Pavel Samygin, Anton Sinitsin, and Artem Chumachenko. Hivemind: Decentralized Deep Learning in PyTorch, April 2020. URL https://github.com/learning-at-home/hivemind. Max Ryabinin, Tim Dettmers, Michael Diskin, and Alexander Borzunov. Swarm parallelism: Training large models can be surprisingly communication-efficient. In International Conference on Machine Learning (ICML), pages 29416–29440. PMLR, 2023. Alexander Sergeev and Mike Del Balso. Horovod: fast and easy distributed deep learning in TensorFlow. arXiv preprint arXiv:1802.05799, 2018. Sebastian U. Stich. Local SGD converges fast and communicates little. In International Conference on Learning Representations (ICLR), 2019. Jianyu Wang and Gauri Joshi. Cooperative SGD: A unified framework for the design and analysis of local-update SGD algorithms. Journal of Machine Learning Research (JMLR), 2021.

17

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Shanshan Zhang, Ce Zhang, Zhao You, Rong Zheng, and Bo Xu. Asynchronous stochastic gradient descent for DNN training. In IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pages 6660–6663. IEEE, 2013. Sixin Zhang, Anna E Choromanska, and Yann LeCun. Deep learning with elastic averaging SGD. In Advances in Neural Information Processing Systems (NeurIPS), 2015. Shuxin Zheng, Qi Meng, Taifeng Wang, Wei Chen, Nenghai Yu, Zhiming Ma, and Tie-Yan Liu. Asynchronous stochastic gradient descent with delay compensation. In International Conference on Machine Learning (ICML). PMLR, 2017. Tongtian Zhu, Fengxiang He, Kaixuan Chen, Mingli Song, and Dacheng Tao. Decentralized SGD and average-direction SAM are asymptotically equivalent. In International Conference on Machine Learning (ICML), 2023. Martin A Zinkevich, Markus Weimer, Alexander J Smola, and Lihong Li. Parallelized stochastic gradient descent. In Advances in Neural Information Processing Systems (NeurIPS), pages 2595–2603, 2010.

18

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

A . F AC T O R E D G O S S I P D I L O C O : D E TA I L E D A L G O R I T H M Algorithm 1 gives the full per-worker procedure for Factored Gossip DiLoCo. Each worker runs the algorithm in parallel. The two mixing operators Mix1 and Mix2 act on the corresponding parameter / outer-gradient values across workers; choosing them determines the framework variant (Table 2). Algorithm 1 Factored Gossip DiLoCo (per worker 𝑚) Require: initial parameters 𝑥0 , outer rounds 𝑅, inner steps per round 𝐻, inner optimizer InnerOpt, outer optimizer OuterOpt, mixing operators Mix1 (non-blocking) and Mix2 (blocking) 1: 𝑧𝑚,0 ← 𝑥0 ◁ all workers start identical 2: for 𝑟 = 0, 1, . . . , 𝑅 − 1 do 3: launch 𝑥𝑚,𝑟 ← Mix1𝑟 (𝑧𝑚,𝑟 ) asynchronously ◁ overlaps with the inner loop below 4: 𝑦𝑚,𝑟,0 ← 𝑧𝑚,𝑟 5: for ℎ = 0, 1, . . . , 𝐻 − 1 do 6: sample minibatch 𝑏𝑚,𝑟,ℎ 7: 𝑔𝑚,𝑟,ℎ ← ∇𝑦 ℒ(𝑦𝑚,𝑟,ℎ , 𝑏𝑚,𝑟,ℎ ) 8: 𝑦𝑚,𝑟,ℎ+1 ← InnerOpt(𝑦𝑚,𝑟,ℎ , 𝑔𝑚,𝑟,ℎ ) 9: end for 10: Δ𝑚,𝑟 ← 𝑦𝑚,𝑟,𝐻 − 𝑦𝑚,𝑟,0 ◁ outer pseudo-gradient ̂︀ 𝑚,𝑟 ← Mix2𝑟 (Δ𝑚,𝑟 ) 11: Δ ◁ blocking 12: wait for Mix1𝑟 to complete; 𝑥𝑚,𝑟 is )︁ its result (︁ ̂︀ 13: 𝑧𝑚,𝑟+1 ← OuterOpt 𝑥𝑚,𝑟 , −Δ𝑚,𝑟 14: end for 1 15: return 𝑧 𝑅 = 𝑀

∑︀𝑀

𝑚=1 𝑧𝑚,𝑅

◁ final global model

Inner / outer optimizers. In all our 1.5B experiments, InnerOpt is AdamW with peak inner learning rate 3×10−4 , 1000-step linear warmup, and linear decay to zero. OuterOpt is SGD with Nesterov momentum (outer learning rate 0.7, momentum 0.9), matching DiLoCo’s recipe. Smaller-model scaling ablations (Figure 5) use inner learning rate 4×10−4 . Choosing Mix1 and Mix2. The four main framework configurations in the body correspond to four (Mix1, Mix2) pairs (Table 2); the GlobalM1S variants additionally apply Mix1-style averaging to the outer optimizer state (see Table 3). For the GlobalM1LocalM2-subset variant, Mix2 is applied only to a chosen subset of parameter blocks (the rest pass through identity); the subset selection methodology is in Section D.3. Table 2: The four main framework configurations realized as (Mix1, Mix2) choices in Algorithm 1. “Allreduce” is a global average across workers; “pairwise gossip” is one round of random-matching pairwise averaging; “identity” leaves the input unchanged. Configuration

Mix1

Mix2

DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2

identity pairwise gossip global all-reduce global all-reduce

global all-reduce pairwise gossip identity pairwise gossip

B . F U RT H E R R E S U LT S In Section 4.2 we assumed that the outer optimizer is linear in the gradient and has global parameters. So the question becomes whether the outer optimizer that DiLoCo uses, SGD with Nesterov momentum, is linear in 19

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Table 3: Further ablations with 𝑀 = 8 workers. Here, local denotes pairwise gossip averaging and global denotes full averaging across all replicas. H

Mix1

Mix1 state

Mix2

Val PPL at 𝑇 tokens 10B 30B

100 100 100

global global global

global global global

none local local

20.91 19.11 19.69

Config (row) GlobalM1S GlobalM1SLocalM2 GlobalM1SLocalM2-subset

11

8 7 6 5

125.5 93.3 106.1

1.13 0.25 0.26

80 70 60 50

4 3 500

56% 43% 50%

Max Distance L2 JS

GlobalM1S GlobalM1SLocalM2-subset

90

Validation Perplexity

Train Loss

9

28% 22% 25%

100

GlobalM1S GlobalM1SLocalM2-subset

10

-

Compute Util. at 100Mbps 200Mbps

40 1000

1500

2000

Training Steps

2500

3000

GlobalM1S GlobalM1SLocalM2-subset

1.0

500

1000

1500

2000

Training Steps

2500

3000

120 100

L2 Distance

JS Distance

0.8 0.6 0.4

80 60 40

0.2

20

0.0 500

0 500

1000

1500

2000

Training Steps

2500

3000

GlobalM1S GlobalM1SLocalM2-subset 1000

1500

2000

Training Steps

2500

3000

Figure 6: Example of training instability with Global Mix1 and no Mix 2, and then adding Mix2 with only a subset of the parameters to stabilize it. Also note that JS distance shows instability, unlike L2 distance. the gradient and has global parameters as per our assumption. The first part holds for the implementation version of SGD with Nesterov momentum, whose update step is implemented in PyTorch (Paszke et al., 2019) as 𝑣𝑚,𝑟+1 = 𝜇𝑣𝑚,𝑟 + 𝑔𝑚,𝑟

(36)

(Momentum Update) 𝑥𝑚,𝑟+1 = 𝑥𝑟 − 𝛾 (𝑔𝑚,𝑟 + 𝜇𝑣𝑚,𝑟+1 ) (Optimization Step) (︀ )︀ ∴ 𝑥𝑚,𝑟+1 = 𝑥𝑟 − 𝛾 (1 + 𝜇)𝑔𝑚,𝑟 + 𝜇2 𝑣𝑚,𝑟 .

(37) (38)

However, for the optimizer parameters to be global, we need to add an extra global averaging of the momentum 𝑣𝑚,𝑟 first. Note that this is still not blocking and can be considered an extra part of Mix1. This motivates us to consider the following methods • GlobalM1S: our framework with global averaging for Mix1 that also includes outer optimizer state, and no Mix2, thus no blocking communication. 20

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

• GlobalM1SLocalM2: our framework with global averaging for Mix1 that also includes outer optimizer state, and pairwise gossip for Mix2. We now give results with this. Synchronizing outer optimizer state. Unexpectedly, as shown by the results in the second section of Table 1, additionally synchronising the outer optimizer state make our formulation perform slightly worse. In particular, it made the optimization of our non-blocking method (GlobalM1S) much more unstable, with large training loss and validation loss spikes, thus requiring the optimization to recover from it. We did not observe this at lower parameter scales. Incidentally, we found extremely large JS-distance spikes coincide with the loss spikes. Adding blocking communication, whether it be the full outer gradients with GlobalM1SLocalM2 or a subset of them with GlobalM1SLocalM2-subset, drastically reduced the magnitude of any such loss spikes, as well as the JS-distance spikes. This can be seen in the max JS distance, which falls from 1.13 to 0.25/0.26, which is in the range of the main experiments. We also show zoomed in plots of this in Figure 6. Thus, these experiments show that keeping track of the JS-distance is a good way to monitor how stable the optimization is, and that to stabilise the optimization blocking communication should be added. B.1 C O M PA R I S O N W I T H N O L O C O We compare against a reimplementation of NoLoCo that includes its full outer step (including dampening) but excludes pipeline randomization. Pipeline-parallel randomization is orthogonal to the DP-only setting we focus on and would conflate this comparison with a different axis, so we exclude it to be consistent with how LocalM1M2 is framed in Section 4.1. We evaluate two hyperparameter configurations: • DiLoCo-style HPs, matching our other 1.5B runs: outer LR 0.7, outer momentum 0.9, 𝐻 = 100, inner LR 3×10−4 , with dampening tied to the outer LR per NoLoCo’s official code. This run diverged after approximately 5k steps. • NoLoCo paper HPs, matching their reported 1.3B setup: outer momentum 0.5, 𝐻 = 50, inner LR 2×10−4 , dampening per their code. This run converged, reaching a validation perplexity of 22.65 at 10B tokens. The converged result is substantially worse than DiLoCo and all four of our framework variants (Table 4), despite using 𝐻 = 50 rather than 𝐻 = 100. Note that halving 𝐻 should reduce the consensus distance and thus improve convergence (at the cost of twice the communication), not degrade it. This suggests pipeline randomization is important for both their performance and stability, though their method still appears unstable. Table 4: NoLoCo (10B-token validation perplexity) against DiLoCo and our framework variants. NoLoCo’s paper-HP configuration uses 𝐻 = 50, which is twice the communication of the 𝐻 = 100 baselines. Method

H

Val PPL (10B)

NoLoCo (paper HPs) NoLoCo (DiLoCo HPs)

50 100

22.65 diverged (∼5k steps)

DiLoCo LocalM1M2 GlobalM1 GlobalM1LocalM2

100 100 100 100

18.65 19.37 19.42 18.80

Upon reinspection of their formulation, we note that NoLoCo’s outer step is described as “modified Nesterov momentum” but lacks the lookahead step of true Nesterov momentum. Prior work on outer optimizers for pseudo-gradient methods (Douillard et al., 2023; Kallusky et al., 2025) shows the lookahead is critical: 21

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Kallusky et al. (2025) in particular isolates this effect and reports a substantial gap between Nesterovwith-lookahead and the “modified Nesterov” variant. We verified that NoLoCo’s official code matches the description in their paper, so we attribute the gap primarily to the missing lookahead rather than to an implementation difference, though we did not confirm this experimentally. B.2 C O M PA R I S O N W I T H S T R E A M I N G D I L O C O ’ S O V E R L A P Streaming DiLoCo (Douillard et al., 2025) has three components: parameter partitioning, computation– communication overlap, and quantization. We reimplement only the computation–communication overlap component for our comparison, since that is the only part that is directly comparable. Both parameter partitioning (with its own communication schedule) and quantization are orthogonal to our framework and could be added on top. Due to minor ambiguities in the published pseudocode and the lack of released code, we corresponded with the Streaming DiLoCo authors to confirm implementation details. We note that these results are in the appendix rather than the main paper for two reasons. First, the overlap mechanism introduces temporal staleness, placing it in a category of methods we do not compare against in the main paper (see Section 4.3). Second, the overlap mechanism yields negligible compute-utilization gains over DiLoCo at our target low-bandwidth settings. Streaming DiLoCo recommends a maximum overlap of 5 steps, since performance degrades with longer overlap (their Figs. 8 and 10). This 5-step ceiling is enough to substantially improve compute utilization (CU) over DiLoCo in their high-bandwidth setting, from 85% to 95% at 10Gbps, and to 100% when combined with quantization. In our low-bandwidth setting, however, the same 5-step overlap yields essentially no CU improvement over DiLoCo: 36% → 36% at 100Mbps and 53% → 54% at 200Mbps. By contrast, our methods substantially improve CU at these bandwidths (Figure 3). We evaluated two hyperparameter configurations: • 5-step overlap, DiLoCo-style HPs matching our other 1.5B runs (𝐻 = 100, DiLoCo outer hyperparameters): large validation-loss spikes during merging, diverged after ∼900 steps. • 5-step overlap, Streaming DiLoCo paper HPs (𝐻 = 30, outer LR 0.4): smaller spikes, but still diverged after ∼500 steps (which is many more outer rounds in absolute terms, since 𝐻 = 30 means more outer rounds per training step). These experiments are a clear example of how JS distance is more informative than L2 distance, complementing our observations in Figure 4 and Section D.3. At the point of divergence the L2 consensus distance was small (peak ≈ 22.4), comparable to the L2 distances of our stable runs (Figure 4). The JS consensus distance, however, spiked sharply, reaching peaks of approximately 3. This is an order of magnitude above the ∼ 0.3–0.4 peaks seen on our stable methods. These results suggest that Streaming DiLoCo’s parameter partitioning is crucial for providing robustness to staleness and stabilizing the optimization. Our method appears more stable, as it converges with the original DiLoCo paper’s hyperparameters and provides meaningful compute utilization gains in low-bandwidth settings.

C . F U RT H E R D I S C U S S I O N Potential Benefits of Worker Disagreement. Kong et al. (2021) also show that (1) the consensus distance is especially sensitive for initial phase of training, (2) reducing it significantly lower than the critical consensus distance does not result in better performance gains, and (3) maintaining a large consensus distance in later training phases can be beneficial. Other papers (Zhu et al., 2023) have also shown that having non-zero consensus distance can in fact improve performance over the globally averaging version due to it acting like

22

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

sharpness aware minimization (Foret et al., 2021), where the randomness of the worker parameters around the true average of the workers’ parameters ensure that the overall average model converges to flatter minima. Other ways to control consensus. As discussed above, we can add blocking communication to improve consensus via Mix2, and we can trade-off between consensus and compute utilization by adjusting both the amount of mixing and the percentage of parameters in Mix2. Another way to flexibly add blocking communication is to introduce sparse weight averaging during the local steps, such as SPARTA (Beton et al., 2025). In SPARTA, at each step a sparse random subset of the parameters (e.g., 0.05% of the parameters) are globally averaged. They show that integrating their method into DiLoCo helps reduce consensus between workers, enabling a larger number of inner steps to be stable. This could easily be integrated into our framework as well. Preferred method per bandwidth. Combining the perplexity gap (Table 1) with the utilization curves (Figure 3) gives a simple rule of thumb at 𝐻 = 100, 𝑀 = 8, summarized in Table 5: DiLoCo when bandwidth is plentiful, GlobalM1LocalM2 when blocking communication is still affordable, the subset variant in the intermediate range (or other compression variants which we did not investigate), and GlobalM1 when bandwidth is the binding constraint. Table 5: Recommended configuration per bandwidth regime at 𝐻 = 100, 𝑀 = 8, balancing perplexity (Table 1) against compute utilization (Figure 3). GlobalM1LocalM2-subset is a diagnostic-driven configuration (that represents the possibility of compression integration) rather than a peer of the four main framework variants, see Section 4.4. Recommended

Bandwidth

DiLoCo GlobalM1LocalM2 GlobalM1LocalM2-subset GlobalM1

≥ 2 Gbps 500 Mbps – 2 Gbps 100 – 500 Mbps < 100 Mbps

D . C O N S E N S U S A N D F U N C T I O NA L D I S AG R E E M E N T M E T R I C S In the main paper we track two complementary notions of worker disagreement: an L2-based parameter disagreement and a Jensen–Shannon (JS) based functional disagreement. Both are computed at a fixed training time (e.g., at a given inner step ℎ of outer round 𝑟) over the set of 𝑀 workers. D.1 L2 PA R A M E T E R D I S AG R E E M E N T Let 𝑥𝑚,𝑟,ℎ ∈ R𝑑 denote the parameter vector on worker 𝑚 ∈ {1, . . . , 𝑀 } at outer round 𝑟 and inner step ℎ. Define the global average parameter 𝑀

1 ∑︁ 𝑥𝑟,ℎ := 𝑥𝑚,𝑟,ℎ . 𝑀

(39)

𝑚=1

We report an L2 consensus distance using the mean-squared deviation from the global average, 𝑀

𝐶𝐷𝐿2 (𝑋𝑟,ℎ ) :=

1 ∑︁ ‖𝑥𝑚,𝑟,ℎ − 𝑥𝑟,ℎ ‖22 . 𝑀

(40)

𝑚=1

D.2 JS F U N C T I O NA L D I S AG R E E M E N T Parameter disagreement does not always reflect whether workers make similar predictions. We therefore measure functional disagreement using the (normalized) Jensen–Shannon (JS) distance between each worker’s 23

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

predicted token distribution and that of the parameter-averaged model. Let 𝑥𝑚,𝑟,ℎ ∈ R𝑑 denote worker 𝑚’s parameters at outer round 𝑟 and inner step ℎ, and define the parameter average 𝑀

𝑥𝑟,ℎ :=

1 ∑︁ 𝑥𝑚,𝑟,ℎ . 𝑀

(41)

𝑚=1

For an input example 𝑢 (e.g., a token position in a held-out batch), let 𝑧(𝑥, 𝑢) ∈ R𝐾 be the model logits and 𝑝(𝑥, 𝑢) := softmax(𝑧(𝑥, 𝑢)) ∈ Δ𝐾−1

(42)

the corresponding categorical distribution. We define the worker and averaged-model distributions as 𝑝𝑚,𝑟,ℎ (𝑢) := 𝑝(𝑥𝑚,𝑟,ℎ , 𝑢),

𝑝𝑟,ℎ (𝑢) := 𝑝(𝑥𝑟,ℎ , 𝑢).

(43)

For each example 𝑢, we compute the JS divergence between two distributions ⃦ ⃦ (︂ )︂ (︂ )︂ ⃦ 𝑝𝑚,𝑟,ℎ (𝑢) + 𝑝𝑟,ℎ (𝑢) ⃦ 𝑝𝑚,𝑟,ℎ (𝑢) + 𝑝𝑟,ℎ (𝑢) (︀ )︀ 1 1 ⃦ ⃦ + KL 𝑝𝑟,ℎ (𝑢) ⃦ , JS 𝑝𝑚,𝑟,ℎ (𝑢), 𝑝𝑟,ℎ (𝑢) := KL 𝑝𝑚,𝑟,ℎ (𝑢) ⃦ 2 2 2 2 (44) and report the normalized JS distance √︃ )︀ 𝑑JS 𝑝𝑚,𝑟,ℎ (𝑢), 𝑝𝑟,ℎ (𝑢) := (︀

(︀ )︀ JS 𝑝𝑚,𝑟,ℎ (𝑢), 𝑝𝑟,ℎ (𝑢) . log 2

(45)

Finally, we average over workers and a fixed batch 𝒰 to obtain a scalar metric: 𝑀 )︀ (︀ 1 ∑︁ ∑︁ 𝐶𝐷𝐽𝑆 (𝑋𝑟,ℎ ) := 𝑑JS 𝑝𝑚,𝑟,ℎ (𝑢), 𝑝𝑟,ℎ (𝑢) . 𝑀 |𝒰|

(46)

𝑚=1 𝑢∈𝒰

Implementation wise, it is important to use float64 and do everything in the log domain. For efficiency we only compute the distance on the 100 tokens with the highest probability in the parameter averaged model, where the top 100 recomputed every time, as otherwise JS distance is computationally and GPU memory intensive. D.3 JS-D I S TA N C E M E T R I C A N D S U B S E T S E L E C T I O N In Section 4.4 we introduced the GlobalM1LocalM2-subset variant as a controlled experiment to test whether the JS-distance metric identifies useful parameter blocks for Mix2. Here we describe how that subset is selected and report a subset-length ablation. Per-block sensitivity analysis. Because JS distance is a functional metric, it can be probed per parameter block. For each block in the model we measure the average JS-distance increase per worker when only that block is averaged during optimization, performed once offline per model architecture (no impact on training compute). Figure 7 reports the mean and the max of this sensitivity over the course of training. Token embeddings and the LM head dominate, followed by self-attention parameters and then MLP parameters, with the latter two decreasing with depth. This naturally suggests a subset comprised of token embeddings, the LM-Head, and the first 𝑘 transformer layers. 24

0.175 0.150 0.125 0.100 0.075 0.050 0.025

mean max

token-emb l.0.sa l.0.mlp l.1.sa l.1.mlp l.2.sa l.2.mlp l.3.sa l.3.mlp l.4.sa l.4.mlp l.5.sa l.5.mlp l.6.sa l.6.mlp l.7.sa l.7.mlp l.8.sa l.8.mlp l.9.sa l.9.mlp l.10.sa l.10.mlp l.11.sa l.11.mlp l.12.sa l.12.mlp l.13.sa l.13.mlp l.14.sa l.14.mlp l.15.sa l.15.mlp lm-head

Increase in JS distance

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Parameter Block

Figure 7: Parameter block consensus sensitivity. JS distance increase for each parameter block when only that block is averaged, taking the mean and the max over the course of training. Token embeddings and the LM head dominate, followed by self-attention and then MLP parameters, with the latter two decreasing with depth. Table 6: Subset-length ablation. Peak JS distance through training as the subset is grown to include progressively more transformer layers. Subset Token Emb + LM-Head + Layer 0 + Layer 1

Peak JS distance 0.28 0.26 0.22

Choosing 𝑘. Since the goal is to suppress peak JS-distance spikes, we sweep 𝑘 and measure the peak JS distance through training, with results in Table 6. We use 𝑘 = 2 (43% of parameters for our 1.5B model), as that is sufficient to bring peak JS distance close to GlobalM1LocalM2 levels. The subset-length sweep, the per-block sensitivity (Figure 7), and the configuration’s main-paper results (Table 1 and Figures 2 to 4) together suggest that the JS-distance metric is useful in determining where Mix2 communication is actually needed.

E . C O N S E N S U S E R RO R R E S U LT A N D P RO O F We structure our proof based on Khaled et al. (2025). Let us rewrite our formulation with SGD:

25

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

𝑥𝑚,𝑟 = Mix1𝑟 (𝑧𝑚,𝑟 )

(47)

𝑦𝑚,𝑟,0 = 𝑧𝑚,𝑟

(48)

for ℎ = 0, 1, . . . , 𝐻 − 1 in sequence: 𝑔𝑚,𝑟,ℎ = ∇𝑦𝑚,𝑟,ℎ ℒ(𝑦𝑚,𝑟,ℎ , 𝑏𝑚,𝑟,ℎ )

(49)

𝑦𝑚,𝑟,ℎ+1 = 𝑦𝑚,𝑟,ℎ − 𝜂𝑔𝑚,𝑟,ℎ

(50)

Δ𝑚,𝑟 = 𝑦𝑚,𝑟,𝐻 − 𝑦𝑚,𝑟,0 = −𝜂

𝐻−1 ∑︁

𝑔𝑚,𝑟,ℎ

(51)

ℎ=0

[ Δ 𝑚,𝑟 = Mix2𝑟 (Δ𝑚,𝑟 ) ̂︀ 𝑚,𝑟 𝑧𝑚,𝑟+1 = 𝑥𝑚,𝑟 + Δ

(52) (53)

Following Khaled et al. (2025), we define 𝑀

1 ∑︁ 𝑦𝑟,ℎ = 𝑦𝑚,𝑟,ℎ , 𝑀 def

𝑚=1

def

𝑔 𝑚,𝑟,ℎ = E𝑟,ℎ−1 [𝑔𝑚,𝑟,ℎ ] = ∇𝑓 (𝑦𝑚,𝑟,ℎ ),

𝑀

1 ∑︁ 𝑔𝑟,ℎ = 𝑔𝑚,𝑟,ℎ 𝑀 def

𝑚=1

(54)

def

𝑔 𝑟,ℎ = E𝑟,ℎ−1 [𝑔𝑟,ℎ ]

and noise 𝑛𝑚,𝑟,ℎ = 𝑔𝑚,𝑟,ℎ − 𝑔 𝑚,𝑟,ℎ . We also define ℱ𝑟,ℎ as the 𝜎-algebra generated by all the stochastic gradients up to the start of (but not including) step ℎ in round 𝑟, and will often take the conditional expectation on ℱ𝑟,ℎ , i.e., E [· | ℱ𝑟,ℎ ]. Assume 𝜌1 , 𝜌2 are such that ‖Mix1(𝑋) − 𝑋‖2𝐹 ≤ 𝜌1 ‖𝑋 − 𝑋‖2𝐹

(55)

‖Mix2(𝑋) − 𝑋‖2𝐹 ≤ 𝜌2 ‖𝑋 − 𝑋‖2𝐹 .

(56)

We have the following assumptions Assumption 1 The function 𝑓 is differentiable, convex, has 𝐿-Lipschitz gradients, and has a minimizer 𝑥* . 𝑑 Assumption 2 Given a point 𝑥 ∈ R𝑑 , the stochastic gradients [︁ 𝑔(𝑥) ∈ R are (a) ]︁ unbiased in expectation 2 E [𝑔(𝑥)] = ∇𝑓 (𝑥), and (b) has variance bounded as E ‖𝑔(𝑥) − ∇𝑓 (𝑥)‖ ≤ 𝜎 2 , where E [·] denotes the expectation operator.

Assumption 3 Minibatches (and hence stochastic gradients) are sampled i.i.d. across workers and steps. Assumption 4 There exists 𝜇𝑟 (measurable w.r.t. ℱ𝑟,0 ) such that E [Δ𝑚,𝑟 | ℱ𝑟,0 ] = 𝜇𝑟 for all 𝑚. Equivalently, E [Δ𝑚,𝑟 − Δ𝑠,𝑟 | ℱ𝑟,0 ] = 0 for any 𝑚, 𝑠 ∈ {1, ..., 𝑀 }. The first two (and implicitly the third) are used in Khaled et al. (2025). We further add Assumption 4, which essentially says that even though we have different starting points at the start of our outer step, they are following a common mean direction. This comes for free in DiLoCo due to the global synchronization. This assumption can also be thought of as a stabilizing assumption on the optimization. We also restate the following Lemma from Khaled et al. (2025) (proof is given in that paper):

26

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Lemma E.1. Let 𝑓 be a convex and 𝐿-smooth function. Suppose that 𝜂 ≤ 𝐿2 , and let 𝑇𝜂 (𝑥) = 𝑥 − 𝜂∇𝑓 (𝑥). Then, ‖𝑇𝜂 (𝑥) − 𝑇𝜂 (𝑦)‖2 ≤ ‖𝑥 − 𝑦‖2 . We now state our lemma. Lemma E.2. Suppose Assumptions 1–4 hold and 𝜂 ≤ 𝐿1 . Then for 𝜌1 ∈ [0, 1) and all 𝑟, ℎ, ⎡ ⎤ )︂ (︂ 𝑀 ∑︁ 1 𝜌2 2⎦ 2 2 ⎣ . E ‖𝑦𝑚,𝑟,ℎ − 𝑦𝑠,𝑟,ℎ ‖ ≤ 2𝜂 𝜎 𝐻 1 + 𝑀2 1 − 𝜌1 𝑚,𝑠=1

The boundary case 𝜌1 = 1 (vanilla DiLoCo) is treated in Theorem E.3 below. Proof. We first show that E [𝒱𝑟,ℎ ] ≤ E [𝒱𝑟,0 ] + 2𝜂 2 𝜎 2 ℎ.

(57)

Let 𝑇˜𝜂 (𝑦𝑚,𝑟,ℎ ) = 𝑦𝑚,𝑟,ℎ − 𝜂𝑔𝑚,𝑟,ℎ where 𝑔𝑚,𝑟,ℎ is the stochastic gradient, and 𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) = 𝑦𝑚,𝑟,ℎ − 𝜂𝑔 𝑚,𝑟,ℎ is the corresponding expected gradient update. Their difference is the noise term 𝜉𝑚,𝑟,ℎ = 𝑇˜𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) = −𝜂𝑛𝑚,𝑟,ℎ . Thus 𝑦𝑚,𝑟,ℎ+1 − 𝑦𝑠,𝑟,ℎ+1 = 𝑇˜𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇˜𝜂 (𝑦𝑠,𝑟,ℎ ) = 𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑠,𝑟,ℎ ) + [𝜉𝑚,𝑟,ℎ − 𝜉𝑠,𝑟,ℎ ] . ∑︀ 2 Define 𝒱𝑟,ℎ = 𝑀12 𝑀 𝑚,𝑠=1 ‖𝑦𝑚,𝑟,ℎ − 𝑦𝑠,𝑟,ℎ ‖ . It follows that 𝑀 1 ∑︁ ‖𝑦𝑚,𝑟,ℎ+1 − 𝑦𝑠,𝑟,ℎ+1 ‖2 𝑀2 𝑚,𝑠=1 [︃ 𝑀 1 ∑︁ = 2 ‖𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑠,𝑟,ℎ )‖2 + ‖𝜉𝑚,𝑟,ℎ − 𝜉𝑠,𝑟,ℎ ‖2 𝑀 𝑚,𝑠=1 ]︃

𝒱𝑟,ℎ+1 =

+ 2 ⟨𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑠,𝑟,ℎ ), 𝜉𝑚,𝑟,ℎ − 𝜉𝑠,𝑟,ℎ ⟩ . Taking the conditional expectation on ℱ𝑟,ℎ gives [︃ ]︃ 𝑀 [︁ ]︁ 1 ∑︁ 2 2 ‖𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑠,𝑟,ℎ )‖ + E ‖𝜉𝑚,𝑟,ℎ − 𝜉𝑠,𝑟,ℎ ‖ | ℱ𝑟,ℎ E [𝒱𝑟,ℎ+1 | ℱ𝑟,ℎ ] = 2 𝑀 𝑚,𝑠=1

where we drop E [⟨𝑇𝜂 (𝑦𝑚,𝑟,ℎ ) − 𝑇𝜂 (𝑦𝑠,𝑟,ℎ ), 𝜉𝑚,𝑟,ℎ − 𝜉𝑠,𝑟,ℎ ⟩ | ℱ𝑟,ℎ ] because the left part is fixed given the conditioning 𝜎-algebra and since the stochastic gradients are unbiased E [𝜉𝑚,𝑟,ℎ | ℱ𝑟,ℎ ] = E [𝜉𝑠,𝑟,ℎ | ℱ𝑟,ℎ ] = 0. Finally, using the fact that ‖𝑇𝜂 (𝑥) − 𝑇𝜂 (𝑦)‖2 ≤ ‖𝑥 − 𝑦‖2 whenever 𝜂 ≤ 𝐿2 from Theorem E.1, as well as Assumption 2 and Assumption 3, we get E𝑟,ℎ [𝒱𝑟,ℎ+1 ] ≤

𝑀 ]︁ 1 ∑︁ [︁ 2 2 2 ‖𝑦 − 𝑦 ‖ + 2𝜂 𝜎 𝑚,𝑟,ℎ 𝑠,𝑟,ℎ 𝑀2 𝑚,𝑠=1 2 2

= 𝒱𝑟,ℎ + 2𝜂 𝜎

27

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Thus, taking the unconditional expectation and recursing from ℎ = 0 we get E [𝒱𝑟,ℎ ] ≤ E [𝒱𝑟,0 ] + 2𝜂 2 𝜎 2 ℎ.

(58)

We now need to determine E [𝒱𝑟,0 ]. Note that ⃦ (︁ )︁⃦2 ⃦ ̂︂ ⃦ [ ‖𝑧𝑚,𝑟+1 − 𝑧𝑠,𝑟+1 ‖ = ⃦(𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 ) + Δ 𝑚,𝑟 − Δ𝑠,𝑟 ⃦ ⃦ ⃦2 ⟨ ⟩ ⃦[ ̂︂ ̂︂ ⃦ [ = ‖𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 ‖2 + ⃦Δ 𝑚,𝑟 − Δ𝑠,𝑟 ⃦ + 2 𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 , Δ𝑚,𝑟 − Δ𝑠,𝑟 . 2

(59) (60)

Conditioning on ℱ𝑟,0 and using Assumption 4 and linearity of Mix2 [︁ ]︁ ̂︂ [ E Δ − Δ | ℱ 𝑚,𝑟 𝑠,𝑟 𝑟,0 = E [Mix2 (Δ𝑚,𝑟 − Δ𝑠,𝑟 ) | ℱ𝑟,0 ]

(61)

= Mix2 (E [Δ𝑚,𝑟 − Δ𝑠,𝑟 | ℱ𝑟,0 ])

(62)

= 0.

(63)

Thus as 𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 is ℱ𝑟,0 measurable, [︁⟨ ⟩ ]︁ ⟨ [︁ ]︁⟩ ̂︂ ̂︂ [ [ E 𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 , Δ − Δ | ℱ = 𝑥 − 𝑥 , E Δ − Δ | ℱ = 0. 𝑚,𝑟 𝑠,𝑟 𝑟,0 𝑚,𝑟 𝑠,𝑟 𝑚,𝑟 𝑠,𝑟 𝑟,0

(64)

Therefore [︁

2

E ‖𝑧𝑚,𝑟+1 − 𝑧𝑠,𝑟+1 ‖ | ℱ𝑟,0

]︁

[︂⃦ ]︂ ⃦2 ⃦[ ⃦ ̂︂ = ‖𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 ‖ + E ⃦Δ𝑚,𝑟 − Δ 𝑠,𝑟 ⃦ | ℱ𝑟,0 . 2

(65)

Now ⎡

⎤ ⎡ ⎤ ]︂ 𝑀 [︂⃦ ⃦ ]︁ ∑︁ 2 1 1 ⃦[ ⃦ ̂︂ E [𝒱𝑟+1,0 ] = E ⎣ 2 ‖𝑥𝑚,𝑟 − 𝑥𝑠,𝑟 ‖2 ⎦ + E ⎣ 2 ⃦Δ𝑚,𝑟 − Δ 𝑠,𝑟 ⃦ ⎦ 𝑀 𝑀 𝑚,𝑠=1 𝑚,𝑠=1 ⎡ ⎤ ⎡ ⎤ 𝑀 [︁ 𝑀 [︁ ]︁ ]︁ ∑︁ ∑︁ 1 1 ≤ 𝜌1 E ⎣ 2 ‖𝑧𝑚,𝑟 − 𝑧𝑠,𝑟 ‖2 ⎦ + 𝜌2 E ⎣ 2 ‖Δ𝑚,𝑟 − Δ𝑠,𝑟 ‖2 ⎦ 𝑀 𝑀 𝑀 [︁ ∑︁

𝑚,𝑠=1

(66)

(67)

𝑚,𝑠=1

≤ 𝜌1 E [𝒱𝑟,0 ] + 𝜌2 𝐷𝑟

(68) (69)

where 𝐷𝑟 := E

[︁

1 ∑︀𝑀 𝑚,𝑠=1 𝑀2

[︁ ]︁]︁ ‖Δ𝑚,𝑟 − Δ𝑠,𝑟 ‖2 .

We now show that 𝐷𝑟 ≤ 2𝜂 2 𝜎 2 𝐻. We define the gradient noise, and note its properties from Assumption 2 𝑔𝑚,𝑟,ℎ = ∇𝑓 (𝑦𝑚,𝑟,ℎ ) + 𝜉𝑚,𝑟,ℎ ,

E[𝜉𝑚,𝑟,ℎ | 𝑦𝑚,𝑟,ℎ ] = 0,

E[‖𝜉𝑚,𝑟,ℎ ‖2 | 𝑦𝑚,𝑟,ℎ ] ≤ 𝜎 2 .

(70)

𝜉𝑚,𝑟,ℎ .

(71)

Then Δ𝑚,𝑟 = −𝜂

𝐻−1 ∑︁ ℎ=0

∇𝑓 (𝑦𝑚,𝑟,ℎ ) − 𝜂

𝐻−1 ∑︁ ℎ=0

28

Factored Gossip DiLoCo: Reducing Blocking Communication in DiLoCo

Define 𝜀𝑚,𝑟 := Δ𝑚,𝑟 − E[Δ𝑚,𝑟 | ℱ𝑟,0 ], so E[𝜀𝑚,𝑟 | ℱ𝑟,0 ] = 0, Δ𝑚,𝑟 − Δ𝑠,𝑟 = 𝜀𝑚,𝑟 − 𝜀𝑠,𝑟 and 𝜀𝑚,𝑟 = −𝜂

(72)

∑︀𝐻−1

ℎ=0 𝜉𝑚,𝑟,ℎ .

Conditioning on ℱ𝑟,0 𝐻−1 ∑︁ [︀ [︀ ]︀ ]︀ E |𝜀𝑚,𝑟 |2 | ℱ𝑟,0 = 𝜂 2 E |𝜉𝑚,𝑟,ℎ |2 | ℱ𝑟,0 ≤ 𝜂 2 𝐻𝜎 2 .

(73)

ℎ=0

so by independence across workers for 𝑚 ̸= 𝑠 [︀ ]︀ E ⟨𝜀𝑚,𝑟 , 𝜀𝑠,𝑟 ⟩ | ℱ𝑟,0 = 0

(74)

and [︀ ]︀ [︀ ]︀ [︀ ]︀ [︀ ]︀ E ‖Δ𝑚,𝑟 − Δ𝑠,𝑟 ‖2 | ℱ𝑟,0 = E ‖𝜀𝑚,𝑟 − 𝜀𝑠,𝑟 ‖2 | ℱ𝑟,0 = E ‖𝜀𝑚,𝑟 ‖2 + E ‖𝜀𝑠,𝑟 ‖2 ≤ 2𝜂 2 𝐻𝜎 2 .

(75)

Averaging over 𝑚 and 𝑠 gives [︃

]︃ 1 ∑︁ 2 𝐷𝑟 = E |Δ𝑚,𝑟 − Δ𝑠,𝑟 | ≤ 2𝜂 2 𝜎 2 𝐻. 𝑀 2 𝑚,𝑠

(76)

E[𝑉𝑟+1,0 ] ≤ 𝜌1 E[𝑉𝑟,0 ] + 2𝜌2 𝜂 2 𝜎 2 𝐻,

(77)

We now have the recursion

and since 𝑉0,0 = 0, for 𝜌1 < 1 the geometric series converges and E[𝑉𝑟,0 ] ≤

2𝜌2 𝜂 2 𝜎 2 𝐻 . 1 − 𝜌1

(78)

Thus for 𝜌1 < 1, 2𝜌2 𝜂 2 𝜎 2 𝐻 + 2𝜂 2 𝜎 2 ℎ 1 − 𝜌1 2𝜌2 𝜂 2 𝜎 2 𝐻 ≤ + 2𝜂 2 𝜎 2 𝐻 1 − 𝜌1 )︂ (︂ 𝜌2 2 2 . = 2𝜂 𝜎 𝐻 1 + 1 − 𝜌1

E[𝑉𝑟,ℎ ] ≤

(79) (80) (81)

Remark E.3 (Boundary case 𝜌1 = 1). The bound assumes 𝜌1 < 1 so the geometric series converges. For vanilla DiLoCo (𝜌1 = 1, 𝜌2 = 0), the recursion becomes E[𝑉𝑟+1,0 ] ≤ E[𝑉𝑟,0 ] with E[𝑉0,0 ] = 0, so E[𝑉𝑟,0 ] = 0 for all 𝑟, and E[𝑉𝑟,ℎ ] ≤ 2𝜂 2 𝜎 2 𝐻, recovering the result of Khaled et al. (2025). For 𝜌1 = 1 with 𝜌2 > 0 (no Mix1 with partial Mix2), the recursion grows linearly in 𝑟 and no uniform-in-𝑟 bound exists, consistent with the consensus error being able to diverge in this regime. Remark E.4 (Convexity). Assumption 1 requires 𝑓 to be convex, but convexity enters our argument only through the one-step contraction ‖𝑇𝜂 (𝑥) − 𝑇𝜂 (𝑦)‖2 ≤ ‖𝑥 − 𝑦‖2 in Theorem E.1. Extending the bound to the non-convex case (e.g., under a Polyak–Łojasiewicz condition) is left to future work.

29

Record · ID 299890 · SHA-256 b694067b7502fa95
Retrieved via Conceptio — every document is proof-bundled with source, license, and retrieval metadata.