用检索增强生成解决长视频生成中的误差累积问题。
LongLive-RAG: A General Retrieval-Augmented Framework for Long Video Generation

- 将已生成视频帧作为可检索的历史记忆,突破局部窗口限制。
- 在多个模型和长度下提升长视频质量,平均VBench-Long排名最优。
- 适合需要稳定长视频生成的研究者与开发者使用。
自回归视频扩散模型可生成任意长度视频,但长时生成常因误差累积和身份漂移而退化。现有方法多采用滑动窗口注意力以提高效率,导致生成轨迹一旦出错便无法修正,后续生成只能基于劣化的序列继续恶化。本文提出LongLive-RAG,将长视频生成建模为检索增强生成(RAG)问题:不再仅依赖最近窗口,而是将先前生成的潜在表示作为动态可搜索的历史。每生成新块时,通过查询嵌入检索相关历史潜在表示,轻量级检索步骤仅增加少量开销,使生成器能利用非局部上下文。为提升检索判别性,引入窗口时间差损失(Window Temporal Delta Loss),抑制冗余局部相似性,鼓励嵌入捕捉有意义的时间变化。该框架有效缓解了滑动窗口注意力带来的误差累积。跨多个自回归骨干模型和生成长度的实验表明,其显著提升长视频质量,获得最佳平均VBench-Long排名。据我们所知,LongLive-RAG是首个将自生成潜在历史作为内容可寻址记忆用于开放式自回归长视频生成的方法。代码已开源。
原文摘要 · Abstract (English)
Autoregressive (AR) video diffusion enables variable-length synthesis, but long-horizon generation often suffers from accumulated errors and identity drift. For efficiency, existing methods commonly adopt sliding-window attention during generation. This creates an irreversible generation trajectory: once the active window accumulates appearance errors, subsequent generations can only condition on this degraded trajectory and drift further away. We address this limitation by formulating long video generation as a retrieval-augmented generation (RAG) problem. Rather than relying solely on the recent window, we treat previously generated latents as a dynamic, searchable history. We propose LongLive-RAG, a general retrieval framework for AR video generation. At each new block, LongLive-RAG uses a query embedding to retrieve relevant historical latents. This lightweight retrieval step adds only a small overhead relative to generation and lets the generator condition on non-local context instead of only the recent window. To make retrieval more discriminative, we introduce the Window Temporal Delta Loss that suppresses redundant local similarity and encourages embeddings to capture meaningful temporal changes. Together, these components help reduce error accumulation caused by sliding-window attention. Experiments across multiple AR backbones and generation lengths show improved long-video quality and the best average VBench-Long rank. To our knowledge, among open-ended AR long video generation methods, LongLive-RAG is the first to formulate self-generated latent history as content-addressable retrieval memory. Code is available at https://github.com/qixinhu11/LongLive-RAG.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。