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

A pretrain-then-transfer method for streaming recommendation that decouples refreshable behavioral knowledge from task-specific geometry to enable continual model refresh without downstream interference; introduces Behavioral Multi-Token Prediction and Anchored Calibration Residual and shows 4–12% offline gains plus live Shopee A/B lifts.

Autonomously proposes, modifies, executes, and evaluates ML experiments to study recursive self-improvement in machine learning engineering. Implements an open stack (OpenMLE-Gym, -RL, -Evo) and post-trains Frontis-MA1 (35B) around four evolution operators (Draft, Improve, Debug, Crossover); releases model weights and the full codebase.

Provides a portable C++ inference runtime to deploy embodied AI models (vision–language–action and world–action) on heterogeneous robot hardware, enabling latency-first batch-1 closed-loop control. Key features include modular multi-rate layers, fused low-latency inference, and extensible head/IO plugins.