PowerAI DDL

Minsik Cho, Ulrich Finkler, Sameer Kumar, David S. Kung, Vaibhav Saxena, Dheeraj SreedhararXiv 2017 · arXiv

Introduction

Training state-of-the-art deep neural networks is a computationally intensive process that often spans days or weeks on a single machine. While Distributed Deep Learning (DDL) offers a path to accelerate this by spreading workloads across multiple GPUs, it frequently encounters a "physical wall" in the form of communication overhead. As the number of learners increases, the time spent on computation decreases, but the time required to synchronize millions of gradients across the network remains constant or grows, leading to diminishing returns.

IBM researchers have addressed this bottleneck with PowerAI DDL, a communication library designed to enable deep learning models to scale near-linearly across hundreds of GPUs. By co-optimizing hardware interconnects and software algorithms, PowerAI DDL significantly reduces training times for massive datasets.

Methodology: Topology-Aware Multi-Dimensional Rings

The core innovation of PowerAI DDL is its multi-dimensional ring communication algorithm. Traditional "parameter server" or "tree" patterns often leave network links idle or create performance bottlenecks. In contrast, a ring topology ensures that all available links are utilized concurrently.

Figure 1: Hardware topology awareness in PowerAI DDL, prioritizing high-bandwidth local connections.

PowerAI DDL is uniquely "topology-aware." It organizes GPUs into a multi-dimensional logical box (e.g., $d_1 \times d_2 \times d_3$). This structure allows the system to prioritize high-bandwidth connections, such as NVIDIA’s NVLink, for local communication within a server, while reserving slower connections like Infiniband for communication between racks. This minimizes the number of "hops" data must take across slower network segments, effectively mitigating latency at scale.

To ensure accessibility, the library is integrated into popular frameworks like TensorFlow, Caffe, and Torch via standard APIs such as ReduceScatter and AllGather. The primary experimental hardware stack consisted of a cluster of 64 IBM Power8 S822LC servers, totaling 256 NVIDIA Tesla P100 GPUs.

Experimental Evaluation

The system was evaluated using two primary benchmarks:

  1. ImageNet 1K: The standard industry benchmark with 1,000 image classes.
  2. ImageNet 22K: A massive dataset featuring ~7.5 million images across 22,000 classes, which is rarely used for full training due to the complexity of its final fully-connected layer.

A key finding of the research is that large batch sizes do not necessarily degrade model accuracy. By employing proper learning rate scaling and "warm-up" phases, the authors successfully utilized a batch size of 8,192 without sacrificing precision.

Key Results and Scaling Efficiency

PowerAI DDL demonstrated exceptional performance gains, particularly in its ability to maintain high efficiency as hardware resources were scaled up.

Figure 2: Scaling performance and efficiency of PowerAI DDL, showing 95% efficiency at 256 GPUs.
  • ResNet-50 Speed: Using 256 GPUs, the system completed 90 epochs of ResNet-50 training in just 50 minutes, achieving 75.01% accuracy.
  • ImageNet 22K Record: The team trained ResNet-101 on the 22K dataset in 7 hours, reaching 33.8% accuracy. This surpassed previous records set by Google (DistBelief) and Microsoft (ADAM), which failed to reach the 30% mark on this dataset.
  • Scaling Efficiency: As shown in the performance data, the system maintained a scaling efficiency of 95% when moving from a single node to 64 nodes (256 GPUs) using the Caffe framework. This near-linear scaling indicates that doubling the hardware nearly halves the training time.

Conclusion and Future Work

PowerAI DDL represents a significant step forward in making massive-scale deep learning practical. However, the authors identify several areas for future development. Resilience is a primary concern; in clusters with hundreds of GPUs, hardware failure is inevitable, requiring future iterations to be "elastic" so training can continue uninterrupted. Additionally, while this work focused on Convolutional Neural Networks (CNNs) for vision, extending these co-optimization techniques to Recurrent Neural Networks (RNNs) and improving software-level gradient reduction overlap remain important next steps for the community.

Summary updated

BibTeX
@misc{cho2017powerai,
  author = {Minsik Cho and Ulrich Finkler and Sameer Kumar and David S. Kung and Vaibhav Saxena and Dheeraj Sreedhar},
  title = {{PowerAI DDL}},
  year = {2017},
  eprint = {1708.02188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.02188},
}
Figure