Context Forcing: Consistent Autoregressive Video Generation with Long Context
Shuo Chen, Cong Wei, Sun Sun, Ping Nie, Kai Zhou, Ge Zhang, Ming-Hsuan Yang, Wenhu Chen
TL;DR
The paper tackles the challenge of maintaining long-term consistency in autoregressive video generation by addressing a fundamental student-teacher mismatch: prior methods train long-horizon students with short-context teachers, incurring forgetting and drift. It introduces Context Forcing, which employs a long-context teacher and a two-stage Distillation via Contextual Distribution Matching (CDMD), coupled with a Slow-Fast Memory KV cache that compresses history while preserving salient dynamics. A robust Context Teacher is trained with Error-Recycling Fine-Tuning to remain reliable when student histories drift, enabling effective supervision for very long sequences (exceeding $20$ seconds and up to minutes). Across video continuation, text-to-video, and long-video generation tasks, the approach demonstrates improved long-range coherence and reduced drift compared with state-of-the-art baselines, highlighting practical improvements for open-ended video synthesis and potential downstream applications, while acknowledging the need for careful ethical considerations and memory optimization opportunities.
Abstract
Recent approaches to real-time long video generation typically employ streaming tuning strategies, attempting to train a long-context student using a short-context (memoryless) teacher. In these frameworks, the student performs long rollouts but receives supervision from a teacher limited to short 5-second windows. This structural discrepancy creates a critical \textbf{student-teacher mismatch}: the teacher's inability to access long-term history prevents it from guiding the student on global temporal dependencies, effectively capping the student's context length. To resolve this, we propose \textbf{Context Forcing}, a novel framework that trains a long-context student via a long-context teacher. By ensuring the teacher is aware of the full generation history, we eliminate the supervision mismatch, enabling the robust training of models capable of long-term consistency. To make this computationally feasible for extreme durations (e.g., 2 minutes), we introduce a context management system that transforms the linearly growing context into a \textbf{Slow-Fast Memory} architecture, significantly reducing visual redundancy. Extensive results demonstrate that our method enables effective context lengths exceeding 20 seconds -- 2 to 10 times longer than state-of-the-art methods like LongLive and Infinite-RoPE. By leveraging this extended context, Context Forcing preserves superior consistency across long durations, surpassing state-of-the-art baselines on various long video evaluation metrics.
