Statistical inference for individual fairness

Subha Maity, Songkai Xue, Mikhail Yurochkin, Yuekai Sun

Abstract

As we rely on machine learning (ML) models to make more consequential decisions, the issue of ML models perpetuating or even exacerbating undesirable historical biases (e.g., gender and racial biases) has come to the fore of the public's attention. In this paper, we focus on the problem of detecting violations of individual fairness in ML models. We formalize the problem as measuring the susceptibility of ML models against a form of adversarial attack and develop a suite of inference tools for the adversarial cost function. The tools allow auditors to assess the individual fairness of ML models in a statistically-principled way: form confidence intervals for the worst-case performance differential between similar individuals and test hypotheses of model fairness with (asymptotic) non-coverage/Type I error rate control. We demonstrate the utility of our tools in a real-world case study.

Introduction

While group fairness (e.g., demographic parity) has been widely studied, individual fairness—the principle that "similar individuals should be treated similarly"—often aligns more closely with intuitive and legal notions of justice. However, auditing individual fairness is challenging because it requires identifying "counter-examples": similar individuals who receive significantly different model outcomes. Current auditing methods often lack the statistical rigor needed to provide formal guarantees, such as confidence intervals or p-values.

Methodology: Fairness as Adversarial Robustness

The authors frame the detection of unfairness as an adversarial robustness problem. If a model is robust to small changes in sensitive attributes, it is likely fair.

The Unfair Map ($\Phi$)

To find potential violations, the researchers employ a "gradient flow" approach. This "unfair map" identifies synthetic individuals who are "fair-distance" neighbors to existing data points but suffer the worst-case performance from the model.

Visualizing the 'unfair map' and regions of potential fairness violations in synthetic 2D data.

The Loss-Ratio Test

The core of the framework is a "loss-ratio" test. It calculates the ratio between the model's loss on an "unfair example" and its loss on the original individual. The authors prove that this ratio follows a predictable statistical distribution (asymptotic normality), allowing for formal hypothesis testing. By setting a threshold ($\delta = 1.25$), mirroring the legal "four-fifths rule," auditors can statistically certify whether a model is unfair.

Empirical Evaluation

The framework was tested on synthetic 2D data and two real-world benchmarks: the Adult Dataset (income prediction) and the COMPAS Dataset (recidivism prediction). The evaluation compared four model types: Baseline Neural Networks, Projected models, Reduction models (optimized for group fairness), and SenSR models (optimized for individual fairness).

Key Results

The results highlight a critical trade-off: enforcing group fairness can exacerbate individual unfairness.

Comparison of the test statistic $T_n$ across different models. The 1.25 threshold represents the legal 'four-fifths rule' standard.
  • Baseline and Group-Fair Models Fail: On the Adult dataset, the baseline model was rejected in 100% of trials. Notably, the "Reductions" model, despite achieving near-perfect group fairness, exhibited the worst individual fairness scores, with a loss ratio of 5.712.
  • SenSR Consistency: The SenSR algorithm consistently passed the audit, maintaining a loss ratio near 1.0 and a 0% rejection rate.

Conclusion and Future Work

This framework provides a "white-box" auditing tool that requires access to model gradients, making it ideal for internal developers and regulators. While the choice of the "fair metric" (defining similarity) remains subjective, the test shows robustness to minor metric misspecifications. Future research aims to extend these tools to "black-box" scenarios and automate the learning of fair metrics from data.

Summary updated

BibTeX
@inproceedings{maity2021statistical,
  author = {Subha Maity and Songkai Xue and Mikhail Yurochkin and Yuekai Sun},
  title = {{Statistical inference for individual fairness}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
  url = {https://openreview.net/forum?id=qFBQVcDeRH},
}
Figure