Skip to main content
QUICK REVIEW

[Paper Review] Exposing and Mitigating Spurious Correlations for Cross-Modal Retrieval

Jae Myung Kim, A. Sophia Koepke|arXiv (Cornell University)|Apr 6, 2023
Multimodal Machine Learning ApplicationsComputer Science4 citations
TL;DR

This paper introduces ODmAP@k, a novel metric to measure and mitigate spurious correlations in image-text retrieval models caused by frequent co-occurrences of semantically unrelated objects in training data. By finetuning models on synthetically generated data—using object removal via inpainting and text rephrasing—the method significantly improves robustness to spurious correlations without sacrificing standard retrieval performance, as shown across three SOTA models on MSCOCO and Flickr30k.

ABSTRACT

Cross-modal retrieval methods are the preferred tool to search databases for the text that best matches a query image and vice versa. However, image-text retrieval models commonly learn to memorize spurious correlations in the training data, such as frequent object co-occurrence, instead of looking at the actual underlying reasons for the prediction in the image. For image-text retrieval, this manifests in retrieved sentences that mention objects that are not present in the query image. In this work, we introduce ODmAP@k, an object decorrelation metric that measures a model's robustness to spurious correlations in the training data. We use automatic image and text manipulations to control the presence of such object correlations in designated test data. Additionally, our data synthesis technique is used to tackle model biases due to spurious correlations of semantically unrelated objects in the training data. We apply our proposed pipeline, which involves the finetuning of image-text retrieval frameworks on carefully designed synthetic data, to three state-of-the-art models for image-text retrieval. This results in significant improvements for all three models, both in terms of the standard retrieval performance and in terms of our object decorrelation metric. The code is available at https://github.com/ExplainableML/Spurious_CM_Retrieval.

Motivation & Objective

  • To identify and quantify the impact of spurious correlations—such as frequent co-occurrences of unrelated objects—on image-text retrieval models.
  • To develop a new evaluation metric, ODmAP@k, that measures a model’s robustness to such spurious correlations by testing retrieval on images with removed objects.
  • To design a data augmentation pipeline that generates synthetic image-text pairs to debias models by eliminating frequent object co-occurrences in training data.
  • To demonstrate that finetuning with synthetic data improves model robustness on the new metric while maintaining or improving standard retrieval performance.

Proposed method

  • Propose ODmAP@k, a metric that evaluates whether retrieved text contains objects present in the query image and excludes objects removed from the original image.
  • Use object detection and image inpainting to generate synthetic query images by removing frequently co-occurring objects from real images.
  • Generate corresponding text descriptions via noun phrase removal or text generation models to create paired synthetic image-text data.
  • Apply a finetuning pipeline using a combination of original and synthetic data to debias image-text retrieval models.
  • Use multiple image synthesis strategies (e.g., blur, zero, average padding, inpainting) and text generation methods (e.g., prompts, caption models) to compare effectiveness.
  • Train and evaluate on three SOTA image-text retrieval models (e.g., CLIP) using standard benchmarks (MSCOCO, Flickr30k) and the new metric.

Experimental results

Research questions

  • RQ1To what extent do existing image-text retrieval models rely on spurious correlations, such as frequent co-occurrences of unrelated objects, rather than actual image content?
  • RQ2How can we design a metric that specifically quantifies a model’s robustness to such spurious correlations in retrieval tasks?
  • RQ3What type of synthetic data generation strategy (image and text) most effectively reduces memorization of spurious object co-occurrences?
  • RQ4Can finetuning with synthetic data improve model robustness on the new metric without degrading standard retrieval performance?

Key findings

  • ODmAP@1 improved from 59.8 to 70.1 on CLIP when finetuned with synthetic data generated via noun phrase removal and inpainting, indicating strong mitigation of spurious correlations.
  • The best-performing synthetic data generation method used noun phrase removal for text and image inpainting for images, achieving 70.1 ODmAP@1, while prompt-based text generation led to a hubness problem and lower performance on higher k values.
  • Using approximately 10% synthetic data (equivalent to one caption per image) was sufficient to achieve near-maximal improvement in ODmAP@1, with further increases saturating beyond 20%.
  • Standard retrieval performance (R@1) remained stable across varying ratios of synthetic data, indicating no degradation in primary task performance.
  • The method significantly improved robustness across three SOTA models, demonstrating generalizability beyond a single architecture.
  • Synthetic data generated with out-of-distribution image methods (e.g., zero padding) led to worse performance, suggesting that distribution shift can introduce new biases.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.