Reinforced Video Captioning with Entailment Rewards

Ramakanth Pasunuru, Mohit Bansal

TL;DR

This paper introduces CIDEnt, a novel reinforcement learning reward for video captioning that combines traditional phrase-matching metrics (like CIDEr) with logical entailment. By optimizing for captions that are not only linguistically similar to ground truth but also logically implied by it, the authors achieved new state-of-the-art results on the MSR-VTT dataset and significantly improved caption relevance in human evaluations.

Introduction

Video captioning aims to generate natural language descriptions for video sequences. Traditionally, models are trained using Cross-Entropy (XE) loss, which optimizes for word-level accuracy against ground-truth references. However, this approach suffers from two primary issues: exposure bias, where the model deviates from ground truth during inference, and a metric mismatch, where word-level optimization does not necessarily translate to high-quality sentence-level evaluation (e.g., BLEU or CIDEr).

A sample video frame from the datasets used for training and evaluating captioning models.

Furthermore, standard evaluation metrics rely on undirected n-gram matching. These metrics often fail to distinguish between minor linguistic variations and critical logical contradictions. For example, a model might receive a high score for "a man is playing football" when the ground truth is "a man is playing basketball" due to high word overlap, despite the factual error. These metrics fail to capture directed logical correctness.

The CIDEnt Framework

To address these limitations, this paper proposes a reinforcement learning (RL) approach using a novel reward function called CIDEnt.

Mixed-Loss Reinforcement Learning

The model utilizes a policy gradient approach (REINFORCE) to directly optimize sentence-level rewards. To maintain linguistic fluency and prevent the model from "gaming" the reward metric, a mixed-loss function is employed. This function combines the standard XE loss with the RL loss, ensuring the generated captions remain readable while maximizing the target metric.

CIDEnt Reward Mechanism

The core innovation is the CIDEnt reward, which "corrects" the traditional CIDEr metric using a logical entailment model.

Architecture of the CIDEnt reinforcement learning framework, showing the integration of entailment (Ent) and CIDEr metrics to generate the final reward.

As shown in the architecture above, the system generates a caption $w^s$ which is then evaluated by two components:

  1. CIDEr Module: Measures phrase-level similarity to the ground truth $w^*$.
  2. Entailment Classifier: A pre-trained decomposable attention model determines if the generated caption is logically implied by the ground truth.

If the entailment score is low—indicating a contradiction or irrelevant content—the CIDEr score is penalized by a factor $\lambda$. This ensures that high rewards are reserved for captions that are both linguistically similar and logically consistent with the source video.

Experimental Results

The proposed model was evaluated on the MSR-VTT and YouTube2Text (MSVD) datasets.

  • State-of-the-Art Performance: On the MSR-VTT leaderboard, the CIDEnt-RL model achieved top-tier results, reaching 40.5 BLEU-4 and 51.7 CIDEr-D.
  • Human Evaluation: Pairwise comparisons revealed that humans significantly preferred CIDEnt-RL captions over standard CIDEr-RL captions for relevance (18.4% vs. 11.6% win rate). This confirms that incorporating logical entailment leads to more meaningful and factually accurate descriptions.
  • Robustness: The improvements were consistent across multiple metrics, including METEOR and ROUGE-L, demonstrating the generalizability of the entailment-corrected reward.

Conclusion

By shifting the focus from simple n-gram overlap to directed logical correctness, the CIDEnt framework significantly advances the state of video captioning. While the inclusion of an entailment model increases computational overhead, the gains in factual accuracy and human preference are substantial. Future work will explore applying these entailment-corrected rewards to other generative tasks such as abstractive summarization and image captioning, where logical consistency is equally critical.

Summary updated

BibTeX
@inproceedings{pasunuru2017reinforced,
  author = {Ramakanth Pasunuru and Mohit Bansal},
  title = {{Reinforced Video Captioning with Entailment Rewards}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2017},
  doi = {10.18653/v1/d17-1103},
}
Figure