TL;DR
Echo-Infinity is an autoregressive video generation framework that enables real-time, infinite-horizon video synthesis at a constant computational cost. By introducing end-to-end learnable "Memory Queries" and a unified relative positional embedding recipe, it eliminates the dual bottlenecks of unbounded memory growth and positional embedding overflow. The framework achieves state-of-the-art long-video consistency and successfully demonstrates a continuous 24-hour video rollout (>1.3M frames) on a single GPU for the first time.
What Problem Does This Paper Address?
Autoregressive Video Diffusion Transformers (DiTs) are highly effective for streaming video generation, but they hit a hard wall when generating long sequences. They suffer from two primary bottlenecks:
- Unbounded Memory Growth: The key-value (KV) cache of past frames grows linearly with video length, quickly exhausting GPU memory.
- Positional Embedding Overflow: Temporal Rotary Positional Embeddings (RoPE) quickly exceed their pretrained maximum range ($f_{max}$), leading to severe out-of-distribution quality collapse or numerical overflow during long inference rollouts.
Existing solutions typically rely on handcrafted heuristics, such as truncating the context window or using fixed-ratio compression. However, these methods inevitably discard distant history, amplify compounding generation errors, and suffer from a severe train-test mismatch in positional embeddings.
Methods
The authors introduce Echo-Infinity, which solves these bottlenecks through two key innovations:
1. Three-Tier KV Cache & Learnable Memory Queries
Instead of using rigid, handcrafted rules to drop or compress old frames, Echo-Infinity structures every transformer layer's KV cache into a bio-inspired hierarchy:
- Sink Frames: A small, fixed set of initial frames that serve as a permanent global anchor.
- Local Window: A short-term working buffer holding the most recent KV caches.
- Memory Queries ($Q$): A compact set of learnable tokens that act as long-term memory.
When older frames are evicted from the local window, they are not discarded. Instead, they pass through a cross-attention mechanism and a sigmoid-gated residual block to update the Memory Queries. This allows the model to dynamically filter, abstract, and compress any-length history into a fixed-size representation ($O(1)$ memory footprint).
2. Unified Relative RoPE Recipe
To resolve the RoPE constraint, the authors propose a schedule applied identically during both training and inference. It anchors the sink frames at index 0 and allows the newest frame id to grow up to $f_{max}$. Once the video length reaches this threshold, all non-sink temporal IDs rotate backward by one unit for each new chunk generated. This keeps all active temporal indices strictly within the pretrained boundary, completely eliminating train-test extrapolation gaps.
Datasets
The framework was trained and evaluated using the following datasets:
- VidProM: A large-scale prompt gallery dataset used for the first-stage causal-forcing Distribution Matching Distillation (DMD) adaptation.
- VBench-Long: Used to quantitatively evaluate 30-second video generation quality and semantic consistency.
- MovieGen Prompts: 128 randomly sampled prompts used to evaluate ultra-long (240-second) video generation and day-scale infinite rollouts.
Key Insights and Ideas
- Fixed-Capacity vs. Fixed-Ratio Compression: Traditional history compression scales linearly with time (e.g., keeping 1 out of every $C$ frames still results in $O(T)$ growth). Echo-Infinity shifts to a fixed-capacity view. The effective compression ratio dynamically increases with video length, keeping the active context size completely independent of the sequence length.
- Memory as a Prior: The authors discovered that the optimized initial state of the Memory Queries acts as a powerful generation prior. Even when memory updates are manually disabled during short-video generation, the presence of these optimized tokens improves visual quality and motion plausibility.
- Unifying Relative RoPE: Prior training-free methods only applied relative RoPE adjustments at inference time on models trained with absolute RoPE. Unifying this bounded relative schedule across both training and inference prevents the model from ever encountering out-of-distribution positional indices.
Key Results
- 24-Hour Continuous Rollout: Echo-Infinity successfully generated a continuous video for 24 hours (>1.3 million frames) at 18.5 FPS on a single NVIDIA H100 GPU, demonstrating stable visual quality and zero degradation over day-scale horizons.
- State-of-the-Art Long Video Quality: On the 30-second VBench-Long benchmark, Echo-Infinity achieved a massive leap in human user preference (59.53% vs. 14.73% for the next best baseline). For 240-second videos, its user preference score reached 71.67%.
- Mitigating Identity Drift: Qualitatively, the model maintains excellent long-range subject identity and background coherence, avoiding the common pitfalls of disappearing objects or changing outfits seen in baseline models like LongLive and MemFlow.
Limitations and Future Work
- Interactive Generation: While highly effective for long single-prompt generation, optimizing the learnable memory queries specifically for interactive video generation (frequent, dynamic prompt switching) remains an open challenge.
- Stability in Highly Dynamic Scenes: Due to base model capacity limits, the framework can show reduced stability over hour-scale rollouts when depicting highly chaotic or fast-moving scenes.
- The Evaluation Bottleneck: Current quantitative video benchmarks are designed for short clips. There are currently no efficient, automated metrics to evaluate hour- or day-scale temporal consistency (e.g., tracking layout drift or prompt forgetting), leaving ultra-long evaluation heavily reliant on qualitative analysis.
Summary updated