Vision Transformer Based Model for Describing a Set of Images as a Story

Zainy M. Malakan, Ghulam Mubashar Hassan, Ajmal MianAI 2022

Introduction

Visual Storytelling (VST) represents a significant leap in complexity beyond standard image captioning. While traditional captioning aims to describe the literal contents of a single frame—such as "a dog sits on the grass"—VST requires a model to interpret a sequence of images (typically five) and synthesize a cohesive, emotionally resonant narrative. This task demands more than just object recognition; it requires the ability to infer themes, temporal progression, and semantic links that are often implicit rather than explicit.

Previous approaches to VST relied heavily on Convolutional Neural Networks (CNNs) to extract global image features. However, these methods often resulted in "isolated" descriptions that lacked a narrative thread, treating the sequence as a series of independent events rather than a unified story. This paper introduces a novel architecture that leverages Vision Transformers (ViT) and a Mogrifier-LSTM decoder to bridge the gap between visual perception and narrative fluency.

Methodology

The proposed model shifts away from the traditional "one image, one vector" approach, opting instead for a fine-grained, patch-based analysis of visual data.

The Encoder: ViT and Bi-LSTM

The architecture begins with a Vision Transformer (ViT) encoder. Rather than processing an image as a single global blob, the ViT divides each image into 16x16 patches. These patches are flattened and projected into a linear space, preserving local details that might be critical to the story—such as a small graduation cap or a specific facial expression—which global features often smooth over.

To capture the "flow" of the story across the sequence, these patches are processed through a Bidirectional-LSTM (Bi-LSTM). This allows the model to understand the context of any given patch relative to both the preceding and succeeding images in the sequence, effectively mimicking how a human might scan a scene to build a mental narrative.

The Attention Mechanism

An attention layer is integrated to weigh the importance of different image patches. This ensures that the language model focuses on the most "story-worthy" visual elements, filtering out background noise in favor of salient narrative cues.

The Decoder: Mogrifier-LSTM

For the generation of the story text, the researchers employ a Mogrifier-LSTM. Unlike standard LSTMs, the Mogrifier facilitates multiple rounds of "mutual gating" between the input (the current word) and the hidden state (the story context) before the state is updated. This interaction, or "mogrification," allows the model to maintain a tighter grip on narrative coherence, preventing it from losing the visual thread as the sentence grows in length and complexity.

Experimental Setup and Results

The model was trained and evaluated using the Visual Story-Telling (VIST) dataset, which contains over 210,000 images arranged in sequences of five. The researchers focused on the Story In Sequence (SIS) portion of the dataset, where human-written paragraphs provide the ground truth for narrative generation.

Quantitative Performance

The model was benchmarked against several high-performing frameworks, including GLACNet and AREL. It achieved state-of-the-art (SOTA) results in metrics that are highly correlated with human judgment of fluency and content overlap:

  • METEOR: 0.354
  • ROUGE-L: 0.310

Additionally, the model showed significant gains in BLEU scores, outperforming previous SOTA models by 0.3 points in BLEU-2 and 1.1 points in BLEU-3.

Qualitative Analysis

Qualitatively, the model demonstrates a superior ability to perform "inference." In side-by-side comparisons with the CAMT model, the proposed architecture moved beyond literal descriptions. For instance, where other models might simply identify "smiling people," this model correctly inferred a "graduation ceremony" or the presence of "parents," resulting in a more emotionally resonant and human-like story.

Discussion and Limitations

While the model leads in METEOR and ROUGE-L, it did not sweep every metric, trailing slightly behind specialized models like the SAES Encoder OD in BLEU-1, BLEU-4, and CIDEr scores. This suggests that while the model is exceptionally fluent and semantically coherent, there is still room to improve the precision of specific word choices and object-level relevance.

Future work may involve the integration of dedicated object detection frameworks (such as YOLOv5) to further ground the narrative in specific visual items. Additionally, exploring different rounds of mogrification or hyperparameter tuning for the ViT patches could further refine the quality of the generated narratives.

Conclusion

By replacing global CNN features with fine-grained Vision Transformer patches and utilizing a Mogrifier-LSTM for decoding, this research demonstrates a significant advancement in Visual Storytelling. The model’s ability to link temporal patches and maintain narrative context through mutual gating results in stories that are not only more accurate but more human in their execution.

Summary updated

BibTeX
@inproceedings{malakan2022vision,
  author = {Zainy M. Malakan and Ghulam Mubashar Hassan and Ajmal Mian},
  title = {{Vision Transformer Based Model for Describing a Set of Images as a Story}},
  booktitle = {AI},
  year = {2022},
}
Figure