TL;DR
Generating long, coherent videos is computationally expensive and prone to inconsistencies. TokensGen tackles this by using "condensed tokens" to represent video segments, allowing a two-stage diffusion model to generate minutes-long videos efficiently while maintaining temporal and content consistency. This approach significantly lowers the barrier to high-quality long video generation.
What Problem Does This Paper Address?
Creating long, visually appealing videos that maintain a consistent narrative and motion over extended durations is a significant challenge in AI. Current diffusion models excel at generating short clips, but extending them to minutes or longer runs into severe computational limitations (memory bottlenecks) and often results in a loss of temporal coherence and content consistency. Existing methods try to overcome this by decomposing the problem, using techniques like auto-regressive generation or hierarchical approaches. However, auto-regressive methods can suffer from error accumulation and limited context, while hierarchical methods might lose fine-grained details. There's a clear need for a scalable and efficient framework that can generate long videos with both short-term visual quality and long-term narrative coherence.
Methods
TokensGen introduces a novel two-stage framework built upon a pre-trained text-to-video diffusion model (CogVideoX). The core innovation lies in the use of "condensed tokens" to represent video segments.
- To2V Model (Inner-clip Semantic Control): This component focuses on generating visually rich and semantically controlled short video clips. It uses a Video Tokenizer that takes short video clips and encodes them into compact, high-level semantic tokens. These tokens capture spatial layouts and motion cues more efficiently than raw frames. A Cross-Attention Branch is integrated into the base CogVideoX model to allow these semantic tokens to guide the diffusion process, ensuring better per-clip control.
- T2To Model (Long-term Content Consistency): This is a video token diffusion transformer trained to generate a sequence of semantic tokens for an entire long video from a text prompt. By operating in this condensed token space, it can maintain global consistency across clips without the prohibitive memory overhead of processing raw video frames.
- Adaptive FIFO-Diffusion (Inter-clip Temporal Smoothness): During inference, the tokens generated by T2To are used to guide the To2V model for clip generation. To ensure smooth transitions between these clips, an adaptive FIFO-denoising strategy is employed. This method improves upon standard FIFO-Diffusion by using an adaptive padding strategy that better aligns with the model's learned distribution, preventing artifacts that arise from naive frame replication or padding.
Datasets
- MiraData [21]: Used for training, this dataset contains long videos with structured captions. The authors collected 56k videos with dense captions for training.
- Filtered Subset of MiraData: For training the T2To model, a filtered subset of around 16k high-quality videos (at least one minute long, primarily gameplay and natural landscapes) was used. Videos with abrupt scene changes were filtered out.
Key Insights and Ideas
- Tokens as a Compression and Control Mechanism: The paper demonstrates that condensing video information into semantic tokens is a powerful way to manage computational complexity for long videos while retaining crucial semantic and motion information.
- Bridging Short-Clip Expertise to Long Videos: By leveraging pre-trained short video models (like CogVideoX) and adapting them with token-based conditioning, TokensGen efficiently transfers existing knowledge to the long video generation task.
- Importance of Adaptive Transitions: The adaptive FIFO-Diffusion strategy highlights that simply concatenating generated clips, even with consistent semantics, can lead to visual artifacts. A carefully designed transition mechanism is crucial for seamless long video generation.
- Two-Stage Approach for Scalability: Decomposing the problem into generating tokens (long-term consistency) and then generating clips from tokens (short-term control) provides a modular and scalable solution.
Key Results
- Quantitative Evaluation (VBench & Human Study): TokensGen achieved the highest scores on VBench metrics like Motion Smoothness and Dynamic Degree. A user study with 24 participants further confirmed its superiority in text-visual alignment and motion & content consistency compared to methods like Video-Infinity, DiTCtrl, and Kling.
- Qualitative Comparisons: Visualizations show TokensGen producing smoother motion transitions and more coherent subject representation over extended sequences compared to baselines, which often exhibit abrupt scene shifts, erratic motions, or static foregrounds.
- Efficiency: By using condensed tokens, the framework significantly reduces computational overhead for minute-level generation.
Limitations and Future Work
- Fine-grained Detail Preservation: The paper acknowledges that focusing on high-level semantics via tokens might lead to gradual variations in foreground objects over extended sequences. The capacity to capture intricate spatial-temporal cues might be insufficient for extremely complex scenes.
- Dataset Scope: The current framework is tested on gameplay and landscape videos, and its scalability to broader applications and more diverse datasets is noted as a future direction.
- Future Directions: The authors suggest exploring multi-scale tokenization or hybrid representations to bolster fine-grained controllability while retaining scalability. They also mention the potential for integrating stronger short-term consistency strategies beyond tuning-free FIFO.
Summary updated