AIMech AI

ZeRO-Infinity

Algorithms AIMech:ZeROInfinityHeterogeneousExtremeScaleTraining DRAFT
Aliases: Zero Redundancy Optimizer Infinity, ZeRO-Infinity NVMe-CPU-GPU Offload, DeepSpeed ZeRO-Infinity
A heterogeneous distributed deep learning training system and algorithm built on ZeRO Stage-3 that partitions all model states (parameters, gradients, and optimizer states) across data-parallel processes and offloads them to CPU and NVMe storage via the Infinity Offload Engine (DeepNVMe asynchronous bulk I/O + reusable pinned-memory buffer pool), while decomposing individual large operators into sequential parameter tiles via Memory-Centric Tiling, retrieving offloaded parameters across all parallel PCIe links via allgather-based Bandwidth-Centric Partitioning, and overlapping NVMe-to-CPU (nc), CPU-to-GPU (cg), and GPU-to-GPU (gg) transfers with computation via a dynamic operator-sequence prefetcher.
Identity Notes & Concept Scope Distinct from ZeRO-Offload (which builds on ZeRO-2, replicates FP16 parameters on every GPU, uses single-owner broadcast limiting offload bandwidth to one PCIe link, and cannot offload to NVMe), from GPU-only ZeRO-3, and from 3D Parallelism (which requires manual tensor-slicing model parallelism and pipeline-stage refactoring and is bounded by aggregate GPU HBM capacity).

Claims & Grounded Evidence

4 Claims
Mechanism #c-r628-memory-working-set-and-arithmetic-intensity-efficiency-laws
For a Transformer with nl layers and hidden dimension hd (params approx 12 nl hd^2, model-state memory 240 nl hd^2 bytes, Eq. 1-2), Model State Working Memory for the largest linear layer (hd -> 4 hd) is 16 hd^2 bytes (Eq. 4) and Activation Working Memory is bsz * seq * ci * (16 hd + 2 attn_heads * seq) bytes (Eq. 5); with per-iteration compute 8 * bsz * seq * params FLOPs (Eq. 7-8), the arithmetic intensities with respect to parameters and gradients, optimizer states, and activation checkpoints reduce exactly to ait_{param+grad} = seq * bsz (Eq. 9), ait_{opt} = seq * bsz / 4 (Eq. 10), and ait_{act_ckpt} = 24 * hd * ci (Eq. 11), governing bandwidth efficiency via efficiency = (ait * bw) / (ait * bw + peak_tp) (Eq. 6).
Mechanism #c-r628-memory-centric-tiling-and-bandwidth-centric-allgather-partitioning
Memory-Centric Tiling decomposes a large linear operator into a mathematically equivalent sequence of T smaller parameter tiles that are fetched and released one at a time via ZeRO-3, reducing peak GPU Model State Working Memory by factor 1 / T without tensor-slicing model parallelism (Section 5.1.3, scaling hidden dimension from 8K to 64K in Figure 6b); simultaneously, Bandwidth-Centric Partitioning shards each parameter across all dp data-parallel processes and reconstructs it via allgather instead of single-owner broadcast, activating all dp PCIe links in parallel so effective slow-memory-to-GPU bandwidth scales linearly with dp (Section 6.1).
Application #c-r628-multi-trillion-parameter-training-and-zero-refactoring-init
By decorating torch.nn.Module.__init__ to partition and offload each submodule's parameters immediately upon construction (Section 7.2) and injecting recursive pre/post forward-backward hooks with external-parameter auto-registration (Section 7.1), ZeRO-Infinity fine-tunes up to 1-trillion-parameter models on a single 16-GPU DGX-2 node without model parallelism and scales up to 32-trillion-parameter models across 32 DGX-2 nodes (512 V100 GPUs), sustaining over 25 petaflops (49 TFLOPS/GPU, ~40% of peak) with superlinear weak scaling.
Limitation #c-r628-optimizer-state-bandwidth-and-small-batch-cpu-memory-limitation
Because optimizer states have 4x lower arithmetic intensity (seq * bsz / 4) than parameters and gradients and are updated at the end of the backward pass where they cannot be fully overlapped with forward-backward GPU compute, achieving high efficiency at small per-GPU batch sizes requires high aggregate NVMe/CPU bandwidth (~1.5 TB/s across the cluster), and at extreme 20T-parameter scale on 512 GPUs, CPU memory capacity for activation checkpoints limits per-GPU micro-batch size to 1.25, reducing throughput from 49 to 34 TFLOPS/GPU.

⚠️ Curated Limitations & Negative Results

Artificial Intelligence Ontology (AIO) Grounding

Mapped AIO Classes
AIO Target Class Mapping Relation Mapping Rationale
AIO:ArtificialNeuralNetwork
Artificial Neural Network
related_match ZeRO-Infinity enables distributed training and fine-tuning of multi-trillion-parameter deep artificial neural networks across heterogeneous NVMe, CPU, and GPU memory tiers.

Evidence Sources & Primary Literature

3 Sources
Source ID Publication / Document Type / Access Reference & Checksum
r628-primary-pdf
Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, Yuxiong He
primary paper
full_text
ID: https://dblp.org/rec/conf/sc/RajbhandariRRSH21
sha256:6b291a9bf12f…
r628-arxiv-abs
Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, Yuxiong He
primary paper
abstract_only
ID: https://arxiv.org/abs/2104.07857
sha256:fe11a78fe51a…
r628-metadata-cr
Samyam Rajbhandari, Olatunji Ruwase, Jeff Rasley, Shaden Smith, Yuxiong He
primary paper
abstract_only
ID: https://dblp.org/rec/conf/sc/RajbhandariRRSH21
sha256:ec7eb3a1338e…

Ontology & Grounding Topology

Open in interactive network graph →
CONCEPT KIND Algorithms AIMech:ZeROInfinityHeterogeneousExtremeScaleTraining ZeRO-Infinity 4 claims · 3 sources AIO GROUNDING AIO:ArtificialNeuralNetwork (1)

Curation Provenance

Curator: Antigravity
Method: ai_assisted
Model: Gemini
Created: 2026-10-19T11:51:00Z
Updated: 2026-10-19T11:51:00Z
Source File: data/curated/ZeROInfinityHeterogeneousExtremeScaleTraining.yaml · Schema: curated_concept.yaml

Explore across X-Mech

Related computational & biological Mechs: Embedding Map Network Graph ProteinTraitsMech (ESM-2 pLM) DUFMech (Domain pLM) TraitMech CultureMech All 14 X-Mech Repositories