[Paper Review] Integrated Model and Data Parallelism in Training Neural Networks.
This paper proposes an integrated model and data parallelism framework for training deep neural networks using a $P_r \times P_c$ process grid, combining both parallelism types to minimize communication costs. It demonstrates that hybrid parallelism outperforms pure model or data parallelism by enabling higher-throughput matrix multiplication through fatter matrices.
We propose a new integrated method of exploiting both model and data parallelism for the training of deep neural networks (DNNs) on large distributed-memory computers using mini-batch stochastic gradient descent (SGD). Our goal is to find an efficient parallelization strategy for a fixed batch size using $P$ processes. Our method is inspired by the communication-avoiding algorithms in numerical linear algebra. We see $P$ processes as logically divided into a $P_r imes P_c$ grid where the $P_r$ dimension is implicitly responsible for model parallelism and the $P_c$ dimension is implicitly responsible for data parallelism. In practice, the integrated matrix-based parallel algorithm encapsulates both types of parallelism automatically. We analyze the communication complexity and analytically demonstrate that the lowest communication costs are often achieved neither with pure model parallelism nor with pure data parallelism. We also show the positive effect of our approach in the computational performance of SGD based DNN training where the reduced number of processes responsible for data parallelism result in fatter matrices that enable higher-throughput matrix multiplication.
Motivation & Objective
- To develop an efficient parallelization strategy for large-scale DNN training on distributed-memory systems with a fixed mini-batch size.
- To minimize communication overhead in SGD-based training by combining model and data parallelism.
- To analyze communication complexity and identify optimal hybrid parallelism configurations.
- To improve computational performance by enabling higher-throughput matrix multiplication through reduced data-parallel process count.
Proposed method
- The method organizes $P$ processes into a logical $P_r \times P_c$ grid, where $P_r$ handles model parallelism and $P_c$ handles data parallelism.
- It employs a matrix-based parallel algorithm that automatically encapsulates both model and data parallelism within the computation.
- The approach is inspired by communication-avoiding algorithms from numerical linear algebra to reduce inter-process communication.
- The method analytically models communication complexity to guide the selection of $P_r$ and $P_c$ for optimal performance.
- It leverages larger, fatter matrices in matrix multiplication by reducing the number of processes used for data parallelism.
Experimental results
Research questions
- RQ1What is the optimal balance between model and data parallelism that minimizes communication costs in DNN training?
- RQ2How does the integration of model and data parallelism affect the throughput of matrix multiplication in SGD-based training?
- RQ3Can a hybrid parallelism strategy outperform pure model or pure data parallelism in terms of communication efficiency?
- RQ4What is the impact of process grid configuration ($P_r \times P_c$) on communication complexity and training performance?
Key findings
- The lowest communication costs are not achieved with pure model or pure data parallelism, but with a hybrid strategy.
- Reducing the number of processes used for data parallelism leads to fatter matrices, which improves throughput in matrix multiplication operations.
- The integrated approach achieves lower communication complexity than either pure model or pure data parallelism.
- The method enables higher computational efficiency by minimizing redundant communication while maintaining scalability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.