Introduction
Traditional image captioning models, typically trained using Cross-Entropy Loss (XENT), suffer from exposure bias and metric inconsistency. While reinforcement learning (RL) offers a path to optimize sentence-level metrics like CIDEr directly, standard policy gradient methods often struggle with high variance and poor credit assignment. This paper, presented at AAAI 2018, introduces a refined RL approach that combines Temporal-Difference (TD) learning with a novel "sampling baseline" to address these challenges.
The Challenge of Credit Assignment and Variance
In sequence generation, treating every word as equally responsible for the final reward is unrealistic. Some words are critical to a caption's quality, while others are mere fillers. Furthermore, RL training is notoriously unstable. Previous methods often used a "greedy" baseline—comparing a sampled sentence to the model's best deterministic guess—which can still result in high variance during gradient estimation.
Methodology: TD Learning and Dual-Sampling
The proposed framework utilizes a standard encoder-decoder architecture (ResNet-101 and LSTM) but revolutionizes the training process through two key innovations:
- Temporal-Difference (TD) Learning: Instead of a flat reward for the entire sentence, the authors employ TD($\lambda$) (specifically $\lambda=1$) to estimate the value of each word at each time step. By introducing a discount factor $\gamma$, the model learns the correlation between successive actions, effectively assigning "credit" based on a word's specific contribution to the final outcome.
- Sampling Baseline: To stabilize training, the model samples two sequences from the same multinomial distribution. One sequence calculates the gradient, while the other serves as the baseline. Since both samples originate from the same policy, their quality is likely similar, leading to a cleaner "advantage" signal and significantly reduced variance.
Experimental Results
The model was evaluated on the MS COCO dataset using the "Karpathy split." The proposed method, TD-Multinomial-ATT, achieved a state-of-the-art CIDEr score of 111.6, a significant improvement over the previous best of 106.3 (Self-Critical Sequence Training).
Qualitatively, the TD-based approach demonstrates a superior ability to identify specific objects and describe complex relationships compared to XENT-based models. For instance, it more accurately identifies objects in cluttered scenes and provides more descriptive context.
Conclusion
By integrating TD learning for better credit assignment and a dual-sampling baseline for variance reduction, this work sets a new benchmark for RL in image captioning. While the approach increases computational cost during training, the resulting models are more robust and achieve significantly higher performance on standard evaluation metrics. Future work may explore optimizing for a fusion of multiple metrics or employing model ensembles to further push performance boundaries.
Summary updated