Auditing ML Models for Individual Bias and Unfairness

Songkai Xue, Mikhail Yurochkin, Yuekai Sun

TL;DR

This paper introduces the Fair Transport Hypothesis (FaiTH), a new statistical framework for auditing machine learning models for individual bias. By framing fairness as a convex optimization problem based on Wasserstein distance, the authors provide the first set of inferential tools—including asymptotic confidence intervals and hypothesis tests—that allow auditors to rigorously detect and localize bias using only black-box access to a model.

What Problem Does This Paper Address?

Most research into algorithmic fairness focuses on group fairness (e.g., ensuring equal error rates across different races). However, a model can satisfy group fairness while being blatantly unfair to individuals—treating two very similar people differently based on a protected attribute.

Until now, auditing for individual fairness has lacked statistical rigor. While investigators might notice discrepancies in how a model treats similar individuals, they haven't had the tools to determine if these discrepancies are systemic biases or just random noise in the data. This leads to the "false alarm" problem, where auditors might cry foul over statistical flukes. The authors address this by providing a way to calibrate these observations, controlling the Type I error rate (the chance of a false alarm).

Methods

The authors formalize the auditing task as a "Fair Transport" problem. The core idea is that if a model is fair, an auditor shouldn't be able to significantly increase the model's "risk" (error) by slightly moving data points to similar areas in the feature space within a small "transportation budget" ($\epsilon$).

Key technical components include:

  • The FaiTH Statistic: An optimization-based test statistic derived from the 1-Wasserstein distance. It measures how much the model's performance changes when inputs are shifted to "similar" counterparts.
  • Non-Gaussian Asymptotics: The authors prove that the FaiTH statistic follows a non-Gaussian asymptotic distribution. This is a critical finding because the underlying optimization problem is non-differentiable, meaning standard Gaussian-based statistical tools would fail.
  • Non-Standard Bootstrapping: Because the statistic is non-differentiable, standard Efron bootstrapping is invalid. The authors instead employ m-out-of-n and numerical bootstrapping methods to provide valid inference.
  • Black-Box Auditing: The method only requires the ability to query the model and observe its output, making it highly practical for auditing proprietary systems.
Figure 1: Asymptotic approximation (left panel) and bootstrap approximation (right panel) to the sampling distribution of the FaiTH statistic.

Datasets

The primary evaluation is conducted on the COMPAS recidivism dataset, a widely studied and controversial dataset used to predict whether defendants will re-offend. The authors use this to demonstrate how their tools can reveal specific racial and gender biases that traditional group fairness metrics might overlook.

Key Insights and Ideas

  • Localization is Key: Beyond just saying a model is "unfair," FaiTH can localize the bias. It identifies specific pairs of inputs where the model's behavior diverges, providing an interpretable "transport map" of the unfairness.
  • Group Fairness $\neq$ Individual Fairness: The authors show that techniques designed to improve group fairness (like reweighting or adversarial debiasing) can actually exacerbate individual fairness violations. A model might look fair on average across groups while becoming more erratic and biased at the individual level.
  • Fairness-Constrained Model Selection: The paper proposes a strategy for selecting models that pass a specific "$\delta$-fairness" test. By using $\ell_1$ regularization (Lasso), they can identify which features contribute most to unfairness and prune them while maintaining high accuracy.

Key Results

The authors applied FaiTH to a vanilla logistic regression model trained on COMPAS data and found:

  • Systemic Bias Confirmed: The model failed the individual fairness test ($\delta$-fairness). The audit revealed that white females were treated as a "privileged group," while black males were systematically unprivileged.
  • Visualizing Unfairness: The transport map (Figure 2) showed that many black males correctly classified as recidivists would have been classified as non-reoffenders if they were white females. Conversely, young black males correctly classified as non-reoffenders were at high risk of being misclassified as recidivists compared to their white counterparts.
Figure 2: Transport map of vanilla logistic regression on audit dataset. (Number in each grid shows the change in total number of individuals after transport.)
  • Effective Mitigation: Their $\ell_1$-regularized model selection strategy (RLR) was the only method tested that successfully passed the individual fairness hypothesis test while maintaining comparable accuracy to standard models.
Figure 4: Solution pathes of logistic regression with ℓ1 penalty.

Limitations and Future Work

  • Similarity Metric Dependency: Individual fairness relies on a "similarity metric" (defining which individuals are "similar"). The authors assume this metric is given or data-driven, but in practice, choosing this metric remains a subjective and application-specific challenge.
  • Finite Sample Spaces: The current inferential tools are optimized for discrete/finite sample spaces. Extending these rigorous statistical guarantees to continuous, high-dimensional spaces (like image data) is a noted direction for future research.
  • Computational Cost: While the main expense is a convex optimization problem (which is efficient), performing thousands of bootstrap iterations for large datasets can still be computationally demanding.

Summary updated

Abstract

We consider the task of auditing ML models for individual bias/unfairness. We formalize the task in an optimization problem and develop a suite of inferential tools for the optimal value. Our tools permit us to obtain asymptotic confidence intervals and hypothesis tests that cover the target/control the Type I error rate exactly. To demonstrate the utility of our tools, we use them to reveal the gender and racial biases in Northpointe's COMPAS recidivism prediction instrument.
BibTeX
@inproceedings{xue2020auditing,
  author = {Songkai Xue and Mikhail Yurochkin and Yuekai Sun},
  title = {{Auditing ML Models for Individual Bias and Unfairness}},
  booktitle = {International Conference on Artificial Intelligence and Statistics},
  year = {2020},
  url = {https://openreview.net/forum?id=yNpTT1Lkyx5},
}
Figure