Skip to main content
QUICK REVIEW

[Paper Review] 2.5-dimensional distributed model training.

Boxiang Wang, Qifan Xu|arXiv (Cornell University)|May 30, 2021
Topic ModelingComputer Science9 references8 citations
TL;DR

This paper proposes SUMMA2.5-LM, a 2.5-dimensional distributed tensor parallelism method for large language models that reduces communication overhead by combining principles from SUMMA and 2.5D matrix multiplication. It achieves 1.45X higher efficiency than 2D [8,8,1] in weak scaling compared to 2.5D [4,4,4] arrangements, improving scaling efficiency on large clusters.

ABSTRACT

Data parallelism does a good job in speeding up the training. However, when it comes to the case when the memory of a single device can not host a whole model, data parallelism would not have the chance to do anything. Another option is to split the model by operator, or horizontally. Megatron-LM introduced a 1-Dimensional distributed method to use GPUs to speed up the training process. Optimus is a 2D solution for distributed tensor parallelism. However, these methods have a high communication overhead and a low scaling efficiency on large-scale computing clusters. To solve this problem, we investigate the 2.5-Dimensional distributed tensor parallelism.Introduced by Solomonik et al., 2.5-Dimensional Matrix Multiplication developed an effective method to perform multiple Cannon's algorithm at the same time to increase the efficiency. With many restrictions of Cannon's Algorithm and a huge amount of shift operation, we need to invent a new method of 2.5-dimensional matrix multiplication to enhance the performance. Absorbing the essence from both SUMMA and 2.5-Dimensional Matrix Multiplication, we introduced SUMMA2.5-LM for language models to overcome the abundance of unnecessary transmission loss result from the increasing size of language model parallelism. Compared to previous 1D and 2D model parallelization of language models, our SUMMA2.5-LM managed to reduce the transmission cost on each layer, which could get a 1.45X efficiency according to our weak scaling result between 2.5-D [4,4,4] arrangement and 2-D [8,8,1] arrangement.

Motivation & Objective

  • To address high communication overhead and low scaling efficiency in existing 1D and 2D model parallelism methods for large language models.
  • To reduce transmission costs in model parallelism as model size increases beyond single-device memory capacity.
  • To design a novel 2.5D matrix multiplication technique that minimizes unnecessary data movement while maintaining high computational efficiency.
  • To improve scaling efficiency on large-scale computing clusters by leveraging hybrid communication patterns from SUMMA and 2.5D matrix multiplication.

Proposed method

  • Adapts 2.5D matrix multiplication principles to model parallelism, enabling simultaneous execution of multiple Cannon-like algorithms.
  • Introduces a new 2.5D matrix multiplication method that reduces shift operations and communication bottlenecks compared to traditional Cannon’s algorithm.
  • Combines the strengths of SUMMA (scalable communication) and 2.5D matrix multiplication (load balancing and reduced data movement) into a unified framework.
  • Uses a 3D tensor tiling strategy across devices, with dimensions [4,4,4] in 2.5D and [8,8,1] in 2D, to optimize data distribution and reduce redundant transmissions.
  • Designs a communication-optimized pipeline that minimizes idle time and balances load across GPUs during forward and backward passes.
  • Employs a hybrid communication pattern that reduces redundant data transfers by reusing intermediate results across layers.

Experimental results

Research questions

  • RQ1How can 2.5D tensor parallelism reduce communication overhead in large-scale language model training compared to 1D and 2D methods?
  • RQ2What is the impact of minimizing shift operations and redundant data transmissions on scaling efficiency in distributed model training?
  • RQ3Can a hybrid approach combining SUMMA and 2.5D matrix multiplication outperform existing 2D and 1D parallelization strategies in terms of communication cost and speedup?
  • RQ4How does the 2.5D [4,4,4] arrangement compare to the 2D [8,8,1] arrangement in weak scaling efficiency?
  • RQ5What is the achievable performance gain in training efficiency when applying the proposed SUMMA2.5-LM method to large language models?

Key findings

  • The proposed SUMMA2.5-LM method reduces transmission cost per layer by optimizing data movement patterns in model parallelism.
  • The 2.5D [4,4,4] arrangement achieves 1.45X higher efficiency than the 2D [8,8,1] arrangement in weak scaling experiments.
  • By minimizing unnecessary data transmissions, SUMMA2.5-LM improves scaling efficiency on large-scale computing clusters.
  • The method successfully mitigates the communication bottlenecks inherent in traditional 1D and 2D model parallelization approaches.
  • The hybrid design of SUMMA2.5-LM effectively balances computational load and reduces idle time across devices.
  • The new 2.5D matrix multiplication technique reduces shift operations and communication overhead compared to Cannon’s algorithm.

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.