Skip to main content
QUICK REVIEW

[Paper Review] ZeRO++: Extremely Efficient Collective Communication for Giant Model Training

Guanhua Wang, Heyang Qin|arXiv (Cornell University)|Jun 16, 2023
Advanced Neural Network ApplicationsComputer Science15 citations
TL;DR

ZeRO++ introduces three communication-reduction techniques (qwZ, hpZ, qgZ) to cut ZeRO’s cross-node data movement by up to 4x, boosting throughput for giant model training.

ABSTRACT

Zero Redundancy Optimizer (ZeRO) has been used to train a wide range of large language models on massive GPUs clusters due to its ease of use, efficiency, and good scalability. However, when training on low-bandwidth clusters, or at scale which forces batch size per GPU to be small, ZeRO's effective throughput is limited because of high communication volume from gathering weights in forward pass, backward pass, and averaging gradients. This paper introduces three communication volume reduction techniques, which we collectively refer to as ZeRO++, targeting each of the communication collectives in ZeRO. First is block-quantization based all-gather. Second is data remapping that trades-off communication for more memory. Third is a novel all-to-all based quantized gradient averaging paradigm as replacement of reduce-scatter collective, which preserves accuracy despite communicating low precision data. Collectively, ZeRO++ reduces communication volume of ZeRO by 4x, enabling up to 2.16x better throughput at 384 GPU scale.

Motivation & Objective

  • Motivate efficient training of extremely large language models on multi-GPU clusters with limited inter-node bandwidth.
  • Reduce ZeRO's communication overhead across forward weight gathering, backward weight gathering, and gradient reduction.
  • Enable higher throughput and scalability without refactoring to 3D parallelism or sacrificing convergence accuracy.

Proposed method

  • Introduce three communication optimizations: qwZ (block-based INT8 weight quantization for forward all-gather), hpZ (secondary in-node weight partitioning to remove inter-node backward all-gather), qgZ (all-to-all based INT4 gradient reduction with tensor-slice reordering).
  • Use block-based quantization to preserve accuracy, and implement high-performance CUDA kernels for quantization, dequantization, and operator fusion.
  • Adopt a two-stage hierarchical all-to-all gradient reduction with intra-node then inter-node communication to minimize inter-node traffic.
  • Overlap computation and communication to hide latency, and fuse kernels to minimize memory traffic.
Figure 1. Large scale training throughput are constrained by network bandwidth and batch size per GPU
Figure 1. Large scale training throughput are constrained by network bandwidth and batch size per GPU

Experimental results

Research questions

  • RQ1How can ZeRO's inter-device communications be reduced without sacrificing training accuracy for very large models?
  • RQ2What combination of quantization and partitioning techniques can minimize forward and backward communication and gradient aggregation in ZeRO-3?
  • RQ3Can a new gradient reduction paradigm based on all-to-all with low-precision data preserve convergence while lowering communication volume?

Key findings

  • ZeRO++ reduces cross-node communication volume from 3M to 0.75M per training iteration, enabling better throughput.
  • Achieves up to 2.4x end-to-end throughput improvement over ZeRO baseline across models from 10B to 138B parameters.
  • Demonstrates scalability to up to 384 GPUs with GPT-3–like models, achieving over 45% of sustained peak throughput.
  • Maintains model convergence and training accuracy comparable to ZeRO baseline.
  • In low-bandwidth settings, ZeRO++ attains similar throughput as high-bandwidth baseline configurations.
Figure 2. Illustration & example of block based quantization vs. baseline
Figure 2. Illustration & example of block based quantization vs. baseline

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.