Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

LongLive-RAG: A General Retrieval-Augmented Framework for Long Video Generation

About

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.

Qixin Hu, Shuai Yang, Wei Huang, Song Han, Yukang Chen• 2026

Related benchmarks

TaskDatasetResultRank
Long Video GenerationVBench-Long 60 seconds
Subject Consistency97.6
74
Long Video GenerationVBench-Long 30 seconds
Subject Consistency97.57
18
Long Video GenerationVBench-Long 120s generation
Subject Consistency97.64
12
Long Video Generation30s video generations
Causal Force4.7
4
Showing 4 of 4 rows

Other info

GitHub

Follow for update