In-distribution forcing improves long video generation stability

In-Distribution Forcing for Long Video Generation at Test Time

Computer Vision and Pattern Recognition

Summary

Generating long videos with AI is tricky because the images and movements can get messy over time. The authors found that existing methods assume the computer's memory during generation stays like the training examples, but this isn’t true for longer videos. They propose a new technique called In-Distribution Forcing that keeps the computer’s memory consistent by carefully limiting how information is stored and used as the video grows longer. This helps make longer videos without the usual mistakes and preserves quality better than before.

What this means in practice

  • For video game developers: Generate longer in-game cutscenes or animations while maintaining visual and motion consistency over time.
  • For film and animation studios: Produce extended AI-generated video clips that avoid artifacts and maintain quality across many seconds or minutes.

Authors

Jeongwoo Shin, Youngyoon Choi, Sangwoo Jo, Hyunmog Kim, Sungjoon Choi, Joonseok Lee, Jaewoong Choi, Jaemoo Choi

Abstract

Modern autoregressive (AR) video diffusion models excel at short-horizon video generation, yet generating long videos remains challenging due to drifting, where colors and textures shift, and motion dynamics decay. Existing works primarily rely on KV conditioning, which selects or modifies cached key-value (KV) entries to mitigate drifting. However, we observe that KV conditioning alone is insufficient as it assumes cached KV entries remain in-distribution. This assumption fails beyond the training horizon: nothing constrains the construction of KV entries during rollout, giving rise to the KV-provenance problem where cached entries themselves become out-of-distribution (OOD). To address this, we propose In-Distribution Forcing (ID-Forcing), a test-time framework that aligns both KV caching and KV conditioning with training configurations. Its key mechanism, self-caching, prevents OOD KV entries at their source. Each chunk is cached without attending to prior KV entry, keeping the rolling window exactly in-distribution. Consequently, ID-Forcing seamlessly extends short-horizon models to minute-scale video generation. Extensive evaluations show that our method remains competitive on standard video generation benchmark while substantially outperforming prior work in mitigating drifting, as validated by both our drift metrics and a user study.