Deep Reinforcement Learning-Based Image Captioning with Embedding Reward

Zhou Ren, Xiaoyu Wang, Ning Zhang, Xutao Lv, Li-Jia Li

Abstract

Image captioning is a challenging problem owing to the complexity in understanding the image content and diverse ways of describing it in natural language. Recent advances in deep neural networks have substantially improved the performance of this task. Most state-of-the-art approaches follow an encoder-decoder framework, which generates captions using a sequential recurrent prediction model. However, in this paper, we introduce a novel decision-making framework for image captioning. We utilize a policy network and a value network to collaboratively generate captions. The policy network serves as a local guidance by providing the confidence of predicting the next word according to the current state. Additionally, the value network serves as a global and lookahead guidance by evaluating all possible extensions of the current state. In essence, it adjusts the goal of predicting the correct words towards the goal of generating captions similar to the ground truth captions. We train both networks using an actor-critic reinforcement learning model, with a novel reward defined by visual-semantic embedding. Extensive experiments and analyses on the Microsoft COCO dataset show that the proposed framework outperforms state-of-the-art approaches across different evaluation metrics.

Problem Statement

Traditional image captioning models typically rely on an encoder-decoder (CNN-RNN) architecture trained via Maximum Likelihood Estimation (MLE). While effective, this approach suffers from two major flaws:

  1. Exposure Bias: During training, the model is fed ground-truth words, but during testing, it must rely on its own previous predictions. This discrepancy leads to error accumulation over the course of a sentence.
  2. Short-sightedness: Standard models are "greedy," picking the most probable next word based on local context. This often leads to suboptimal sentences that fail to capture the overall semantic meaning of the image.

To address these, this research reframes captioning as a sequential decision-making task, providing the model with "foresight" through reinforcement learning.

Proposed Decision-Making Framework

The authors propose a collaborative framework consisting of two primary components: an Actor (Policy Network) and a Critic (Value Network).

The proposed decision-making framework for image captioning, illustrating the interaction between the Policy Network (local guidance) and Value Network (global lookahead).

Policy and Value Networks

  • Policy Network (The Actor): A CNN-LSTM architecture that provides local guidance. It predicts the probability of the next word based on the current state, which includes both the image features and the sequence of words generated so far.
  • Value Network (The Critic): This network provides global guidance by evaluating the current state and predicting the expected total reward for all possible future extensions. This allows the model to "look ahead" and determine if a specific word choice—even one with lower immediate probability—will lead to a higher-quality caption overall.
Architecture of the Value Network, which concatenates visual features from a CNN and linguistic features from an RNN to predict the expected reward.

Visual-Semantic Embedding Reward

A key innovation is the use of a visual-semantic embedding reward. Rather than relying solely on discrete n-gram overlap metrics like BLEU or CIDEr, which can be sparse and purely structural, the authors train a separate embedding space. In this space, images and semantically similar sentences are mapped to nearby vectors. The reward is calculated as the cosine similarity between the generated caption and the image, providing a "denser" and more semantically meaningful signal during training.

Experimental Results

The model was evaluated on the Microsoft COCO (MS COCO) dataset using the standard Karpathy splits (~82,000 training images, 5,000 validation, and 5,000 testing).

Quantitative Performance

The proposed framework achieved state-of-the-art results at the time of publication, significantly outperforming previous reinforcement learning-based models:

  • CIDEr: 0.937 (compared to 0.813 for the gLSTM baseline).
  • BLEU-4: 0.304.
  • METEOR: 0.251.

Qualitative Analysis

The "lookahead" mechanism proved particularly effective in complex scenarios. For instance, while a local policy might assign a low probability to the word "holding," the Value Network recognizes that selecting it leads to a more accurate description (e.g., "a cat is holding a baseball bat"). Qualitatively, the model was better at identifying key objects and avoided the repetitive loops common in MLE-trained models.

Conclusion and Future Work

By combining local word-to-word confidence with global reward prediction, the Actor-Critic framework successfully mitigates exposure bias and short-sightedness in image captioning. While highly effective, the authors note that the model can still struggle with very fine-grained visual details. Future work may involve integrating spatial attention mechanisms or object detection directly into the policy network to improve the model's focus on nuanced image content.

Summary updated

BibTeX
@inproceedings{ren2017deep,
  author = {Zhou Ren and Xiaoyu Wang and Ning Zhang and Xutao Lv and Li-Jia Li},
  title = {{Deep Reinforcement Learning-Based Image Captioning with Embedding Reward}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  url = {https://openreview.net/forum?id=r1-1zRbObS},
}
Figure