Explain DiLoCo-style low-communication training and what the 2025 scaling-law results showed. When would you use it instead of standard data parallelism?
Answer
Model answer, written in a candidate's voice
In short
- Each island runs many local AdamW steps, then every H steps exchanges the parameter delta; an outer Nesterov-momentum optimiser applies it as a pseudo-gradient.
- Communication drops by roughly a factor of H, so islands can span buildings or data centres over slower links.
- 2025 scaling-law results: well-tuned DiLoCo-style training scales predictably with model size, can match or beat data-parallel training even at small sizes, and favours larger optimal batch sizes.
- Costs: extra hyperparameters (H, outer LR and momentum), sensitivity to heterogeneous replicas, and still needs fast interconnect inside each island.
- Use it for cross-datacentre or decentralised training and bandwidth-limited/unreliable networks; keep standard DP/FSDP inside one cluster.
In full
DiLoCo-style training splits training into islands: each island runs many local inner-optimiser steps, typically AdamW, and only every H steps exchanges the parameter delta, which an outer optimiser, typically Nesterov momentum, applies as a pseudo-gradient. Because the exchange happens every H steps rather than every step, communication falls by roughly a factor of H, which is what lets islands sit in different buildings or data centres on slower links. The 2025 scaling-law results reported that, when well tuned, this approach scales predictably with model size, can match or beat data-parallel training even at small sizes, and shifts the optimum toward larger batch sizes. The trade-offs are extra hyperparameters such as H, the outer learning rate and momentum, sensitivity to heterogeneous replicas, and the fact that each island still needs fast interconnect internally. I would use it for cross-datacentre or decentralised training, or when the network is unreliable or bandwidth-limited; within a single cluster, standard data parallelism or FSDP is usually simpler and preferable.
What a strong answer covers
- Mechanics: each replica (or island) runs many local inner-optimiser steps (typically AdamW) and only every H steps exchanges the parameter delta, which an outer optimiser (typically Nesterov momentum) applies as a pseudo-gradient
- Communication falls by roughly a factor of H, so islands can sit in different buildings or data centres on slower links
- 2025 scaling-law findings: when well tuned it scales predictably with model size, can match or beat data-parallel training even at small sizes, and favours larger optimal batch sizes
- Trade-offs: extra hyperparameters (H, outer learning rate and momentum), sensitivity to heterogeneous replicas, still needs fast interconnect inside each island
- Use cases: cross-datacentre or decentralised training, unreliable or bandwidth-limited networks; standard DP/FSDP remains simpler within one cluster
Common mistakes
- Confusing it with plain gradient accumulation
- Claiming it removes the need for high-bandwidth links inside a replica
Follow-ups
- How would you overlap the outer synchronisation with inner steps?