Introduction
Training Large Language Models (LLMs) requires massive distributed systems. The current industry standard, the ZeRO (Zero Redundancy Optimizer) family, shards model states—parameters, gradients, and optimizer states—across all available GPUs to minimize memory usage. However, this extreme sharding introduces a significant communication bottleneck. While intra-node bandwidth (e.g., NVLink) is extremely fast, inter-node bandwidth (e.g., InfiniBand) is often 6x to 20x slower. ZeRO-3 frequently forces excessive traffic across these slower inter-node links, leading to efficiency losses.
This paper introduces PaRO (Partial Redundancy Optimizer) and HO-Ring (Hierarchical Overlapping Ring), two techniques designed to balance memory redundancy and communication speed. By strategically allowing minor memory redundancy to reduce expensive inter-node communication, the authors achieve throughput speedups of up to 2.50× over state-of-the-art methods like ZeRO-3 while maintaining near-linear scalability.
Methods: PaRO and HO-Ring
The authors propose a fine-grained approach to sharding that moves beyond the binary "shard everything" or "shard nothing" paradigm.
Partial Redundancy Optimizer (PaRO)
PaRO offers a suite of strategies based on three sharding levels: no sharding, intra-group sharding (within a node or switch), and global sharding. The authors identify three primary configurations: PaRO-IGG, PaRO-IIG, and PaRO-NIG. The core logic prioritizes sharding the optimizer state—the largest memory consumer—while adjusting parameter and gradient sharding based on the task (e.g., Full Fine-Tuning vs. PEFT).
Hierarchical Overlapping Ring (HO-Ring)
Traditional Ring All-Reduce algorithms do not account for hierarchical network speeds. HO-Ring improves upon the standard Hierarchical Ring by overlapping intra-group and inter-group communication. This allows GPUs to transmit shards through both local and global rings simultaneously, maximizing total bandwidth utilization.
Experimental Evaluation
The researchers evaluated PaRO and HO-Ring using LLaMA-7B and LLaMA-65B models trained on the C4 corpus from the RedPajama dataset. Experiments were conducted on a cluster of 128 NVIDIA A100 80GB GPUs (16 DGX nodes).
Key Results
- Throughput Gains: PaRO-IGG and PaRO-IIG improved throughput by 1.37× to 1.94× on 32 GPUs and up to 2.50× on 128 GPUs compared to ZeRO-3.
- Communication Efficiency: The HO-Ring algorithm reduced communication time by 36.5% compared to the traditional Ring algorithm and 11.5% compared to the standard Hierarchical Ring.
- Scalability: PaRO-IIG demonstrated near-linear scalability, whereas standard ZeRO methods saw diminishing returns as cluster size increased due to communication overhead.
- Convergence: Training curves for PaRO matched ZeRO exactly, confirming that these optimizations do not impact model accuracy.
Discussion and Conclusion
The primary insight of this work is that the "bandwidth mismatch" between intra-node and inter-node links is the true enemy of efficient LLM training. By treating redundancy as a feature rather than a bug, PaRO can replace slow inter-node operations with fast local ones. While the optimal sharding strategy depends on the specific task, PaRO provides the flexibility to "dial in" the right balance. Future work may explore applying these techniques to complex multi-model systems like Reinforcement Learning from Human Feedback (RLHF).
Summary updated