Abstract
We present LongLive, a frame-level autoregressive (AR) framework for real-time and interactive long video generation. Long video generation presents challenges in both efficiency and quality. Diffusion and Diffusion-Forcing models can produce high-quality videos but suffer from low efficiency due to bidirectional attention. Causal attention AR models support KV caching for faster inference, but often degrade in quality on long videos due to memory challenges during long-video training. In addition, beyond static prompt-based generation, interactive capabilities, such as streaming prompt inputs, are critical for dynamic content creation, enabling users to guide narratives in real time. This interactive requirement significantly increases complexity, especially in ensuring visual consistency and semantic coherence during prompt transitions. To address these challenges, LongLive adopts a causal, frame-level AR design that integrates a KV-recache mechanism that refreshes cached states with new prompts for smooth, adherent switches; streaming long tuning to enable long video training and to align training and inference (train-long-test-long); and short window attention paired with a frame-level attention sink, shorten as frame sink, preserving long-range consistency while enabling faster generation. With these key designs, LongLive fine-tunes a 1.3B-parameter short-clip model to minute-long generation in just 32 GPU-days. At inference, LongLive sustains 20.7 FPS on a single NVIDIA H100, achieves strong performance on VBench in both short and long videos. LongLive supports up to 240-second videos on a single H100 GPU. LongLive further supports INT8-quantized inference with only marginal quality loss.
Introduction
Generating long videos (minutes rather than seconds) is a massive computational and algorithmic hurdle. Current state-of-the-art diffusion models produce high-quality results but are notoriously slow because they rely on bidirectional attention, which doesn't scale well with sequence length. Autoregressive (AR) models offer a faster alternative via Key-Value (KV) caching, but they typically suffer from "drift" where quality degrades over time, and they struggle with interactivity. Most models are static, meaning they cannot easily adapt to new user prompts mid-stream without jarring transitions or ignoring the new instructions entirely due to "cache inertia."
LongLive is a novel frame-level autoregressive framework that enables real-time, interactive video generation for sequences up to 240 seconds long. By combining a "KV-recache" mechanism for smooth prompt transitions with "streaming long tuning" to maintain quality over time, it achieves 20.7 FPS on a single H100—outperforming existing diffusion-based models in speed by over 40x while maintaining high visual consistency.
Methodology
LongLive treats video generation as a continuous, interactive stream. The framework is built upon three technical pillars designed to solve the issues of drift and static interaction:
- KV-recache: This mechanism is the core of LongLive's interactivity. When a user enters a new prompt mid-generation, the model recomputes the KV cache using the already generated frames paired with the new prompt. This "refreshes" the semantic context while maintaining the visual continuity of the scene, effectively clearing "prompt inertia."
- Streaming Long Tuning: To address the quality drop in long videos, the model is fine-tuned by rolling out long sequences during training. By reusing historical KV caches across iterations, the model learns to handle its own self-generated history, a strategy termed "train-long-test-long."
- Short Window Attention + Frame Sink: To maintain high inference speeds, the model utilizes a small "window" of recent frames for attention. To prevent the loss of global context (such as character identity), a "frame sink" is implemented where the initial frames of the video are kept permanently in the cache as anchors.
Experimental Setup
The model was developed using the Wan2.1-T2V-1.3B base model. Training utilized VidProM, a large-scale prompt gallery, with interactive prompts synthesized by Qwen2-72B to simulate logical narrative continuations. Evaluation was conducted using VBench and VBench-Long, alongside a custom interactive benchmark consisting of 160 videos with successive prompt changes to test semantic adherence.
Key Results and Insights
LongLive demonstrates significant improvements in both speed and long-form consistency:
- Efficiency: The system sustains 20.7 FPS on a single NVIDIA H100, enabling generation faster than real-time playback. In contrast, diffusion baselines like SkyReels-V2 can take nearly an hour for a 60-second clip.
- Consistency and Length: The framework successfully generates coherent videos up to 240 seconds (4 minutes) on a single GPU. On VBench-Long, it achieved a score of 83.52, outperforming both diffusion and AR competitors.
- Quantization: LongLive supports INT8 quantization, reducing the model size from 2.7 GB to 1.4 GB with negligible loss in visual quality, facilitating edge deployment.
A key insight from this work is that prompt signals are often "baked" into the KV cache through cross-attention. Re-caching is essential to "clean" this memory without losing the visual state, allowing for smooth narrative transitions.
Conclusion
LongLive provides a scalable solution for real-time, interactive long video generation. While its absolute visual fidelity is currently bounded by the 1.3B parameter base model, the framework successfully addresses the critical challenges of speed, drift, and interactivity. Future work will focus on scaling this framework to larger base models (10B+) and incorporating more diverse datasets to further elevate image quality.
Summary updated