Actor-Critic Sequence Training for Image Captioning

Li Zhang, Flood Sung, Feng Liu, Tao Xiang, Shaogang Gong, Yongxin Yang, Timothy M. HospedalesarXiv 2017

TL;DR

This paper introduces an actor-critic reinforcement learning approach for image captioning that directly optimizes non-differentiable quality metrics like CIDEr, overcoming limitations of traditional maximum likelihood training. Their novel per-token advantage and value computation strategy leads to state-of-the-art performance on the MSCOCO benchmark with a single model.

What Problem Does This Paper Address?

Generating descriptive captions for images is a crucial task for AI systems that need to communicate visual information to humans. Traditional methods train captioning models by maximizing the probability of generating the ground-truth caption word-by-word. While straightforward, this "teacher forcing" approach creates a mismatch between training and testing. During testing, the model relies on its own (potentially erroneous) predictions, leading to an "exposure bias" and error accumulation. More importantly, this training objective doesn't directly optimize the metrics we actually care about for caption quality, such as CIDEr (Consensus-based Image Description Evaluation), which are non-differentiable and thus incompatible with standard gradient-based training. This paper aims to bridge this gap by using reinforcement learning to directly optimize these important, but non-differentiable, evaluation metrics.

Methods

The core contribution is an actor-critic reinforcement learning framework for image captioning.

  • Actor-Critic Architecture: The model consists of two main components:
  • Actor (Policy Network): This is an LSTM-based network that generates the caption sequence, treating each word prediction as an action. It's trained using policy gradients to maximize expected rewards.
  • Critic (Value Network): This network estimates the expected future reward (task-specific metric score) from a given state (image features and previously generated words). This value estimate is used to train the actor.
  • Per-Token Advantage and Value Computation: A key novelty is how they compute the advantage and value for each token. They formulate the problem as a Markov Decision Process (MDP) and use a temporal-difference (TD) learning approach, specifically a forward-view TD(λ) setting, to estimate the advantage. This allows for a more nuanced training signal at each step of caption generation, rather than a single reward at the end of the sequence.
  • Addressing Exposure Bias: By using reinforcement learning and sampling from the model's own distribution during training, the method inherently avoids the exposure bias problem inherent in teacher forcing.
  • Pre-training Strategy: To overcome the challenges of training actor-critic models from scratch (e.g., vanishing gradients), they employ a staged pre-training approach: first pre-training the actor with standard cross-entropy loss, then pre-training the critic with the fixed actor, before jointly training them.

Datasets

  • MSCOCO: The primary dataset used for both training and evaluation. The paper mentions using the standard training set (82,783 images) and validation set (40,504 images) for development, and the official MSCOCO test set (40,775 images) for final evaluation. They also mention using a held-out set of 4,051 images from the validation set for development.

Key Insights and Ideas

  • Direct Optimization of Metrics is Crucial: The paper strongly argues that directly optimizing evaluation metrics like CIDEr, rather than indirectly optimizing likelihood, is key to achieving better caption quality.
  • Actor-Critic for Sequence Generation: The actor-critic framework is well-suited for sequence generation tasks where decisions at each step influence future outcomes and the final reward is only known at the end.
  • Per-Token Advantage Improves Training: The novel per-token advantage estimation allows for a more stable and effective gradient signal, leading to better learning compared to methods that might assign a single reward to the entire sequence or use simpler advantage calculations.
  • Pre-training is Essential: The staged pre-training strategy is vital for stabilizing the actor-critic training process, preventing early convergence to poor solutions.

Key Results

  • State-of-the-Art Performance: The proposed actor-critic model achieved state-of-the-art performance on the MSCOCO benchmark, ranking third on the official evaluation server when submitted as a single model.
  • Significant CIDEr Improvement: On the MSCOCO development set, their method achieved a CIDEr score of 1.162, a significant improvement over the log-likelihood baseline (1.007) and even outperforming the self-critical method [17] (1.140) which used a multiple model ensemble.
  • Computational Efficiency: The paper highlights that their model is computationally efficient, with a faster training time per minibatch compared to other reinforcement learning-based methods, partly due to not using an attention mechanism.
  • Qualitative Improvements: The qualitative examples show that their generated captions are often more descriptive and accurate than those produced by standard cross-entropy trained models.

Limitations and Future Work

  • Limitations:
    • The paper mentions that training actor-critic from scratch can lead to early determinisation and vanishing gradients, which they address with pre-training.
  • While they achieve state-of-the-art with a single model, they acknowledge that ensemble methods can further improve performance.
  • Future Work: Not explicitly detailed in the provided text, but the success of their actor-critic approach suggests potential applications to other sequence generation tasks where direct optimization of non-differentiable metrics is desired. The paper's focus on computational efficiency also points towards further exploration of optimized RL algorithms for complex tasks.

Summary updated

BibTeX
@misc{zhang2017actor,
  author = {Li Zhang and Flood Sung and Feng Liu and Tao Xiang and Shaogang Gong and Yongxin Yang and Timothy M. Hospedales},
  title = {{Actor-Critic Sequence Training for Image Captioning}},
  year = {2017},
  eprint = {1706.09601},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.09601},
}
Figure