Introduction
Current image-text retrieval models, such as CLIP and BLIP, often rely on "shortcut learning"—exploiting statistical co-occurrences in training data rather than understanding true visual semantics. For instance, if a dataset frequently depicts dogs playing with frisbees, a model may learn to associate the presence of a dog with a frisbee, even when the latter is absent. This leads to "hallucinations" during retrieval, where the model retrieves captions containing objects not present in the query image.
Methodology
To address this, the authors propose a new evaluation metric and a robust training strategy based on counterfactual data synthesis.
1. The ODmAP@k Metric
Standard metrics like Recall@K fail to penalize models for retrieving logically inconsistent captions. The authors introduce Object Decorrelation mean Average Precision (ODmAP@k). This metric utilizes a counterfactual test set where specific objects are removed from images using an inpainting GAN. A model is penalized if it retrieves sentences mentioning the removed object for these modified images, effectively measuring its ability to decorrelate co-occurring objects.
2. Mitigation via Counterfactual Data Synthesis
To mitigate bias, the authors augment training sets with synthetic image-text pairs ($D'$). The process involves:
- Image Synthesis: Removing objects from original images ($x$) using an inpainting GAN to create $x'$.
- Text Synthesis: Generating a corresponding caption ($y'$) for the modified image. Among various methods, Noun Phrase Chunking proved most effective. This involves surgically removing the noun phrase referring to the deleted object from the original caption (e.g., "Two dogs playing with a frisbee" becomes "Two dogs playing"), preserving the unique context of the scene while avoiding the "hubness" problem associated with generic prompts.
Experimental Results
The study evaluated models on MS-COCO and Flickr30k benchmarks. Fine-tuning with a small portion (10-20%) of synthetic counterfactual data significantly improved robustness across multiple architectures:
- CLIP (MS-COCO): ODmAP@1 increased from 59.8% to 70.1%.
- BLIP (MS-COCO): ODmAP@1 improved from 65.3% to 71.6%.
Crucially, this improvement in robustness did not degrade standard retrieval performance. Recall@1 scores remained stable or slightly improved, demonstrating that removing spurious correlations enhances the model's fundamental understanding of visual scenes without sacrificing accuracy.
Conclusion
By exposing hidden biases through the ODmAP@k metric and mitigating them via targeted counterfactual synthesis, this work provides a scalable framework for building more reliable cross-modal retrieval systems. Future work may extend this approach to address more complex biases, such as gender or scene-context correlations, and apply it to other modalities like video and audio.
Summary updated