TL;DR
This paper introduces Plug-and-Play Story Teller (PPST), a novel approach for generating stories from images with controllable styles. PPST leverages large pre-trained models like CLIP and GPT-2 to overcome data scarcity and uses plug-and-play adapters for style control, showing improved story coherence and image-story relevance compared to existing methods.
What Problem Does This Paper Address?
Generating coherent and engaging stories from a single image is a challenging task. Unlike simple image captioning, story generation requires weaving a narrative that preserves logical flow, maintains relevance to the visual input, and can even adapt to specific stylistic nuances. Existing methods often struggle with maintaining story coherence as length increases, face data scarcity issues due to the lack of large image-story datasets, and offer limited control over the generated story's style. This paper aims to address these limitations by proposing a controllable and data-efficient image-to-story generation framework.
Methods
The core of PPST lies in its two main components: a visual input encoder and a plug-and-play stylistic story decoder.
- Visual Input Encoder: This component uses CLIP's pre-trained vision encoder to transform an input image into rich semantic embeddings. To bridge the gap between CLIP's latent space and the language model's, a mapping network is introduced. This network learns to project the image embeddings into a fixed-length visual prefix that the language model can effectively utilize, thus avoiding extensive fine-tuning of the language model itself.
- Plug-and-Play Stylistic Story Decoder: This component builds upon a pre-trained language model (GPT-2 in this case) to generate the story. To enable stylistic control, residual adapters (inspired by PPCM) are inserted into the transformer layers of the language model. These adapters are trained on specific style datasets (e.g., romance, action) and can be "plugged in" or out to steer the generation towards the desired style without altering the base language model. This approach allows for style-specific generation with minimal supervision.
The overall pipeline involves encoding the image, mapping its representation to a visual prefix, and then feeding this prefix to the stylized language model to generate the story.
Datasets
The paper utilizes two primary datasets:
- MS-COCO: This large-scale image captioning dataset is used for training the mapping network. The image-caption pairs provide the necessary cross-modal supervision to align visual information with textual representations. The authors used 10% of the MS-COCO dataset for computational efficiency.
- BookCorpus: This dataset, comprising a large collection of books, is used for training the stylistic adapters. The book texts are paired with genres derived from the 2021 Smashwords dataset, allowing for the extraction of passages categorized into 16 genres. For this work, the authors focused on "Romance" and "Action" styles due to their prevalence in the dataset.
Key Insights and Ideas
- Bridging Modalities with a Mapping Network: The introduction of a mapping network is a key innovation. It efficiently aligns the visual features from CLIP with the language model's input space, reducing the need for computationally expensive fine-tuning of the entire language model. This is crucial for making the system more adaptable and less resource-intensive.
- Plug-and-Play Style Control: The use of residual adapters as "plug-and-play" modules for style control is a significant contribution. It allows for flexible and efficient style adaptation without retraining the entire model, making it easier to experiment with various styles.
- Data Scarcity Mitigation: By leveraging large pre-trained models like CLIP and GPT-2, PPST effectively addresses the challenge of limited image-story paired data. These models already possess extensive knowledge, reducing the reliance on massive task-specific datasets.
- Coherence and Relevance Improvements: The results suggest that PPST, even in its non-styled version, improves story coherence and image-story relevance, indicating the effectiveness of the underlying architecture and pre-trained models.
Key Results
- Automatic Evaluation: PPST models (Non-styled, Romance, Action) generally outperformed the baseline Image2Story across various metrics, including ROUGE-L, ChrF++, MoverScore, BERTScore, BLEURT, BARTScore, and CLIPScore. The Romance and Action models showed particularly strong improvements in semantic similarity metrics.
- Human Evaluation:
- Story Coherence: The Non-styled PPST model achieved the highest coherence score, suggesting that the base pre-trained LM is sufficient for generating coherent stories.
- Image-Story Relevance: All PPST models, especially the stylistic ones, significantly outperformed the baseline in image-story relevance, indicating better alignment between the generated text and the input image.
- Style Fitness: The Action model achieved a reasonable style-story score, while the Romance model's score was lower, suggesting room for improvement in capturing nuanced styles.
Limitations and Future Work
- Style Nuance and Fluency: The paper acknowledges that while PPST can control style, the generated stories sometimes exhibit repetitions and a limited vocabulary, which can impact fluency and naturalness. This is attributed to the restricted use of vocabulary for attribute-consistent responses, a drawback also noted in prior work (PPCM).
- Style Representation: The authors suggest that improving the generated stories to be more closely related to the specific styles being adapted is a key area for future work. This could involve developing new approaches for style control that capture more descriptive or nuanced stylistic elements.
- Bias Amplification: The authors note the potential for generative models to amplify existing biases present in image captions and stories. They emphasize the need for caution and further research into mitigating such biases, while also acknowledging that some narrative biases might be contextually justified.
- Generalization to More Styles: The current work focuses on Romance and Action styles due to their representation in the dataset. Generalizing PPST to a wider range of styles, especially those relying on underlying plots (e.g., historical, adventure), would require further experimentation.
Summary updated