Group-based Distinctive Image Captioning with Memory Difference Encoding and Attention
Jiuniu Wang, Wenjia Xu, Qingzhong Wang, Antoni B. Chan
TL;DR
This work tackles the problem of generating distinctive image captions that can differentiate a target image from visually similar images. It introduces DifDisCap, a transformer-based framework that uses Group-based Differential Memory Attention (GDMA) and memory-difference encoding to highlight object features unique within an image group, guided by distinctive words and a Distinctive Word Rate metric. The method combines memory-based feature weighting with two specialized losses (WeiDisLoss and MemClsLoss) and a two-stage training regime to balance distinctiveness and accuracy. Empirical results on MSCOCO and Flickr30k show meaningful gains in distinctiveness with a modest trade-off in conventional accuracy, supported by ablations and human-in-the-loop evaluation. The approach enhances interpretability and could extend to related tasks such as distinctive video captioning and contrastive learning in groups of similar images.
Abstract
Recent advances in image captioning have focused on enhancing accuracy by substantially increasing the dataset and model size. While conventional captioning models exhibit high performance on established metrics such as BLEU, CIDEr, and SPICE, the capability of captions to distinguish the target image from other similar images is under-explored. To generate distinctive captions, a few pioneers employed contrastive learning or re-weighted the ground-truth captions. However, these approaches often overlook the relationships among objects in a similar image group (e.g., items or properties within the same album or fine-grained events). In this paper, we introduce a novel approach to enhance the distinctiveness of image captions, namely Group-based Differential Distinctive Captioning Method, which visually compares each image with other images in one similar group and highlights the uniqueness of each image. In particular, we introduce a Group-based Differential Memory Attention (GDMA) module, designed to identify and emphasize object features in an image that are uniquely distinguishable within its image group, i.e., those exhibiting low similarity with objects in other images. This mechanism ensures that such unique object features are prioritized during caption generation for the image, thereby enhancing the distinctiveness of the resulting captions. To further refine this process, we select distinctive words from the ground-truth captions to guide both the language decoder and the GDMA module. Additionally, we propose a new evaluation metric, the Distinctive Word Rate (DisWordRate), to quantitatively assess caption distinctiveness. Quantitative results indicate that the proposed method significantly improves the distinctiveness of several baseline models, and achieves state-of-the-art performance on distinctiveness while not excessively sacrificing accuracy...
