Skip to main content
QUICK REVIEW

[Paper Review] Mitigating Test-Time Bias for Fair Image Retrieval

Fanjie Kong, Shuai Yuan|arXiv (Cornell University)|May 23, 2023
Multimodal Machine Learning ApplicationsComputer Science3 citations
TL;DR

This paper proposes Post-hoc Bias Mitigation (PBM), a test-time post-processing method that reduces gender and racial bias in text-based image retrieval by re-ranking results using predicted demographic attributes from a pre-trained classifier or zero-shot VL model. PBM achieves the lowest bias while maintaining strong retrieval performance across multiple datasets, addressing limitations of training-time debiasing methods due to test-time data imbalances.

ABSTRACT

We address the challenge of generating fair and unbiased image retrieval results given neutral textual queries (with no explicit gender or race connotations), while maintaining the utility (performance) of the underlying vision-language (VL) model. Previous methods aim to disentangle learned representations of images and text queries from gender and racial characteristics. However, we show these are inadequate at alleviating bias for the desired equal representation result, as there usually exists test-time bias in the target retrieval set. So motivated, we introduce a straightforward technique, Post-hoc Bias Mitigation (PBM), that post-processes the outputs from the pre-trained vision-language model. We evaluate our algorithm on real-world image search datasets, Occupation 1 and 2, as well as two large-scale image-text datasets, MS-COCO and Flickr30k. Our approach achieves the lowest bias, compared with various existing bias-mitigation methods, in text-based image retrieval result while maintaining satisfactory retrieval performance. The source code is publicly available at \url{https://anonymous.4open.science/r/Fair_Text_based_Image_Retrieval-D8B2}.

Motivation & Objective

  • To address the gap in fairness for text-based image retrieval (TBIR) caused by test-time bias in retrieval candidate sets, despite training-time debiasing.
  • To investigate why existing training-time debiasing methods fail to achieve equal representation in retrieval results.
  • To develop a simple, efficient, and effective post-processing solution that mitigates test-time bias without retraining or gradient access to the vision-language model.
  • To maintain high retrieval performance while significantly reducing bias in image search results for neutral queries.
  • To promote fairer and more diverse visual representations in web-scale image search systems.

Proposed method

  • PBM operates at test time by post-processing the top-K retrieval results from a pre-trained vision-language model.
  • It uses predicted gender or race attributes from an off-the-shelf classifier or zero-shot inference via the VL model to guide re-ranking.
  • The method constructs fair subsets by ensuring balanced representation across demographic groups (e.g., equal male and female images) in the final output.
  • A stochastic re-ranking strategy is introduced, where the probability of selecting a fair subset is controlled by a trade-off parameter, balancing fairness and retrieval accuracy.
  • The approach does not require model fine-tuning or gradient updates, making it plug-and-play with existing VL models.
  • It relies on predicted demographic labels, which can be obtained via zero-shot prompting or external classifiers, enabling broad applicability.

Experimental results

Research questions

  • RQ1Why do existing training-time debiasing methods fail to achieve equal representation in text-based image retrieval, even when the model is fair?
  • RQ2To what extent does test-time imbalance in the retrieval candidate set contribute to bias in image search results?
  • RQ3Can a post-processing method effectively mitigate test-time bias without modifying the underlying vision-language model?
  • RQ4How does the proposed PBM method compare to existing debiasing techniques in terms of fairness and retrieval performance?
  • RQ5What is the trade-off between bias reduction and retrieval accuracy in post-processing-based debiasing?

Key findings

  • PBM achieves the lowest bias across all evaluated datasets, including real-world web image search (Occupation 1 and 2), MS-COCO, and Flickr30k.
  • The method maintains high retrieval performance, with Recall@100 and other metrics comparable to or better than baseline models.
  • PBM significantly reduces AbsBias@K, outperforming both MI-clip and adversarial training methods in bias reduction, especially at lower bias levels.
  • The trade-off analysis shows that PBM consistently maintains low bias while preserving performance, even under complex queries or scenes.
  • The effectiveness of PBM is sensitive to the accuracy of predicted demographic attributes, but remains robust when predictions are reasonably reliable.
  • The method is generalizable and can be extended to other retrieval tasks like image-based text retrieval or query-by-example retrieval, provided demographic attributes are estimable.

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.