Enabling Compute-Communication Overlap in Distributed Deep Learning Training Platforms

Saeed Rashidi, Matthew Denton, Srinivas Sridharan, Sudarshan Srinivasan, Amoghavarsha Suresh, Jade Nie, Tushar Krishna

TL;DR

Distributed deep learning training is currently hampered by a "resource tug-of-war" where NPUs (GPUs/TPUs) must split their compute and memory bandwidth between training math and network communication. This paper introduces the Accelerator Collectives Engine (ACE), a dedicated hardware block at the network endpoint that offloads communication tasks, freeing the NPU to focus on computation and achieving up to a 1.5x speedup in training iteration time.

What Problem Does This Paper Address?

As Deep Learning (DL) models grow, we rely on distributed training across hundreds of accelerators. These accelerators are connected by incredibly fast fabrics (like NVLink or Google’s ICI) providing hundreds of GB/s of bandwidth. However, actually driving that bandwidth is harder than it looks.

The authors identify a "pernicious balance": in current systems, the same hardware resources (compute cores and memory bandwidth) are used for both the DL math (like matrix multiplications) and the communication protocols (like All-Reduce). When you try to overlap these to save time, they contend for the same "pipes." Real-world measurements on an NVIDIA DGX-2 showed that overlapping communication with heavy computation can slow down the communication by up to 6.2x. Essentially, the NPU is too busy doing math to keep the network saturated, leaving expensive network bandwidth underutilized.

Methods

The authors propose ACE (Accelerator Collectives Engine), a novel hardware architectural extension.

  • Endpoint Offload: Unlike prior work that put "smart" logic in network switches, ACE sits at the accelerator endpoint, right next to the Accelerator Fabric Interface (AFI). This makes it compatible with various topologies like Torus or Hypercube meshes.
  • Dedicated Resources: ACE contains its own compute units for reduction operations (like summing gradients) and its own SRAM scratchpad to cache data.
  • Data Granularity: It manages data in "chunks" and "packets," allowing for a highly pipelined execution that hides latency.
  • Evaluation: The team used ASTRA-SIM, a distributed training simulator, to model large-scale systems. They also synthesized the ACE logic in a 28nm process to prove it has a negligible hardware footprint (less than 2% area/power overhead compared to a high-end accelerator).

Datasets

The researchers evaluated ACE using three representative, production-class workloads:

  1. ResNet-50: A standard vision model (heavy on All-Reduce communication).
  2. GNMT: A neural machine translation model (NLP).
  3. DLRM: Facebook’s Deep Learning Recommendation Model (heavy on All-to-All communication).

These were tested across various system scales, from 16 to 128 NPUs, using a 3D Torus topology.

Key Insights and Ideas

  • The Memory Bandwidth "Aha": The most striking insight is that ACE reduces the required memory bandwidth to drive the network by 3.5x. In a baseline system, data for a collective operation might be read from and written to main memory multiple times. ACE’s internal SRAM allows it to "absorb" these intermediate steps, keeping the traffic off the NPU’s main memory bus.
  • Endpoint vs. Switch: While switch-based offloading is popular, the authors argue it’s too rigid. Endpoint offloading (ACE) is topology-agnostic and can handle complex point-to-point patterns that switches cannot.
  • Contention is the Real Bottleneck: The paper proves that simply having a faster network isn't enough. If the NPU can't spare the cycles to "feed" the network, the bandwidth is wasted. ACE solves this by decoupling the "feeder" from the "eater."

Key Results

  • Network Utilization: ACE increased effective network bandwidth utilization by an average of 1.44x (and up to 2.67x in some cases).
  • Training Speedup: Compared to the best-optimized baseline, ACE achieved significant speedups in total iteration time:
  • ResNet-50: 1.41x average (up to 1.51x).
  • GNMT: 1.12x average (up to 1.17x).
  • DLRM: 1.13x average (up to 1.19x).
  • Efficiency: ACE achieved 94.3% of "Ideal" performance (a theoretical system with zero communication overhead), whereas baseline systems struggled to reach 40%.

Limitations and Future Work

  • Synchronous Focus: The study assumes synchronous SGD (Stochastic Gradient Descent). While this is the industry standard for accuracy, the impact of ACE on asynchronous training wasn't explored.
  • Fixed Logic vs. Programmability: While ACE uses FSMs (Finite State Machines) for efficiency, there is a trade-off between hard-coded performance and the flexibility to handle future, yet-to-be-invented collective algorithms.
  • Future Directions: The authors suggest that ACE’s memory-saving capabilities could enable even deeper workload-specific optimizations, such as overlapping the embedding lookups in recommendation models with the previous iteration's computation.

Summary updated

BibTeX
@inproceedings{rashidi2021enabling,
  author = {Saeed Rashidi and Matthew Denton and Srinivas Sridharan and Sudarshan Srinivasan and Amoghavarsha Suresh and Jade Nie and Tushar Krishna},
  title = {{Enabling Compute-Communication Overlap in Distributed Deep Learning Training Platforms}},
  booktitle = {ISCA},
  year = {2021},
  url = {https://openreview.net/forum?id=qWmozQfi3e},
}
Figure