TL;DR
Self Gradient Forcing (SGF) introduces a clever two-pass training strategy for autoregressive video diffusion models to fix the "historical context-gradient gap." By allowing future losses to supervise how past generated frames are written into the model's memory (KV cache), SGF achieves remarkably stable, minutes-long video extrapolation while training on only a 5-second window.
What Problem Does This Paper Address?
When generating long videos autoregressively, models generate a chunk of video, save its key-value (KV) representations into a cache memory, and use that cache to condition the generation of future frames. To prevent the model from breaking down due to "exposure bias" (the mismatch between seeing clean ground-truth frames during training but noisy self-generated frames during inference), state-of-the-art methods use Self Forcing, training the model on its own generated histories.
However, existing Self Forcing methods truncate the gradients passing through this historical KV cache to keep training computationally feasible. This creates a historical context-gradient gap: future losses can train the model on how to read the cache, but they cannot provide feedback on how the clean-timestep computation should write the cache. Because the same Diffusion Transformer (DiT) parameters are shared across both operations, updates from noisy denoising steps cause the cache-writing mechanism to drift. Over long horizons, this leads to catastrophic consistency failures like identity drift, sudden viewpoint jumps, and scene breaks.
Methods
Directly backpropagating through the entire history (Backpropagation Through Time, or BPTT) would require storing massive autograd graphs that scale with video length, quickly leading to Out-Of-Memory (OOM) errors.
To solve this, the authors propose Self Gradient Forcing (SGF), a two-pass training strategy that turns a serial graph-retention problem into a bounded parallel recomputation problem:
- Pass 1 (No-Gradient Rollout): The model performs a standard, gradient-free autoregressive rollout just like it would during inference. At a randomly sampled denoising exit step, it records the self-generated context and the noisy latents.
- Pass 2 (Parallel Context-Gradient Reconstruction): The rollout cache is discarded. The model reprocesses the recorded context in parallel under a causal mask. Crucially, while the context latents themselves are kept as stop-gradients, the model recomputes the KV representations and future-to-context attention.
This allows gradients from future losses to flow directly into the parameters responsible for writing the KV cache, effectively teaching the model how to format its memory for future use.
Datasets
The authors evaluated SGF using several standard configurations and prompt sets:
- VBench: Used for standard short-horizon (5-second) sanity checks to ensure SGF doesn't degrade base video quality.
- VBench-Long: Used for 60-second long-video evaluation.
- MovieGen Prompts: A subset of 128 randomly sampled prompts used to test extreme long-video extrapolation up to 240 seconds (4 minutes).
Key Insights and Ideas
- The Shared Parameter Dilemma: Because the DiT uses the same weights to write clean memory at $t=0$ and denoise frames at noisy timesteps, optimizing purely for denoising without cache-writing supervision causes the memory-writing capability to drift.
- Parallel Recomputation > Graph Retention: SGF proves that you don't need to hold onto the entire sequential history graph to get historical gradients. Recomputing the local attention block in parallel during a second pass provides the necessary supervision with minimal overhead.
- The VAE Boundary Effect: The authors discovered that causal video VAEs (like the Wan VAE) introduce a multi-frame "boundary-transition region" at the start of a stream due to asymmetric temporal grouping. Consequently, using multiple "sink latents" (specifically 4) in the streaming cache is vital for maintaining long-term stability.
Key Results
SGF dramatically outperforms standard Self Forcing in long-video extrapolation across multiple initializations (Teacher Forcing, Causal CD, Causal ODE):
- Quantitative Improvements: On 60s and 240s benchmarks, SGF consistently improved VBench-Long metrics for subject consistency, background consistency, imaging quality, and motion smoothness.
- Human Preference: In a blind user study (GSB preference metric), human raters strongly preferred SGF over Self Forcing, with preference margins ranging from 29.6% to 48.7%.
- Efficiency: SGF avoids OOM errors entirely. Compared to frozen-cache Self Forcing, SGF only increases peak memory modestly (from 79.01GB to 87.01GB) and adds minimal runtime overhead (from 10.39s to 11.71s per 5 training steps).
Limitations and Future Work
While SGF restores the context-gradient path, it remains a bounded surrogate rather than full BPTT. It does not update the sampled historical latents themselves or optimize the sequence of intermediate denoising decisions that generated them.
Additionally, SGF relies on the assumption that the parallel Pass 2 mask perfectly mirrors the inference context policy. If the training mask deviates from the inference setup (e.g., mismatched FIFO windows or RoPE handling), the model might optimize for the wrong attention relations. Future work includes combining SGF with complementary long-video techniques like sparse attention, retrieval-augmented memory, and long-context tuning.
Summary updated