Introduction
Text-to-image (T2I) diffusion models, such as Stable Diffusion and DALL-E, have revolutionized visual content creation. However, these models typically rely on literal, keyword-heavy descriptions to produce high-quality outputs. This creates a significant "semantic gap" when attempting to visualize literary works, particularly poetry. Poems are characterized by abstract metaphors, symbolic imagery, and emotional nuances that transcend literal interpretation. Directly feeding a poem into a diffusion model often results in images that miss the intended thematic depth or emotional tone.
To address this, the PoemToPixel framework introduces a novel pipeline that bridges the gap between poetic abstraction and visual generation. By leveraging Large Language Models (LLMs) for summarization and a specialized key-element extraction algorithm, the framework captures the "soul" of a poem rather than just its literal text.
The PoemToPixel Framework
The authors propose a two-phase approach to translate verses into pixels, centered on iterative refinement and grounding abstract concepts into visualizable instructions.
Phase 1: Summarization and Human-Guided Refinement
In the first phase, the system uses GPT-4o mini to generate summaries of poems. These summaries act as a "translator," converting literary devices into concrete insights. To ensure the summaries maintain high fidelity to the source material, the authors implement Prompt Tuning through Human Feedback. Experts, including poets and scholars, evaluate the summaries, and the system prompts are iteratively refined through feedback loops until they reach an optimal configuration for downstream tasks.
Phase 2: Key Element Extraction (PoeKey)
Once a high-quality summary is generated, the framework employs the PoeKey algorithm to extract three critical components:
- Emotions: Identified using a specialized emotion classifier.
- Visual Elements: Extracted as nouns and named entities from the summary.
- Themes: Matched against predefined literary themes using Sentence-BERT embeddings.
These elements are processed by an Instruction Generator to create a concise, descriptive prompt (under 50 words) tailored for the SDXL Turbo model. This stage also utilizes iterative feedback to ensure the generated image aligns with the poem's specific mood and thematic requirements.
Datasets and Evaluation
The research utilizes two primary datasets:
- PoemSum: A dataset of 3,011 English poems with standard reference summaries.
- MiniPo: A novel multimodal dataset introduced by the authors, consisting of 1,001 children's nursery rhymes, including text, metadata, and images. This dataset provides a benchmark for analyzing poem visualization across different complexity levels.
Key Insights and Results
The core finding of the study is that summarization serves as an essential grounding mechanism. By focusing on the intersection of Emotion, Visuals, and Theme, PoemToPixel produces images that feel authentic to the source material. Quantitatively, the framework outperformed standard baselines (Pegasus, BART, T5) in ROUGE and METEOR scores. For image generation, it achieved significantly higher Image-Text Matching (ITM) scores compared to zero-shot approaches.
Qualitatively, human evaluations confirmed that PoemToPixel consistently captures the "Meaning" and "Theme" of poems. As shown in the comparative analysis, while baseline models might generate a literal object (like a single kettle), PoemToPixel can visualize the broader social atmosphere or emotional context described in the poem.
Conclusion and Future Work
PoemToPixel demonstrates that prompt tuning and structured element extraction are vital for creative AI applications. While currently limited to English and single-image generation, future work aims to expand the framework to support multiple languages and generate "visual storyboards"—sequences of images that capture the narrative progression of longer, more complex literary works.
Summary updated