测试时分布内强制用于长视频生成
研究论文 · 2026/10/06
现代自回归(AR)视频扩散模型在短时视频生成上表现优异,但长视频生成仍因漂移(颜色和纹理偏移、运动动态衰减)而困难。现有工作主要依赖 KV 条件化,即选择或修改缓存的键值(KV)条目以缓解漂移。然而,我们观察到仅靠 KV 条件化不够,因为它假设缓存的 KV 条目保持分布内。该假设在训练范围之外失效:在 rollout 过程中没有任何东西约束 KV 条目的构建,导致 KV 来源问题,即缓存条目本身变得分布外(OOD)。为此,我们提出 In-Distribution Forcing(ID-Forcing),一个测试时框架,使 KV 缓存和 KV 条件化都与训练配置对齐。其关键机制 self-caching 从源头防止 OOD KV 条目。每个块被缓存时不关注先前的 KV 条目,使滚动窗口完全保持分布内。因此,ID-Forcing 无缝地将短时模型扩展到分钟级视频生成。大量评估表明,我们的方法在标准视频生成基准上保持竞争力,同时在缓解漂移方面显著优于先前工作,这由我们的漂移指标和用户研究验证。
该工作揭示了长视频生成中 KV 条件化的根本缺陷,并提出简单有效的测试时解决方案,显著缓解漂移,对自回归视频扩散模型的长时生成有重要推进。
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.