Skip to main content
QUICK REVIEW

[Paper Review] Unifying Data, Model and Hybrid Parallelism in Deep Learning via Tensor Tiling

Minjie Wang, Chien-Chin Huang|arXiv (Cornell University)|May 10, 2018
Parallel Computing and Optimization TechniquesComputer Science52 references14 citations
TL;DR

This paper proposes SoyBean, a system that unifies data, model, and hybrid parallelism in deep learning through optimal tensor tiling to minimize communication overhead. By modeling parallelization as a tensor tiling problem and using dynamic programming on structured DNN dataflow graphs, SoyBean achieves 1.5×–4× speedup over pure data parallelism on AlexNet and VGG across 8-GPU setups.

ABSTRACT

Deep learning systems have become vital tools across many fields, but the increasing model sizes mean that training must be accelerated to maintain such systems' utility. Current systems like Tensorflow and MXNet focus on one specific parallelization strategy, data parallelism, which requires large training batch sizes in order to scale. We cast the problem of finding the best parallelization strategy as the problem of finding the best tiling to partition tensors with the least overall communication. We propose an algorithm that can find the optimal tiling. Our resulting parallelization solution is a hybrid of data parallelism and model parallelism. We build the SoyBean system that performs automatic parallelization. SoyBean automatically transforms a serial dataflow graph captured by an existing deep learning system frontend into a parallel dataflow graph based on the optimal tiling it has found. Our evaluations show that SoyBean is 1.5x-4x faster than pure data parallelism for AlexNet and VGG. We present this automatic tiling in a new system, SoyBean, that can act as a backend for Tensorflow, MXNet, and others.

Motivation & Objective

  • Address the scalability bottleneck in deep learning training caused by communication overhead in distributed systems.
  • Overcome the limitations of existing systems that rely solely on data parallelism, which requires large batch sizes and degrades model accuracy.
  • Unify data, model, and hybrid parallelism under a single framework based on tensor tiling to enable optimal communication-minimizing partitioning strategies.
  • Develop an automatic, backend-agnostic system that can be integrated with existing deep learning frameworks like TensorFlow and MXNet.
  • Provide an optimal, scalable solution for parallelizing DNNs by formulating the problem as a tiling optimization on dataflow graphs.

Proposed method

  • Model deep learning computation as a dataflow graph where tensors are partitioned via tiling along different dimensions to enable parallelism.
  • Formulate the parallelization problem as minimizing total communication cost by selecting optimal tiling strategies for each tensor in the graph.
  • Leverage the hierarchical, layered structure of DNNs to reorganize the dataflow graph into a chain of levels for efficient dynamic programming.
  • Apply recursive dynamic programming to compute the optimal tiling configuration for each tensor, considering size, shape, and model configuration.
  • Construct a weighted communication cost graph to represent inter-device data movement and use it to guide tiling decisions.
  • Implement SoyBean as a C++ backend plugin for MXNet, enabling automatic transformation of serial dataflow graphs into optimized parallel graphs.

Experimental results

Research questions

  • RQ1Can a unified framework unify data, model, and hybrid parallelism in deep learning through a common tiling abstraction?
  • RQ2Is it possible to find an optimal tiling strategy that minimizes communication cost across all tensors in a DNN computation?
  • RQ3How does the performance of the optimal tiling strategy compare to pure data or model parallelism across different DNN architectures?
  • RQ4Can dynamic programming be effectively applied to structured DNN dataflow graphs to find near-optimal or exact solutions to the tiling problem?
  • RQ5To what extent can an automatic tiling system be integrated into existing deep learning frameworks without requiring frontend changes?

Key findings

  • SoyBean achieves 1.5× to 4× speedup over pure data parallelism on AlexNet and VGG when training on an 8-GPU system.
  • The optimal tiling strategy found by SoyBean combines data and model parallelism effectively, outperforming single-strategy approaches.
  • The system reduces communication overhead by intelligently partitioning tensors along dimensions that minimize inter-device data movement.
  • The dynamic programming approach successfully computes optimal tiling configurations for DNNs with layered architectures, despite the NP-completeness of the general tiling problem.
  • SoyBean’s backend design enables seamless integration with existing deep learning frameworks such as MXNet and TensorFlow, enabling automatic parallelization without modifying user code.
  • The performance gains are most significant for larger models like VGG, where communication costs dominate, demonstrating the method’s scalability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.