Exploring Overall Contextual Information for Image Captioning in Human-Like Cognitive Style

Hongwei Ge, Zehang Yan, Kai Zhang, Mingde Zhao, Liang SunICCV 2019

Abstract

Traditional image captioning models often struggle with the "semantic gap" between visual features and linguistic structure, primarily because they generate words sequentially without a global understanding of the intended sentence. This paper introduces a novel framework that mimics human cognition by considering the "global context" before finalizing a description. By employing a Mutual-aid Bidirectional LSTM (MaBi-LSTM) and a cross-modal attention "retouching" mechanism, the proposed model moves beyond simple word-by-word prediction to generate more accurate, detailed, and contextually aware captions.

Introduction

Most standard image captioning systems utilize an encoder-decoder architecture where a Convolutional Neural Network (CNN) extracts image features and a Long Short-Term Memory (LSTM) network generates words sequentially from left to right. While effective, this approach lacks "context-after" information. When humans describe a scene, we typically have an overall concept of the sentence structure before we begin speaking. Traditional models are effectively "blind" to the future; for instance, a model might struggle to choose between similar verbs until it reaches the object of the sentence. This paper addresses this limitation by integrating a mechanism for global cognition.

Methodology

The authors propose a two-pronged solution to bridge the gap between abstract visual features and linguistic requirements:

  1. MaBi-LSTMs (Mutual-aid Bidirectional LSTMs): Unlike standard Bi-LSTMs, this "Mutual-aid" structure includes auxiliary modules. During training, the forward LSTM is tasked with approximating the hidden states of the backward LSTM and vice versa. This forces the hidden nodes to encode not just preceding information, but also a representation of what is about to come, effectively capturing the "global cognition" of the sentence.
  2. Cross-modal Attention Module: Instead of outputting the first sequence generated, the model treats the forward and backward LSTM outputs as "drafts." A specialized attention module then "retouches" these drafts by dynamically focusing on salient image regions (visual attention) and salient parts of the two generated sentences (semantic attention) to fuse them into a final, higher-quality caption.
The overall architecture of the proposed model, featuring the MaBi-LSTMs and the Cross-modal Attention Module.

Experimental Setup and Results

The model was evaluated on the Microsoft COCO (MS COCO) dataset using the standard "Karpathy split" (82,000 training images, 5,000 validation, and 5,000 testing). Performance was measured using standard NLP metrics including BLEU-n, METEOR, ROUGE-L, and CIDEr.

Quantitative Performance

The full model achieved state-of-the-art results at the time of publication, reaching a CIDEr score of 116.6 and a BLEU-4 of 36.8. These results significantly outperformed baseline attentive encoder-decoder models and contemporary architectures like SCA-CNN.

Qualitative Analysis

Visualizations demonstrate that the model is significantly better at identifying specific counts and fine-grained attributes. For example, where a baseline model might simply identify "sinks," the proposed model correctly identifies "three sinks." It also captures specific details like a "pink shirt" or a "mirror" that simpler models often overlook.

Qualitative comparison of captions generated with and without the auxiliary structure, highlighting improvements in identifying specific attributes and counts.

Conclusion and Future Work

The "Mutual-aid" concept proves that forcing directional LSTMs to "help" each other predict hidden states leads to a richer representation of sentence structure. By mimicking the human process of self-correction and refinement, the model generates more descriptive and accurate captions. While the phased training approach adds some computational complexity, the authors suggest that this human-like cognitive style—building overall cognition before execution—could be highly beneficial for other multi-modal tasks such as Machine Translation and Visual Question Answering (VQA).

Summary updated

BibTeX
@inproceedings{ge2019exploring,
  author = {Hongwei Ge and Zehang Yan and Kai Zhang and Mingde Zhao and Liang Sun},
  title = {{Exploring Overall Contextual Information for Image Captioning in Human-Like Cognitive Style}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2019},
}
Figure