ZeroGraph: Compositional Blockwise Training via Materialized Boundary Supervision

Omar Ramadan, Sam Siavoshian, Amir Kashif Saeed, Benjamin A. Johnson, Amin M. E. -a. Diab, Benjamin M. RodriguezarXiv 2026 · arXiv

TL;DR

ZeroGraph decouples deep neural network training by transforming live cross-depth dependencies into a persistent dataset of "boundary states" from a teacher model. This allows different sections of a model to be trained as completely independent jobs—with their own optimizers, random states, and checkpoints—while ensuring they compose into a high-performing model upon reassembly.

What Problem Does This Paper Address?

Training massive models usually requires "globally coupled" optimization. Even with advanced sharding techniques like FSDP or ZeRO, every layer's update remains dependent on information flowing from the rest of the network during backpropagation.

A potential solution is blockwise learning, where you split a model into chunks and train them locally. However, the authors identify a critical "compositional failure": just because a block's local loss decreases doesn't mean it will work with its neighbors. Without a shared semantic "contract," independently trained blocks often fail to communicate, leading to a total collapse of end-to-end model behavior (e.g., a language model that can no longer form coherent sentences).

Methods

ZeroGraph introduces a systems transformation that moves semantic dependence from the online optimization path into persistent data.

  1. Materialization: A frozen "teacher" model processes a deterministic data stream. Its intermediate activations at specific boundaries (e.g., every 9 layers) are saved to disk as a versioned dataset.
  2. Independent Jobs: Each block (a "student") is trained as a standalone job. Its only goal is to map a cached predecessor boundary state to the corresponding cached successor state.
  3. Clean Supervision: The authors found that simple regression to "clean" teacher states is the most effective interface. They tested "noisy" variants (inspired by diffusion) but found they failed to maintain model coherence.
Figure 1: ZeroGraph converts a live cross-depth dependency into a persistent data interface. Left: conventional depth-coupled optimization keeps cross-depth credit online. Right: a frozen teacher materializes a coherent trajectory once, producing versioned boundary tensors that independent block jobs consume with separate optimizer and checkpoint state.

Datasets

The researchers validated ZeroGraph across several model scales and architectures:

  • GPT-2 Large: Used for diagnostic failure tests.
  • TinyLlama 1.1B: Used for a six-arm causal study on objective functions.
  • Qwen2.5 (1.5B and 3B): Used for primary replication and scale testing.
  • UltraChat 200k: The primary dataset used for the Qwen distillation experiments.
  • Downstream Benchmarks: Evaluated using ARC-Easy, BoolQ, HellaSwag, PIQA, and WinoGrande to ensure semantic retention.

Key Insights and Ideas

  • Local Trainability $\neq$ Compositional Trainability: This is the paper's central warning. In one experiment on GPT-2 Large, an "unanchored" local objective reduced denoising error by over 99%, yet the assembled model's cross-entropy exploded from 3.63 to 10.48. Local success can mask global failure.
  • The Teacher as a Contract: The materialized boundary states act as a "semantic contract." As long as each block learns to fulfill its part of the trajectory, the blocks remain compatible even though they never "talk" to each other during training.
  • Operational Independence: Because jobs are decoupled, a failed block can be resumed from its own checkpoint and RNG state to reach a bitwise-identical final state without affecting or rerunning any other blocks.
  • Tolerance to Drift: The system is surprisingly robust. Even when the input to a block at inference time drifts away from the teacher's original states, the model often remains within a "usable compositional basin."

Key Results

  • Memory Efficiency: For GPT-2 Large, ZeroGraph reduced peak allocated memory (HBM) by 58% and shortened the local critical compute path by 84% compared to standard Distributed Data Parallel (DDP) training.
  • Quality Retention: On Qwen2.5-1.5B, the ZeroGraph recipe passed all "quality gates," maintaining high accuracy and context-use metrics across multiple seeds.
  • Bitwise Integrity: The authors proved that materialized (cached) targets are bitwise identical to online targets, ensuring that the systems transformation doesn't degrade the learning signal.
  • Amortization Trade-offs: While cached jobs are faster to run, the one-time cost of building the cache (e.g., 618 seconds for Qwen 1.5B) means that wall-time "break-even" wasn't reached within 16 reuses, though the dollar cost did eventually become lower.
Local success can coexist with global failure in unanchored training.

Limitations and Future Work

  • Teacher Dependency: Currently, ZeroGraph is designed for model conversion and distillation. It requires a frozen teacher to generate the boundary states. Whether a similar "contract" can be created from scratch for initial pretraining remains an open question.
  • Cache Overhead: The "materialization tax" is significant. For short training runs, the time spent generating and saving boundary states may outweigh the speed gains of independent block training.
  • Scope: The experiments focused on billion-parameter residual language models. The authors note that testing on arbitrary PyTorch graphs, extremely long contexts, and multi-node heterogeneous clusters is still needed.

Summary updated

Abstract

Blockwise learning can remove online gradient dependencies across depth, but independently optimized blocks need not compose into a useful model. We present ZeroGraph, a systems transformation for pretrained-model conversion and distillation that materializes a frozen teacher's coherent boundary trajectory as a versioned dataset. Each partition then trains with disjoint parameters, optimizer state, random state, and checkpoints, replacing live cross-depth dependencies with persistent supervision. Experiments separate learning quality from systems behavior. On GPT-2 Large, an unanchored objective reduces denoising error by 99.44%, yet assembled held-out cross-entropy worsens from 3.63 to 10.48 and context use becomes negative. A six-arm TinyLlama study identifies clean teacher-boundary regression as the successful interface; the tested noisy objective fails with cached or online targets. The clean recipe passes quality and context-use gates across three Qwen2.5-1.5B seeds and on a 3.086B Qwen2.5 model. In an objective-matched comparison, cached and online targets are bitwise identical. Cached jobs are faster after materialization, but a 618.31 s cache-build cost prevents wall-time break-even through 16 measured reuses. Boundary-shift tests show tolerance to intermediate representation mismatch, and an interrupted block resumes to a bitwise-identical final state without rerunning unaffected blocks. In the tested pretrained-model conversion and distillation setting, cross-depth semantic dependence can move from online optimization into persistent data.
BibTeX
@misc{ramadan2026zerograph,
  author = {Omar Ramadan and Sam Siavoshian and Amir Kashif Saeed and Benjamin A. Johnson and Amin M. E. -A. Diab and Benjamin M. Rodriguez},
  title = {{ZeroGraph: Compositional Blockwise Training via Materialized Boundary Supervision}},
  year = {2026},
  eprint = {2611.02200},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.02200},
}
Figure