Lay2Story: Extending Diffusion Transformers for Layout-Togglable Story Generation

Ao Ma, Jiasong Feng, Ke Cao, Jing Wang, Yun Wang, Quanwei Zhang, Zhanjie Zhang

TL;DR

This paper introduces "Layout-Toggable Storytelling," a new task for generating consistent image sequences with fine-grained control over subject position and appearance. They propose Lay2Story, a diffusion transformer-based framework that leverages layout conditions, and introduce Lay2Story-1M, a large-scale dataset and Lay2Story-Bench, a benchmark for evaluating this task.

What Problem Does This Paper Address?

Generating coherent visual stories where subjects remain consistent across frames is a challenging task. Existing methods, while improving, struggle with maintaining subject identity and precise control over attributes like position, clothing, and expression. This is partly due to a lack of fine-grained guidance and the scarcity of large, annotated datasets that capture these details. The authors aim to bridge this gap by enabling controllable storytelling through layout conditions.

Methods

The core of the proposed solution is the Lay2Story framework, built upon diffusion transformers (DiTs) and inspired by PixArt-a. It features two main branches:

  • Global Branch: This branch, similar to standard text-to-image models, focuses on generating the overall image quality, guided by global captions. It uses AdaLN-single, self-attention, and cross-attention mechanisms.
  • Subject Branch: This is the novel component, designed for fine-grained subject control. It incorporates:
  • Masked Self-Attention: To focus attention within the subject's region, using subject masks derived from bounding boxes.
  • Masked Cross-Attention: To integrate detailed subject descriptions from subject captions.
  • Masked 3D Self-Attention: To ensure subject consistency across frames by enabling cross-frame information propagation.
  • Reference Image Concatenation: This allows the model to condition on a reference image's latent representation and mask, further aiding in subject consistency.

The output of the subject branch is integrated back into the global branch through skip connections, allowing for a fusion of global and local information. The framework is designed to be "Layout-Toggable," meaning users can choose whether to provide layout conditions (subject positions and captions) for enhanced control.

Datasets

  • Lay2Story-1M: A newly introduced dataset comprising over 1 million images at 720p resolution or higher, extracted from approximately 11,300 hours of cartoon videos. It includes detailed subject annotations, including global captions, frame prompts, subject positions, and descriptive captions.
  • Lay2Story-Bench: A benchmark dataset derived from Lay2Story-1M, containing 3,000 prompts and corresponding high-quality images. It's designed to evaluate storytelling models, offering more prompts, higher quality frames, and richer annotations compared to existing benchmarks like ConsiStory.

Key Insights and Ideas

  • Layout Conditions are Crucial for Control: The paper strongly advocates for the effectiveness of layout conditions (subject positions and detailed captions) in achieving precise control over subject appearance and consistency in generated stories.
  • Two-Branch Architecture for Storytelling: Separating global image generation from fine-grained subject control into distinct branches allows for specialized processing and better overall results.
  • 3D Self-Attention for Temporal Consistency: The introduction of masked 3D self-attention is a key innovation for ensuring that subjects remain consistent not just within a frame but across the entire sequence.
  • Leveraging Existing Models with Modifications: The approach builds upon strong existing architectures like Diffusion Transformers (DiTs) and PixArt-a, demonstrating how to extend them for a more complex task.

Key Results

  • Quantitative Performance: Lay2Story, especially with layout conditions, significantly outperforms baseline methods on the Lay2Story-Bench across various metrics:
  • Subject Consistency: Achieves the best DreamSim (0.1324) and CLIP-I (0.9299) scores.
  • Semantic Relevance: Achieves the best Recall@1 (0.7012) score.
  • Aesthetic Quality: Achieves the best FID (26.71) score.
  • Human preference scores also favor Lay2Story with layout conditions.
  • Qualitative Results: Visual comparisons show Lay2Story's superior ability to maintain subject identity and semantic coherence compared to methods like StoryDiffusion, ConsiStory, 1Prompt1Story, and FLUX.1-dev IP-Adapter. The paper highlights examples where other methods struggle with consistency or semantic errors, which Lay2Story overcomes, particularly when using layout conditions for finer control.
  • Efficiency: The inference time is comparable to other diffusion transformer-based methods, with only a slight increase when layout conditions are used.

Limitations and Future Work

  • Computational Cost: While efficient, diffusion models are inherently computationally intensive. The paper doesn't explicitly detail limitations in terms of training time or resource requirements for Lay2Story.
  • Dataset Focus: The current dataset and model are primarily focused on cartoon videos. Extending this to other domains like live-action footage could be a future direction.
  • User Control Granularity: While layout conditions offer significant control, future work could explore even more nuanced ways to guide the storytelling process.
  • Automatic Layout Generation: The paper focuses on user-provided layout conditions. Future research could explore methods for automatically generating these conditions to further streamline the storytelling process.

Summary updated

BibTeX
@inproceedings{ma2025lay,
  author = {Ao Ma and Jiasong Feng and Ke Cao and Jing Wang and Yun Wang and Quanwei Zhang and Zhanjie Zhang},
  title = {{Lay2Story: Extending Diffusion Transformers for Layout-Togglable Story Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure