arXiv:2611.02200cs.AINov 2026

Manuscript Offprint

arXiv:2611.02200

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. Rodriguez

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Omar Ramadan

Johns Hopkins University

oramada1@jhu.edu

Sam Siavoshian

Independent Researcher

samsiavoshian2009@gmail.com

Amir Kashif Saeed

Johns Hopkins University

asaeed7@jhu.edu

Benjamin A. Johnson

Johns Hopkins University

benjamin.a.johnson@jhu.edu

Amin M. E.-A. Diab

Johns Hopkins University

adiab3@jhu.edu

Benjamin M. Rodriguez

Johns Hopkins University

brodrig5@jhu.edu

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.

1 Introduction

Distributed training systems such as FSDP, ZeRO, tensor parallelism, and pipeline parallelism reduce the cost of globally coupled optimization by redistributing model state, activation state, and computation [2, 3, 4, 5]. A complementary line of work asks whether different

Preprint.

depths of a network can instead be trained from local signals [9, 10, 6, 11]. If successful, depth could become not only a placement boundary but also an optimization and failure boundary: partitions could own separate optimizers and checkpoints, execute on disjoint hardware, restart independently, and compose conventional sharding internally.

The central difficulty is semantic rather than mechanical. Removing inter-block gradients is straightforward once each partition is given its own local objective. The harder question is whether the resulting independently trained representation spaces remain compatible after assembly. We distinguish two properties:

blockwise trainability≠compositional trainability.(1)\text{blockwise trainability} \neq \text{compositional trainability}. \tag{1}

A block is locally trainable if its own loss decreases. A collection of blocks is compositionally trainable if independently optimized partitions can be connected and retain useful end-to-end behavior.

This distinction is operationally important. On GPT-2 Large, an unanchored blockwise construction lowers all local losses, reduces assembled denoising error from 100.0182 to 0.5638, cuts peak active memory, and shortens the measured local critical path, yet the assembled language model collapses: held-out cross-entropy rises from 3.6342 to 10.4811 and all measured low-noise context effects are negative. Local success therefore does not imply compatible representation transport.

ZEROGRAPH addresses this failure by retaining global semantic coherence while changing the form of its dependency. A frozen teacher produces boundary states h0T,…,hBTh_0^T, \dots, h_B^T on a deterministic sample stream. These states are persisted with model, data, order, shape, and content identity, forming a versioned cross-depth dataset. Block bb then trains from the cached predecessor state hb−1Th_{b-1}^T toward the cached successor state hbTh_b^T. The novelty claim is not hidden-state regression itself; rather, ZEROGRAPH treats the teacher trajectory as a persistent semantic contract that converts a live depth-coupled computation into independently schedulable optimization and failure domains. The key transformation is

global semantics⟶persistent boundary data⟶independent jobs.(2)\text{global semantics} \longrightarrow \text{persistent boundary data} \longrightarrow \text{independent jobs}. \tag{2}

ZEROGRAPH does not eliminate global information; it changes when and where that information is consumed.

This framing yields falsifiable learning and systems questions: Does a coherent boundary trajectory restore composition? Is the positive result caused by materialization or by the objective? Does caching preserve the target tensors exactly? When does materialization amortize? Do independent jobs remain independently operable under failure? Does the recipe replicate across models, seeds, and partition counts?

Our contributions are:

A compositional failure result. Mechanically independent blockwise training can satisfy local optimization and systems goals while destroying end-to-end language behavior.

A semantic contract for independent depth training. Clean teacher-boundary trajectories restore composition in our setting; noisy local variants fail despite favorable teacher-forced metrics.

A materialized cross-depth dataflow abstraction. We convert a globally coherent teacher computation into versioned persistent boundary data consumed by independently owned depth jobs. The contribution is relocating cross-depth semantic dependence from a live optimization path into a persistent systems interface.

Objective-matched systems controls. Materialized and online clean targets are bitwise identical. Materialization removes the live teacher from cached local optimization, enables zero inter-block gradient traffic, and changes the cost structure from recurring online generation to a reusable data artifact.

Figure

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.

Replication and robustness. The clean recipe succeeds on TinyLlama 1.1B, Qwen2.5-1.5B across three seeds, and Qwen2.5-3B (3.086B parameters); it remains effective for B∈{2,4,8}B \in \{2, 4, 8\} under the measured partition sweep.

Independent job semantics. A killed block resumes with optimizer, RNG, and deterministic sample-order restoration to a bitwise-identical final state, while completed neighboring blocks are not rerun.

The claim is deliberately narrower than replacing ordinary supervised fine-tuning or backpropagation. Our successful learning experiments are teacher-guided conversion and distillation of pretrained residual language models. We do not establish from-scratch global-credit-free pretraining, objective equivalence to ordinary SFT, or a universal end-to-end speedup. Accordingly, throughout the paper we treat ordinary SFT as a systems and quality reference rather than as an objective-matched algorithmic baseline.

Code availability. The accompanying ZeroGraph PyTorch package, including APIs and command-line tools for teacher-boundary materialization and independent block training, is available at https://github.com/oramada/ZeroGraph.