TL;DR
MovieDreamer is a novel hierarchical framework that combines the sequential reasoning of autoregressive large language models (LLMs) with the high-fidelity generation of diffusion models to create ultra-long, narratively coherent videos. By predicting sparse keyframe tokens from a structured multimodal script and rendering them via an identity-preserving diffusion decoder, it achieves unprecedented character and stylistic consistency over extended durations.
What Problem Does This Paper Address?
While diffusion models have driven massive breakthroughs in short-form video generation (e.g., generating high-quality clips lasting seconds to a minute), scaling them to long-form content like full movies remains an open challenge. Pure diffusion models struggle with complex abstract logic, long-term plot progression, and maintaining character consistency across multiple scene cuts.
Conversely, autoregressive models (like LLMs) excel at handling long-term context and predicting "what happens next," but they are computationally inefficient for direct pixel-level rendering. MovieDreamer bridges this gap by mimicking the traditional movie production process: using an autoregressive model to maintain global narrative coherence across a sequence of sparse keyframes, and a diffusion model to handle the localized visual rendering.
Methods
MovieDreamer factorizes long-form video generation into a hierarchical pipeline:
- Keyframe Tokenization: Using a Diffusion Autoencoder (DAE) consisting of a pretrained CLIP vision model and a transformer-based compressor, the framework represents high-resolution images ($896 \times 512$) using just two continuous visual tokens.
- Autoregressive Keyframe Generation: The authors adapt a pretrained LLaMA2-7B model to predict these continuous visual tokens sequentially. Because standard cross-entropy loss only applies to discrete text tokens, they implement a Gaussian Mixture Model (GMM) layer to model the continuous token distribution. The model is optimized using a combination of negative log-likelihood (NLL) and $L_1$/$L_2$ regression losses.
- Multimodal Script Conditioning: The autoregressive model is guided by a structured script containing plot descriptions, scene elements, and explicit character face embeddings (extracted via FARL). To maximize the LLM's context window, sentences are compressed into single tokens using LongCLIP (sentence-level tokenization).
- ID-Preserving Diffusion Rendering: The predicted tokens are decoded back into keyframes using an enhanced SDXL decoder that directly injects the script's face and text embeddings into its cross-attention layers to maintain facial fidelity.
- Video Generation: These keyframes serve as anchor frames for an image-to-video diffusion model (like Stable Video Diffusion) to generate smooth, continuous video clips.
Datasets
- Training Data: The authors curated a dataset of roughly 50,000 long videos, yielding 5 million keyframes annotated with multimodal scripts, primarily expanded from the Condensed Movies dataset. The initial stages of the Diffusion Autoencoder were trained on broader image datasets (OpenImages, JourneyDB, and Object365).
- Evaluation Data: A separate, unseen test dataset consisting of 100 long movies (comprising 1 million keyframes) was created to rigorously evaluate zero-shot and few-shot generalization capabilities.
Key Insights and Ideas
- Extreme Token Compression: A major "aha moment" is that just two continuous tokens per keyframe are sufficient to capture the core semantics of a frame. This extreme compression allows the LLM to process context histories spanning thousands of frames without exhausting its context window.
- Loss Function Synergy: The authors discovered that relying solely on continuous token supervision (GMM) causes layout degradation, often pushing characters to the edges of the frame. Introducing $L_1$ and $L_2$ losses as regularizers stabilizes spatial layouts, while the GMM preserves fine-grained character identities.
- Preventing Identity Leakage: Because high-quality movie data is limited, autoregressive models easily overfit by simply memorizing and copy-pasting faces from the training frames. Randomly retrieving face embeddings of the same character from different frames during training forces the model to learn true contextual generation rather than simple memorization.
Key Results
- Story Generation Quality: MovieDreamer significantly outperforms state-of-the-art story generation baselines like StoryDiffusion and StoryGen. It achieves a substantially higher CLIP score (19.584 vs. 15.232) and vastly superior long-term (LT) character consistency (0.814 vs. 0.596).
- Long-Form Video Consistency: In full-length video generation benchmarks, it beats models like StreamingT2V and SEINE across Aesthetic Scores (6.049) and CLIP-similarity (0.704), demonstrating a robust capability to generate coherent videos lasting tens of minutes or hours.
Limitations and Future Work
- Information Loss in Scripts: Compressing entire descriptive sentences into a single LongCLIP token saves context space but results in a coarse representation, causing some fine-grained narrative details to be lost.
- Background Object Drift: While character identity is well-preserved, background object consistency is limited because scene layout information wasn't fully integrated into the multimodal script due to computational costs.
- Character Confusion: When too many characters appear simultaneously in a single frame, the model is prone to mixing up their facial appearances.
- Future Work: The authors plan to explore native long-sequence generation methods in LLMs to extend the maximum token length further, moving away from the current iterative generation approach.
Summary updated