Lay2Story: Extending Diffusion Transformers for Layout-Togglable Story Generation

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

Abstract

Storytelling tasks involving generating consistent subjects have gained significant attention recently. However, existing methods, whether training-free or training-based, continue to face challenges in maintaining subject consistency due to the lack of fine-grained guidance and inter-frame interaction. Additionally, the scarcity of high-quality data in this field makes it difficult to precisely control storytelling tasks, including the subject's position, appearance, clothing, expression, and posture, thereby hindering further advancements. In this paper, we demonstrate that layout conditions, such as the subject's position and detailed attributes, effectively facilitate fine-grained interactions between frames. This not only strengthens the consistency of the generated frame sequence but also allows for precise control over the subject's position, appearance, and other key details. Building on this, we introduce an advanced storytelling task: Layout-Togglable Storytelling, which enables precise subject control by incorporating layout conditions. To address the lack of high-quality datasets with layout annotations for this task, we develop Lay2Story-1M, which contains over 1 million 720p and higher-resolution images, processed from approximately 11,300 hours of cartoon videos. Building on Lay2Story-1M, we create Lay2Story-Bench, a benchmark with 3,000 prompts designed to evaluate the performance of different methods on this task. Furthermore, we propose Lay2Story, a robust framework based on the Diffusion Transformers (DiTs) architecture for Layout-Togglable Storytelling tasks. Through both qualitative and quantitative experiments, we find that our method outperforms the previous state-of-the-art (SOTA) techniques, achieving the best results in terms of consistency, semantic correlation, and aesthetic quality.

Introduction

Generating a coherent visual story remains a significant challenge in image synthesis, requiring a delicate balance between subject consistency—ensuring a character looks identical across frames—and fine-grained control over movement, expressions, and attire. Existing approaches typically fall into two categories: training-free methods that share features across frames via attention mechanisms, often losing character likeness over time, and training-based methods that lack precise control over character positioning and specific attributes.

Furthermore, the field suffers from a data gap; existing storytelling datasets are often small, low-resolution, and lack the detailed layout annotations (bounding boxes and attribute descriptions) necessary for training truly controllable models. Lay2Story addresses these limitations by introducing a "Layout-Togglable" framework that uses layout conditions as anchors for consistency and control.

Methodology

Lay2Story is built upon the Diffusion Transformer (DiT) architecture, specifically utilizing PixArt-α as a base. The framework employs a dual-branch design to separate global context from specific subject details:

  • Global Branch: Processes the overall scene, background, and lighting guided by standard text prompts.
  • Subject Branch: Acts as a "director's branch," taking a reference image, a subject mask for positioning, and detailed subject captions as input.
  • Masked 3D Self-Attention: To prevent character "morphing," the model uses a 3D attention mechanism masked to ensure the model only compares character pixels across frames, preventing background interference with identity preservation.
  • Zero-Linear Propagation: The subject branch communicates with the global branch via "zero-linear" layers, allowing the model to inject specific subject details while preserving the high-quality generation capabilities of the base model.
The Lay2Story architecture featuring a dual-branch Diffusion Transformer (DiT) with global and subject-specific processing branches.

Data Resources: Lay2Story-1M and Lay2Story-Bench

A core contribution of this work is the creation of two large-scale resources:

  1. Lay2Story-1M: A dataset of over 1 million high-resolution images (720p+) extracted from 11,300 hours of cartoon content. Each image includes global captions, subject bounding boxes, and attribute-level descriptions (e.g., "wearing a yellow hat").
  2. Lay2Story-Bench: A comprehensive benchmark of 3,000 prompts designed to evaluate consistency and controllability in multi-frame storytelling tasks.

Results and Discussion

Lay2Story was evaluated against state-of-the-art (SOTA) models including ConsiStory, StoryDiffusion, and FLUX.1-dev IP-Adapter.

Quantitative Performance

On the Lay2Story-Bench, the proposed model achieved superior results in CLIP-I (identity similarity) and DreamSim (perceptual consistency) while maintaining a lower FID score, indicating higher overall image quality. In terms of efficiency, Lay2Story generates four frames in approximately 14 seconds on an A100 GPU, outperforming U-Net based competitors like ConsiStory (~38s).

Qualitative Analysis

Qualitative results demonstrate that Lay2Story excels at maintaining character identity even through significant attribute changes, such as a character changing clothes or expressions between frames. The "togglable" nature of the layout control allows the model to either follow strict director-style instructions or generate consistent stories from general prompts alone.

Qualitative comparison of Lay2Story against SOTA methods, demonstrating the superior character consistency and attribute control provided by layout conditions.

Conclusion

Lay2Story demonstrates that explicit layout conditions significantly enhance both the consistency and controllability of AI-generated stories. By leveraging a massive, high-quality dataset and a dual-branch DiT architecture, the framework provides a robust solution for fine-grained storytelling. Future work will aim to extend these capabilities to multi-subject interactions and explore the model's performance in photorealistic domains beyond the current cartoon-focused training set.

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