Efficient Direct-Connect Topologies for Collective Communications
Liangyu Zhao, Siddharth Pal, Tapan Chugh, Weiyang Wang, Jason Fantl, Prithwish Basu, Joud Khoury, Arvind Krishnamurthy
TL;DR
This work tackles the challenge of designing efficient direct-connect topologies for collective communications by proposing an algorithmic toolchain that jointly optimizes topology and schedule. It introduces expansion techniques (Line Graph, Degree Expansion, Cartesian Product) to scale small, optimal base topologies into large, low-degree networks, and pairs them with a polynomial-time BFB schedule generation, validated on both real optical testbeds and large-scale simulations. A topology finder assembles Pareto-efficient options, and compilers map schedules to GPU and CPU runtimes, enabling substantial improvements in allreduce, allgather, and all-to-all performance for ML and HPC workloads. The results demonstrate order-of-magnitude reductions in communication time at scale and confirm the practicality of automated topology–schedule synthesis for reconfigurable direct-connect fabrics. The framework thus offers a scalable pathway to near-optimal, workload-aware direct-connect networks with broad impact on distributed training and HPC systems.
Abstract
We consider the problem of distilling efficient network topologies for collective communications. We provide an algorithmic framework for constructing direct-connect topologies optimized for the latency vs. bandwidth trade-off associated with the workload. Our approach synthesizes many different topologies and schedules for a given cluster size and degree and then identifies the appropriate topology and schedule for a given workload. Our algorithms start from small, optimal base topologies and associated communication schedules and use techniques that can be iteratively applied to derive much larger topologies and schedules. Additionally, we incorporate well-studied large-scale graph topologies into our algorithmic framework by producing efficient collective schedules for them using a novel polynomial-time algorithm. Our evaluation uses multiple testbeds and large-scale simulations to demonstrate significant performance benefits from our derived topologies and schedules.
