ForestColl: Throughput-Optimal Collective Communications on Heterogeneous Network Fabrics
Liangyu Zhao (University of Washington), Saeed Maleki (Independent Researcher), Yuanhong Wang (Tsinghua University), Zezhou Wang (University of Washington), Ziyue Yang (Microsoft Research), Hossein Pourreza (Microsoft), Arvind Krishnamurthy (University of Washington)
23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26) · Day 3 · Neurons Meet Routers
Overview
Modern distributed machine learning relies heavily on coordinated communication patterns known as collective communications—specifically all-gather, reduce-scatter, and all-reduce—to synchronize and exchange tensor data across vast clusters of graphics processing units (GPUs). As model sizes scale into the hundreds of billions of parameters, these collective operations frequently represent the primary performance bottleneck in large-scale training and inference workloads. However, generating high-performance communication schedules is exceptionally difficult on modern AI clusters due to the extreme diversity of hardware topologies (such as AMD's direct-connect architectures versus NVIDIA's switch-based topologies) and internal network heterogeneity (differing link speeds across intra-box and inter-box boundaries).

Key moments
- 0:00 Introduction to collective communication and ForestColl
- 2:00 Challenges: Diversity, heterogeneity, and scalability in ML networks
- 4:30 Overview of ForestColl's algorithm and pipeline
- 6:00 Optimality binary search and network cut analysis
- 9:30 Spanning tree packing and switch node removal
- 12:00 Evaluation results and ML training performance improvements
- 14:00 Summary and concluding remarks
ForestColl: Throughput-Optimal Collective Communications on Heterogeneous Network Fabrics
Speakers: Liangyu Zhao (University of Washington); Saeed Maleki (Independent Researcher); Yuanhong Wang (Tsinghua University); Zezhou Wang (University of Washington); Ziyue Yang (Microsoft Research); Hossein Pourreza (Microsoft); Arvind Krishnamurthy (University of Washington)
Conference: USENIX NSDI
YouTube: https://www.youtube.com/watch?v=tP30PxbfK7o
Overview
Modern distributed machine learning relies heavily on coordinated communication patterns known as collective communications—specifically all-gather, reduce-scatter, and all-reduce—to synchronize and exchange tensor data across vast clusters of graphics processing units (GPUs). As model sizes scale into the hundreds of billions of parameters, these collective operations frequently represent the primary performance bottleneck in large-scale training and inference workloads. However, generating high-performance communication schedules is exceptionally difficult on modern AI clusters due to the extreme diversity of hardware topologies (such as AMD's direct-connect architectures versus NVIDIA's switch-based topologies) and internal network heterogeneity (differing link speeds across intra-box and inter-box boundaries).
In this talk, the researchers introduce ForestColl, a novel schedule generation framework designed to achieve throughput-optimal collective communications across arbitrary heterogeneous network fabrics. Developed as a joint collaboration between the University of Washington, Microsoft Research, and Tsinghua University, ForestColl addresses the fundamental scalability and optimality limitations of prior systems. By leveraging advanced graph theory—specifically spanning tree packing and edge splitting—ForestColl computes provably optimal communication schedules in polynomial time, bypassing the intractable NP-hard formulations that have historically crippled automated schedule generators.
The significance of this work spans both systems engineering and large-scale ML training. As cluster operators deploy increasingly complex hybrid networks featuring high-speed InfiniBand switches, NVLink fabrics, and Ethernet bridges, static or heuristic-based communication engines like NCCL leave substantial network bandwidth unutilized. ForestColl provides a principled, mathematically guaranteed approach to schedule generation that translates directly into double-digit throughput improvements and tangible reductions in end-to-end model training iteration times.
Background
▶ Watch: Introduction to collective communication and ForestColl (0:00)
Distributed deep learning training paradigms such as PyTorch's FSDP (Fully Sharded Data Parallel) and tensor parallelism require continuous data exchange across multiple compute nodes. These operations are governed by well-defined collective primitives. In an all-gather operation, every GPU starts with a distinct data shard, and every GPU must ultimately receive the complete concatenated vector. Conversely, reduce-scatter takes full vectors across all GPUs, performs a reduction, and distributes reduced shards to their respective owners. All-reduce is simply a composition of reduce-scatter followed by all-gather.
Despite these clear input-output specifications, designing the exact sequence of packet transmissions—the communication schedule—to move data from initial to final states is a complex routing problem. Modern AI infrastructure exhibits profound diversity and heterogeneity. For instance, AMD’s MI250 multi-GPU boxes rely primarily on direct GPU-to-GPU connections, whereas NVIDIA's DGX A100 and H100 architectures utilize centralized NVSwitch fabrics combined with external InfiniBand switches. Furthermore, intra-node bandwidth (e.g., 300 GB/s per GPU via NVSwitch) vastly outstrips inter-node InfiniBand fabric bandwidth (e.g., 25 GB/s per GPU), creating severe performance asymmetries.
Historically, optimizing communication schedules over such irregular topologies has been framed as a discrete optimization problem. Prior systems frequently relied on heavy mathematical programming techniques, such as Mixed Integer Programming (MIP) solvers or SMT (Satisfiability Modulo Theories) solvers. Because collective communication involves intricate aggregation and multicast data dependencies, these NP-hard formulations scale poorly. As cluster sizes grow beyond a few tens of nodes, MIP and SMT solvers experience exponential state-space explosions, rendering them incapable of generating schedules within reasonable timeframes. Consequently, practitioners have relied on manual heuristics or topology-restricted runtimes like NVIDIA's NCCL, which lack formal throughput optimality guarantees and struggle to adapt seamlessly to arbitrary heterogeneous network graphs.
Key Findings
▶ Watch: Overview of ForestColl's algorithm and pipeline (4:30)
ForestColl resolves the central tensions of network schedule generation by simultaneously satisfying three critical requirements that prior systems failed to achieve collectively: general switch-topology support, provable theoretical optimality, and polynomial-time schedule generation scalability.
- Generalized Topology Support: Unlike legacy schedule generators restricted to switch-free direct-connect networks, ForestColl natively handles complex switch-based network fabrics, accommodating arbitrary combinations of direct links, internal switches, and external network fabrics.
- Provable Optimality Guarantees: Rather than relying on empirical heuristics, ForestColl introduces a novel bottleneck-cut optimality framework that proves mathematically that its generated schedules achieve the absolute maximum theoretical throughput for any given network graph.
- Polynomial-Time Scalability: By replacing NP-hard MIP and SMT formulations with graph-theoretic spanning tree packing and edge splitting algorithms, ForestColl computes optimal schedules in polynomial time, effortlessly scaling to large clusters comprising hundreds of accelerators.
- Superior Empirical Performance: Implemented atop the MSCCL++ framework, ForestColl delivers substantial throughput gains over baseline systems. At a scale of 128 H100 GPUs (16 nodes of 8 GPUs), ForestColl achieves 32% higher throughput for all-gather, 14% for reduce-scatter, and 25% for all-reduce compared to standard NCCL configurations using 1-gigabyte message sizes.
- End-to-End Training Speedups: Integrated into PyTorch FSDP training pipelines, ForestColl reduces total training iteration times by 14% for Gemma-27B, 20% for Llama-70B, and significant margins for larger 119B parameter models compared to standard NCCL backends.
Technical Deep Dive
▶ Watch: Optimality binary search and network cut analysis (6:00)
The architectural workflow of ForestColl consists of three sequential phases: Optimality Binary Search, Switch Node Removal, and Spanning Tree Construction.
Optimality Binary Search
To generate an optimal schedule, the system must first answer a fundamental question: What is the absolute upper-bound throughput for all-gather on a given heterogeneous network topology?
Previous literature frequently relied on a simplified single-node lower bound, calculated as the total data shard size multiplied by $(N - 1)$, divided by an individual node's bandwidth. However, this metric fails when network bottlenecks reside not at individual GPU interfaces, but rather across aggregated cross-node fabric links (such as slower InfiniBand switches linking multi-GPU nodes).
ForestColl generalizes this by examining arbitrary network cuts. Consider a network cut $S$ (represented as a subset of nodes) that encircles a portion of the network. The minimum amount of data that must traverse this cut is equal to the shard size multiplied by the number of GPUs residing inside cut $S$. Dividing this required data volume by the aggregate exiting link bandwidth of cut $S$ yields a rigorous gather time lower bound.
ForestColl identifies the critical bottleneck cut $S^*$—the cut that maximizes the ratio of GPUs inside the cut to the exiting bandwidth of the cut across all possible network cuts. Because evaluating all exponential network cuts is intractable, ForestColl designs an efficient optimality binary search algorithm that computes this theoretical throughput bound in polynomial time.
Switch Node Removal via Edge Splitting
A major mathematical obstacle in applying graph theory to modern AI clusters is that all-gather data dissemination in switch-based topologies does not conform to standard graph-theoretic trees. Specifically, switches are often visited multiple times as data is multicast to various destination GPUs, violating the strict definition of a tree.
To bridge this gap, ForestColl introduces a switch node removal process utilizing a graph-theoretic technique called edge splitting. The algorithm iteratively replaces switch-mediated links with direct logical links that bypass the physical switch, directly connecting pairs of GPUs. By repeating this process, all switch nodes are progressively isolated and can be safely removed, transforming the input physical topology into an equivalent switch-free logical topology.
This transformation provides two crucial guarantees:
- Equivalence: Any valid communication schedule generated for the resulting logical topology can be mapped back flawlessly into a valid schedule for the original physical topology, preserving identical throughput characteristics.
- Zero Optimality Loss: By ensuring that bottleneck bandwidths never decrease during the edge-splitting process, the throughput optimality of the logical topology exactly matches that of the physical input topology.
Spanning Tree Construction
Once the switch-free logical topology is established, ForestColl constructs communication schedules using spanning tree packing. The algorithm constructs the maximum possible number of spanning trees under strict link capacity (bandwidth) constraints. Each spanning tree functions as a single independent broadcast flow originating from a root GPU. Maximizing the number of packed spanning trees maximizes the utilization of all available network links.
The resulting trees are executed in a data-flow manner using parallel rings for cross-box communication and ring-unrolling shards for intra-box communication, with MSCCL++ serving as the underlying execution runtime.
Experimental Setup & Results
▶ Watch: Evaluation results and ML training performance improvements (12:00)
The evaluation of ForestColl spans microbenchmark throughput tests, schedule generation speed comparisons, and end-to-end deep learning training workloads.
- Hardware Testbed: Evaluations were conducted on clusters comprising 16 nodes, each equipped with 8 NVIDIA H100 GPUs (totaling 128 H100 GPUs), featuring heterogeneous internal connectivity and high-speed InfiniBand network fabrics.
- Baselines: ForestColl schedules were implemented using MSCCL++ and benchmarked directly against NVIDIA's industry-standard NCCL communication library.
- Microbenchmark Results: Operating at a 1 GB message size across 128 H100 GPUs, ForestColl demonstrated headline throughput improvements of:
- 32% higher throughput for all-gather operations.
- 14% higher throughput for reduce-scatter operations.
- 25% higher throughput for all-reduce operations.
- Schedule Generation Efficiency: Compared to legacy optimization methods dependent on NP-hard MIP and SMT solvers—which time out or fail to scale past dozens of nodes—ForestColl computes schedules orders of magnitude faster while maintaining strict mathematical optimality.
- End-to-End ML Training: Integrated into PyTorch FSDP training loops, ForestColl yielded substantial wall-clock training improvements:
- 14% reduction in iteration time for Gemma-27B.
- 20% reduction in iteration time for Llama-70B and large 119B parameter configurations.
Note: Formal ablations isolating specific parameters of the edge-splitting algorithm were omitted from the core presentation in favor of end-to-end system validation.
Practical Implications
▶ Watch: Summary and concluding remarks (14:00)
For infrastructure engineers, cluster deployers, and ML systems practitioners, ForestColl offers a robust paradigm shift in how cluster networks are utilized. Historically, achieving peak network performance required painstaking manual schedule tuning tailored to specific hardware SKU layouts—a brittle process that breaks down when hardware configurations change or multi-vendor networks are deployed.
By providing a polynomial-time schedule generator with formal optimality proofs, ForestColl enables automated adaptation to arbitrary cluster topographies. Whether an enterprise deploys dense NVSwitch topologies, fragmented InfiniBand fabrics, or hybrid multi-node clusters, ForestColl can automatically derive high-performance communication plans without manual intervention.
However, practitioners must consider certain deployment realities:
- Runtime Integration: Adopting ForestColl requires integration with flexible runtime communication layers such as MSCCL++, which may require migration away from rigid, closed-source communication primitives in legacy stacks.
- Dynamic Traffic Limitations: While ForestColl optimizes static collective communication schedules for predictable training workloads, highly dynamic inference workloads with irregular batch sizes may require frequent schedule recalculations, though the polynomial-time execution of ForestColl makes this significantly more feasible than prior MIP-based approaches.
Key Takeaways
- Universal Topology Support: ForestColl is the first schedule generation framework capable of operating efficiently across both switch-free direct-connect networks and complex centralized switch topologies (e.g., NVSwitch and InfiniBand).
- Provable Mathematical Optimality: Utilizing an advanced bottleneck-cut search algorithm, ForestColl generates communication schedules guaranteed to achieve the theoretical maximum network throughput.
- Polynomial-Time Scalability: By avoiding intractable NP-hard Mixed Integer Programming and SMT formulations, ForestColl computes schedules rapidly, scaling effortlessly to large clusters with hundreds of GPUs.
- Significant Throughput Gains: Benchmarked at 128 H100 GPU scale, ForestColl delivers up to 32% higher all-gather throughput and 25% higher all-reduce throughput compared to standard NCCL.
- End-to-End Training Acceleration: Integrating ForestColl as the communication backend in PyTorch FSDP reduces training iteration times by 14% to 20% across prominent large language models like Gemma and Llama.
About the Speaker(s)
The research presented was conducted collaboratively by a multi-institutional team spanning academia and industry research labs. Liangyu Zhao, a researcher from the University of Washington, delivered the presentation. The author roster includes Liangyu Zhao, Zezhou Wang, and Arvind Krishnamurthy from the University of Washington; Saeed Maleki (Independent Researcher); Yuanhong Wang from Tsinghua University; and Ziyue Yang and Hossein Pourreza from Microsoft Research. The team combines deep expertise in distributed systems, networking protocols, and machine learning infrastructure.
Reviews
- Simon Wisk (Open Source Developer & AI Tooling Expert) — MUST SEE ★★★★★
- Jensen Hitch (AI Compute Platform CEO) — MUST SEE ★★★★★
→ Top-rated talks at 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)
All talks from 23rd USENIX Symposium on Networked Systems Design and Implementation (NSDI '26)