NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Context Forcing: Consistent Autoregressive Video Generation with Long Context

Shuo Chen, Cong Wei, Sun Sun, Tiancheng Shen, Ping Nie, Kai Zou, Ge Zhang, Ming-Hsuan Yang, Wenhu Chen

Introduction

Generating long, high-quality videos—spanning a minute or more—remains a significant hurdle for generative AI. Most contemporary models rely on an autoregressive (AR) approach, generating video frames in short, sequential chunks. However, this methodology frequently falls victim to the Forgetting-Drifting Dilemma:

  1. Forgetting: If the model only attends to a narrow window of the past (e.g., the last 3 seconds), it loses track of the global subject or background, resulting in jarring "identity shifts."
  2. Drifting: Conversely, if the model attempts to process a long history, its own minor prediction errors accumulate over time. Without a mechanism to correct these errors, the video "drifts" away from the original prompt into visual noise.

The authors of this paper identify a fundamental student-teacher mismatch at the heart of this dilemma. Typically, a "student" model is trained to generate long sequences but is supervised by a "teacher" model restricted to a short 5-second window. Because the teacher is effectively "memoryless," it cannot guide the student on maintaining global consistency over extended durations.

To resolve this, the researchers introduce Context Forcing, a novel framework that pairs a long-context student with a long-context teacher, supported by a biologically-inspired Slow-Fast Memory architecture. This approach achieves consistent 60-second video generation with effective context windows exceeding 20 seconds—a 2 to 10× improvement over previous state-of-the-art methods.

Methodology: Bridging the Context Gap

The authors propose three key innovations to eliminate the student-teacher mismatch and efficiently manage long-term memory:

1. Contextual Distribution Matching Distillation (CDMD)

Instead of relying on a short-sighted teacher, the framework utilizes a Context Teacher pretrained specifically on video continuation tasks. This teacher has full access to the generation history. During training, the student is supervised by this long-context teacher, ensuring the student learns to model global temporal dependencies rather than just local, frame-to-frame motion.

2. Slow-Fast Memory Architecture

Storing every past frame in a model's Key-Value (KV) cache is computationally prohibitive for long videos. To solve this, the authors propose a highly efficient, three-part memory system:

  • Attention Sink: Retains the very first frames of the video to anchor and stabilize the model's attention mechanisms.
  • Slow Memory: A long-term buffer that selectively stores "high-surprisal" frames—those that differ significantly from their predecessors. By using key-vector similarity to identify these surprising moments, the model captures key transitions while discarding redundant, static data.
  • Fast Memory: A rolling "first-in, first-out" queue that captures the immediate, local context for smooth frame-to-frame generation.

3. Error-Recycling Fine-Tuning (ERFT)

To ensure the teacher is robust enough to guide the student, it is trained using "Error-Recycling." The researchers intentionally inject realistic errors (drift) into the teacher's context during training. This teaches the teacher how to "pull the student back" to the correct visual manifold when the student inevitably begins to drift during inference, mimicking how humans adjust their actions based on previous mistakes.

Datasets and Evaluation

  • Training: The models were trained on high-quality subsets of the Sekai and Ultravideo collections (filtered for clips longer than 10 seconds) alongside the VidProM dataset.
  • Evaluation: The framework was rigorously tested using VBench (a standard benchmark for video quality and consistency) and MovieGenBench (used for sampling complex text prompts for 60-second long-form generation).

Key Results

The implementation of Context Forcing yielded substantial improvements over existing baselines:

  • Unprecedented Context Length: The model achieved an effective context length of 20+ seconds, vastly outperforming Infinity-RoPE (1.5s) and LongLive (3.0s).
  • Superior Consistency: On 60-second video generation tasks, Context Forcing maintained significantly higher DINO scores (measuring structural consistency) and CLIP-F scores (measuring semantic consistency) than all competing baselines.
  • Improved Visual Quality: The method successfully eliminated common autoregressive artifacts, such as "flashbacks" (where the video abruptly resets to the first frame) and unnatural cyclic motion patterns.
  • Human Preference: In blind A/B testing, human evaluators preferred Context Forcing 77.3% of the time over Infinity-RoPE and 69.3% of the time over LongLive.

Limitations and Future Work

While Context Forcing represents a major leap forward, the authors note a few remaining challenges:

  • Residual Drift: Although greatly reduced, drift is not entirely eliminated. In extremely complex or fast-moving scenes, the model can still lose track of fine-grained details over time.
  • Texture Distortion: Subtle, intricate textures (such as the specific weave of a fabric or fine text) can occasionally become distorted or "smudged" over very long generation windows.

Future Directions: The authors suggest that future research should explore even more advanced context compression techniques. Ultimately, the goal is to scale this framework to support the generation of cohesive videos spanning several minutes or even hours, paving the way for fully generative long-form filmmaking.

Summary updated

BibTeX
@inproceedings{chen2026context,
  author = {Shuo Chen and Cong Wei and Sun Sun and Tiancheng SHEN and Ping Nie and Kai Zou and Ge Zhang and Ming-Hsuan Yang and Wenhu Chen},
  title = {{Context Forcing: Consistent Autoregressive Video Generation with Long Context}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=lv86f7Qr9V},
}
Figure