TL;DR
This paper introduces a novel framework for infinite-length, single-shot video generation that effectively eliminates the common pitfalls of error accumulation and attribute drift. By combining a diffusion-based video extension model with causal attention across clips and a training-free "truncation-rectified flow" (T-RFlow) technique, the method generates highly coherent, minute-level videos that maintain identity and visual quality over extended durations.
What Problem Does This Paper Address?
While modern video foundation models excel at generating stunning 5-to-10-second clips, scaling them up to produce minute-long or infinite-length videos remains a massive hurdle. Standard autoregressive (AR) approaches generate videos clip-by-clip, but they suffer from two critical issues: error accumulation and attribute drift.
Error accumulation causes visual quality to degrade over time, manifesting as unnatural exposure, color bias, or over-sharpening. Attribute drift occurs because the model lacks long-term memory, causing characters or environments to morph and lose consistency as the video progresses. The authors aim to solve these challenges to enable high-quality, single-shot long video synthesis without running out of GPU memory.
Methods
The authors propose a hybrid framework that bridges diffusion models and autoregressive language modeling principles, broken down into three core components:
- Two-Stage Training Pipeline: They start with a pretrained diffusion model (Wan2.1). In Stage 1, they fine-tune it as a video extension model on short videos, teaching it to generate continuous frames conditioned on the final frames of the previous clip. In Stage 2, they perform Causal Attention Fine-tuning on long videos. Tokens within a single clip use bidirectional attention to preserve the base model's generation power, while tokens across different clips use unidirectional (causal) attention to capture long-term dependencies.
- Semantic KV Caching & Selection: To prevent GPU memory from exploding over long durations, the framework caches the Key-Value (KV) representations of past clips. Instead of attending to all past clips, they use an offline language model (Sentence-BERT) to calculate prompt similarity, retaining only the KV caches of the most semantically relevant historical clips.
- Truncation-Rectified Flow (T-RFlow): This is a training-free sampling modification. By analyzing the Rectified Flow denoising process, the authors found that the middle timesteps are highly stable, whereas the early and late timesteps introduce low-frequency color biases and high-frequency noise artifacts that compound over time. T-RFlow truncates the sampling process to a clean window $[T_1, T_2]$ (e.g., $[0.3, 0.7]$), discarding the error-prone phases and re-normalizing the step sizes.
Datasets
The model was trained using the XunGuang-1.1M dataset. For Stage 1, videos were segmented into short 2-to-5-second clips. For Stage 2, long-form videos from the same dataset were used, supplemented by 10,000 private data entries. Evaluation was conducted using the VBench benchmark suite specifically under the single-shot long video generation setting.
Key Insights and Ideas
- The Anatomy of Denoising Errors: The authors' mathematical decomposition of Rectified Flow reveals that video generation evolves from low-frequency to high-frequency structures. Crucially, they discovered that the middle timesteps do the heavy lifting for stable content reconstruction, while later timesteps often amplify imperceptible noise—a minor issue for short clips, but catastrophic when amplified autoregressively in long videos.
- Prompt-Driven Memory Retrieval: Treating video clips like tokens in a Large Language Model (LLM) allows the use of KV caching. Because video KV caches are massive, using an embedding model to select history based on semantic prompt relevance provides an elegant way to maintain long-term context (like a character returning to the screen) without running out of VRAM.
- Hybrid Attention is Key: Combining bidirectional intra-clip attention with unidirectional inter-clip attention leverages the strengths of both worlds: the high visual fidelity of standard diffusion and the long-range consistency of autoregressive models.
Key Results
The proposed framework achieves state-of-the-art results on VBench, outperforming both open-source and commercial baselines in long-video settings:
- Superior Consistency: It scored 0.9457 in Subject Consistency and 0.9691 in Background Consistency, significantly beating competitors like MoC and SkyReels-V2.
- High Visual Quality: It achieved the highest Image Quality score of 0.6620, proving that it successfully mitigates error accumulation.
- Robustness Over Time: In a 3-minute video evaluation, the model maintained an image quality score of 0.6140 at the 150-180s mark, whereas the baseline collapsed down to 0.3075.
Limitations and Future Work
The primary limitation acknowledged by the authors is that the framework currently does not support real-time video generation, as the multi-stage attention and denoising processes are computationally intensive. For future work, they plan to explore streaming strategies for long video generation to address this speed bottleneck.
Summary updated