Generating Descriptions for Sequential Images with Local-Object Attention and Global Semantic Context Modelling

Jing Su, Chenghua Lin, Mian Zhou, Qingyun Dai, Haoyu Lv

Abstract

In this paper, we propose an end-to-end CNN-LSTM model for generating descriptions for sequential images with a local-object attention mechanism. To generate coherent descriptions, we capture global semantic context using a multi-layer perceptron, which learns the dependencies between sequential images. A paralleled LSTM network is exploited for decoding the sequence descriptions. Experimental results show that our model outperforms the baseline across three different evaluation metrics on the datasets published by Microsoft.

Introduction

While standard image captioning—describing a single image—has seen massive leaps in performance, sequential image captioning remains a significant challenge. Humans can easily look at a series of photos from a vacation and tell a story that connects them. For a machine, this is "non-trivial" because it requires two distinct types of understanding:

  1. Local Understanding: Identifying specific objects and actions within a single frame (e.g., "a man is smiling").
  2. Global Understanding: Capturing the dependencies and narrative arc between images (e.g., knowing that the people in image 1 are the same "family" seen in image 5).

Existing models often treat images in isolation or fail to capture the fine-grained correlation between image features and specific words. This paper aims to bridge that gap by modeling both the "big picture" (global context) and the "details" (local attention).

Methodology

The authors propose a hybrid architecture that leverages the strengths of Convolutional Neural Networks (CNNs) and Long Short-Term Memory (LSTM) networks to generate coherent natural language descriptions for image sequences.

Architecture of the proposed CNN-LSTM model featuring local-object attention and global semantic context.

Feature Extraction

The model uses a pre-trained VGG16 network for dual-stream feature extraction:

  • Global Features (G): Extracted from the second fully connected layer (FC7). These represent the high-level "gist" of the entire image sequence.
  • Local Features (Lj): Extracted from the last convolutional layer (Conv_5), providing spatial information about specific objects.

Global Semantic Context and Local Attention

The global features are fed into a Multi-Layer Perceptron (MLP) to create a context vector. Crucially, this vector is used to initialize the hidden state ($h_0$) of the LSTM. This "primes" the decoder with the overall theme of the story before it writes a single word.

As the LSTM generates words, it uses an attention mechanism ($f_{att}$) to "look" at specific parts of the current image's local features. This helps the model map specific visual cues (like a cake) to specific words (like "birthday"). A paralleled LSTM decoder then produces the sequence of descriptions while maintaining state across the narrative.

Datasets and Evaluation

The model was evaluated on two datasets from Microsoft's VIST (Visual Storytelling) project:

  1. SIS (Sequential-in-Sequence): Images are described as part of a continuous story, the primary target for narrative coherence.
  2. DII (Descriptions of Images-in-Isolation): Images are described individually, used to test if global context improves standard captioning within a sequence.

Key Results

The proposed model consistently outperformed a standard CNN-LSTM baseline (with attention but no global context) across three major NLP metrics: BLEU, METEOR, and ROUGE.

  • DII Dataset: The model achieved a BLEU score of 40.1 (vs. 36.1 for the baseline) and a METEOR score of 11.2 (vs. 9.2).
  • SIS Dataset: In the harder storytelling task, the model led the baseline with a BLEU score of 17.2 (vs. 15.2).

Qualitatively, the model produced much more "story-like" descriptions. For instance, while the baseline might redundantly describe "a city" in every frame, the proposed model used phrases like "the family went to a restaurant," creating a more natural flow.

Insights and Future Work

By using global context to initialize the LSTM's hidden state, the model gains a "memory" of the whole sequence. This allows it to use social or emotional words (like "family" or "excited") that connect different frames, even if those specific concepts aren't explicitly visible in every pixel. This suggests the model can "reason" across the sequence, such as identifying a "beach" early on because it saw "water" later in the sequence.

However, the authors identify overfitting as a primary hurdle. In some failure cases, the model defaulted to generic descriptions like "it was a great time" because these phrases appear frequently in training data. Future work will focus on increasing training data volume, implementing more sophisticated feature extraction, and exploring ways to ensure generated text remains grounded in actual visual content.

Summary updated

BibTeX
@misc{su2020generating,
  author = {Jing Su and Chenghua Lin and Mian Zhou and Qingyun Dai and Haoyu Lv},
  title = {{Generating Descriptions for Sequential Images with Local-Object Attention and Global Semantic Context Modelling}},
  year = {2020},
  eprint = {2012.01295},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.01295},
}
Figure