2025-12-17 · 专家 · 计算机视觉 · 自然语言处理 · 机器学习

MemFlow: Flowing Adaptive Memory for Consistent and Efficient Long Video Narratives

MemFlow通过引入动态记忆机制,实现了在长视频生成中保持内容一致性和高效性的目标。

更新于 2026-08-06。作者:Sihui Ji、Xi Chen、Shuai Yang、Xin Tao、Pengfei Wan、Hengshuang Zhao。

中文摘要

流媒体视频生成的核心挑战是在长上下文中保持内容一致性,这对内存设计提出了很高的要求。大多数现有的解决方案通过预定义的策略压缩历史帧来维护内存。然而,不同的生成视频块应该参考不同的历史线索,固定策略难以满足这一需求。在这项工作中,我们提出了MemFlow来解决这一问题。具体来说,在生成下一个块之前,我们通过检索与该块文本提示最相关的历史帧来动态更新内存库。这种设计即使在未来的帧中发生新事件或场景切换的情况下,也能实现叙事连贯性。此外,在生成过程中,我们仅在注意力层中激活内存库中最相关的标记,这有效地保证了生成效率。因此,MemFlow在计算负担极小的情况下(与无内存基线相比速度降低7.9%)实现了出色的长上下文一致性,并保持了与任何具有KV缓存的流媒体视频生成模型的兼容性。

英文摘要

The core challenge for streaming video generation is maintaining the content consistency in long context, which poses high requirement for the memory design. Most existing solutions maintain the memory by compressing historical frames with predefined strategies. However, different to-generate video chunks should refer to different historical cues, which is hard to satisfy with fixed strategies. In this work, we propose MemFlow to address this problem. Specifically, before generating the coming chunk, we dynamically update the memory bank by retrieving the most relevant historical frames with the text prompt of this chunk. This design enables narrative coherence even if new event happens or scenario switches in future frames. In addition, during generation, we only activate the most relevant tokens in the memory bank for each query in the attention layers, which effectively guarantees the generation efficiency. In this way, MemFlow achieves outstanding long-context consistency with negligible computation burden (7.9% speed reduction compared with the memory-free baseline) and keeps the compatibility with any streaming video generation model with KV cache.

解读

一句话总结

MemFlow通过引入动态记忆机制,实现了在长视频生成中保持内容一致性和高效性的目标。

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

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

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

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

来源