TL;DR
This paper introduces Long Context Tuning (LCT), a novel training paradigm that extends single-shot video generation models to produce coherent, multi-shot scenes. By expanding the attention mechanism to encompass entire scenes and employing interleaved positional embeddings, LCT enables models to learn scene-level consistency directly from data, paving the way for more practical and interactive video creation.
What Problem Does This Paper Address?
Current state-of-the-art video generation models can produce impressive single-shot videos, but real-world narrative content, like movies and TV shows, is composed of multiple shots that must maintain visual and temporal consistency. Existing methods for scene-level generation often struggle with maintaining abstract elements like lighting and color tone, or they fail to guarantee temporal coherence across independently generated shots. This gap limits the ability to create realistic, long-form narrative videos.
Methods
The core of this work is Long Context Tuning (LCT), a method to adapt pre-trained single-shot video diffusion models for scene-level generation. Key innovations include:
- Scene-Level Full Attention: LCT expands the attention mechanism to operate on all tokens (text and video) within an entire scene, rather than just individual shots. This allows the model to learn cross-shot dependencies directly.
- Interleaved 3D Rotary Positional Embedding (ROPE): To help the model distinguish between tokens from different shots while maintaining relative positional information within shots, an interleaved ROPE is proposed. This embeds positional information for each shot distinctly.
- Asynchronous Timestep Strategy: During training, each shot is assigned independent diffusion timesteps. This allows for dynamic dependencies between shots, where a less noisy shot can act as a visual condition for a noisier one, enhancing cross-shot consistency.
- Context-Causal Attention Fine-tuning: After LCT, the model can be further fine-tuned with context-causal attention. This is more efficient for auto-regressive generation, as it allows for caching of key and value (KV) features from previous shots, significantly reducing computational overhead during inference.
Datasets
The authors collected scene-level video data from public sources across various genres. Raw videos were segmented into scenes and then individual shots. They used Gemini-1.5 to generate global and per-shot descriptions for these segments. To augment the dataset, they also filtered single-shot videos, divided them into sub-segments based on event changes, and treated these as multi-shot videos. This process resulted in approximately 500K scene samples and an additional 1M multi-shot samples.
Key Insights and Ideas
- Scene-level consistency is learnable: The paper demonstrates that by expanding the context window and training on scene-level data, models can directly learn to maintain visual and temporal coherence across multiple shots, overcoming limitations of previous approaches.
- Emergent Capabilities: LCT enables capabilities that the model was not explicitly trained for, such as compositional generation (integrating identity and environment images) and interactive shot extension, highlighting the power of learning broader scene-level relationships.
- Causal Attention for Efficiency: The fine-tuning of the model with context-causal attention significantly improves efficiency for auto-regressive generation by leveraging KV-caching, making long video generation more practical.
- Reappearance Problem Addressed: The paper highlights a key issue in keyframe-based methods where characters or objects might not reappear consistently. Their direct video generation approach effectively mitigates this problem.
Key Results
- Qualitative Improvements: LCT-tuned models produce more diverse framing (wide, mid, close-up shots) and exhibit superior consistency in character position and background compared to baseline methods like VideoStudio and StoryDiffusion.
- Quantitative Evaluation: While visual quality metrics were comparable to some baselines, LCT significantly outperformed them in semantic alignment and achieved higher scores in user studies for scene-level coherence.
- Single-Shot Performance Maintained/Improved: Ablation studies showed that LCT not only preserves but potentially enhances the single-shot generation capabilities of the pre-trained model.
- Efficient Causal Adaptation: The adaptation from a bidirectional to a context-causal architecture post-LCT showed rapid convergence, achieving comparable quality with significantly fewer training steps.
Limitations and Future Work
- Limitations:
- The paper notes that while their method excels in semantic alignment, some visually-conditioned baselines might slightly outperform it in raw visual quality.
- The auto-regressive generation, while improved, can still be susceptible to error accumulation, though they propose mitigating this with history conditioning timesteps.
- Future Work:
- The authors suggest leveraging Multimodal Large Language Models (MLLMs) as planners for scene-level video generation to enable more sophisticated applications like story generation and reasoning.
- They propose exploring token dynamic routing within attention mechanisms to address potential redundancy in current auto-regressive generation, which includes all preceding tokens as history conditions.
Summary updated