Mirror, Mirror on the Wall, What is the Best Topology of Them All?

Mirror, Mirror on the Wall, What is the Best Topology of Them All?AI is one of the most important emerging technologies of the 21 st century, and designing suitable infrastructure for large-scale AI systems is critical.Major companies such as Microsoft, Google, Meta, and even Tesla are touting large-scale "AI supercomputers" as an essential tool for increasingly powerful AI systems, but as AI systems have a more specialized workload than traditional supercomputers, designing and implementing their architecture is a complex process.The complexity is because AI systems are specialized for AI and machine learning (ML) workloads, leveraging parallelism and specialized hardware accelerators to excel in processing and analyzing large datasets to make predictions, classify objects, and understand natural language.Traditional supercomputers, on the other hand, are general-purpose machines used for a broader range of scientific and computational tasks.The authors of the accompanying paper leverage the unique demands of specialized AI workloads to craft a network structure tailored for large-scale deep learning, which is a pivotal facet of AI.The authors describe AI workloads by considering three dimensions of parallelism: data parallelism, pipeline parallelism, and operator parallelism.Data parallelism is used in AI workloads when training ML models.Pipeline parallelism can be observed in AI workloads in the execution of complex neural network models.In AI workloads, operator parallelism can be seen in the parallel execution of mathematical operations that make up neural network layers.The paper argues that, although each dimension is different, it can be implemented with nearest-neighbor communication, but today's high-performance computing (HPC) networks often overprovision global bandwidth and underprovision local bandwidth for AI workloads.This insight motivates the authors to use toroidal networks that HPC has been using traditionally but abandoned in favor of more flexible low-diameter topologies based on switching technologies.Torus network topologies extend the torus concept into multiple dimensions.These networks offer efficient connectivity between processing nodes.Google's early Tensor Processing Units (TPUs) also employed two and three-dimensional torus networks for interconnection.This architecture facilitates efficient communication between TPUs in datacenters, which is crucial for ML workloads.While torus networks offer advantages like low latency and determinism, low-diameter torus topologies can suffer from limited global bandwidth.Scheduling and managing traffic on torus networks can be inflexible, leading to performance bottlenecks.More flexible switch technologies, such as the Dragonfly network, have gained popularity in HPC to address the limitations of low-diameter torus networks.Switched topologies generally use switches to route data efficiently between networked devices.Switched networks use switches as

Authors

Institutions

Publication Details

Journal
Communications of the ACM
Published
2024-11-21
DOI
https://doi.org/10.1145/3656181
Primary Topic
Artistic and Creative Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Mirror, Mirror on the Wall, What is the Best Topology of Them All?

Michela Taufer
Communications of the ACM
Artistic and Creative Research
article

Mirror, Mirror on the Wall, What is the Best Topology of Them All?

Michela Taufer
article en

Abstract

Mirror, Mirror on the Wall, What is the Best Topology of Them All?AI is one of the most important emerging technologies of the 21 st century, and designing suitable infrastructure for large-scale AI systems is critical.Major companies such as Microsoft, Google, Meta, and even Tesla are touting large-scale "AI supercomputers" as an essential tool for increasingly powerful AI systems, but as AI systems have a more specialized workload than traditional supercomputers, designing and implementing their architecture is a complex process.The complexity is because AI systems are specialized for AI and machine learning (ML) workloads, leveraging parallelism and specialized hardware accelerators to excel in processing and analyzing large datasets to make predictions, classify objects, and understand natural language.Traditional supercomputers, on the other hand, are general-purpose machines used for a broader range of scientific and computational tasks.The authors of the accompanying paper leverage the unique demands of specialized AI workloads to craft a network structure tailored for large-scale deep learning, which is a pivotal facet of AI.The authors describe AI workloads by considering three dimensions of parallelism: data parallelism, pipeline parallelism, and operator parallelism.Data parallelism is used in AI workloads when training ML models.Pipeline parallelism can be observed in AI workloads in the execution of complex neural network models.In AI workloads, operator parallelism can be seen in the parallel execution of mathematical operations that make up neural network layers.The paper argues that, although each dimension is different, it can be implemented with nearest-neighbor communication, but today's high-performance computing (HPC) networks often overprovision global bandwidth and underprovision local bandwidth for AI workloads.This insight motivates the authors to use toroidal networks that HPC has been using traditionally but abandoned in favor of more flexible low-diameter topologies based on switching technologies.Torus network topologies extend the torus concept into multiple dimensions.These networks offer efficient connectivity between processing nodes.Google's early Tensor Processing Units (TPUs) also employed two and three-dimensional torus networks for interconnection.This architecture facilitates efficient communication between TPUs in datacenters, which is crucial for ML workloads.While torus networks offer advantages like low latency and determinism, low-diameter torus topologies can suffer from limited global bandwidth.Scheduling and managing traffic on torus networks can be inflexible, leading to performance bottlenecks.More flexible switch technologies, such as the Dragonfly network, have gained popularity in HPC to address the limitations of low-diameter torus networks.Switched topologies generally use switches to route data efficiently between networked devices.Switched networks use switches as

Communications of the ACMVol. 67(12)
University of Tennessee at Knoxville (US)
Openalex Percentile: Top 69%
Artistic and Creative Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.