Group-Based Distinctive Image Captioning with Memory Difference Encoding and Attention

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

Introduction

Standard image captioning models often prioritize accuracy over specificity, leading to "generic" descriptions. While a caption like "a traffic light on a city street" is technically correct for many images, it fails to provide the distinctive details necessary to differentiate one scene from another. This lack of specificity is particularly problematic for applications like assistive technology for the visually impaired, where knowing if a light is red or green is critical.

The DifDisCap Framework

To address this, the authors propose Group-based Differential Distinctive Captioning (DifDisCap). Instead of treating image captioning as an isolated task, DifDisCap frames it as a "spot the difference" exercise.

The model operates by comparing a target image against a group of $K$ "hard negatives"—images retrieved via VSE++ that are semantically similar to the target. The core of the architecture is the Group-based Differential Memory Attention (GDMA) module. GDMA identifies features in the target image that have low similarity to the group and assigns them higher attention. For instance, if all images in a group contain a street but only the target contains a specific object like a "frisbee," the model focuses on that unique element.

Distinctive Learning Objectives

The framework introduces two novel loss functions:

  1. WeiDisLoss (Weighted Distinctive Loss): This loss encourages the model to predict words that appear in the target's ground-truth captions but are absent from the captions of similar images. CLIP is utilized to weight these words, ensuring the model prioritizes relevant distinctive features over noise.
  2. MemClsLoss: An auxiliary classification task that forces the memory module to explicitly identify distinctive words.

Additionally, the authors employ Indicated Training (IndTrain), which selectively applies distinctive training only to ground-truth captions that are inherently descriptive, preventing the model from being misled by generic human labels.

Experimental Results

The model was evaluated on the MSCOCO and Flickr30k datasets. DifDisCap significantly improved the DisWordRate (the percentage of unique words in generated captions) from a baseline of 16.8% to 19.7%.

Comparison of generated captions between DifDisCap and previous methods (DiscCap, CIDErBtwCap) across three similar traffic light images. DifDisCap provides specific details like color and time of day.

In terms of discriminative power, the model achieved a CIDErRank of 2.30, outperforming existing state-of-the-art models like DiscCap. A lower CIDErRank indicates that the generated caption is more effective at helping a system (or human) identify the correct image from a set of similar candidates. A human user study confirmed this utility: participants could correctly identify the target image 69.5% of the time using DifDisCap captions, compared to 48.1% with DiscCap.

Conclusion

DifDisCap represents a significant step toward more useful and descriptive image captioning. By explicitly modeling visual differences within a group of similar images, the framework produces captions that are not just accurate, but truly distinctive. While there is a slight trade-off between traditional accuracy metrics (like BLEU) and distinctiveness, the gain in practical utility—especially for visually impaired users—is substantial. Future work will look into refining the retrieval process and extending this group-based logic to video captioning.

Summary updated

BibTeX
@article{wang2025group,
  author = {Jiuniu Wang and Wenjia Xu and Qingzhong Wang and Antoni B. Chan},
  title = {{Group-Based Distinctive Image Captioning with Memory Difference Encoding and Attention}},
  journal = {Int. J. Comput. Vis.},
  year = {2025},
  doi = {10.1007/s11263-024-02220-6},
}
Figure