MuLoCo: Communication-Efficient LLM Training
- MuLoCo is a distributed training algorithm that integrates the Muon optimizer, error-feedback, and 2-bit quantization to compress updates and achieve an 8× reduction in communication bandwidth.
- It employs an orthogonalization-based momentum method to ensure that aggressive compression recovers lost information, maintaining model quality.
- Empirical evaluations demonstrate that MuLoCo outperforms standard DiLoCo with AdamW by reducing network overhead while preserving convergence rates and accuracy in large-scale transformer models.
MuLoCo (short for "Muon inner optimizer DiLoCo") is an algorithmic enhancement to distributed low-communication training frameworks for LLMs. It combines the Muon optimizer, orthogonalization-based momentum, and error-feedback-augmented communication compression within the DiLoCo system. MuLoCo enables communication-efficient pre-training of transformer models by allowing parameter update deltas to be compressed down to 2 bits per element with minimal performance degradation, thus achieving an 8× reduction in communication bandwidth relative to standard DiLoCo at constant memory complexity (Thérien et al., 29 May 2025).
1. Background and Motivation
Distributed Low-Communication Training (DiLoCo) is a Local SGD variant designed for efficient data center-scale training of LLMs. DiLoCo operates by executing local optimization steps on each of parallel workers before performing an all-reduce operation to aggregate parameter updates. This paradigm reduces the communication frequency by a factor of , but each communication step still transmits a complete precision copy of the model—incurring significant network overhead.
Prior approaches have attempted to further compress communicated updates using quantization or sparsification, but their effectiveness is limited by the properties of the local optimizer (commonly AdamW), which tend to produce parameter deltas that are not readily compressible. The MuLoCo approach substitutes the Muon optimizer for AdamW as DiLoCo’s inner optimizer. This substitution, especially when paired with standard compression schemes and error-feedback accumulators, achieves much higher compression ratios with negligible loss in model quality (Thérien et al., 29 May 2025).
2. Formal Definitions and Algorithmic Components
Let:
- : model parameters,
- : parameter delta after inner steps per worker,
- : error-feedback accumulator,
- : compression operator (e.g., Top- sparsification or quantization).
The Muon inner optimizer update for each coordinate block uses a single momentum accumulator :
where denotes an orthonormalized version of (via, e.g., quintic Newton–Schulz iteration), , and is the local learning rate.
Error feedback is implemented as follows: after local steps, each worker computes its local delta , updates the accumulator , compresses the sum , sends instead of , and then sets . This mechanism ensures recovery of the information lost to aggressive compression in subsequent rounds.
3. MuLoCo Workflow
The MuLoCo workflow extends DiLoCo by introducing Muon-based inner optimization, error-feedback, and compression before the global synchronization step. The high-level steps per outer iteration are:
- Each worker initializes from the global .
- Run inner Muon steps locally, updating , orthogonalizing, and advancing .
- Compute local delta: .
- Error feedback: , , .
- All-reduce aggregated compressed deltas: .
- Outer update: SGD with Nesterov momentum using the aggregated .
- Maintain or reset local states as per optimizer protocol.
4. Communication and Memory Analysis
MuLoCo’s principal advantage is the aggressive reduction of communication volume:
| Variant | Bits Sent per Communication | Memory Complexity |
|---|---|---|
| DiLoCo (AdamW, no compression) | $2M$ (AdamW) outer | |
| DiLoCo+EF (adds error accumulator) | $4M$ | |
| MuLoCo (Muon, no error feedback) | (Muon) outer | |
| MuLoCo+EF (2-bit quant. + error feed) | $3M$ |
Here . With 2-bit quantization, MuLoCo's communication cost is bits ( = number of communications), representing an 8× reduction relative to 16-bit AdamW-DiLoCo for the same . The memory cost is also lower than AdamW-based DiLoCo due to Muon's single momentum buffer (Thérien et al., 29 May 2025).
5. Convergence and Theoretical Guarantees
MuLoCo inherits the convergence guarantees of Local SGD with error-feedback. Under standard smoothness and bounded variance assumptions, and with unbiased compression , the convergence rate is where is the number of workers and is the number of total steps. This rate includes additional constants accounting for compression error but is fundamentally unchanged in qualitative terms by the introduction of Muon or aggressive compression (Thérien et al., 29 May 2025). No new theorems are introduced for MuLoCo, but the theoretical basis references established results (e.g., Karimireddy et al., 2019).
6. Empirical Results
MuLoCo’s empirical evaluation is conducted using a 12-layer decoder-only transformer (post-layernorm), 220M parameters, on FineWeb-EDU using workers, local steps, and a total batch of tokens. Baselines include data-parallel AdamW/Muon and DiLoCo (AdamW), with or without compression/error-feedback.
Key findings:
- Without compression, MuLoCo slightly outperforms DiLoCo and matches Muon in the data-parallel regime.
- With error feedback, both Top- sparsification ( in ) and 2-bit quantization further stabilize training.
- MuLoCo combined with error feedback and 2-bit quantization achieves a lower test loss than standard AdamW-DiLoCo (16-bit), while reducing total bits sent by a factor of 8.
- All results are reported at wall-clock-matched workloads, confirming the practical benefits of aggressive compression enabled by Muon (Thérien et al., 29 May 2025).
7. Implementation Recommendations
The MuLoCo approach is compatible with modern accelerator-based pipelines (JAX/Optax, PyTorch). Recommended practices include:
- Applying Muon as the inner optimizer to hidden layers, with optional retention of AdamW for embeddings/output layers.
- Enabling error feedback with for MuLoCo ( for AdamW-DiLoCo).
- For maximal bandwidth reduction, employ 2-bit quantization. Alternatively, Top- sparsification with in is effective.
- Hyperparameters: for MuLoCo, , min/max LR ratio ; AdamW-DiLoCo . Outer SGD uses , Nesterov .
- Pipeline: wrap DiLoCo’s inner loop with Muon updates, apply compression and error-feedback prior to all-reduce, then carry out the outer SGD step (Thérien et al., 29 May 2025).
This structure supports practitioners seeking communication-efficient, large-scale LLM training with improved compressibility and memory efficiency relative to prior distributed frameworks.