SEED-Story: Multimodal Long Story Generation with Large Language Model

Shuai Yang, Yuying Ge, Yang Li, Yukang Chen, Yixiao Ge, Ying Shan, Ying-Cong Chen · Submission to ICLR 2025 · Withdrawn

TL;DR

SEED-Story introduces a Multimodal Large Language Model (MLLM) framework that autoregressively generates long, interleaved image-and-text narratives from an initial prompt. By pairing a novel multimodal attention sink mechanism with a specialized de-tokenizer adaptation stage and a high-resolution benchmark dataset (StoryStream), the model generates coherent visual stories spanning up to 25–30 turns despite being trained on sequences of only 10.

What Problem Does This Paper Address?

Traditional visual storytelling or personalized story visualization typically assumes a fixed set of text prompts and focuses only on text-to-image synthesis (generating consistent images from pre-written captions). In contrast, true multimodal story generation requires a model to co-generate the narrative plot and corresponding illustrations in an interleaved, turn-by-turn fashion.

Doing this over long horizons introduces two major bottlenecks:

  1. Context Window & Degeneration: Long multimodal sequences rapidly exceed typical KV cache and training window limits. Naive sliding-window attention causes generation to collapse, while standard text-only attention sinks fail on multimodal tokens.
  2. Visual Consistency vs. Diversity: Diffusion decoders conditioned on discrete or high-level MLLM latent tokens often produce texture distortion, style drift, and loss of character identity across consecutive scenes.
  3. Data Limitations: Existing datasets (e.g., Pororo, Flintstones) feature low resolution ($128 \times 128$) and simplistic, repetitive text (e.g., "Poby plays violin").

Methods

[Interleaved History] ──► [LLaMA-2 + LoRA] ──► Text Tokens (Cross-Entropy)
                                │
                                └──► Learnable Queries ──► Regressed Latents ──► Adapted SD-XL ──► Output Image

SEED-Story addresses these challenges via a three-stage training pipeline and a custom inference cache:

  • Stage 1 (Visual Tokenizer & De-Tokenizer): A pre-trained Qwen-VL ViT-G extracts image embeddings ($256 \times 4096$). A Q-Former maps these embeddings to conditioning latents that drive a pre-trained Stable Diffusion XL (SD-XL) U-Net.
  • Stage 2 (Story Instruction Tuning): Built on LLaMA-2-7B (fine-tuned with LoRA), the model predicts next text tokens via cross-entropy. For next-image generation, it passes 64 learnable query tokens through the MLLM and trains the resulting representations using cosine similarity loss against ground-truth ViT image features.
  • Stage 3 (De-Tokenizer Adaptation): The MLLM is frozen while SD-XL is tuned directly on the MLLM's regressed output latents using standard diffusion loss. Decoupling this step eliminates cross-objective optimization conflicts and aligns the generative latent space to cartoon textures and character identities.
  • Multimodal Attention Sink: During long inference runs, the model maintains a fixed-size sliding KV cache window plus permanently retained "sink" tokens: the start token (<bos>), image boundary tokens (<BOI> / adjacent image tokens, and <EOI>), preventing attention collapse beyond the training sequence length.

Datasets

The authors construct and release StoryStream, an automated, high-resolution visual storytelling dataset derived from animated series (Curious George, Rabbids Invasion, and The Land Before Time):

  • Scale: 257,850 images total (about $4\times$ larger than previous multi-image datasets like StorySalon).
  • Resolution: $480 \times 854$ (compared to $128 \times 128$ for Pororo/Flintstones).
  • Sequence & Text Quality: Contains sequences up to 30 narrative steps with an average sentence length of 146 characters—featuring rich, descriptive narrative prose rather than simplistic "character + action" labels.

Key Insights and Ideas

  • Multimodal Attention Sinks Require Image Anchors: In pure text models (e.g., StreamingLLM), preserving initial tokens prevents softmax attention collapse. In MLLMs, inspection of attention distributions revealed that attention consistently congregates not only on sequence starts, but specifically on Begin-of-Image (<BOI>) and End-of-Image (<EOI>) tokens. Retaining these image boundaries stabilizes KV cache eviction over long autoregressive generation.
  • Decoupled De-tokenizer Tuning Fixes Identity Drift: Direct end-to-end tuning of MLLMs and diffusion backbones often leads to unstable gradients and high GPU memory demands. Freezing the MLLM and fine-tuning SD-XL on the predicted feature representations substantially reduced FID (dropping from 153.93 to 99.79), restoring crisp textures and stylistic consistency.

Key Results

  • Long Story Generation Stability: When generating 50-step story sequences (trained on length 10):

  • Window Attention completely collapsed ($\text{FID} = 334.90$, CLIP score = $0.598$).

  • Vanilla Attention Sink degraded in visual quality ($\text{FID} = 221.53$).
  • Multimodal Attention Sink achieved $\text{FID} = 79.67$ and CLIP score = $0.728$, while using only 31.82 GB VRAM and 473.98s (substantially faster than Dense Attention at 569.67s and 37.99 GB, which achieved FID 119.72).
Metric Dense Attention Window Attention Attention Sink Multimodal Attention Sink
FID $\downarrow$ 119.72 334.90 221.53 79.67
CLIP Score $\uparrow$ 0.705 0.598 0.676 0.728
Inference Time (s) $\downarrow$ 569.67 450.64 451.94 473.98
Peak VRAM (GB) $\downarrow$ 37.99 30.81 30.81 31.82
  • Comparison vs. MM-Interleaved:
  • Evaluated via GPT-4V pairwise comparison, SEED-Story won 51.7% (vs. 35.6%) on Story Engagement and 47.8% (vs. 17.2%) on Image-Text Coherence.
  • In user studies across 125 samples, SEED-Story had a 78.8% win rate in Style Consistency and 86.3% in Image-Story Coherence.
  • On the standard Story Visualization setup, SEED-Story reached 67.01 FID and 0.7793 CLIP score, outperforming StoryGen (73.74 / 0.7573) and LDM (67.29 / 0.7585).

Limitations and Future Work

  • Domain Diversity: The model is trained and evaluated exclusively on animation datasets (Curious George, etc.) under closed-set character conditions. It has limited zero-shot generalization to unseen realistic domains or photographic styles.
  • Real-World Robustness: Performance on unstructured, "in-the-wild" storytelling inputs with noisy user prompts or complex multi-character scenes was not validated.
  • Copyright & Ethical Constraints: Because training relies heavily on commercial animated series, generating downstream content presents potential copyright risks, requiring dedicated IP safeguards and broader open-domain visual training in future iterations.

Summary updated

BibTeX
@misc{yang2024seed,
  author = {Shuai Yang and Yuying Ge and Yang LI and Yukang Chen and Yixiao Ge and Ying Shan and Ying-Cong Chen},
  title = {{SEED-Story: Multimodal Long Story Generation with Large Language Model}},
  year = {2024},
  eprint = {2407.08683},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.08683},
}
Figure