Skip to main content
QUICK REVIEW

[Paper Review] Image Captioning Based on a Hierarchical Attention Mechanism and Policy Gradient Optimization

Shiyang Yan, Yuan Xie|arXiv (Cornell University)|Nov 13, 2018
Multimodal Machine Learning ApplicationsComputer Science65 references7 citations
TL;DR

This paper proposes a hierarchical attention mechanism combining global CNN features and local object features via Faster R-CNN, coupled with a GAN and policy gradient reinforcement learning framework to improve image captioning. The method achieves state-of-the-art performance on MSCOCO using only greedy decoding, outperforming prior methods on BLEU-1, METEOR, and ROUGE-L metrics by explicitly optimizing for caption coherence and image consistency.

ABSTRACT

Automatically generating the descriptions of an image, i.e., image captioning, is an important and fundamental topic in artificial intelligence, which bridges the gap between computer vision and natural language processing. Based on the successful deep learning models, especially the CNN model and Long Short-Term Memories (LSTMs) with attention mechanism, we propose a hierarchical attention model by utilizing both of the global CNN features and the local object features for more effective feature representation and reasoning in image captioning. The generative adversarial network (GAN), together with a reinforcement learning (RL) algorithm, is applied to solve the exposure bias problem in RNN-based supervised training for language problems. In addition, through the automatic measurement of the consistency between the generated caption and the image content by the discriminator in the GAN framework and RL optimization, we make the finally generated sentences more accurate and natural. Comprehensive experiments show the improved performance of the hierarchical attention mechanism and the effectiveness of our RL-based optimization method. Our model achieves state-of-the-art results on several important metrics in the MSCOCO dataset, using only greedy inference.

Motivation & Objective

  • To address the limitations of global image features in capturing fine-grained visual details for image captioning.
  • To overcome exposure bias in RNN-based maximum likelihood training by integrating reinforcement learning.
  • To improve caption quality by aligning generated sentences more closely with image content through adversarial training.
  • To achieve state-of-the-art performance without relying on external knowledge or complex inference strategies like beam search.

Proposed method

  • Introduces a hierarchical attention mechanism that jointly uses global image features from a pre-trained CNN and local object features from Faster R-CNN detections.
  • Applies visual attention to both global and local features to dynamically attend to relevant image regions during caption generation.
  • Employs a conditional GAN framework where a discriminator evaluates the consistency between generated captions and image content.
  • Uses policy gradient optimization with a reward signal derived from the discriminator to train the caption generator, enabling end-to-end training despite the discrete nature of language.
  • Adopts a three-step training strategy: pre-train the image encoder and object detector, then train the captioning model with MLE, and finally fine-tune with RL.
  • Leverages the discriminator's feedback as a dense reward signal to optimize the policy network for generating more accurate and natural captions.

Experimental results

Research questions

  • RQ1Can combining global and local visual features through a hierarchical attention mechanism improve image captioning performance?
  • RQ2Does integrating a GAN with policy gradient optimization reduce exposure bias and improve caption quality compared to MLE-based training?
  • RQ3Can a discriminator trained to assess caption-image consistency serve as an effective reward signal for RL-based caption generation?
  • RQ4To what extent can the proposed method achieve state-of-the-art results using only greedy decoding, without beam search or external knowledge?

Key findings

  • The proposed model achieves state-of-the-art results on the MSCOCO Karpathy test split, outperforming prior methods on BLEU-1 (73.036), METEOR (53.688), and ROUGE-L (39.069) metrics.
  • The model significantly outperforms the MLE-based baseline in qualitative analysis, generating more accurate and natural captions, especially in capturing fine-grained attributes like gender.
  • The hierarchical attention mechanism enables better localization of relevant image regions, as shown by attention maps that align with semantic content of generated words.
  • The discriminator-based reward signal effectively guides the policy network to generate more coherent and image-consistent captions, even without external knowledge or beam search.
  • The model achieves competitive performance with the current SOTA method (Embedding Reward [67]) while using only greedy inference, demonstrating the effectiveness of the training procedure.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.