Scalable Deep Learning on Distributed Infrastructures: Challenges, Techniques, and Tools

Ruben Mayer, Hans-Arno JacobsenACM Computing Surveys 2019 · DOI

TL;DR

This paper provides a comprehensive survey of scalable deep learning (DL) on distributed infrastructures, detailing the challenges, techniques, and tools involved. It aims to bridge the gap between DL research and systems engineering by analyzing current open-source frameworks and identifying future research trends for building efficient and robust DL systems.

What Problem Does This Paper Address?

Deep Learning (DL) has achieved remarkable success across various domains, largely driven by increasingly complex models and massive datasets. However, training these models efficiently on distributed infrastructures presents significant challenges. These include effectively utilizing highly parallel hardware (like GPUs), managing vast amounts of data, parallelizing training processes, and orchestrating resources across multiple nodes. This survey addresses the need for a consolidated understanding of the techniques, tools, and existing frameworks that enable scalable DL, bridging the gap between DL advancements and the underlying systems engineering required to deploy them effectively.

Methods

The paper systematically reviews and categorizes existing research and tools for scalable DL. It breaks down the problem into several key areas:

  • Infrastructure: Discusses hardware innovations (GPUs, FPGAs, TPUs) and data-center scale infrastructure.
  • Parallelization Techniques: Explores data parallelism, model parallelism, pipeline parallelism, and hybrid approaches.
  • Synchronization Strategies: Analyzes synchronous, bounded asynchronous, and asynchronous training methods, along with their system architectures (centralized vs. decentralized).
  • Communication Optimization: Covers techniques like reducing model precision, compressing model updates (quantization and sparsification), and communication scheduling.
  • Scheduling and Elasticity: Addresses single-tenant and multi-tenant scheduling, as well as hyper-parameter search optimization.
  • Data Management: Examines challenges in handling large training datasets and managing trained models.

The authors also provide a comparative analysis of 11 popular open-source DL frameworks based on their APIs, support for distribution and parallelization, and community activity.

Datasets

Not explicitly discussed in the paper as the focus is on systems and techniques rather than specific model training on particular datasets. The paper refers to the general need for "vast amounts of training data" and mentions datasets like ImageNet in passing as examples of large labeled datasets.

Key Insights and Ideas

  • The Three Dimensions of Scale: DL success is driven by scaling models, data, and infrastructure. Increasing any of these requires corresponding advancements in the others.
  • Heterogeneity is Key: Real-world DL infrastructures are highly heterogeneous, combining CPUs, GPUs, and custom hardware. Tools and frameworks need to accommodate this diversity.
  • Trade-offs in Parallelism: Each parallelization strategy (data, model, pipeline) comes with its own set of challenges and benefits, particularly concerning communication overhead, memory footprint, and synchronization complexity. Hybrid approaches are often necessary for complex models.
  • Synchronization is a Bottleneck: Parameter synchronization in data-parallel training is a major challenge, with trade-offs between strict synchronization (prone to straggler problems) and asynchronous methods (potential for stale parameters and convergence issues).
  • Communication Efficiency is Crucial: As models and data grow, communication between nodes becomes a significant bottleneck. Techniques like gradient quantization and sparsification are vital for reducing bandwidth requirements.
  • Scheduling is Complex: Mapping DL training jobs to distributed resources is non-trivial, especially in multi-tenant environments where fairness and resource utilization are critical.
  • Open Source Drives Innovation: The active development and adoption of open-source DL frameworks demonstrate a strong synergy between research and practical application, accelerating progress in the field.

Key Results

The paper doesn't present empirical results from new experiments but rather synthesizes findings from existing research. Key "results" are the comprehensive categorization and analysis of:

  • Challenges: Identification of core issues in scalable DL (parallelization, synchronization, communication, scheduling, data management).
  • Techniques: A structured overview of methods proposed to address these challenges.
  • Tools: A comparative analysis of 11 open-source DL frameworks, highlighting their support for various scalable DL techniques. For instance, the paper notes that while many frameworks support data parallelism, support for model parallelism and advanced communication optimizations varies significantly.

Limitations and Future Work

Limitations:

  • The paper acknowledges that the performance evaluation of DL frameworks is out of scope, referring to other studies for such comparisons.
  • The rapid evolution of the DL field means that specific techniques and frameworks may quickly become outdated.

Future Work:

  • Data Management: As data volumes and model counts proliferate, managing training and model data will become an even larger challenge, requiring better tool support.
  • Decentralized Training: Advancements in decentralized training (e.g., federated learning) will necessitate DL tools that can handle increasing heterogeneity and exploit it for optimization.
  • DL Serving: While research has focused on training, DL serving (inference) has different requirements and needs dedicated solutions.
  • Privacy: The growing demand for data and the increasing awareness of privacy issues create an interesting trade-off that needs further exploration.
  • Multi-tenant Scheduling: Developing more sophisticated schedulers that account for the dynamic nature of DL training progress is crucial for efficient resource sharing.

Summary updated

BibTeX
@article{mayer2019scalable,
  author = {Ruben Mayer and Hans-Arno Jacobsen},
  title = {{Scalable Deep Learning on Distributed Infrastructures: Challenges, Techniques, and Tools}},
  journal = {ACM Computing Surveys},
  year = {2019},
  doi = {10.1145/3363554},
}
Figure