Skip to main content
QUICK REVIEW

[Paper Review] HyPar: Towards Hybrid Parallelism for Deep Learning Accelerator Array

Linghao Song, Jiachen Mao|arXiv (Cornell University)|Jan 7, 2019
Advanced Neural Network ApplicationsComputer Science106 references11 citations
TL;DR

HyPar proposes a hierarchical dynamic programming approach to optimize layer-wise hybrid parallelism in DNN accelerator arrays, minimizing inter-processor communication during training. It achieves 3.39× higher performance and 1.51× better energy efficiency than default data parallelism across ten DNN models, outperforming both model parallelism and a prior 'one weird trick' heuristic.

ABSTRACT

With the rise of artificial intelligence in recent years, Deep Neural Networks (DNNs) have been widely used in many domains. To achieve high performance and energy efficiency, hardware acceleration (especially inference) of DNNs is intensively studied both in academia and industry. However, we still face two challenges: large DNN models and datasets, which incur frequent off-chip memory accesses; and the training of DNNs, which is not well-explored in recent accelerator designs. To truly provide high throughput and energy efficient acceleration for the training of deep and large models, we inevitably need to use multiple accelerators to explore the coarse-grain parallelism, compared to the fine-grain parallelism inside a layer considered in most of the existing architectures. It poses the key research question to seek the best organization of computation and dataflow among accelerators. In this paper, inspired by recent work in machine learning systems, we propose a solution HyPar to determine layer-wise parallelism for deep neural network training with an array of DNN accelerators. HyPar partitions the feature map tensors (input and output), the kernel tensors, the gradient tensors, and the error tensors for the DNN accelerators. A partition constitutes the choice of parallelism for weighted layers. The optimization target is to search a partition that minimizes the total communication during training a complete DNN. To solve this problem, we propose a communication model to explain the source and amount of communications. Then, we use a hierarchical layer-wise dynamic programming method to search for the partition for each layer.

Motivation & Objective

  • To address the performance and energy bottlenecks caused by frequent off-chip memory accesses in large DNN training.
  • To explore coarse-grain parallelism across multiple accelerators, moving beyond fine-grain parallelism within individual layers.
  • To determine the optimal layer-wise partitioning of feature maps, kernels, gradients, and errors across accelerators to minimize total communication.
  • To design a topology-independent, scalable solution for hybrid parallelism that outperforms default data or model parallelism.
  • To evaluate the method across diverse DNN architectures, from LeNet to VGG, under realistic training workloads.

Proposed method

  • HyPar formulates the parallelism configuration problem as minimizing total inter-processor communication during DNN training.
  • It introduces a communication model that quantifies data movement based on tensor sizes and partitioning strategies for feature maps, kernels, gradients, and error tensors.
  • A hierarchical, layer-wise dynamic programming algorithm is used to search for the optimal partitioning configuration with linear time complexity.
  • The method supports both data parallelism (dp) and model parallelism (mp), and their hybrid combinations (e.g., mp-dp, dp-mp) per layer.
  • The approach is topology-agnostic, enabling deployment on various interconnects like H-tree and torus, with evaluation on HMC-based architectures.
  • It uses analytical metrics such as the area of weight update tensors (A(ΔW)) and forward feature tensors (A(F)) to guide partitioning decisions.

Experimental results

Research questions

  • RQ1What is the optimal layer-wise parallelism configuration (data, model, or hybrid) that minimizes total communication in multi-accelerator DNN training?
  • RQ2How does hybrid parallelism compare to default data or model parallelism in terms of performance and energy efficiency?
  • RQ3Can a topology-independent communication model and dynamic programming approach effectively minimize inter-processor data movement across diverse DNN architectures?
  • RQ4How does HyPar's partitioning strategy compare to heuristic approaches like the 'one weird trick' in [107]?
  • RQ5Does the communication model accurately predict the best parallelism choice per layer based on tensor size and dependency patterns?

Key findings

  • HyPar achieves an average performance speedup of 3.39× and energy efficiency gain of 1.51× over default data parallelism across ten DNN models.
  • Hybrid parallelism outperforms both default data parallelism and model parallelism, with the best configuration varying per layer and model.
  • On average, HyPar is 1.62× faster and 1.22× more energy efficient than the heuristic 'one weird trick' from [107], with up to 2.40× speedup in specific cases.
  • The H-tree interconnect topology outperforms torus by 2.23× geometric mean, but HyPar's topology independence ensures robustness across topologies.
  • The communication model correctly identifies that conv5 should use model parallelism (due to A(ΔW) < A(F)), contradicting the heuristic choice in [107].
  • For fully-connected layers like fc3, where A(ΔW) = A(F), inter-layer communication analysis confirms data parallelism is better, yet the trick incorrectly selects model parallelism.

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.