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

Evaluating the Fairness of Discriminative Foundation Models in Computer Vision

Junaid Ali, Matthäus Kleindessner, Florian Wenzel, Kailash Budhathoki, Volkan Cevher, Chris Russell · DOI

Abstract

We propose a novel taxonomy for bias evaluation of discriminative foundation models, such as Contrastive Language-Pretraining (CLIP), that are used for labeling tasks. We then systematically evaluate existing methods for mitigating bias in these models with respect to our taxonomy. Specifically, we evaluate OpenAI's CLIP and OpenCLIP models for key applications, such as zero-shot classification, image retrieval and image captioning. We categorize desired behaviors based around three axes: (i) if the task concerns humans; (ii) how subjective the task is; and (iii) the intended purpose of the task and if fairness is better served by impartiality or representation. Finally, we provide quantitative fairness evaluations for both binary-valued and multi-valued protected attributes over ten diverse datasets. We find that fair PCA, a post-processing method for fair representations, works very well for debiasing in most of the aforementioned tasks while incurring only minor loss of performance. However, different debiasing approaches vary in their effectiveness depending on the task. Hence, one should choose the debiasing approach depending on the specific use case.

Introduction

Foundation models (FMs) like OpenAI’s CLIP have revolutionized computer vision by enabling zero-shot classification and sophisticated image-text retrieval. However, these models are typically trained on massive, uncurated datasets scraped from the web, which inherently contain and amplify societal biases. While generative models (such as DALL-E) often receive the most public scrutiny regarding bias, discriminative models—used for labeling, filtering, and retrieval—can cause "insidious" harm by influencing high-stakes decisions in areas like hiring, security, or medical care.

A primary challenge in addressing these biases is that "fairness" is not a monolithic concept. A model being "fair" when identifying a "doctor" (an objective task) looks different from being "fair" when labeling someone as "criminal" (a subjective and potentially harmful task). This research addresses this complexity by introducing a systematic taxonomy for fairness and evaluating various debiasing strategies across diverse datasets.

A Novel Taxonomy for Fairness

To determine which fairness metrics and interventions are appropriate for a given application, the authors propose a three-axis taxonomy:

  1. Human-centricity: Does the task involve people? Tasks involving humans require more stringent fairness constraints than those involving inanimate objects.
  2. Label Consistency (Objective vs. Subjective): Would a diverse group of people agree on the label? Objective tasks (e.g., "is this person wearing a hat?") require different handling than subjective tasks (e.g., "is this person professional?").
  3. Purpose (Independence vs. Diversity): Should the model make decisions regardless of protected attributes (Independence), or should it ensure all groups are represented (Diversity)? For example, a search for "doctor" might aim for a representative diversity of genders, whereas a classification for a loan application should be independent of gender.

Debiasing Methodologies

The study evaluates several strategies to mitigate bias in CLIP-style models:

  • Fair PCA (FPCA): A post-processing technique that projects embeddings into a space where they are uncorrelated with sensitive attributes (like race or gender) while retaining as much original information as possible.
  • Mutual Information (MI) / CLIP-clip: A method that greedily removes embedding dimensions that share high mutual information with protected attributes.
  • Prompt Learning: Training learnable text prompts to "fool" an adversarial classifier that is attempting to predict protected attributes from the model's output.
  • Baselines (Gender/Race-BLN): Simple "affirmative action" queries that explicitly search for balanced results (e.g., searching for "female doctor" and "male doctor" separately to ensure a balanced retrieval set).

Experimental Setup and Datasets

The researchers utilized ten diverse datasets to ensure a comprehensive evaluation:

  • FairFace & CelebA: Used for facial attribute classification and retrieval tasks.
  • Flickr30K & MSCOCO: Used for image retrieval and captioning analysis.
  • IdenProf: A dataset of 11,000 images of professionals (chefs, doctors, etc.) used to test retrieval bias.
  • Standard Benchmarks: ImageNet, Food-101, StanfordCars, and Pascal VOC were used to ensure that debiasing interventions did not destroy the model's general performance on non-human tasks.

Key Insights and Results

The Dominance of Fair PCA

One of the most significant findings is the effectiveness of Fair PCA. As a post-processing step, it does not require retraining the entire foundation model. In zero-shot classification on the FairFace dataset, Fair PCA reduced Demographic Disparity (DDP) significantly while maintaining high accuracy. On CelebA objective tasks, FPCA reduced True Positive Rate disparity (DTPR) to near zero with almost no loss in accuracy.

Task-Dependent Effectiveness

The research confirms that fairness is highly task-dependent. For subjective tasks, the authors argue for Demographic Parity (independence). For objective tasks, the goal should be Equal Opportunity (equal true positive rates across groups). While Fair PCA was a strong all-rounder, simple query-balancing (Gender-BLN) proved most effective for specific image retrieval tasks on the IdenProf dataset.

The Cost of Dimensionality Reduction

Methods like Mutual Information (MI) that simply "cut" dimensions from the embeddings often suffer from a steep accuracy-fairness trade-off. If enough dimensions are removed to achieve fairness, the model often loses the nuance required for complex classification tasks.

OpenCLIP vs. OpenAI CLIP

The study found that OpenCLIP (trained on the open LAION-400M dataset) generally exhibited higher baseline bias than OpenAI’s original CLIP. However, the proposed debiasing methods remained equally effective across both architectures.

Limitations and Future Work

While this research provides a robust framework for evaluating bias, several limitations remain:

  • Perceived vs. Self-Identified Attributes: The study relies on third-party annotations of "perceived" race and gender, which may not align with how individuals self-identify.
  • Binary Constraints: Due to existing dataset limitations, gender was largely treated as a binary attribute, failing to account for non-binary identities.
  • Non-Human Bias: While the study focused on human-centric tasks, the authors acknowledge that bias exists in other areas (e.g., cultural artifacts or religious buildings) that require future exploration.

In conclusion, Fair PCA offers a powerful, computationally efficient way to debias foundation models, but the choice of debiasing strategy must always be informed by the specific context and the intended purpose of the AI system.

Summary updated

BibTeX
@inproceedings{ali2023evaluating,
  author = {Junaid Ali and Matthäus Kleindessner and Florian Wenzel and Kailash Budhathoki and Volkan Cevher and Chris Russell},
  title = {{Evaluating the Fairness of Discriminative Foundation Models in Computer Vision}},
  booktitle = {AIES},
  year = {2023},
  doi = {10.1145/3600211.3604720},
}
Figure