TL;DR
This paper introduces Transferable Reward Learning (RL), a method that replaces traditional n-gram overlap rewards (like BLEU) in reinforcement learning with semantic rewards from pre-trained sentence similarity models. By "transferring" knowledge from models like InferSent, the authors enable image captioning systems to prioritize meaning over exact word matching, leading to more human-like and semantically accurate text generation.
Introduction: The Semantic Gap in Text Generation
In conditional text generation tasks such as image captioning, models are typically trained using Maximum Likelihood Estimation (MLE). However, MLE suffers from "exposure bias"—where the model is never exposed to its own errors during training—and fails to directly optimize for the evaluation metrics of interest.
To address these issues, researchers often employ Deep Reinforcement Learning (DRL), using metrics like BLEU or ROUGE as a reward signal. However, these metrics rely on n-gram overlap, simply counting matching words or short phrases. They are notoriously poor at capturing semantic meaning; for instance, a model might be penalized for using a perfect synonym not present in the reference text. Furthermore, these rewards are often sparse and discrete, creating a difficult optimization landscape.
Methods: The TRL Framework
The authors propose an Actor-Critic framework where the reward signal is derived from a pre-trained, model-based estimator rather than a hard-coded formula.
The architecture consists of three primary components:
- The Actor: An encoder-decoder network (ResNet-152 for image features, LSTM for text generation) that produces the caption.
- The Critic: A network that estimates the "value" of the current state to guide the actor's learning process.
- Transferable Reward Learner (TRL): The core innovation. Instead of calculating a BLEU score, the authors use a pre-trained sentence representation model to compare the generated caption with the target caption. They evaluated two types of models: InferSent (supervised, trained on NLI) and Skipthought (unsupervised).
A key technical contribution is the use of KL-Divergence Loss for the critic. Unlike previous work using $L_2$ loss, minimizing the KL-divergence between the predicted value and the actual reward led to more stable training and better convergence.
Experimental Setup
The approach was evaluated on two standard image captioning benchmarks:
- MSCOCO (2014): A large-scale dataset with over 160,000 images and five human-annotated captions per image.
- Flickr-30k: A dataset of 30,000 images used to test the generalizability of the model across different data scales.
Key Results and Insights
The TRL approach demonstrated significant improvements in semantic similarity:
- Semantic Gains: On MSCOCO, the InferSent-based model outperformed a BLEU-trained baseline by 6.97 points on Word Mover’s Distance (WMD) and 10.48 points on a Sliding Window Cosine Similarity (COS) metric.
- Qualitative Improvement: TRL-trained models produced more descriptive and contextually relevant phrases. For example, a baseline might generate "at an intersection," while the TRL model might produce "at lights near a traffic intersection," better reflecting human descriptive patterns.
- Continuous Reward Signals: Unlike discrete n-gram metrics, embedding-based rewards provide a continuous signal. Even a "near miss" in vocabulary provides gradient information, making training more efficient.
- Handling Out-of-Vocabulary (OOV) Terms: Dense embeddings allow the TRL models to estimate the quality of sentences containing tokens rarely seen during the specific task's training phase.
Discussion and Limitations
While effective, TRL introduces some challenges:
- Computational Overhead: Using large pre-trained models as reward providers can be computationally expensive during the RL training loop.
- Static Reward Models: In this study, TRL parameters were frozen. Future work could involve fine-tuning the reward model alongside the generator to specialize the signal for specific domains.
- Metric Circularity: Evaluating a model trained on semantic rewards using semantic metrics (like WMD) introduces some bias. However, these metrics remain better proxies for human judgment than n-gram overlap.
Summary updated