Improved Visual Story Generation with Adaptive Context Modeling

Zhangyin Feng, Yuchen Ren, Xinmiao Yu, Xiaocheng Feng, Duyu Tang, Shuming Shi, Bing Qin

Abstract

Visual story generation requires maintaining global consistency across a sequence of images. Existing methods often struggle with "memory drift," where characters or scenes change unexpectedly. This paper introduces ACM-VSG, a diffusion-based framework that utilizes an Adaptive Encoder and Adaptive Guidance to selectively attend to relevant historical context. By filtering historical frames and providing visual anchors during sampling, ACM-VSG achieves state-of-the-art performance on the PororoSV and FlintstonesSV benchmarks, significantly improving character stability and image quality.

1. Introduction

While text-to-image synthesis has reached high levels of fidelity, visual story generation (VSG) remains an open challenge. VSG requires generating a coherent sequence of images based on a multi-sentence narrative. The primary difficulty lies in maintaining "global consistency"—ensuring that characters, objects, and backgrounds remain identical across the entire sequence. Current autoregressive models often treat past frames as a flat, undifferentiated memory, which can lead to the inclusion of irrelevant visual features and a loss of identity over time.

2. The Challenge of Global Consistency

In a narrative, not every preceding sentence is equally relevant to the current frame. For example, if a character leaves a room in frame two and returns in frame five, frame four (which might describe a different character elsewhere) is less relevant to generating frame five than frame two is. Existing models like AR-LDM often aggregate all previous text-image pairs into a single context vector. This "flattened memory" approach introduces noise, as the model attempts to attend to every past detail simultaneously, often resulting in visual hallucinations or character morphing.

3. Methodology: ACM-VSG

The proposed Adaptive Context Modeling for Visual Story Generation (ACM-VSG) addresses these issues through two key components integrated into a Latent Diffusion Model (LDM) framework.

3.1 Adaptive Encoder

The Adaptive Encoder replaces the standard flattened history with a dynamic cross-attention mechanism. It utilizes a CLIP text encoder for the current prompt and a BLIP encoder for historical text-image pairs. The current text prompt serves as a "query" to identify the most relevant "keys" and "values" from the story's history. This ensures that the model selectively conditions the generation process on past frames that are semantically related to the current narrative step, effectively filtering out irrelevant historical noise.

3.2 Adaptive Guidance

To further reinforce consistency during the sampling process, the authors introduce Adaptive Guidance. This technique calculates the semantic similarity between the current prompt and all previous prompts. If a high similarity threshold is met, the model identifies the most similar historical image and extracts its visual features via CLIP. These features act as a "visual anchor," providing a gradient that nudges the diffusion process toward maintaining the established visual identity of characters and scenes.

4. Experimental Results

ACM-VSG was evaluated on two primary benchmarks: PororoSV (containing over 10,000 stories) and FlintstonesSV (containing over 20,000 stories).

4.1 Quantitative Performance

The model demonstrated superior performance across several key metrics:

  • Image Quality: ACM-VSG achieved a Frechet Inception Distance (FID) of 15.36 on PororoSV and 18.41 on FlintstonesSV, outperforming previous state-of-the-art models like MEGA-StoryDALL-E.
  • Character Consistency: On the FlintstonesSV dataset, which features a complex character roster, the model achieved a Character F1 score of 94.95 and a Frame Accuracy of 88.89. These results indicate a significantly higher ability to preserve character identity compared to baseline models.

4.2 Qualitative Analysis

Qualitative evaluations showed that ACM-VSG successfully maintains subtle background details—such as the specific color of furniture or the presence of unique props—that are frequently lost or altered by other models. The selective memory approach prevents the "identity bleeding" common in autoregressive generation.

5. Limitations and Future Directions

While ACM-VSG represents a significant step forward, several limitations remain. The model's training is currently confined to cartoon-style datasets, and its performance on photorealistic sequences remains untested. Additionally, the model occasionally struggles with complex physical interactions (e.g., characters holding specific objects) and may generate duplicate characters if the text prompt is repetitive. Future work will focus on scaling the architecture to more diverse domains and improving the precision of action-based rendering.

6. Conclusion

ACM-VSG demonstrates that "selective memory" is more effective than "total recall" for visual storytelling. By using semantic similarity to gate both conditioning and guidance, the model achieves a new level of narrative coherence in AI-generated image sequences.

Summary updated

BibTeX
@inproceedings{feng2023improved,
  author = {Zhangyin Feng and Yuchen Ren and Xinmiao Yu and Xiaocheng Feng and Duyu Tang and Shuming Shi and Bing Qin},
  title = {{Improved Visual Story Generation with Adaptive Context Modeling}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.findings-acl.305},
}
Figure