TL;DR
LoViC introduces an efficient framework for long-form video generation by compressing historical video and text context into unified latent representations using a novel autoencoder called FlexFormer. This approach mitigates the quadratic computational bottleneck of self-attention in Diffusion Transformers (DiTs), enabling the generation of long, temporally coherent videos across diverse tasks like video prediction, interpolation, retrodiction, and multi-shot generation.
What Problem Does This Paper Address?
While Diffusion Transformers (DiTs) have revolutionized text-to-video generation, scaling them to long-duration videos remains a massive hurdle. The core issue is the quadratic computational complexity of self-attention: as the video grows longer, the number of spatiotemporal tokens explodes, quickly exhausting GPU memory.
Existing solutions typically generate videos segment-by-segment (autoregressively). However, because they can only afford to look back at a very short context window, they suffer from "identity drift" (characters changing appearance), background inconsistency, and severe color flickering over time. To fix this, models need to look further back into their generation history, but doing so directly is computationally impossible without a smart way to compress that context.
Methods
The authors introduce LoViC (Long Video generation with Context compression), which generates long videos chunk-by-chunk while conditioning on the compressed history of all preceding segments.
The framework relies on two key architectural innovations:
- FlexFormer Autoencoder: A flexible, Q-Former-based architecture that jointly compresses arbitrary-length video and text tokens into a unified latent space. Instead of using standard cross-attention, FlexFormer employs a self-attention mechanism with a Single Learnable Query Token. This token is replicated dynamically to match the input size, allowing for adjustable, adaptive compression rates.
- Interpolated-RoPE (I-RoPE): Standard positional encodings treat compressed tokens as a simple 1D sequence, which destroys spatial awareness and results in blurry video reconstructions. I-RoPE fixes this by interpolating the 3D spatiotemporal indices of the original video tokens, preserving explicit spatial priors during compression.
The authors also explore different compression strategies (Uniform, Linear, and Log). They find that a linear strategy—which allocates lower compression ratios (more tokens) to frames closer to the current generation target—significantly improves temporal continuity.
Datasets
The model was trained and evaluated on a processed version of the open-source Panda-70M dataset:
- Training Set: The authors downloaded 1.6 million video clips from the 2M subset.
- Data Refinement: Because the original automated captions were too brief, they re-captioned the dataset using the Qwen2.5-VL-7B multimodal model to generate highly descriptive prompts. They also utilized ViCLIP to filter out visually or semantically inconsistent video clips, retaining the highest-quality data.
- Evaluation: Testing was performed on 100 randomly selected single-shot videos (split into three segments for prediction/interpolation/retrodiction tasks) and 100 prompt sets for multi-shot evaluation.
Key Insights and Ideas
- Compression as a Regularizer: Surprisingly, compressing the context doesn't just save compute—it actually improves video quality. LoViC outperformed a baseline (LTX-Video-V0.9.6) that consumed full, uncompressed conditioning frames. This suggests that raw video features contain significant redundancy that can confuse the diffusion model, and compression acts as a beneficial filtering mechanism.
- Spatial Priors are Non-Negotiable: The failure of standard M-RoPE in their early tests proved that treating compressed video tokens like text tokens ruins structural integrity. Explicitly mapping query tokens back to 3D spatiotemporal coordinates via I-RoPE is essential for clean, sharp video generation.
- Coherence Over Prompt Adherence: The authors observed that when generating multi-shot videos, the model naturally prioritizes visual and temporal continuity with past frames over strictly adhering to new text prompts, highlighting the dominant guiding force of the compressed context.
Key Results
- Resource Efficiency: LoViC drastically reduces GPU memory usage and runtime compared to a vanilla DiT as the frame count scales, allowing longer videos to be generated on the same hardware constraints.
- Quantitative Performance: In video prediction, interpolation, and retrodiction, LoViC consistently outperformed state-of-the-art baselines (including CausVid, SkyReel-V2, and the much larger 13B FramePack model) in reference-based metrics like PSNR and LPIPS, as well as non-reference metrics like Subject and Background Consistency.
- Multi-Shot Consistency: For multi-shot generation, LoViC achieved a Subject Consistency score of 0.944 and a Background Consistency score of 0.951, substantially beating training-free methods like MEVG.
Limitations and Future Work
- Aesthetic and Alignment Trade-offs: LoViC achieved slightly lower Aesthetic Quality and Video-text Alignment scores in multi-shot tasks compared to its base model. The authors attribute this to the lower aesthetic quality of the open-source training data and the model's tendency to prioritize historical continuity over text prompts.
- Future Directions: The authors aim to explore more advanced architectures that can adaptively extract and integrate only the most relevant information from past segments, rather than relying on fixed linear or uniform compression schedules.
Summary updated