DirectReduce: A Scalable Ring AllReduce Offloading Architecture for Torus Topologies
- 1 July 2025
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Internet of Things Journal
- Vol. 12 (16) , 32951-32964
Abstract
The all-reduce operation is critically important for communication-intensive workloads emerging at the convergence of High-Performance Computing (HPC) and Internet of Things (IoT) applications. However, existing optimization efforts primarily concentrate on offloading the all-reduce onto network switches, known as In-Network Aggregation, which are incompatible with switchless torus topologies. Driven by our systematic analysis, we identified two key factors that impact the performance of the standard ring all-reduce operation: i. The all-reduce computation process frequently interrupts the GPU/CPU’s computation tasks; ii. The GPU/CPU is, in fact, indifferent to intermediate computational results. Based on this insight, we propose DirectReduce, a fully offloading ring all-reduce architecture that is comprised of three components: (i) the GateKeeper module, responsible for evaluating outgoing data to decide its progression-either directing it to the Protocol Engine for packetization or intercepting it for reduction (e.g., sum, maximum); (ii) the DataDirector module, which classifies the incoming data either is for intermediate result reduction or final result storage; and (iii) the ComputeEnhancer module, designed to execute reduction operations directly on the SmartNIC. Extensive simulation results show that DirectReduce can reduce the ring all-reduce latency by up to 1.98X in a ring (1D-torus) topology, 1.97X in a 3D-torus topology, and 1.75X in a 6D-torus topology compared to the standard ring all-reduce.Keywords
Funding Information
- National Natural Science Foundation of China (62072474, 62372472, 62320106006)
- Fundamental Research Funds for the Central Universities of Central South University (1053320211421)
- Key Research and Development Program of Hunan Province of China (2023SK2020)
- Natural Science Foundation of Hunan Province (2024JJ4068)
This publication has 40 references indexed in Scilit:
- Leveraging SmartNIC for Ring AllReduce Offloading2024
- ASTRA-sim2.0: Modeling Hierarchical Networks and Disaggregated Systems for Large-model Training at Scale2023
- Communication Algorithm-Architecture Co-Design for Distributed Deep Learning2021
- EFLOPS: Algorithm and System Co-Design for a High Performance Distributed Training Platform2020
- The Tofu Interconnect D2018
- SALaR: Scalable and Adaptive Designs for Large Message Reduction Collectives2018
- Scalable Hierarchical Aggregation Protocol (SHArP): A Hardware Architecture for Efficient Data Reduction2016
- ConnectX-2 InfiniBand Management Queues: First Investigation of the New Support for Network Offloaded Collective Operations2010
- Two-tree algorithms for full bandwidth broadcast, reduction and scanParallel Computing, 2009
- Optimization of Collective Reduction Operations2004