Priority-based Parameter Propagation for Distributed DNN Training

Anand Jayarajan, Jinliang Wei, Garth Gibson, Alexandra Fedorova, Gennady Pekhimenko

TL;DR

This paper introduces Priority-based Parameter Propagation (P3), a novel synchronization mechanism for distributed deep learning that significantly boosts training throughput by intelligently overlapping communication with computation. P3 achieves this by breaking down parameter synchronization into finer granularities and prioritizing updates based on their immediate need, leading to substantial speedups, especially under limited network bandwidth.

What Problem Does This Paper Address?

Training large deep neural networks (DNNs) is computationally intensive, and scaling this training across multiple machines using data parallelism is a common solution. However, a major bottleneck in this approach is the parameter synchronization step, where all worker machines must exchange updated model parameters. This communication-heavy process often limits the performance gains, especially in environments with constrained network bandwidth. Existing frameworks typically synchronize parameters at the layer level, which can lead to inefficient network utilization and idle time, particularly when dealing with models that have layers of vastly different sizes. The paper aims to address this by finding ways to better overlap communication with computation and utilize network bandwidth more efficiently.

Methods

The core of the paper is the Priority-based Parameter Propagation (P3) mechanism. P3 introduces two key innovations:

  1. Parameter Slicing: Instead of synchronizing entire layers at once, P3 breaks down the parameters within a layer into smaller "slices." This finer granularity allows for more flexible scheduling and better overlap of communication with computation.
  2. Priority-based Update: P3 assigns a priority to each parameter slice based on when it will be needed in the subsequent training iteration. During synchronization, P3 allocates network resources to the highest priority slices first, even preempting lower-priority ones if necessary. This ensures that the most critical parameters are updated promptly, minimizing delays.

P3 is implemented by modifying the parameter server module (KVStore) in the MXNet framework, creating P3Worker and P3Server components. The system uses a producer-consumer model with priority queues to manage the transmission and processing of parameter slices.

Datasets

The paper evaluates P3 on the following datasets:

  • ImageNet1K: Used for training and evaluating image classification models like ResNet-50, InceptionV3, and VGG-19. The dataset needs to be prepared manually by downloading from the official source and converting to RecordIO format.
  • IWSLT15: Used for training the machine translation model Sockeye. This dataset is included within the artifact.

The paper does not introduce new benchmarks but uses standard models and datasets common in deep learning research.

Key Insights and Ideas

  • Granularity Matters: The optimal granularity for parameter synchronization is not necessarily the same as the layer-level granularity used by DNN models. Finer-grained synchronization (parameter slicing) can significantly improve network utilization.
  • Priority is Key: Not all parameters are equally urgent. Prioritizing synchronization based on when parameters are consumed in the next training iteration can lead to more efficient communication scheduling.
  • Overlap is Crucial: Effectively overlapping communication (parameter synchronization) with computation (forward and backward propagation) is essential for maximizing training throughput, especially under bandwidth constraints.
  • Domain Knowledge is Powerful: Leveraging the specific characteristics of DNN training (e.g., the order of gradient generation and consumption) allows for more intelligent synchronization strategies than generic approaches.

Key Results

P3 demonstrated significant improvements in training throughput across various models and network conditions:

  • ResNet-50: Up to 25% throughput improvement.
  • Sockeye: Up to 38% throughput improvement.
  • VGG-19: Up to 66% throughput improvement.

These improvements were particularly pronounced under limited network bandwidth conditions (e.g., 4Gbps), where P3 maintained linear throughput scaling longer than the baseline. P3 also showed better network utilization, reducing idle time and more effectively using bidirectional bandwidth. In terms of training accuracy, P3 achieved comparable or better results than compression-based methods like Deep Gradient Compression (DGC), without introducing any information loss.

Limitations and Future Work

  • Hardware Requirements: P3 requires multiple machines with GPUs and high-bandwidth interconnects (at least 10Gbps recommended) for effective operation.
  • Dataset Preparation: For ImageNet1K, manual preparation and conversion to RecordIO format are necessary.
  • Parameter Slice Size Optimization: While the paper identifies an optimal parameter slice size (around 50,000 parameters) through empirical evaluation, this might require tuning for different models or hardware configurations.

The authors suggest that P3's design principles are general enough to be applied to other gradient aggregation methods beyond the parameter server architecture. They also highlight that P3 can be used orthogonally with compression techniques to further enhance performance. Future work could explore more sophisticated priority assignment strategies or investigate P3's effectiveness on even larger-scale distributed systems.

Summary updated

BibTeX
@inproceedings{jayarajan2019priority,
  author = {Anand Jayarajan and Jinliang Wei and Garth Gibson and Alexandra Fedorova and Gennady Pekhimenko},
  title = {{Priority-based Parameter Propagation for Distributed DNN Training}},
  booktitle = {MLSys},
  year = {2019},
  url = {https://openreview.net/forum?id=pXnG6zGWA9m},
}
Figure