On Topology's Role in ML Training Performance

Sarah McClure, Tegan Wilson, Brad Karp, Michael Mitzenmacher, Sylvia Ratnasamy, Scott Shenker, Minlan YuarXiv 2026

TL;DR

This paper provides an analytically rigorous comparison between the two dominant network topologies used in large-scale machine learning training: the fat-tree Clos and the torus. By evaluating their performance across core collective communication operations (AllReduce, AllGather, AlltoAll), the authors reveal that while neither topology dominates universally, the Clos topology generally offers superior scaling, better resilience to link failures, and significantly higher job placement flexibility.

What Problem Does This Paper Address?

Distributed machine learning (ML) training at scale requires thousands of compute accelerators (like GPUs or TPUs) to constantly exchange data. The performance of these systems is heavily dictated by the underlying network topology. Currently, the industry is split: GPU-based data centers typically favor the fat-tree Clos topology, while Google's TPUs famously utilize multi-dimensional tori.

Despite their widespread deployment, there has been a lack of systematic, analytical comparison between the two. Network designers face a difficult choice when building scale-out interconnects. This paper addresses this gap by providing a foundational framework to understand how topology choice, network scale, link bandwidth, failures, and job placement strategies interact to dictate ML training performance.

Methods

The authors employ an analytical approach based on the classic alpha-beta (Hockney) model, which parameterizes network performance using per-link latency ($\alpha$), transmission time per bit ($\beta$), and reduction computation time ($\gamma$). This model abstracts away fine-grained transport layer complexities (like queuing and congestion control) to isolate the structural impacts of the topologies.

Using this framework, they derive upper and lower bounds for Collective Completion Time (CCT) for three canonical ML communication primitives:

  • AllReduce (AR): Used primarily in Data Parallelism.
  • AllGather (AG): Used in Tensor Parallelism.
  • AlltoAll (ATA): Used in Mixture-of-Experts (MoE) parallelisms.

They extend these baseline models to analyze performance under single link failures (evaluating both network-level re-routing and schedule-level application adjustments), various job placement strategies, switch multicast capabilities, and hybrid topologies (combining high-bandwidth scale-up intra-rack networks with scale-out networks).

Datasets

As a theoretical and analytical paper, no traditional training datasets were used. Instead, the authors evaluated their models using architectural configurations from two prominent large language model (LLM) case studies:

  1. A 462B parameter dense model configured according to Megatron-LM benchmarking standards.
  2. The DeepSeek-V3 (671B parameter) Mixture-of-Experts model configuration.

Key Insights and Ideas

  • Collective-Dependent Performance: Neither topology is a silver bullet. The torus excels at AllGather operations because its multi-dimensional structure naturally provides higher per-node access bandwidth (multiple links per node) compared to a standard Clos network (typically one link per node). Conversely, the Clos topology dominates in AllReduce and AlltoAll operations because its rich bisection bandwidth allows communication to scale logarithmically rather than being bottlenecked by the physical diameter of the network.
  • The Resilience Dividend of Clos: Clos networks exhibit exceptional natural resilience to link failures. Because of their massive path diversity, a single link failure can be mitigated at the network layer by spreading traffic across alternative shortest paths with negligible impact on CCT. A torus, lacking this redundant path diversity, suffers significant latency and bandwidth penalties when forced to route around a failed link.
  • Placement Rigidity vs. Flexibility: Clos networks are highly forgiving; because the maximum hop distance between any two nodes is small and constant, job placement has virtually no impact on performance. In contrast, the torus is highly rigid. If an optimization strategy favors one parallelism axis (e.g., tiling nodes for better AlltoAll locality), it inevitably degrades the performance of orthogonal parallelisms due to the lack of wraparound links in sub-grids.

Key Results

  • Scaling Trends: As the number of participating nodes ($n$) scales up, the Clos topology asymptotically outperforms the torus in both AllReduce and AlltoAll operations.
Figure 1: Completion times (using default values in Table 1) of each collective on the torus and Clos as the number of nodes participating in the collective, 𝑛, scales.
  • Bandwidth Realities: When factoring in historical and realistic link bandwidth ratios (where torus links often enjoy a temporary bandwidth edge over standard data center Clos links), the Clos topology still delivers better performance at larger scales for AlltoAll and AllReduce. The torus requires roughly 8x more per-link bandwidth than the Clos to achieve comparable AllReduce performance in large LLM workloads.
  • LLM Case Studies: In the Megatron-LM case study, the Clos topology achieved an AllReduce time of 1.12 seconds, significantly outperforming the standard torus placement time of 4.83 seconds. For DeepSeek-V3, the Clos completed the critical AlltoAll operation in 35 ms, compared to 282 ms on a standard torus.

Limitations and Future Work

While highly rigorous, the paper notes several simplifications left for future exploration:

  • The alpha-beta model ignores dynamic network behaviors such as queuing delays, packet pacing, and congestion control protocols.
  • The failure analysis is strictly limited to single link failures, leaving the impact of multiple concurrent link or node failures unexamined.
  • Physical constraints such as power consumption, cooling, and the financial cost of optical vs. copper cabling are acknowledged as vital design factors but are excluded from the primary analytical formulations.

Summary updated

Abstract

Modern machine learning training workloads run on large-scale networks of compute accelerators. The networks commonly deployed in these systems are typically variations of two basic topologies: the fat-tree Clos and the torus. In this paper, we derive analytical results the elucidate how the choice of topology shapes achievable performance for the small set of collective communication operations that underlies modern machine learning workloads. We also consider how these results change when we include additional factors such as network failures and job placement strategies. Overall, we find that one topology does not dominate in all cases, but that the Clos achieves better collective completion time in most cases and provides benefits in resilience and flexibility.
BibTeX
@misc{mcclure2026topology,
  author = {Sarah McClure and Tegan Wilson and Brad Karp and Michael Mitzenmacher and Sylvia Ratnasamy and Scott Shenker and Minlan Yu},
  title = {{On Topology's Role in ML Training Performance}},
  year = {2026},
  eprint = {2608.01707},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.01707},
}
Figure