NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

MovieDreamer: Hierarchical Generation for Coherent Long Visual Sequence

Canyu Zhao, Mingyu Liu, Wen Wang, Jianlong Yuan, Hao Chen, Bo Zhang, Chunhua Shen · DOI

TL;DR

MovieDreamer tackles the challenge of generating long, coherent videos by combining autoregressive models for narrative structure with diffusion models for visual quality. This hierarchical approach, guided by rich multimodal scripts, enables the creation of movie-like content with consistent characters and plots over extended durations, pushing beyond the limitations of current short-form video generation.

What Problem Does This Paper Address?

Current state-of-the-art video generation models, primarily diffusion-based, excel at producing high-quality, short video clips. However, they struggle with generating longer sequences that maintain narrative coherence, character consistency, and intricate plot progression – essential elements for movie-like content. Autoregressive models, on the other hand, are better at handling complex reasoning and long-term dependencies but are less efficient for high-fidelity visual rendering. This paper aims to bridge this gap by developing a framework that leverages the strengths of both approaches to generate extended, coherent visual narratives.

Methods

MovieDreamer employs a hierarchical approach:

  1. Diffusion Autoencoder for Keyframe Tokenization: An autoencoder, built upon a pretrained CLIP vision model and a transformer-based compressor, is used to convert keyframes into compact visual tokens. This is followed by an ID-preserving diffusion decoder, enhanced with character face embeddings and descriptive text embeddings from a multimodal script, to reconstruct images with high fidelity and preserve character identity.
  2. Autoregressive Keyframe Token Generation: A pretrained large language model (LLaMA-7B) is adapted to predict sequences of these visual tokens. This autoregressive model is conditioned on a novel "multimodal script" that includes detailed descriptions of scenes, plots, and character identities. To handle continuous visual tokens, a k-mixture Gaussian Mixture Model (GMM) is used.
  3. Keyframe-Based Video Generation: The generated keyframes are then used as anchors to produce full-length videos, potentially by integrating with existing image-to-video models.

Key novelties include:

  • Hierarchical Framework: Combining autoregressive models for global coherence with diffusion for local fidelity.
  • Multimodal Script: A structured input that enriches scene descriptions with character details and visual style, crucial for continuity.
  • ID-Preserving Rendering: An enhancement to the diffusion decoder that explicitly uses face embeddings and text descriptions to maintain character identity.
  • Few-Shot Learning: The model supports personalized generation by conditioning on a few reference frames.
  • Anti-Overfitting Strategies: Techniques like data augmentation, face embedding randomization, and aggressive dropout are employed due to limited high-quality movie data.

Datasets

  • Condensed Movies (Bain et al., 2020): The primary source for training data, providing long videos and corresponding script annotations.
  • OpenImages, JourneyDB, Object365: Used for initial fine-tuning of the diffusion autoencoder to improve general object understanding.
  • Custom Test Dataset: A set of 100 long movies, not seen during training, with 1M keyframes for evaluation.

Key Insights and Ideas

  • Hybrid Approach is Key for Long Videos: Simply scaling up existing short-video models isn't enough. A hierarchical approach that separates narrative planning (autoregressive) from visual rendering (diffusion) is crucial for long-form content.
  • Multimodal Scripts are Essential for Coherence: Rich, structured scripts that go beyond simple text prompts, incorporating character details and visual styles, are vital for maintaining consistency across scenes and characters.
  • Explicit Identity Preservation is Necessary: Diffusion models, while good at rendering, can struggle with fine-grained identity details. Explicitly incorporating face embeddings and descriptive text into the rendering process significantly improves character consistency.
  • Tokenization Trade-offs: Using a minimal number of compressed tokens (e.g., 2) is a deliberate choice to maximize the autoregressive model's context length for long sequences, even if it means a slight compromise in reconstruction fidelity compared to more tokens.

Key Results

  • Superior Visual and Narrative Quality: MovieDreamer achieves higher CLIP scores, Inception scores, and Aesthetic scores compared to state-of-the-art methods like StoryDiffusion and StoryGen.
  • Exceptional Long-Term Consistency: The model demonstrates significantly improved short-term (ST) and long-term (LT) consistency, preserving character identities and narrative flow over extended durations (thousands of keyframes). For instance, LT consistency is reported as 0.814 for the proposed method, outperforming others.
  • Extended Generation Duration: The method enables the generation of videos significantly longer than current capabilities, with the potential for hours-long content.
  • Effective ID Preservation: Ablation studies show that the ID-preserving rendering significantly enhances character identity perception, as visualized in Figure 3 and 5.
  • Zero-Shot and Few-Shot Capabilities: The model can generate content from multimodal scripts (zero-shot) and adapt to user preferences with a few reference images (few-shot).

Limitations and Future Work

  • Information Loss in Tokenization: Compressing sentences into single tokens using LongCLIP leads to some information loss, limiting the granularity of descriptive text.
  • Object Consistency: The current multimodal script does not explicitly include scene information, which could limit object consistency.
  • Character Confusion with Many People: The model can sometimes confuse character identities when there are too many people in a single frame.
  • Computational Cost: Like other large models, MovieDreamer requires substantial data and computational power for training.
  • Limited Token Length: The current approach generates keyframes in batches (e.g., 128 at a time) and iterates. Future work aims to extend the maximum token length for more direct long-sequence generation.
  • Ethical Considerations: The authors acknowledge the potential for misuse in generating harmful content and emphasize the need for responsible and ethical utilization.

Summary updated

BibTeX
@misc{zhao2024moviedreamer,
  author = {Canyu Zhao and Mingyu Liu and Wen Wang and Jianlong Yuan and Hao Chen and Bo Zhang and Chunhua Shen},
  title = {{MovieDreamer: Hierarchical Generation for Coherent Long Visual Sequence}},
  year = {2024},
  eprint = {2407.16655},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.16655},
}
Figure