DreamStory: Open-Domain Story Visualization by LLM-Guided Multi-Subject Consistent Diffusion

Huiguo He, Huan Yang, Zixi Tuo, Yuan Zhou, Qiuyue Wang, Yuhang Zhang, Zeyu Liu, Wenhao Huang, Hongyang Chao, Jian Yin

TL;DR

DreamStory is a training-free framework that leverages Large Language Models (LLMs) as "story directors" to guide diffusion models in generating consistent, multi-subject story visualizations. By combining LLM-driven prompt rewriting with a novel Masked Mutual Attention mechanism, it maintains character identities across complex narratives without the need for costly per-story fine-tuning.

What Problem Does This Paper Address?

Creating a coherent sequence of images from a story—known as story visualization—is a significant challenge in generative AI. While modern diffusion models can create stunning individual images, they struggle with multi-subject consistency.

If a story features a "young girl" and a "golden dog," existing models often "blend" their attributes (e.g., the girl might end up with golden hair or the dog might start looking human) or lose their specific visual traits between frames. Current solutions are either limited to specific datasets (closed-domain), require hours of fine-tuning for every new character (few-shot tuning), or fail to handle multiple characters simultaneously without confusion.

Methods

DreamStory introduces a three-stage, training-free pipeline to solve these issues:

  1. LLM-Guided Directing: An LLM (like GPT-4) acts as the director. It analyzes the input story, generates detailed descriptions for each subject, identifies which subjects appear in which scenes, and—crucially—rewrites scene prompts. It replaces ambiguous names (like "Kondo") with descriptive attributes ("a towering gorilla") that diffusion models can better understand.
  2. Multimodal Anchors: The system first generates individual "portraits" for each character. These portraits, paired with their textual descriptions, serve as multimodal anchors—visual and semantic ground truths that guide the generation of the actual story scenes.
  3. Multi-Subject Consistent Diffusion (MSD): This is the core architectural innovation. The MSD module modifies the standard attention layers of the diffusion model:
  4. Masked Mutual Self-Attention (MMSA): Ensures the "Query" tokens for a specific character in a scene only reference the "Key" and "Value" tokens from that same character's reference portrait.
  5. Masked Mutual Cross-Attention (MMCA): Similarly restricts the model so that a character only pulls semantic attributes from their specific text description, preventing attribute leakage between subjects.

To ensure these masks are accurate, the framework uses a "rehearsal" generation step followed by GroundingSAM to detect and segment the subjects before the final consistent generation.

The DreamStory framework overview, showing the transition from input story to LLM-guided prompt generation and final consistent image synthesis.

Datasets

The authors introduced a new benchmark called DS-500 to evaluate open-domain story visualization. It consists of:

  • 100 Real Stories: 50 sourced from the web and 50 generated by ChatGPT to test holistic performance.
  • 400 Synthetic Samples: Specifically designed to test consistency across 0, 1, 2, and 3 subjects.

They also compared their results against existing benchmarks like StoryGen and TheaterGen.

Key Insights and Ideas

  • The Power of Rewriting: One of the simplest yet most effective findings is that diffusion models are "name-blind." By using an LLM to translate names into physical descriptions during the scene generation phase, the model's accuracy in subject identification improves drastically.
  • Isolation via Masking: Standard mutual attention allows every pixel in a new image to look at every pixel in a reference image. In multi-subject scenes, this is a recipe for disaster. DreamStory’s "aha moment" is enforcing strict isolation: Subject A can only look at Reference A.
  • Decoder-Centric Consistency: The researchers found that applying MMSA to the U-Net's decoder layers is far more effective for maintaining fine-grained details (like clothing patterns and hair texture) than applying it to the encoder.
The Multi-Subject consistent Diffusion (MSD) architecture, highlighting the MMSA and MMCA modules.

Key Results

DreamStory was tested against state-of-the-art (SOTA) methods like MuDI, ConsiStory, and StoryDiffusion.

  • Quantitative: In the 2-subject benchmark, DreamStory outperformed the next best method (MuDI) by 23.4% on the D&C-DS metric, which specifically measures multi-subject consistency.
  • Qualitative: As seen in the "Little Match Girl" example, the model maintains the girl's specific facial features and clothing across vastly different lighting conditions and scenes.
  • Efficiency: Unlike fine-tuning methods that take over an hour per story, DreamStory generates a scene in approximately 25 seconds, making it viable for interactive applications.
Qualitative results showing the Little Match Girl story, demonstrating high consistency across 8 different scenes.

Limitations and Future Work

Despite its strengths, DreamStory has a few hurdles:

  • LLM Hallucinations: Occasionally, the LLM might fail to correctly annotate which subjects are in a scene, leading to missing characters.
  • Diffusion Limits: When a scene requires four or more complex subjects, the underlying diffusion model sometimes struggles with "subject fusion," where characters physically overlap or merge.
  • API Latency: The framework currently relies on LLM APIs, which account for about 60% of the total processing time. Future work could involve using local, smaller LLMs to speed up the "director" phase.

Summary updated

BibTeX
@article{he2025dreamstory,
  author = {Huiguo He and Huan Yang and Zixi Tuo and Yuan Zhou and Qiuyue Wang and Yuhang Zhang and Zeyu Liu and Wenhao Huang and Hongyang Chao and Jian Yin},
  title = {{DreamStory: Open-Domain Story Visualization by LLM-Guided Multi-Subject Consistent Diffusion}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2025},
  url = {https://openreview.net/forum?id=9wTNJruik2},
}
Figure