AIAny

GPipe: Efficient Training of Giant Neural Networks using Pipeline Parallelism

Chops any layer-sequence model across accelerators and splits each mini-batch into micro-batches to keep the pipeline busy, hitting near-linear speedup without architecture-specific tricks or fast interconnects.

Introduction

Most "train a giant model" papers propose a new architecture; this one proposes a scheduler. GPipe's quiet bet was that scaling is mainly a systems problem, not a modeling one — so instead of designing memory-frugal networks, it treats any model that's a sequence of layers as something you can slice across devices and run like an assembly line. The catch with naive layer-splitting is that only one accelerator works at a time; GPipe's actual trick is cutting each mini-batch into micro-batches so the stages overlap, turning an idle pipeline into a busy one.

Key Findings
  • Pipeline parallelism with micro-batch splitting. Partitioning a model by layers usually wastes devices to "bubble" idle time; splitting the mini-batch into micro-batches that flow through stages back-to-back recovers almost-linear speedup as you add accelerators.
  • Re-materialization buys memory. Instead of storing every activation, GPipe recomputes them during the backward pass, letting a single device hold a far larger slice — this is what makes the giant models fit at all.
  • Synchronous, exact gradients. Unlike asynchronous model-parallel schemes, GPipe's updates are mathematically identical to single-device training, so scaling doesn't quietly change what you're optimizing.
  • It transfers across domains. A 557M-parameter AmoebaNet reached 84.4% top-1 on ImageNet-2012, and a single 6B-parameter, 128-layer Transformer beat all bilingual baselines across 100+ languages — same library, very different architectures.
Great Fit / When to Skip

Great fit if you want the conceptual roots of how today's large models are physically trained, or you're choosing between pipeline, tensor, and data parallelism and want to understand the pipeline branch from its source. Look elsewhere if you need a current recipe: modern stacks (Megatron-LM, DeepSpeed, GPipe's own successors like PipeDream) combine pipeline parallelism with tensor and ZeRO-style sharding, and the bubble-vs-memory tradeoffs here have since been refined.

Information

  • Websitear5iv.labs.arxiv.org
  • OrganizationsGoogle Brain
  • AuthorsYanping Huang, Youlong Cheng, Ankur Bapna, Orhan Firat, Mia Xu Chen, Dehao Chen, HyoukJoong Lee, Jiquan Ngiam, Quoc V. Le, Yonghui Wu …
  • Published date2018/11/16

More Items

Studies scaling language models with parallel Transformer branches and introduces Joint-KV to share key-value caches across branches. Experiments report improved modeling quality at comparable training compute and faster long-context decoding.

Evaluates how well models and coding agents optimize operators for real Ascend NPU workloads, accounting for both speedups and token cost. Test cases preserve tensor shapes and data types from real model execution contexts.

Studies how to simplify Hyper-Connections and reduce their training overhead. SimpleHC removes residual mixing and shares state access, matching mHC performance on a 30B MoE model.