NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

TACOS: Topology-Aware Collective Algorithm Synthesizer for Distributed Training

William Won, Midhilesh Elavazhagan, Sudarshan Srinivasan, Ajaya Durg, Swati Gupta, Tushar KrishnaarXiv 2023 · OpenReview

Abstract

Collective communications are an indispensable part of distributed training. Running a topology-aware collective algorithm is crucial for optimizing communication performance by minimizing congestion. Today such algorithms only exist for a small set of simple topologies, limiting the topologies employed in training clusters and handling irregular topologies due to network failures. In this paper, we propose TACOS, an automated topology-aware collective synthesizer for arbitrary input network topologies. TACOS synthesized 3.73x faster All-Reduce algorithm over baselines, and synthesized collective algorithms for 512-NPU system in just 6.1 minutes.

Introduction

In distributed machine learning, "collectives" (like All-Reduce or All-Gather) are the communication backbone that allows thousands of NPUs (Neural Processing Units) to synchronize their data. Traditionally, libraries like NVIDIA’s NCCL rely on a handful of human-designed, "one-size-fits-all" algorithms, such as Rings or Trees. However, modern AI supercomputers use increasingly complex, asymmetric, and heterogeneous network topologies. On these systems, standard algorithms often lead to network congestion or leave expensive links idle. While researchers have tried to use mathematical optimization to synthesize better algorithms, these approaches fail to scale beyond a few dozen nodes.

TACOS (Topology-Aware Collective Algorithm Synthesizer) is an autonomous framework that automatically generates high-performance communication algorithms tailored to any specific AI cluster topology. By framing collective communication as a "link-chunk matching" problem on a Time-Expanded Network, TACOS achieves near-optimal performance while scaling to clusters with up to 40,000 nodes—orders of magnitude larger than previous state-of-the-art synthesizers.

Methods

The core innovation of TACOS lies in how it represents and searches the communication space:

  • Time-Expanded Network (TEN): Instead of looking at a static map of the network, TACOS "unrolls" the topology over time. This creates a multi-layered graph where each layer represents a discrete time step, allowing the synthesizer to track exactly where every piece of data (a "chunk") is at any given moment.
  • Link-Chunk Matching: Rather than trying to solve for the entire communication schedule at once, TACOS uses an iterative, greedy matching algorithm. At each time step, it identifies which NPUs still need specific data chunks and attempts to maximize the number of successful transfers using available links.
TACOS Framework Overview
  • Congestion-Awareness by Construction: Because the TEN model only allows one chunk to occupy a specific link at a specific time step, the resulting algorithm is guaranteed to be free of network contention.
  • Handling Reductions: To handle operations like All-Reduce, TACOS synthesizes a non-reduction counterpart (like All-Gather) on an inverted graph and then reverses the logic to produce the final algorithm.

Key Results

The authors evaluated TACOS using the ASTRA-sim distributed ML simulator across a wide array of topologies including Rings, FullyConnected, 2D Mesh, and Hypercube.

Performance Comparison across Topologies and Sizes
  • Performance Gain: TACOS-synthesized algorithms achieved up to a 4.27× performance improvement over standard baselines on heterogeneous topologies. On complex networks like DragonFly, it reached 90.8% of the theoretical "ideal" bandwidth.
  • Synthesis Speed and Scalability: TACOS synthesized an All-Reduce algorithm for a 128-NPU system in just 1.08 seconds. More impressively, it successfully synthesized algorithms for a 40,000 NPU cluster in 2.52 hours, a feat impossible for previous state-of-the-art tools.
  • End-to-End Training: For large-scale models like Turing-NLG, using TACOS-generated algorithms resulted in a 1.21× speedup in total training time compared to optimized human-designed baselines.

Conclusion

TACOS demonstrates that local matching on a Time-Expanded Network can produce near-optimal collective algorithms while maintaining the scalability required for next-generation Exascale AI clusters. While current limitations include switch modeling and static scheduling, the framework provides a robust foundation for automated communication optimization in distributed training.

Summary updated

BibTeX
@misc{won2023tacos,
  author = {William Won and Midhilesh Elavazhagan and Sudarshan Srinivasan and Ajaya Durg and Swati Gupta and Tushar Krishna},
  title = {{TACOS: Topology-Aware Collective Algorithm Synthesizer for Distributed Training}},
  year = {2023},
  eprint = {2304.05301},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2304.05301},
}

Loading related content...

Figure