MovieDreamer: Hierarchical Generation for Coherent Long Visual Sequences

Canyu Zhao, Mingyu Liu, Wen Wang, Weihua Chen, Fan Wang, Hao Chen, Bo Zhang, Chunhua Shen

While recent advancements in video generation models, such as OpenAI’s Sora, have successfully pushed output durations into the one-minute territory, the field still faces a significant "global coherence" crisis. Pure diffusion models excel at rendering local textures and short-term motion but struggle with complex abstract logic, long-term memory, and narrative progression. In a movie-length sequence, a character must maintain a consistent identity across dozens of scenes, regardless of changing camera angles or lighting. Current models often suffer from "character drift" or lose the plot entirely over extended durations.

To bridge this gap, researchers have introduced MovieDreamer, a novel hierarchical framework designed to generate long-duration, narrative-driven videos with high character consistency. By pairing the reasoning capabilities of autoregressive large language models (LLMs) with the rendering power of diffusion models, MovieDreamer produces coherent visual sequences that extend far beyond the limits of current state-of-the-art generators.

The "Plan-then-Render" Methodology

MovieDreamer adopts a hierarchical approach that mirrors traditional filmmaking, breaking down complex stories into manageable scene captures.

Architecture of the Diffusion Autoencoder (DAE)
  1. Keyframe Tokenization (The Diffusion Autoencoder): Instead of processing every pixel, MovieDreamer uses a Diffusion Autoencoder (DAE) to compress high-resolution keyframes into just two continuous visual tokens. This extreme compression allows the model to "look" much further back in the story's history without overwhelming the context window.
  2. Autoregressive Prediction (The Brain): The core reasoning engine is a 7B LLaMA model fine-tuned to predict the sequence of these visual tokens. Unlike standard LLMs that use discrete tokens, MovieDreamer employs a Gaussian Mixture Model (GMM) to predict continuous, real-valued tokens, avoiding the information loss and "blocky" artifacts associated with quantization.
  3. Multimodal Scripting & ID-Preserving Rendering: The model is conditioned on a "multimodal script" containing textual scene descriptions and face embeddings retrieved from a face bank. The predicted visual tokens are decoded back into images using a diffusion decoder (like SDXL) specifically fine-tuned to incorporate these face embeddings and text descriptions. This ensures the final output matches the intended character identity and visual style.
  4. Video Extension: To turn keyframes into smooth video, the framework utilizes an image-to-video model. To prevent quality decay over time, the first frame of a sequence acts as a permanent "anchor" for CLIP features, rather than simply chaining the last frame of the previous clip.

Key Insights and Training Strategies

One of the paper's most surprising findings is that just two compressed tokens can capture enough semantic "gist" for the autoregressive model to maintain a story, provided the diffusion decoder has access to the multimodal script to fill in the high-fidelity details.

Training a 7B parameter model on a custom dataset of 5 million keyframes (derived from 50,000 long videos) initially led to severe overfitting. The authors countered this with aggressive anti-overfitting techniques, including a massive 50% dropout rate and temporal reversal (playing clips backward) during training. This forced the model to learn underlying narrative logic rather than just memorizing visual sequences. Furthermore, by prepending reference frames to the input, the model demonstrated "few-shot" in-context learning, allowing users to provide a few photos of a person to have them "star" in a generated movie.

Results and Scalability

Generated long-form visual sequences demonstrating character and narrative consistency.

MovieDreamer significantly outperforms existing story-generation models like StoryDiffusion and StoryGen in both short-term and long-term character consistency. Quantitatively, it achieves higher CLIP scores (indicating better semantic alignment with the script) and Aesthetic Scores, while maintaining a much lower FID (indicating higher image quality and diversity).

The framework is also highly modular. The authors demonstrated that by swapping their internal video renderer for enterprise-level models, the visual quality scales even further while maintaining the narrative coherence provided by the MovieDreamer "brain."

Limitations and Future Work

Despite its breakthroughs, MovieDreamer has limitations. The model occasionally suffers from identity confusion in crowded scenes, mixing character features. Additionally, compressing an entire descriptive sentence into a single CLIP token for the LLM input results in some loss of fine-grained plot detail.

Computationally, training remains heavy, taking three weeks on six NVIDIA A800 GPUs. Finally, while the system can generate "hours" of content through iterative generation, the autoregressive model is currently limited to a context window of 128 keyframes at a time. Expanding this window remains a primary goal for future iterations.

Summary updated

BibTeX
@inproceedings{zhao2025moviedreamer,
  author = {Canyu Zhao and Mingyu Liu and Wen Wang and Weihua Chen and Fan Wang and Hao Chen and Bo Zhang and Chunhua Shen},
  title = {{MovieDreamer: Hierarchical Generation for Coherent Long Visual Sequences}},
  booktitle = {International Conference on Learning Representations},
  year = {2025},
  url = {https://openreview.net/forum?id=QHj2LL958o},
}
Figure