On Distinctive Image Captioning via Comparing and Reweighting

Jiuniu Wang, Wenjia Xu, Qingzhong Wang, Antoni B. Chan · DOI

Abstract

Recent image captioning models are achieving impressive results based on popular metrics like BLEU, CIDEr, and SPICE. However, focusing on these metrics, which only consider the overlap between generated captions and human annotations, often results in generic descriptions that lack distinctiveness. In this paper, we aim to improve the distinctiveness of image captions via comparing and reweighting with a set of similar images. We propose a new metric, Between-set CIDEr (CIDErBtw), to evaluate caption distinctiveness. Our findings reveal that human annotations are not equally distinctive, yet standard training treats them as such. We introduce the Distinctiveness via Comparing and Reweighting (DCR) framework, which reweights ground-truth captions, integrates a long-tailed weight strategy for rare words, and uses contrastive learning with negative samples from similar images. Extensive experiments show that DCR significantly improves both distinctiveness and accuracy across various baselines.

Introduction: The Problem of Genericness

Standard image captioning models often suffer from producing "generic" descriptions. For instance, multiple different photos of living rooms might all be described as "a living room with a couch and a table." While accurate, these captions fail to capture the unique details—like a specific rug or a particular bookshelf—that distinguish one image from another.

The root cause is twofold: standard evaluation metrics reward simple overlap with human ground truths, and training processes treat all human annotations as equally valid. Because human annotators often provide some generic descriptions, models learn that safe, common phrases lead to higher scores. A truly effective caption should be discriminative, allowing a listener to identify a specific image from a group of similar ones.

Measuring Distinctiveness: CIDErBtw

To quantify how unique a caption is, we introduce CIDErBtw. This metric measures the average CIDEr score between a generated caption and the ground-truth captions of a "similar image set" (semantically close neighbors).

  • High CIDErBtw: Indicates a generic caption that describes neighboring images as well as the target.
  • Low CIDErBtw: Indicates a distinctive caption containing concepts unique to the target image.

The DCR Training Framework

The DCR framework addresses genericness through three core strategies designed to force the model to focus on distinguishing features.

The DCR framework integrates CIDErBtw-based reweighting, long-tailed word weights, and contrastive loss with negative samples from similar images.

1. CIDErBtw Reweighting Strategy

Not all human-written captions are of equal quality. We calculate the CIDErBtw for every ground-truth caption in the dataset and assign higher weights to those that are more distinctive. This encourages the model to prioritize specific descriptions over generic ones during the learning process.

2. Long-Tailed Weight (LTW)

Specific information is often carried by rare words found in the "tail" of the word frequency distribution. DCR increases the loss weight for these infrequent words, incentivizing the model to expand its vocabulary beyond common, safe terms.

The LTW strategy increases weights for rare, informative words (right) while maintaining a baseline weight for common words (left).

3. Negative Samples (NS)

Using contrastive learning, the model is explicitly taught what not to say. Captions from the similar image set are used as negative examples, training the model to avoid generating descriptions that could apply to neighboring images.

Experimental Results

We evaluated DCR across several baseline architectures, including FC, Att2in, UpDown, and Transformer, using the MSCOCO dataset.

  • Quantitative Performance: DCR consistently improved standard accuracy (CIDEr) while significantly reducing CIDErBtw. For the Transformer baseline, CIDEr rose from 110.13 to 113.98, while CIDErBtw improved (dropped) from 80.98 to 75.75.
  • Retrieval and Human Evaluation: In image retrieval tasks, DCR-enhanced captions allowed for more accurate identification of target images (R@1 improved by ~1-2%). A user study confirmed these findings, with humans preferring DCR captions for both accuracy and distinctiveness. In a retrieval game, users correctly identified target images 79.8% of the time with DCR captions, compared to 75.2% for the baseline.

Conclusion

By shifting the focus from simple overlap to distinctiveness, the DCR framework enables image captioning models to move beyond generic descriptions. The combination of CIDErBtw reweighting, long-tailed word emphasis, and contrastive learning provides a robust path toward AI that can truly "see" and describe the unique details of the world.

Summary updated

BibTeX
@article{wang2022distinctive,
  author = {Jiuniu Wang and Wenjia Xu and Qingzhong Wang and Antoni B. Chan},
  title = {{On Distinctive Image Captioning via Comparing and Reweighting}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2022},
  doi = {10.1109/tpami.2022.3159811},
}
Figure