TL;DR
The paper introduces the Performant Collective Communication Library (PCCL), a novel communication library designed to overcome the scalability bottlenecks of standard libraries (NCCL, RCCL, Cray-MPICH) in large-scale deep learning. By combining a two-level hierarchical design, latency-optimal algorithms, and a machine learning-driven adaptive dispatcher, PCCL achieves up to a 168× speedup in collective operations and up to a 4.9× speedup in end-to-end Large Language Model (LLM) training on thousands of GPUs.
What Problem Does This Paper Address?
Distributed deep learning frameworks (such as DeepSpeed ZeRO-3 or PyTorch DDP) rely heavily on collective communication operations—like all-gather, reduce-scatter, and all-reduce—to synchronize gradients and model parameters across thousands of GPUs. As models grow, these operations handle massive message sizes (tens to hundreds of megabytes).
Unfortunately, existing vendor and system libraries like NVIDIA's NCCL, AMD's RCCL, and Cray-MPICH struggle to scale efficiently in this regime. They suffer from severe architectural bottlenecks, such as relying strictly on ring algorithms that scale poorly at high node counts, underutilizing available Network Interface Controllers (NICs), or performing reduction computations on the CPU instead of offloading them to the GPU.
Methods
The authors developed PCCL (Performant Collective Communication Library) to address these bottlenecks through a three-pronged optimization strategy:
- Hierarchical Two-Level Design: PCCL splits global communication into distinct inter-node and intra-node phases. For intra-node communication, it leverages highly optimized vendor libraries (NCCL/RCCL) to saturate fast GPU-to-GPU links (like NVLink or Infinity Fabric). For inter-node communication, it schedules concurrent operations across all available NICs to maximize network utilization.
- Latency-Optimal Algorithms: Instead of relying solely on ring algorithms, PCCL implements custom inter-node backends using recursive doubling (for all-gather) and recursive halving (for reduce-scatter). These algorithms reduce communication steps logarithmically ($\log_2 p$), significantly improving performance at large GPU counts. Crucially, all vector reductions are offloaded to GPU cores.
- ML-Guided Adaptive Dispatching: Because no single algorithm is best for every scenario, PCCL uses a lightweight Support Vector Machine (SVM) classifier trained on empirical data. At runtime, the dispatcher queries the SVM with the current GPU count and message size to dynamically select the fastest backend (whether it is raw NCCL/RCCL or PCCL's custom hierarchical implementations).
Datasets
To evaluate PCCL in production scenarios, the authors benchmarked large language model (LLM) training workloads using:
- OpenWebText: A public text corpus used to train GPT-style transformer models.
- Model Configurations: Evaluated using 7-billion (7B) and 13-billion (13B) parameter models under DeepSpeed ZeRO-3, and a 1.3-billion (1.3B) parameter model under PyTorch Distributed Data Parallel (DDP).
Key Insights and Ideas
- Hardware Underutilization in MPI: Profiling revealed that Cray-MPICH routed all network traffic through a single NIC (NIC-0 for writes, NIC-3 for reads) on Frontier compute nodes, explaining a massive 4× performance gap compared to libraries that distribute traffic evenly across all four available NICs.
- The Ring Algorithm Trap: NCCL and RCCL rely exclusively on ring algorithms for all-gather and reduce-scatter. While effective for bandwidth-bound scenarios, this approach scales poorly in latency-sensitive regimes with high GPU counts because communication time grows linearly with the number of processes.
- Avoiding Software-Side Copies: Hardware counter analysis showed that RCCL triggered 200× more network match overflows than PCCL on Cassini NICs. By dissolving inter-node collectives into MPI point-to-point operations, PCCL keeps data on the hardware-accelerated "priority list," ensuring zero-copy data movement.
Key Results
- Microbenchmarks: On 2048 GCDs of the Frontier supercomputer, PCCL achieved massive speedups over RCCL: up to 168× for reduce-scatter, 33× for all-gather, and 10× for all-reduce. On Perlmutter, PCCL outperformed NCCL by up to 5.7×.
- End-to-End Training: These communication gains translated directly to real-world training throughput. PCCL delivered up to a 4.9× speedup over RCCL in DeepSpeed ZeRO-3 training (7B model on Frontier) and a 2.4× speedup in PyTorch DDP training (1.3B model on 2048 GCDs).
Limitations and Future Work
The current evaluation of PCCL was conducted primarily on Slingshot-11 interconnect-based supercomputers (Frontier and Perlmutter). The authors note that future work will involve benchmarking PCCL on clusters with InfiniBand interconnects to evaluate its portability and performance across different networking architectures.
Summary updated