Better Captioning With Sequence-Level Exploration

Jia Chen, Qin Jin

Introduction

Current image and video captioning models often suffer from "repetitive excellence"—they generate highly accurate captions but lack the diversity to cover the many valid ways to describe a scene. This research introduces Sequence-Level Exploration (SLE), a training objective that balances precision with a diversity term, forcing models to explore a wider range of plausible, high-quality captions.

The Problem: Precision vs. Recall in Captioning

In automated captioning, there is rarely a single "correct" description. An image of a park could be described by its weather, the people in it, or the specific activities occurring. However, most state-of-the-art models are trained using Sequence-Level Learning (SLL), which optimizes for a specific reward like the CIDEr score.

The authors identify a fundamental flaw: standard SLL optimizes for precision (how well the generated text matches ground truth) while completely ignoring recall (how well the model covers the space of all possible correct descriptions). Empirically, this results in models that, when sampled multiple times for the same image, produce nearly identical sentences. They are "stuck" in a narrow peak of the probability distribution, failing to capture the inherent semantic variety of human language.

Figure 3: Probability distribution of captions. Standard SLL creates a narrow peak, making diverse but correct captions unlikely to be sampled.

Methodology: Sequence-Level Exploration (SLE)

The proposed objective function, SLL-SLE, combines two components to address this limitation:

  1. Precision Term: The standard SLL objective (using REINFORCE) that rewards captions for being semantically coherent with the ground truth (e.g., high CIDEr or METEOR scores).
  2. Diversity Term: A novel term that rewards the model for generating captions that are different from one another. Specifically, it maximizes the pairwise distance (like edit distance or BLEU) between multiple captions sampled for the same input.

A key technical distinction is that unlike standard "maximum-entropy" regularization, which works at the word level (making the next word choice more uncertain), SLE works at the sequence level. It encourages the model to explore entirely different "trajectories" or sentence structures while ensuring they all remain anchored to the visual content. This prevents the model from generating ungrammatical gibberish, a common side effect of word-level entropy maximization.

Experimental Evaluation

The researchers evaluated their approach on two major benchmarks:

  • MSCOCO: The gold standard for image captioning, containing over 120,000 images with 5 human-annotated captions each.
  • TGIF: A large-scale video captioning dataset consisting of 100,000 animated GIFs and 120,000 sentences.

The paper provides a theoretical proof that current SLL objectives are equivalent to maximizing "generalized precision." Since we cannot enumerate every possible correct caption for an image, the authors argue that the diversity of a model's samples is the best measurable proxy for its recall. SLE effectively "widens" the probability peak, allowing the model to sample various captions that are all within the "semantically coherent space."

Key Results

The SLL-SLE method consistently outperformed both standard SLL and SLL with maximum entropy (SLL-ME) across multiple metrics. On the MSCOCO image captioning task, SLL-SLE achieved a CIDEr score of 117.2 (up from 115.0 in standard SLL) while significantly improving diversity metrics like Div-1 and Div-2.

On the TGIF video captioning dataset, the improvements were even more pronounced. As shown in the results table, SLL-SLE improved the METEOR score from 17.8 to 18.8 and the CIDEr score from 45.9 to 50.8.

Figure 6: Performance comparison on the TGIF dataset. SLL-SLE (ours) outperforms baseline methods across all metrics.

Qualitatively, SLL-SLE avoids the redundancy of standard SLL. When sampling 5 captions for a single image, standard SLL often produced 5 identical sentences. In contrast, SLL-SLE produced 5 distinct, high-quality descriptions (e.g., "a man sitting next to a toilet reading a book" vs. "a man reading a newspaper next to a toilet paper").

Conclusion and Future Work

By addressing the "Peak Width" problem through sequence-level diversity, SLE allows captioning models to better approximate the human ability to describe scenes in varied ways. While effective, the model relies on a balancing coefficient (alpha) between precision and diversity that may require tuning for different datasets. Future work could explore more sophisticated semantic distance measures beyond n-gram overlaps to further refine the diversity term.

Summary updated

BibTeX
@inproceedings{chen2020better,
  author = {Jia Chen and Qin Jin},
  title = {{Better Captioning With Sequence-Level Exploration}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01090},
}
Figure