Abstract
One property that remains lacking in image captions generated by contemporary methods is discriminability: being able to tell two images apart given the caption for one of them. We propose a way to improve this aspect of caption generation. By incorporating into the captioning training objective a loss component directly related to ability (by a machine) to disambiguate image/caption matches, we obtain systems that produce much more discriminative caption, according to human evaluation. Remarkably, our approach leads to improvement in other aspects of generated captions, reflected by a battery of standard scores such as BLEU, SPICE etc. Our approach is modular and can be applied to a variety of model/loss combinations commonly proposed for image captioning.
Introduction
Contemporary image captioning models often "play it safe" by generating generic, high-probability descriptions like "a dog in a park" or "a large airplane in the sky." While technically accurate, these captions frequently lack the informativeness required to distinguish between visually similar scenes. For instance, if presented with two different photos of airplanes, a standard model might produce the same generic label for both, rendering the caption useless for disambiguation.
This paper addresses the gap in current training objectives, such as Maximum Likelihood Estimation (MLE) or CIDEr optimization, which encourage models to mimic the "average" human caption. This tendency leads to overly general, "safe" outputs. The challenge lies in forcing the model to identify "interesting" details—such as specific colors, quantities, or unique attributes—that make an image unique.
Methodology: The Discriminability Objective
The researchers propose a modular framework that can be integrated into various captioning architectures. The system comprises two primary components:
- The Generator: A standard captioning model (tested with both sequence encoder and attention-based variants).
- The Discriminator (Retrieval Model): A pre-trained model that maps images and text into a shared semantic space, calculating similarity scores between them.
Contrastive Loss ($L_{CON}$)
The core innovation is the introduction of a Contrastive Loss. During training, the generator produces a caption, and the retrieval model evaluates it against a batch of images. The generator is rewarded if the retrieval model can correctly match the generated caption to its target image more strongly than to any "distractor" images in the batch.
Since word sampling is non-differentiable, the authors employ Reinforcement Learning (REINFORCE). They use a "self-critical" approach where the reward is a weighted combination of the standard CIDEr score and the new discriminability score.
Experimental Setup and Datasets
The study primarily utilizes the MS COCO dataset. To rigorously measure discriminability, the authors constructed a custom evaluation set of 1,000 "hard" pairs. For every target image, they identified its nearest neighbor based on visual similarity, forcing both models and human evaluators to distinguish between nearly identical scenes.
Key Results and Insights
The inclusion of a discriminability objective yielded several significant findings:
- Discriminability as a Proxy for Quality: Surprisingly, optimizing for discriminability improved standard language metrics like BLEU and CIDEr. The discriminability loss appears to "nudge" the reinforcement learning process, helping it escape local minima associated with generic text.
- The Specificity Boost: The model showed marked improvements in the SPICE metric, particularly in sub-categories like Color, Attribute, and Cardinality. It learned to specify "a red train" instead of just "a train," or "two dogs" instead of "dogs."
- The Fluency Tradeoff: There is a delicate balance between descriptiveness and readability. If the weight of the discriminability loss ($\lambda$) is too high, the model may produce "bag of words" captions that are informative but lack grammatical fluency. A weight of $\lambda \approx 1$ was found to be the optimal "sweet spot."
Performance Metrics
- Machine Evaluation: On "hard" image pairs, the proposed model (ATTN+CIDER+DISC) achieved a retrieval accuracy of ~80%, compared to ~71% for the standard baseline.
- Human Evaluation: In Amazon Mechanical Turk studies, humans were significantly more accurate at identifying target images when provided with captions from the discriminative model.
Conclusion and Future Work
This research demonstrates that incorporating a discriminability objective significantly enhances the informativeness of image captions without sacrificing standard performance metrics. While the current retrieval model is relatively simple, future work could leverage more sophisticated visual semantic embedding models. Additionally, exploring ways to better balance the tradeoff between extreme detail and linguistic fluency remains an open area for investigation, potentially involving "referring expressions" for specific image regions.
Summary updated