TACOS: Topology-Aware Collective Algorithm Synthesizer for Distributed Machine Learning

William Won, Midhilesh Elavazhagan, Sudarshan Srinivasan, Swati Gupta, Tushar Krishna
4/11/2023
cs.DCcs.LG

No official code found. Best implementation: astra-sim/tacos (37 stars, MIT, last commit 2025-06-13).

Abstract

The surge of artificial intelligence, particularly large language models, has driven the rapid development of large-scale machine learning clusters. Executing distributed models on these clusters is often constrained by communication overhead, making efficient utilization of available network resources crucial. As a result, the routing algorithm employed for collective communications (i.e., collective algorithms) plays a pivotal role in determining overall performance. Unfortunately, existing collective communication libraries for distributed machine learning are limited by a fixed set of basic collective algorithms. This limitation hinders communication optimization, especially in modern clusters with heterogeneous and asymmetric topologies. Furthermore, manually designing collective algorithms for all possible combinations of network topologies and collective patterns requires heavy engineering and validation efforts. To address these challenges, this paper presents TACOS, an autonomous synthesizer capable of automatically generating topology-aware collective algorithms tailored to specific collective patterns and network topologies. TACOS is highly flexible, synthesizing an All-Reduce algorithm for a heterogeneous 128-NPU system in just 1.08 seconds, while achieving up to a 4.27x performance improvement over state-of-the-art synthesizers. Additionally, TACOS demonstrates better scalability with polynomial synthesis times, in contrast to NP-hard approaches which only scale to systems with tens of NPUs. TACOS can synthesize for 40K NPUs in just 2.52 hours.

View on arXivView PDF

Code Implementations(1)

astra-sim/tacosCommunity100%
MIT

TACOS: [T]opology-[A]ware [Co]llective Algorithm [S]ynthesizer for Distributed Machine Learning

379C++, CMakeJul 18, 20241 years agoMIT

Similar Papers

Cite this paper

@article{won2023tacos,
  title  = {TACOS: Topology-Aware Collective Algorithm Synthesizer for Distributed Machine Learning},
  author = {William Won and Midhilesh Elavazhagan and Sudarshan Srinivasan and Swati Gupta and Tushar Krishna},
  year   = {2023},
  eprint = {2304.05301},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2304.05301v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2304.05301.svg)](https://codeofpaper.com/paper/2304.05301)

Discussion