2025-08-29 · 专家 · 机器学习 · 计算机视觉

Mixture of Contexts for Long Video Generation

该论文提出了一种名为MoC(Mixture of Contexts)的框架,通过可学习的稀疏注意力路由模块,有效地解决了长视频生成中的长期记忆问题,实现了在保持视频质量的同时,大幅提高生成效率。

更新于 2025-08-29。作者:Shengqu Cai、Ceyuan Yang、Lvmin Zhang、Yuwei Guo、Junfei Xiao、Ziyan Yang、Yinghao Xu、Zhenheng Yang、Alan Yuille、Leonidas Guibas、Maneesh Agrawala、Lu Jiang、Gordon Wetzstein。

中文摘要

长视频生成本质上是一个长上下文记忆问题:模型必须在很长的范围内保留和检索显著事件,而不会崩溃或漂移。然而,将扩散Transformer扩展到生成长上下文视频时,由于自注意力机制的二次成本,这本质上限制了其扩展性,使得内存和计算变得难以处理和优化。我们将长上下文视频生成重新定义为一个内部信息检索任务,并提出一个简单、可学习的稀疏注意力路由模块,即混合上下文(MoC),作为有效的长期记忆检索引擎。在MoC中,每个查询动态选择一些信息块以及必须的锚点(标题、局部窗口)进行关注,并通过因果路由来防止循环闭合。随着数据的扩展和路由的逐渐稀疏化,模型将计算资源分配给显著的历史事件,保留几分钟内容中的身份、动作和场景。检索的效率作为副产品(近似线性扩展),使得实际训练和合成成为可能,并在分钟尺度上实现了记忆和一致性。

英文摘要

Long video generation is fundamentally a long context memory problem: models must retain and retrieve salient events across a long range without collapsing or drifting. However, scaling diffusion transformers to generate long-context videos is fundamentally limited by the quadratic cost of self-attention, which makes memory and computation intractable and difficult to optimize for long sequences. We recast long-context video generation as an internal information retrieval task and propose a simple, learnable sparse attention routing module, Mixture of Contexts (MoC), as an effective long-term memory retrieval engine. In MoC, each query dynamically selects a few informative chunks plus mandatory anchors (caption, local windows) to attend to, with causal routing that prevents loop closures. As we scale the data and gradually sparsify the routing, the model allocates compute to salient history, preserving identities, actions, and scenes over minutes of content. Efficiency follows as a byproduct of retrieval (near-linear scaling), which enables practical training and synthesis, and the emergence of memory and consistency at the scale of minutes.

解读

一句话总结

该论文提出了一种名为MoC(Mixture of Contexts)的框架,通过可学习的稀疏注意力路由模块,有效地解决了长视频生成中的长期记忆问题,实现了在保持视频质量的同时,大幅提高生成效率。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt