[Paper Review] MiCS: Near-linear Scaling for Training Gigantic Model on Public Cloud
MiCS proposes a near-linearly scalable training system for gigantic deep learning models on public cloud by minimizing communication scale through scale-aware model partitioning, hierarchical communication, and 2-hop gradient synchronization. It achieves up to 2.89× higher throughput and 99.4% weak-scaling efficiency on 512 GPUs with 100B-parameter models, outperforming DeepSpeed ZeRO in heterogeneous, low-bandwidth cloud environments.
Existing general purpose frameworks for gigantic model training, i.e., dense models with billions of parameters, cannot scale efficiently on cloud environment with various networking conditions due to large communication overheads. In this paper, we propose MiCS, which Minimizes the Communication Scale to bring down communication overhead. Specifically, by decreasing the number of participants in a communication collective, MiCS can utilize heterogeneous network bandwidth, reduce network traffic over slower links, reduce the latency of communications for maintaining high network bandwidth utilization, and amortize expensive global gradient synchronization overhead. Our evaluation on AWS shows that the system throughput of MiCS is up to 2.89$ imes$ that of the state-of-the-art large model training systems. MiCS achieves near-linear scaling efficiency, which is up to 1.27$ imes$ that of DeepSpeed. MiCS allows us to train a proprietary model with 100 billion parameters on 512 GPUs with 99.4% weak-scaling efficiency, and it is able to saturate over 54.5% theoretical computation power of each GPU on a public cloud with less GPU memory and more restricted networks than DGX-A100 clusters.
Motivation & Objective
- To address the high communication overhead in existing large model training frameworks when deployed on public cloud with heterogeneous, low-bandwidth networks.
- To improve training throughput and scalability on public cloud clusters that lack high-speed InfiniBand interconnects, unlike DGX clusters.
- To enable efficient training of gigantic models (e.g., 100B parameters) on standard public cloud GPU instances without requiring specialized hardware or complex model parallelism.
- To maintain simplicity and generality of data parallelism while significantly reducing communication costs in large-scale, heterogeneous clusters.
- To achieve near-linear scaling efficiency comparable to high-end clusters, even under restricted network conditions.
Proposed method
- Introduces scale-aware model partitioning, dividing GPUs into smaller, isolated groups where each group holds a complete copy of the model states, reducing the number of participants in frequent parameter synchronizations.
- Employs a hierarchical communication strategy that limits collective operations to intra-group levels and parallelizes inter-group communications, reducing traffic on slower inter-node links.
- Designs a 2-hop gradient synchronization mechanism that avoids global all-reduce operations by first aggregating gradients within groups and then synchronizing group-level summaries across groups.
- Configures partition groups based on GPU memory capacity and network topology to balance memory usage and communication efficiency, with group size as a tunable parameter.
- Leverages existing data parallelism frameworks (e.g., ZeRO) but rearchitects communication patterns to exploit intra-node high-bandwidth links and reduce inter-node latency and data volume.
- Uses a heuristic to determine optimal group size for model state replication, ensuring memory efficiency and minimizing communication bottlenecks.
Experimental results
Research questions
- RQ1Can a data-parallel training system achieve near-linear scaling on public cloud clusters with heterogeneous, low-bandwidth networks?
- RQ2How can communication overhead be reduced in large model training without relying on specialized hardware like InfiniBand?
- RQ3To what extent can minimizing the number of communicating participants improve training throughput and scalability in large-scale GPU clusters?
- RQ4Can a system maintain high efficiency and low communication cost while avoiding complex model or pipeline parallelism?
- RQ5How does the system perform under real-world public cloud constraints, such as limited GPU memory and variable network bandwidth?
Key findings
- MiCS achieves up to 2.89× higher system throughput than DeepSpeed ZeRO on AWS, demonstrating significant performance gains in large-scale training.
- The system achieves 99.4% weak-scaling efficiency when training a 100-billion-parameter model on 512 GPUs, indicating near-linear scalability.
- MiCS saturates over 54.5% of each GPU’s theoretical compute capacity on public cloud instances with less than 32% memory utilization per GPU, outperforming ZeRO under the same conditions.
- The hierarchical communication strategy reduces inter-node network traffic and latency, enabling higher bandwidth utilization on slower inter-node links.
- The 2-hop gradient synchronization mechanism reduces global synchronization cost by limiting all-reduce operations to group-level summaries, improving efficiency in large clusters.
- MiCS maintains high performance even with limited GPU memory and restricted network bandwidth, making it practical for standard public cloud deployments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.