LayerRecall:用于视频生成中长时程一致性的状态条件记忆路由器

·

研究论文 · 2026/08/31

自回归视频扩散通过从有界的近期上下文生成块来实现可扩展的长视频生成。虽然基于近期性的缓存保持了局部连续性,但当主体、对象、场景或属性重新出现时,它会驱逐所需的历史线索。现有的记忆机制使模型暴露于非局部历史,但仅访问并不能确保有效使用。我们的分析表明,视频DiT层对当前、近期和远期上下文表现出不同的偏好,这表明长程记忆需要决定检索什么以及在哪里使用。我们引入了LayerRecall,一种当前条件、层选择的记忆路由器,它检索相关的历史K/V状态,并仅将其注入骨干特定的记忆敏感层,同时在其他地方保留局部注意力。为了减少对稀缺的高质量长视野视频和显式记忆分配标签的依赖,我们进一步提出了跨视野预测匹配(CHPM),它使用特权长上下文参考在预测空间中监督有界记忆路由器。在100个多镜头评估提示中,LayerRecall在MemoBench和MovieBench上取得了最佳整体结果,同时在VBench-Long上与其骨干匹配,展示了更强的长程恢复能力而不牺牲局部连续性。定性分析进一步揭示了记忆引导的自我纠正,即最初不匹配的局部属性恢复到其历史外观,而无需重置正在进行的运动或场景结构。额外的分析显示了跨骨干可移植性和可忽略的推理开销。

该论文针对长视频生成中的长程一致性问题,提出了一种新颖的层选择性记忆路由机制,并通过实验验证了其有效性。其发现视频DiT层对上下文的不同偏好为记忆机制的设计提供了新视角,且提出的CHPM方法减少了对昂贵数据的依赖,具有实际应用价值。

Autoregressive video diffusion enables scalable long-video generation by producing chunks from a bounded recent context. While recency-based caching preserves local continuity, it evicts historical cues needed when subjects, objects, scenes, or attributes reappear. Existing memory mechanisms expose models to nonlocal history, but access alone does not ensure effective use. Our analysis reveals that video DiT layers exhibit distinct preferences for current, recent, and distant context, suggesting that long-range memory requires deciding both what to retrieve and where to use it. We introduce LayerRecall, a current-conditioned, layer-selective memory router that retrieves relevant historical K/V states and injects them only into backbone-specific memory-sensitive layers while preserving local attention elsewhere. To reduce reliance on scarce high-quality long-horizon videos and explicit memory-allocation labels, we further propose Cross-Horizon Prediction Matching (CHPM), which uses a privileged long-context reference to supervise the bounded-memory router in prediction space. Across 100 multi-shot evaluation prompts, LayerRecall achieves the best overall results on MemoBench and MovieBench while matching its backbone on VBench-Long, demonstrating stronger long-range recovery without sacrificing local continuity. Qualitative analyses further reveal memory-guided self-correction, whereby initially mismatched local attributes return to their historical appearance without resetting ongoing motion or scene structure. Additional analyses show cross-backbone portability and negligible inference overhead.

阅读原文

参与讨论