[Paper Review] NetReduce: RDMA-Compatible In-Network Reduction for Distributed DNN Training Acceleration
NetReduce is an RDMA-compatible in-network reduction architecture that accelerates distributed DNN training by offloading gradient aggregation to switches while maintaining reliable RoCE v2 connections between end-hosts. It achieves up to 1.7x and 1.5x speedup for CNN-based CV and transformer-based NLP workloads, respectively, via FPGA-based in-network aggregation with message-level credit-based flow control and minimal hardware modification.
We present NetReduce, a novel RDMA-compatible in-network reduction architecture to accelerate distributed DNN training. Compared to existing designs, NetReduce maintains a reliable connection between end-hosts in the Ethernet and does not terminate the connection in the network. The advantage of doing so is that we can fully reuse the designs of congestion control and reliability in RoCE. In the meanwhile, we do not need to implement a high-cost network protocol processing stack in the switch, as IB does. The prototype implemented by using FPGA is an out-of-box solution without modifying commodity devices such as NICs or switches. For the coordination between the end-host and the switch, NetReduce customizes the transport protocol only on the first packet in a data message to comply with RoCE v2. The special status monitoring module is designed to reuse the reliability mechanism of RoCE v2 for dealing with packet loss. A message-level credit-based flow control algorithm is also proposed to fully utilize bandwidth and avoid buffer overflow. We study the effects of intra bandwidth on the training performance in multi-machines multi-GPUs scenario and give sufficient conditions for hierarchical NetReduce to outperform other algorithms. We also extend the design from rack-level aggregation to more general spine-leaf topology in the data center. NetReduce accelerates the training up to 1.7x and 1.5x for CNN-based CV and transformer-based NLP tasks, respectively. Simulations on large-scale systems indicate the superior scalability of NetReduce to the state-of-the-art ring all-reduce.
Motivation & Objective
- To address the communication bottleneck in distributed DNN training by enabling efficient in-network aggregation without modifying commodity hardware.
- To maintain reliable end-to-end connections using RoCE v2, avoiding the need for high-cost protocol stacks in switches as required by InfiniBand.
- To improve scalability and throughput in large-scale multi-machine, multi-GPU training by minimizing end-to-end latency and buffer overflow risks.
- To design a practical, out-of-box solution using FPGA that fully reuses existing RoCE v2 congestion control and reliability mechanisms.
- To evaluate the performance and scalability of hierarchical NetReduce in spine-leaf data center topologies under varying bandwidth and tensor sizes.
Proposed method
- NetReduce maintains end-to-end RoCE v2 connections by not terminating the transport layer in the switch, enabling reuse of existing congestion control and reliability mechanisms.
- It customizes only the first packet of each message with a special transport protocol header to comply with RoCE v2, minimizing protocol modification.
- A dedicated status monitoring module reuses RoCE v2’s reliability mechanisms to detect and recover from packet loss without adding complex network stack logic.
- A message-level credit-based flow control algorithm is introduced to prevent buffer overflow and maximize link utilization across high-bandwidth networks.
- The design supports hierarchical aggregation by dividing large rings into smaller intra-machine rings, reducing end-to-end latency and improving scalability.
- The prototype is implemented on FPGA, enabling in-network reduction without modifying commodity NICs or switches, ensuring compatibility and deployment ease.
Experimental results
Research questions
- RQ1Can in-network aggregation be efficiently integrated into existing Ethernet networks using RDMA-compatible protocols like RoCE v2 without requiring specialized hardware or protocol stack changes in switches?
- RQ2How does hierarchical in-network reduction compare to flat ring all-reduce in terms of scalability and performance under varying tensor sizes and GPU counts?
- RQ3What are the sufficient conditions under which hierarchical NetReduce outperforms flat ring all-reduce in large-scale multi-machine, multi-GPU training environments?
- RQ4To what extent does using FPGA-based in-network aggregation improve end-to-end throughput compared to existing solutions like SwitchML or SHARP?
- RQ5Does NetReduce maintain training convergence and model accuracy when using fixed-point arithmetic for gradient aggregation?
Key findings
- NetReduce achieves up to 1.7x speedup for CNN-based computer vision tasks and 1.5x speedup for transformer-based NLP tasks compared to baseline all-reduce methods.
- The system maintains training convergence even when using fixed-point arithmetic for in-network reduction, indicating no significant impact on model accuracy.
- Hierarchical NetReduce outperforms flat ring all-reduce when the intra-machine bandwidth is sufficiently high, with a threshold ratio of B_intra/B_inter ≥ 2.3 for optimal performance.
- In simulations, NetReduce’s communication cost is independent of the number of GPUs (P), while flat ring all-reduce latency increases linearly with P due to the 2(P-1) transmission factor.
- With B_intra = 150 GB/s (NVLink) and B_inter = 12.5 GB/s (100GbE), NetReduce achieves a B_intra/B_inter ratio of 12, well above the 2.3 threshold, enabling consistent performance gains across tensor sizes.
- The system demonstrates superior scalability in large-scale simulations, particularly under high-latency or high-GPU scenarios, due to reduced end-to-end latency and stable flow control.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.