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

Zero-shot Generation of Coherent Storybook from Plain Text Story using Diffusion Models

Hyeonho Jeong, Gihyun Kwon, Jong Chul YearXiv 2023

Abstract

Recent advancements in large scale text-to-image models have opened new possibilities for guiding the creation of images through human-devised natural language. However, while prior literature has primarily focused on the generation of individual images, it is essential to consider the capability of these models to ensure coherency within a sequence of images to fulfill the demands of real-world applications such as storytelling. To address this, here we present a novel neural pipeline for generating a coherent storybook from the plain text of a story. Specifically, we leverage a combination of a pre-trained Large Language Model and a text-guided Latent Diffusion Model to generate coherent images. While previous story synthesis frameworks typically require a large-scale text-to-image model trained on expensive image-caption pairs to maintain the coherency, we employ simple textual inversion techniques along with detector-based semantic image editing which allows zero-shot generation of the coherent storybook. Experimental results show that our proposed method outperforms state-of-the-art image editing baselines.

Introduction

Modern text-to-image (T2I) models like Stable Diffusion have revolutionized the way we create visual content from natural language. However, a persistent challenge in these models is narrative coherency. When generating a sequence of images for a story, standard models often fail to maintain a consistent identity for the protagonist across different scenes. Traditional solutions to this "identity consistency" problem usually require fine-tuning models on specific character datasets or training on massive, expensive image-caption pairs. This paper introduces a zero-shot pipeline that achieves character consistency using only pre-trained models and a few reference images, transforming plain text stories into fully illustrated, coherent storybooks.

Methodology

The proposed pipeline consists of four main stages designed to bridge the gap between textual narrative and visual consistency without requiring additional training.

1. LLM-Powered Prompt Engineering

Directly using raw story sentences as prompts often results in cluttered or irrelevant imagery. To mitigate this, the pipeline utilizes a Large Language Model (LLM), such as GPT-3, as a "visual director." The LLM simplifies complex story text into descriptive noun phrases and appends "magic words" (e.g., "highly detailed," "cinematic lighting") and specific facial descriptors to enhance the quality and focus of the diffusion model.

2. Initial Generation and Face Restoration

The system uses Stable Diffusion to generate base images from the LLM-refined prompts. To address common artifacts in generative faces, such as blurring or mutation, the CodeFormer model is applied to restore and sharpen facial features in the initial outputs.

3. Textual Inversion for Character Definition

To define a specific protagonist, the method employs Textual Inversion. This technique identifies a unique embedding (a "word") in the model's latent space that corresponds to a target identity provided via reference images. This allows the model to "know" exactly what the character should look like without retraining the entire network.

4. Iterative Coherent Identity Injection

The core technical innovation is the Iterative Coherent Identity Injection. A face detector identifies the character's position in the generated scene to create a mask. During the diffusion denoising process, the system performs a loop in the latent space, preserving the background while "injecting" the target character's identity into the masked region. This iterative process ensures the character's face matches the scene's lighting and style, resulting in a seamless integration.

Consistent character generation in a forest setting.

Experimental Results

The researchers evaluated the pipeline against several state-of-the-art baselines, including DALL-E 2, CLIP-guided Diffusion, and Blended Latent Diffusion. A user study involving 76 participants assessed the generated storybooks on three metrics using a 5-point Likert scale:

  • Correspondence: How well the images match the plot. The proposed method scored 4.06, significantly higher than the next best baseline (2.96).
  • Coherency: The consistency of character identity across scenes. The method achieved a score of 3.84, while baselines ranged from 2.16 to 2.64.
  • Smoothness: Overall visual quality and style consistency. The pipeline scored 4.23, outperforming DALL-E 2 (2.96).
The same character maintained in a different narrative context.

Qualitatively, the results demonstrate that while other methods often change a character's features or even gender between frames, this pipeline keeps the character recognizable across vastly different environments.

Conclusion and Future Work

This research demonstrates that high-quality, coherent storybooks can be generated from plain text in a zero-shot manner. By combining the semantic understanding of LLMs with latent-space identity injection, the system maintains character consistency without the need for specialized training. While challenges remain in maintaining consistency for non-facial elements, such as clothing and handheld objects, the use of LLMs and latent-space identity injection provides a powerful framework for automated visual storytelling.

Summary updated

BibTeX
@misc{jeong2023zero,
  author = {Hyeonho Jeong and Gihyun Kwon and Jong Chul Ye},
  title = {{Zero-shot Generation of Coherent Storybook from Plain Text Story using Diffusion Models}},
  year = {2023},
  eprint = {2302.03900},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2302.03900},
}
Figure