arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.09442cs.CVcs.AI
收藏

SWIFT: 用于高效交互长视频生成的提示自适应内存

SWIFT: Prompt-Adaptive Memory for Efficient Interactive Long Video Generation

University of Science and Technology of China(中国科学技术大学);Fudan University(复旦大学);Georgia Institute of Technology(佐治亚理工学院);Shanghai Jiao Tong University(上海交通大学)

Shanwen Tan, Hao Li, Jingtao Zhang, Xiaosong Jia, Xue Yang, Shaofeng Zhang, Yanyong Zhang

AI总结:

SWIFT提出一种无需训练的多提示长视频生成框架,通过轻量级语义注入缓存和自适应动态窗口实现高效语义切换,保持时间一致性,达到22.6 FPS的高效生成速度。

摘要:

流式长视频生成面临持续语义切换的挑战,需要适应性内存来保持视觉演变的连贯性。当前方法依赖于提示边界或固定内存预算的缓存重建,但引入了冗余计算并限制了灵活的语义适应。这种限制源于缓存的视频历史与提示更新之间的不匹配,因为内存保留了视觉连续性,而提示切换要求快速的语义适应。受此启发,我们提出了SWIFT,即语义窗口化和注入以实现灵活过渡,一种无需训练的多提示长视频生成框架,能够在因果视频扩散模型中实现高效的语义切换并保持时间一致性。SWIFT引入了一种轻量级的语义注入缓存,通过增强缓存的视频内存而不是在每次提示边界重建它。为了避免均匀扰动所有注意力通道,我们进一步进行头级语义注入,使得每个注意力头接收到的提示更新与其与当前视频状态的对齐比例成正比。此外,我们引入了自适应动态窗口,根据提示阶段分配时间内存,使用较大的局部上下文靠近切换边界,并在稳定段使用较小的窗口以减少平均推理成本。为了在压缩的局部注意力下保持长距离语义一致性,我们进一步维护段级语义锚点,总结提示条件的视频历史并重新引入作为紧凑的内存令牌。与当前最先进的方法相比,SWIFT在单个H100 GPU上达到22.6 FPS,建立了更高效的多提示长视频生成解决方案。我们的代码可在https://github.com/ShanwenTan/SWIFT上获取。

英文摘要:

Streaming long-video generation faces a central challenge in continuous semantic switching, requiring adaptive memory to preserve coherent visual evolution. Current approaches rely on cache rebuilding at prompt boundaries or fixed memory budgets, but they introduce redundant computation and limit flexible semantic adaptation. This limitation arises from a mismatch between cached video history and prompt updates, as memory preserves visual continuity while prompt switches demand rapid semantic adaptation. Motivated by this observation, we present SWIFT, Semantic Windowing and Injection for Flexible Transitions, a training-free framework for multi-prompt long-video generation that enables efficient semantic switching while preserving temporal coherence in causal video diffusion models. SWIFT introduces a lightweight Semantic Injection Cache that augments cached video memory rather than reconstructing it from scratch at every prompt boundary. To avoid uniformly perturbing all attention channels, we further perform head-wise semantic injection, so that each attention head receives a prompt update proportional to its alignment with the current video state. In addition, we introduce an Adaptive Dynamic Window that allocates temporal memory according to prompt phase, using larger local context near switching boundaries and smaller windows during stable segments to reduce average inference cost. To preserve long-range semantic consistency under compressed local attention, we further maintain segment-level semantic anchors that summarize prompt-conditioned video history and reintroduce it as compact memory tokens. Compared with current state-of-the-art methods, SWIFT preserves generation quality while achieving 22.6 FPS on a single H100 GPU, establishing a substantially more efficient solution for multi-prompt long-video generation. Our code is available at https://github.com/ShanwenTan/SWIFT.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑