[Paper Review] TopoOpt: Co-optimizing Network Topology and Parallelization Strategy for Distributed Training Jobs
TopoOpt co-optimizes network topology and parallelization strategy for distributed DNN training using a reconfigurable optical fabric, enabling dynamic, efficient topologies tailored to workload demands. It achieves up to 3.4× faster training iteration times compared to similar-cost Fat-tree networks by jointly optimizing computation, communication, and topology via alternating optimization and a group theory-inspired algorithm, TotientPerms.
We propose TopoOpt, a novel direct-connect fabric for deep neural network (DNN) training workloads. TopoOpt co-optimizes the distributed training process across three dimensions: computation, communication, and network topology. We demonstrate the mutability of AllReduce traffic, and leverage this property to construct efficient network topologies for DNN training jobs. TopoOpt then uses an alternating optimization technique and a group theory-inspired algorithm called TotientPerms to find the best network topology and routing plan, together with a parallelization strategy. We build a fully functional 12-node direct-connect prototype with remote direct memory access (RDMA) forwarding at 100 Gbps. Large-scale simulations on real distributed training models show that, compared to similar-cost Fat-Tree interconnects, TopoOpt reduces DNN training time by up to 3.4x.
Motivation & Objective
- Address the growing bottleneck of Fat-tree interconnects in distributed DNN training, which are ill-suited for predictable, repetitive AllReduce and model-parallel traffic patterns.
- Overcome the limitation of traditional datacenter networks that assume unpredictable, short-lived traffic, which does not reflect real DNN training workloads.
- Co-optimize three dimensions—computation, communication, and network topology—by jointly selecting optimal parallelization strategies and physical topologies for each training job.
- Design a system that leverages reconfigurable optical switches and host-based RDMA forwarding to create dedicated, efficient topologies per job, improving performance and cost-efficiency.
- Demonstrate that topology-aware optimization significantly reduces training iteration time and cost compared to conventional interconnects.
Proposed method
- Propose an alternating optimization framework that iteratively improves the parallelization strategy under a fixed topology, then updates the topology based on the resulting traffic demands.
- Introduce TotientPerms, a group theory-inspired algorithm that generates AllReduce permutations that are both efficient for AllReduce and well-suited for model-parallel transfers, reducing hop count and improving load balancing.
- Use a direct-connect optical fabric with reconfigurable patch panels to create dedicated, low-latency partitions for each DNN training job, enabling dynamic topology reconfiguration.
- Enable host-based RDMA forwarding using NIC network partitioning (NPAR) to allow non-local traffic forwarding while preserving RDMA semantics, overcoming a key limitation of standard RDMA.
- Integrate TotientPerms into NCCL to support load-balanced parameter synchronization across multiple ring-AllReduce sub-topologies.
- Build a 12-node prototype with 100 Gbps RDMA NICs and Telescent optical patch panels to validate the system in real-world conditions.
Experimental results
Research questions
- RQ1Can co-optimizing network topology and parallelization strategy significantly reduce DNN training time compared to conventional Fat-tree interconnects?
- RQ2How can the mutability of AllReduce traffic be exploited to design topologies that simultaneously optimize AllReduce and model-parallel communication?
- RQ3What algorithmic techniques can efficiently navigate the large search space of joint computation, communication, and topology configurations for DNN training jobs?
- RQ4Can reconfigurable optical interconnects enable cost-effective, high-performance DNN training by dynamically adapting to job-specific traffic patterns?
- RQ5How can RDMA-based forwarding be made to work reliably in a host-relay architecture where non-local packets must be forwarded?
Key findings
- TopoOpt reduces DNN training iteration time by up to 3.4× compared to a similar-cost Fat-tree interconnect, demonstrating significant performance gains.
- The system achieves an average of 3.2× lower cost than an ideal full-bisection-bandwidth Fat-tree, showing strong cost-efficiency.
- Large-scale simulations on six real DNN models—DLRM, CANDLE, BERT, NCF, ResNet50, and VGG—confirm consistent performance improvements across diverse architectures.
- TotientPerms enables efficient AllReduce permutations that also reduce hop counts for model-parallel transfers, improving overall communication efficiency.
- The integration of TotientPerms into NCCL enables load-balanced parameter synchronization across multiple ring-AllReduce sub-topologies, enhancing scalability.
- The 12-node prototype with 100 Gbps RDMA and optical reconfiguration successfully demonstrates the feasibility and performance of the system in practice.
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.