GOCS: Gradient Backpropagation of One Chunk is All You Need for Streaming Video Generation

Xingyu Zhang, Yingjie Yin, Shihao Wang, Chenguang MaarXiv 2026

TL;DR

Training AI models to generate streaming video—emitting frames chunk by chunk in real time—hits a massive memory wall when scaled up to large, high-resolution models. This paper introduces GOCS, a training framework that computes the exact same gradients as standard full-video training while only holding one video chunk's computation graph in GPU memory at a time. That drops peak memory enough to fine-tune a 14-billion-parameter video model at 480p on under 60GB of memory per GPU.

What Problem Does This Paper Address?

Most high-quality video generators today are bidirectional: they process an entire video clip at once. That works well for offline generation, but it's ill-suited for low-latency, interactive applications like game simulation or world models. Streaming video generators instead work autoregressively, emitting video chunk by chunk, where each new chunk is conditioned on previously generated frames.

To keep these models from drifting off course during long rollouts (a problem known as exposure bias), researchers use on-policy training like Self-Forcing. The model generates a full sequence of chunks, and a distribution-matching objective (DMD) nudges the whole rollout toward the real video distribution.

Here is the bottleneck: standard Self-Forcing retains a separate computation graph in memory for every single supervised chunk until the entire video-level loss is formed and backpropagated. Peak activation memory therefore scales linearly with the number of chunks. Even with activation checkpointing and parameter sharding, this makes 480p on-policy training of a 14B-parameter model impractical—forcing most streaming systems to stay at the 1.3B scale or drop resolution.

Methods

The authors' key realization is that while you need the full video window to construct the training target, you do not need to keep all the chunks' computation graphs alive simultaneously to backpropagate it.

Because Self-Forcing already places stop-gradient boundaries between chunks (meaning later chunks do not backpropagate through earlier chunks' KV-caches), the total generator gradient is simply the sum of independent, per-chunk gradients.

Figure 1: Overview of GOCS. Phase 1 records a no-grad rollout and the state needed for exact cache reconstruction; Phase 2 constructs one full-window DMD target; and Phase 3 replays the trajectory while immediately backpropagating each supervised chunk. With stop-gradient transitions and fixed θ, sequential replay matches the full-window gradient while reducing peak generator memory from O(|G|M + C) to O(M + C). For simplicity, we omit the optimization step of the fake score model.

GOCS (Gradient backpropagation of One Chunk for Streaming) exploits this structure with a three-phase loop:

  1. No-grad rollout & record: Run the generator forward without tracking gradients, saving the exit-step latent states and cache inputs needed to replay each chunk.
  2. Full-window DMD target: Evaluate the real and fake score models once on the full generated window to build a single, detached regression target.
  3. Sequential replay & backward: Replay the chunks in temporal order, rebuilding the KV-cache as you go. For each supervised chunk, run just its exit step with gradients enabled, backpropagate immediately, and release the graph before moving to the next chunk.

The authors prove mathematically (Theorem 1) that under stop-gradient transitions, exact cache replay, and fixed model parameters during accumulation, this sequential process yields the exact same gradient as simultaneous full-window backpropagation—while slashing peak generator activation memory from $O(|\mathcal{G}|M + C)$ to $O(M + C)$.

Datasets

  • Training: Approximately 250K prompts from VidProM, expanded and filtered using Qwen2.5-7B-Instruct, trained at $832 \times 480$ resolution.
  • Evaluation: VBench prompts (generating 81 frames per prompt), evaluated at $832 \times 480$ and $640 \times 384$ resolutions.

Key Insights and Ideas

  • Full-window coupling $\neq$ simultaneous graphs: You only need the whole video window to construct the detached DMD target; once that target is fixed, the backward pass decomposes cleanly into local per-chunk updates.
  • A clean memory–compute trade-off: Sequential replay adds roughly two extra forward passes per chunk (an exit-step evaluation and a cache update), increasing wall-clock training time by just 8.4% at the 1.3B scale—a modest price for a $|\mathcal{G}|$-fold drop in peak activation memory.
  • Zero inference overhead: Because GOCS only changes how gradients are accumulated during training, the deployed model is the exact same 4-step autoregressive generator, with no extra parameters, cache operations, or denoising steps.

Key Results

  • Memory & Scale: Enables 480p ($832 \times 480$) on-policy refinement of Wan2.1-T2V-14B using less than 60GB of memory per GPU (trained on 64 Zhenwu 810E PPUs).
  • 1.3B VBench: Achieves state-of-the-art streaming scores with 86.12 Quality, 76.68 Semantic, and 84.23 Total, while boosting Dynamic Degree by 12.3 points over Self-Forcing (83.1 vs. 70.8) at 4 NFEs.
  • 14B VBench: At $832 \times 480$ (4 NFEs), GOCS leads all compared 14B models in Quality (86.08) and Total (84.11), outperforming AnyFlow, Krea-Realtime, and the bidirectional LightX2V reference. The same 480p-trained checkpoint also generalizes to $640 \times 384$, beating Helios (83.37 vs. 82.30 Total) with 4 NFEs instead of 6.

Limitations and Future Work

  • No 14B wall-clock baseline: The authors could not measure the exact 14B training-time overhead against standard Self-Forcing DMD because the baseline runs out of memory on their hardware.
  • Scope of exactness: The gradient-equivalence guarantee relies strictly on stop-gradient inter-chunk transitions; methods that intentionally backpropagate across chunks would require a different treatment.
  • Future directions: Extending GOCS to backbones beyond Wan2.1, profiling throughput across more hardware configurations, and adding low-latency control signals and long-term memory for interactive world models.

Summary updated

BibTeX
@misc{zhang2026gocs,
  author = {Xingyu Zhang and Yingjie Yin and Shihao Wang and Chenguang Ma},
  title = {{GOCS: Gradient Backpropagation of One Chunk is All You Need for Streaming Video Generation}},
  year = {2026},
  eprint = {2612.01998},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.01998},
}
Figure