Skip to main content
QUICK REVIEW

[Paper Review] Chimera: Efficiently Training Large-Scale Neural Networks with Bidirectional Pipelines

Shigang Li, Torsten Hoefler|arXiv (Cornell University)|Jul 14, 2021
Parallel Computing and Optimization TechniquesComputer Science53 references8 citations
TL;DR

Chimera proposes a bidirectional pipeline parallelism scheme that synchronously trains large-scale neural networks with up to 2.34x higher throughput than state-of-the-art methods. By intelligently scheduling forward and backward passes across multiple pipelines, it reduces bubbles by up to 50% and balances activation memory usage, enabling efficient training on 2,048 GPUs with minimal accuracy loss.

ABSTRACT

Training large deep learning models at scale is very challenging. This paper proposes Chimera, a novel pipeline parallelism scheme which combines bidirectional pipelines for efficiently training large-scale models. Chimera is a synchronous approach and therefore no loss of accuracy, which is more convergence-friendly than asynchronous approaches. Compared with the latest synchronous pipeline approach, Chimera reduces the number of bubbles by up to 50%; benefiting from the sophisticated scheduling of bidirectional pipelines, Chimera has a more balanced activation memory consumption. Evaluations are conducted on Transformer based language models. For a GPT-2 model with 1.3 billion parameters running on 2,048 GPU nodes of the Piz Daint supercomputer, Chimera improves the training throughput by 1.16x-2.34x over the state-of-the-art synchronous and asynchronous pipeline approaches.

Motivation & Objective

  • To address the inefficiency and memory imbalance in existing pipeline parallelism schemes for large-scale deep learning training.
  • To reduce pipeline bubbles and improve system utilization without sacrificing training convergence or accuracy.
  • To balance activation memory consumption across accelerators in a synchronous training framework.
  • To enable high-throughput, scalable training of large models like GPT-2 and BERT on distributed supercomputers.
  • To provide a flexible, configurable pipeline scheduling strategy adaptable to diverse model and system architectures.

Proposed method

  • Chimera employs bidirectional pipelines that simultaneously execute forward and backward passes across multiple pipeline stages, reducing idle time and bubbles.
  • It uses a novel scheduling strategy—forward doubling, backward halving, or direct concatenation—to manage workload imbalance between forward and backward passes.
  • The method maintains synchronous training by avoiding stale weights, ensuring convergence stability and accuracy.
  • It leverages point-to-point communication between pipeline stages and minimizes allreduce overhead through optimized micro-batch and pipeline depth configuration.
  • Chimera dynamically configures pipeline depth (D) and micro-batch size (B) to balance communication, computation, and memory usage.
  • An accurate performance model guides system configuration for optimal throughput across different model and hardware setups.

Experimental results

Research questions

  • RQ1How can pipeline parallelism be optimized to reduce bubbles and improve utilization in large-scale deep learning training?
  • RQ2Can bidirectional pipelines achieve higher throughput than unidirectional pipelines while maintaining synchronous training and convergence?
  • RQ3How does Chimera balance activation memory consumption across accelerators compared to existing pipeline methods?
  • RQ4What is the impact of different scheduling strategies (forward doubling, backward halving, direct concatenation) on training efficiency and scalability?
  • RQ5To what extent can Chimera scale to large mini-batch sizes and deep models with minimal recomputation overhead?

Key findings

  • On 2,048 GPU nodes, Chimera improves training throughput by 1.16x to 2.34x over state-of-the-art synchronous and asynchronous pipeline approaches for a 1.3B-parameter GPT-2 model.
  • Chimera reduces pipeline bubbles by up to 50% compared to existing synchronous pipeline methods, significantly improving system utilization.
  • With direct concatenation scheduling, Chimera achieves 1.13x, 2.07x, and 1.06x speedup over GPipe, GEMS, and DAPPLE, respectively, for large mini-batches.
  • For GPT-2 on 512 GPUs, Chimera with forward doubling achieves 1.13x, 1.18x, 2.60x, and 1.34x speedup over PipeDream-2BW, GPipe, GEMS, and DAPPLE, respectively.
  • Four pipelines with D=32 achieve peak performance on a 32-layer GPT-2 model, but two pipelines generally yield the highest throughput due to optimal trade-off between bubbles and allreduce overhead.
  • Chimera maintains the same peak activation memory cost as state-of-the-art methods while achieving more balanced memory consumption across accelerators.

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.