TL;DR
Standard text-to-image models fail at poetry because they interpret metaphors literally rather than capturing symbolic meaning. This paper introduces PoemToPixel, a framework that uses prompt-tuned LLMs and a novel key-element extraction algorithm (PoeKey) to translate abstract poetic concepts into contextually accurate images. The authors also introduce MiniPo, a new multimodal dataset of children's poems, to evaluate and advance research in this space.
What Problem Does This Paper Address?
While text-to-image diffusion models excel at generating realistic images from literal descriptions ("a red apple on a wooden table"), they struggle significantly with creative literature, particularly poetry. Poems rely heavily on non-literal language, metaphors, similes, and layered emotional undertones.
If you feed a poem directly into a standard diffusion model, the system typically fails to capture the core theme, either rendering a chaotic mess of literal interpretations of the metaphors or missing the emotional resonance entirely. The authors address this gap by creating a pipeline that decodes the abstract meaning of a poem before attempting to visualize it.
Methods
The PoemToPixel framework operates in a multi-phase pipeline that bridges the gap between abstract text and visual synthesis:
- Phase 1: Summarization Module: The raw poem is first processed by an LLM (GPT-4o mini) to generate a concrete textual summary. To optimize this, the authors used human-in-the-loop prompt tuning over six iterative rounds with literary experts to land on a prompt formula ($R_6$) that successfully extracts the main theme, mood, and literary devices.
- Phase 2: Key Element Extraction (PoeKey Algorithm): Instead of passing the raw summary to the image generator, the proposed PoeKey algorithm extracts three critical pillars:
- Emotions: Determined via a pre-trained emotion classifier scoring the dominant sentiment.
- Visual Elements: Extracted using Part-of-Speech (POS) tagging and Named Entity Recognition (NER) to identify explicit nouns and pronouns.
- Themes: Computed by mapping Sentence-BERT embeddings of the summary against predefined poetic themes using cosine similarity.
- Phase 3: Instruction Generation & Diffusion: These structured elements are passed back to GPT-4o mini to formulate a highly concise, system-optimized image prompt (under 50 words). This prompt is then fed into a diffusion model (SDXL Turbo/Base) to generate the final image.
Datasets
The framework was evaluated using two distinct datasets:
- PoemSum: An existing dataset containing 3,011 diverse poems paired with high-quality, professionally written reference summaries.
- MiniPo: A new dataset introduced by the authors containing 1,001 children's nursery rhymes. Each entry includes the poem's title, text, metadata, and corresponding images. This dataset introduces structurally simpler poetry with concrete imagery to contrast with the highly abstract nature of PoemSum.
Key Insights and Ideas
- Summarization as a Translation Layer: The core "aha moment" is that diffusion models shouldn't read poetry directly. Summarization acts as a vital translation layer, transforming abstract, multi-layered literary devices into concrete, grounded descriptions that diffusion models can actually bind to objects and spaces.
- The Impact of Prompt Tuning: Small changes in how the LLM is instructed to summarize or generate prompts lead to massive downstream improvements in image relevance. Automated metrics (like ROUGE or BLEU) often fail to capture these nuances, making human expert feedback loops essential for tuning creative tasks.
- Structural Simplicity Wins: The framework performed noticeably better on the new MiniPo dataset than on PoemSum. Shorter poems with straightforward narrative structures (average of 58 words for MiniPo vs. 209 words for PoemSum) make it significantly easier for the model to generate highly aligned imagery.
Key Results
The authors evaluated their approach using both automated metrics and human expert reviews:
- Summarization Quality: GPT-4o mini with Prompt Tuning achieved a ROUGE-L of 0.1801 and a METEOR score of 0.2140, outperforming popular baseline models like Pegasus, BART, T5, and Falcon.
- Image-Text Alignment: The full PoemToPixel pipeline achieved the highest Image-Text Matching (ITM) and Image-Text Contrastive (ITC) scores across both datasets. On PoemSum, the ITM score jumped from 0.123 (directly generating from the poem without a summary) to 0.386 using PoemToPixel.
- Qualitative Success: Human experts verified that PoemToPixel successfully captured the underlying meaning and emotional tone of the poems, whereas baseline approaches often just drew isolated objects out of context (e.g., drawing a literal kettle instead of capturing the social essence of a tea party).
Limitations and Future Work
The authors note a few key limitations in their current implementation:
- The Single-Image Bottleneck: A single generated image cannot easily encapsulate a complex poem that transitions through multiple conflicting emotions or narrative shifts across different stanzas.
- Language Constraints: The framework currently only supports English text and lacks language-agnostic capabilities.
Future Directions: To address the single-image limitation, the authors plan to expand their research into generating sequential, multi-image narratives that can visually depict different segments or stanzas of a single poem continuously.
Summary updated