NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Recommendation or Discrimination?: Quantifying Distribution Parity in Information Retrieval Systems

Rinat Khaziev, Bryce Casavant, Pearce Washabaugh, Amy A. Winecoff, Matthew GrahamarXiv 2019 · OpenReview

Abstract

Information retrieval (IR) systems often leverage query data to suggest relevant items to users. This introduces the possibility of unfairness if the query (i.e., input) and the resulting recommendations unintentionally correlate with latent factors that are protected variables (e.g., race, gender, and age). For instance, a visual search system for fashion recommendations may pick up on features of the human models rather than fashion garments when generating recommendations. In this work, we introduce a statistical test for "distribution parity" in the top-K IR results, which assesses whether a given set of recommendations is fair with respect to a specific protected variable. We evaluate our test using both simulated and empirical results. First, using artificially biased recommendations, we demonstrate the trade-off between statistically detectable bias and the size of the search catalog. Second, we apply our test to a visual search system for fashion garments, specifically testing for recommendation bias based on the skin tone of fashion models. Our distribution parity test can help ensure that IR systems' results are fair and produce a good experience for all users.

Introduction

Most machine learning fairness research focuses on classification tasks, such as determining loan eligibility. However, Information Retrieval (IR) and Recommender Systems (RS) operate differently by providing a ranked list of items based on a query. A significant challenge in these systems is the "leakage" of information from the query into the results in ways that are irrelevant to the primary task.

In the context of fashion visual search, a user searching for a specific garment—such as a black dress—expects results based on style and color. However, if the search algorithm encodes the skin tone or ethnicity of the model in the query image, it may return results featuring models with similar skin tones, regardless of the garment's actual features. This can lead to discriminatory experiences where users are funneled into "silos" based on protected characteristics.

Example of a fashion garment query image containing visible skin features.

Quantifying Fairness: Distribution Parity

To address this, researchers propose a new fairness definition called Distribution Parity. An IR system is considered fair if the distribution of a protected variable (e.g., skin tone) in the top-K recommendations matches the distribution of that variable in the overall catalog, independent of the query item's characteristics.

Statistical Framework

The framework utilizes two primary statistical tests:

  1. Omnibus Test: A $\chi^2$-test performed on a contingency table to detect any significant bias across all categories.
  2. Contrast Tests: Follow-up tests to identify if specific groups are disproportionately over- or under-represented.

The primary metric used is the Risk Ratio (RR). An RR of 1.0 indicates perfect parity. An RR significantly greater than 1.0 suggests the system is "mirroring" the query's protected traits back to the user, effectively over-representing a group relative to the general catalog.

Empirical Evaluation in Fashion

The researchers applied this test to a visual search system using the DeepFashion In-Shop Clothes Retrieval dataset. To isolate skin tone, they used a ResNet model for image embeddings and a DeepLab V3+ segmentation model to identify skin pixels. Skin tones were then categorized into six groups (ST1 to ST6) using the Individual Typology Angle (ITA), a standard dermatological metric.

A garment image with different model characteristics; such images are used to test for distribution parity.

Key Findings

  • Significant Bias Detected: In a test of 51,740 images, the omnibus test found highly significant bias ($p < 10^{-4}$).
  • Darker Skin Tones Most Affected: The strongest bias was observed for the darkest skin tone category (ST1). When the query featured an ST1 model, the system was 8.41 times more likely to recommend other ST1 models than expected by chance.
  • Catalog Size and Power: Monte Carlo simulations revealed that detecting bias is significantly harder in small catalogs. Approximately 400–600 samples are required to reliably detect a violation of the "80% rule" (a legal benchmark from U.S. employment law).

Conclusion

While the ITA serves as a visual proxy rather than a perfect measure of race, it provides a rigorous way to quantify how much a model's appearance influences search results. By identifying these biases, developers can implement mitigation strategies, such as masking skin pixels during embedding generation, to ensure that IR systems focus on the intended product features rather than protected variables.

Summary updated

BibTeX
@misc{khaziev2019recommendation,
  author = {Rinat Khaziev and Bryce Casavant and Pearce Washabaugh and Amy A. Winecoff and Matthew Graham},
  title = {{Recommendation or Discrimination?: Quantifying Distribution Parity in Information Retrieval Systems}},
  year = {2019},
  eprint = {1909.06429},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.06429},
}

Loading related content...

Figure