OpenLEAF: Open-Domain Interleaved Image-Text Generation and Evaluation

Jie An, Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Zicheng Liu, Lijuan Wang, Jiebo Luo · DOI

Abstract

Generating coherent sequences of interleaved text and images remains a significant challenge in multi-modal AI. We present OpenLEAF, a training-free framework that orchestrates GPT-4 and Stable Diffusion XL (SDXL) to generate high-quality, consistent multi-modal content. OpenLEAF utilizes a "Global Context" mechanism to maintain character and stylistic continuity across sequences. To address the evaluation gap, we introduce an automated pipeline leveraging Large Multi-modal Models (LMMs) to assess consistency. Our results demonstrate that OpenLEAF significantly outperforms baseline sequential generation in both entity and style consistency, with LMM-based evaluations showing high correlation with human judgment.

Introduction

While text-to-image (T2I) generation has seen remarkable progress, creating a sequence of interleaved text and images—such as a graphic novel or a step-by-step tutorial—presents unique difficulties. Existing models often struggle with "domain narrowness," failing outside specific training sets, and "inconsistency," where characters or artistic styles shift abruptly between panels. OpenLEAF addresses these issues by using a Large Language Model (LLM) as a "director" to maintain a global state, ensuring that the "actors" (T2I models) produce a unified visual narrative.

The OpenLEAF Pipeline

OpenLEAF operates as a multi-stage pipeline that requires no additional training or fine-tuning.

1. Structured Generation

The process begins with GPT-4 receiving a user query. It generates a structured response that includes narrative text interspersed with image placeholders (<img{i}>).

2. Global Context Extraction

To prevent the "memory loss" typical of sequential generation, GPT-4 analyzes the entire generated text to extract a Global Context. This includes:

  • Entity Context: Detailed descriptions of recurring subjects (e.g., "Batman wears a grey suit with a black cape").
  • Style Context: A unified artistic direction (e.g., "cinematic lighting, dark atmosphere").

3. Context-Aware Visual Prompting

GPT-4 then writes specific prompts for each image placeholder, injecting the Global Context into every prompt. This ensures that the T2I model (SDXL) receives consistent instructions for every frame in the sequence.

OpenLEAF supports diverse tasks including how-to guides, storytelling, and webpage generation.

Evaluation Framework

Evaluating interleaved content is notoriously difficult. Traditional metrics like CLIPscore evaluate single pairs in isolation, missing the "flow" of a sequence. OpenLEAF introduces an automated judge using BingChat (an LMM). The LMM is tasked with identifying subjects across the sequence and scoring them on Entity Consistency and Style Consistency. This approach achieved a Kendall’s Tau of 0.87 compared to human ratings, establishing it as a reliable proxy for human evaluation.

Open-Domain Interleaved Benchmark

The authors curated a benchmark of 30 diverse queries across four categories:

  • How-To Instructions: Practical guides like "How to cook a ribeye steak."
  • Storytelling: Creative narratives such as "A story about Batman."
  • Graphic Story Rewriting: Converting text-only stories into visual narratives.
  • Webpage/Poster Generation: Generating functional HTML/CSS layouts with stylistically matched images.

Key Results and Insights

The inclusion of Global Context led to measurable improvements in consistency. Entity Consistency scores rose from 7.84 to 8.40, while Style Consistency increased from 8.00 to 8.22 on a 10-point scale. Human evaluators preferred the Global Context-enhanced output 64.67% of the time for character consistency.

Examples of How-To and Story Telling tasks demonstrating high entity and style consistency.

One significant insight is that the bottleneck in multi-modal generation is often "direction" rather than "drawing." By leveraging the reasoning capabilities of LLMs to manage global state, OpenLEAF achieves high-quality results across a vast range of topics without the need for specialized datasets.

Conclusion and Future Work

OpenLEAF demonstrates the power of training-free, LLM-directed pipelines for complex multi-modal tasks. While highly effective, the system remains dependent on the underlying capabilities of the T2I and LMM models. Future work will explore more complex, dynamic layouts and interactive content, pushing the boundaries of automated visual-textual storytelling.

Summary updated

BibTeX
@misc{an2023openleaf,
  author = {Jie An and Zhengyuan Yang and Linjie Li and Jianfeng Wang and Kevin Lin and Zicheng Liu and Lijuan Wang and Jiebo Luo},
  title = {{OpenLEAF: Open-Domain Interleaved Image-Text Generation and Evaluation}},
  year = {2023},
  eprint = {2310.07749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.07749},
}
Figure