TL;DR
DiCoDe enables vanilla autoregressive language models to generate long, chronologically consistent videos by introducing "Diffusion-Compressed Deep Tokens." By leveraging the prior knowledge of video diffusion models, DiCoDe achieves a massive 1000× token reduction over traditional VQ-VAE methods, allowing standard transformers to treat video generation as a straightforward sequence prediction task that can be trained on modest academic hardware (4× A100 GPUs).
What Problem Does This Paper Address?
Autoregressive (AR) language models like GPT have revolutionized NLP due to their exceptional scalability and natural alignment with sequential data. Naturally, researchers want to apply this same chronological, token-by-token prediction to video generation.
However, videos suffer from extreme data redundancy. Existing visual AR models typically tokenize videos into low-level discrete codes using VQ-VAE-style architectures. Under this paradigm, a single 1-minute video can explode into up to a million tokens, making long-video generation computationally infeasible and context windows prohibitively expensive.
DiCoDe addresses this "token explosion" problem by introducing a highly compressed, high-level representation that allows vanilla language models to model videos efficiently over time.
Methods
DiCoDe splits the video generation problem into two distinct phases: high-level tokenization and autoregressive sequence modeling.
- Diffusion-Compressed Tokenizer: Instead of discrete, low-level pixels, DiCoDe represents videos using continuous, high-level Deep Tokens. Frames are first passed through a semantic encoder (CLIP-ViT) and a Query Transformer ($\mathcal{Q}$) to extract a compact set of continuous features. To decode these features back into video frames, the authors adapt an off-the-shelf video diffusion model (DynamiCrafter), utilizing its pre-trained "world knowledge" to reconstruct a 2-second video clip from just 16 continuous deep tokens—a 1000× reduction in token count compared to standard methods.
- Autoregressive Language Modeling: Because the deep tokens are highly compressed and chronologically ordered, DiCoDe can employ standard, vanilla AR architectures (like GPT-2 or Llama 3.2) without specialized masking or bidirectional attention mechanisms. The model simply treats video generation as a translation task: predicting the next visual token given a text prompt prefix.
- Continuous Distribution Modeling (GMM Loss): Standard language models use cross-entropy loss to predict discrete tokens. Because DiCoDe's deep tokens are continuous, a simple point-estimate loss like $L_2$ would fail to capture the inherent variance and uncertainty of the visual data. To fix this, the authors introduce a Gaussian Mixture Model (GMM) loss, forcing the AR model to predict the parameters (means, variances, and weights) of a multimodal distribution for the next token.
Datasets
- Tokenizer Training: WebVid-10M (10 million video-text clips).
- Autoregressive Model Training: A diverse mix of image-text and video-text datasets totaling 25 million sampled pairs, including JourneyDB, Unsplash, LAION-aesthetic-v2-6.25, LAION-COCO, and a motion-filtered subset of WebVid-10M.
- Evaluation: Zero-shot video generation was evaluated on the full MSR-VTT dataset (2,990 test videos).
Key Insights and Ideas
- Leveraging Diffusion as a Compressor: Rather than using diffusion models to generate the final video directly, DiCoDe uses them purely as a high-ratio decompression engine. This offloads the burden of local texture synthesis to the diffusion model, leaving the language model free to focus entirely on global dynamics, consistency, and long-term temporal sequencing.
- The Necessity of Variance: The paper reinforces a crucial lesson for continuous autoregression: you cannot simply regress to a single target point using $L_2$ loss. Explicitly modeling the variance via GMM components is what injects the necessary diversity and stability into the generation process.
- Semantic Density of Deep Tokens: By progressively "zeroing out" deep tokens during inference, the authors demonstrated that each token corresponds to distinct semantic entities in the scene, operating much like words in a sentence rather than raw pixel patches.
Key Results
- Extreme Compression: DiCoDe represents a 2-second, 256×256 video clip using only 16 continuous tokens, compared to the 1,024 to 6,400 tokens required by competing methods like Loong or CogVideo.
- Zero-Shot Performance: On the MSR-VTT benchmark, DiCoDe-Llama3.2-1B achieved a competitive CLIPSIM of 0.2950 and an FVD of 367. This matches or nears the performance of state-of-the-art AR models like VideoPoet, despite DiCoDe being trained on a fraction of the data (25M pairs vs. 1B pairs) and using significantly fewer computational resources.
- Clear Scaling Laws: The authors demonstrated predictable scalability. As the underlying language model scaled from a 100M GPT-2 variant up to a 3B Llama 3.2 variant, both the pre-training loss and the Fréchet Video Distance (FVD) consistently improved.
Limitations and Future Work
- Rigid Object Distortion: Because the WebVid-10M dataset is heavily biased toward natural scenes, DiCoDe occasionally struggles to maintain the structural integrity of rigid, complex geometric objects.
- Dataset Length Constraints: The average video length in WebVid is only 17.5 seconds, which inherently limits the model's exposure to long-form cinematic dynamics during training.
- Abrupt Scene Transitions: The underlying assumption that a video clip can be smoothly interpolated between a head and rear frame holds true for continuous motion, but the tokenizer can fail when clips contain sudden cuts or transitions.
Summary updated