Statistical inference for individual fairness

Subha Maity, Songkai Xue, Mikhail Yurochkin, Yuekai Sun

As machine learning models increasingly drive consequential decisions, ensuring they do not perpetuate unwanted social biases is critical. While much of the ML community has focused on group fairness (e.g., ensuring equal average outcomes across demographic groups), individual fairness—the principle that similar individuals should be treated similarly—has proven harder to measure and enforce.

This paper introduces a statistically rigorous framework for auditing individual fairness in pre-trained machine learning models. By framing fairness violations as a form of adversarial susceptibility, the authors develop hypothesis tests and confidence intervals that allow auditors to certify whether a model treats similar individuals consistently, all while controlling for false-positive detections.

The Challenge of Auditing Individual Fairness

The core challenge in individual fairness is distinguishing meaningful bias from statistical noise. If a model yields slightly different predictions for two similar people, is it systematically unfair? Previous attempts to audit models for individual fairness often relied on heuristics or were limited to simple, discrete data. This paper fills that gap by providing a "white-box" auditing suite that works for models with continuous features and provides asymptotic statistical guarantees.

A Statistical Framework for Fairness

The authors' approach treats the search for unfairness as a specialized adversarial attack, broken down into three main components:

  1. The Unfair Map ($\Phi$): Instead of looking for any adversarial example, the authors use a "gradient flow attack." This algorithm takes a real data point and moves it slightly—only in ways defined as "fair" by a specific metric—to find a version of that person where the model performs significantly worse.
  2. The Loss-Ratio Statistic ($T_n$): To measure the violation, they calculate the ratio between the model's loss on the "unfair" example and the original example. A ratio close to 1 suggests the model is fair; a high ratio indicates the model is susceptible to treating similar individuals differently.
  3. Statistical Inference: The paper proves that this ratio follows a predictable Normal distribution as the sample size grows. This allows auditors to set a tolerance threshold ($\delta$)—inspired by the US labor law "four-fifths rule," they suggest a threshold of 1.25 (meaning the loss shouldn't increase by more than 25%)—and perform formal hypothesis testing to reject the "null hypothesis" that a model is fair.

Key Insights and Results

The authors validated their method using synthetic data, as well as the classic Adult income and COMPAS recidivism datasets. They compared several types of models: a standard Baseline, a simple "Project" model (which ignores sensitive features), a "Reduction" model (optimized for group fairness), and "SenSR" (optimized for individual fairness).

Loss-ratio statistic across different models
  • SenSR Wins on Fairness: In both the Adult and COMPAS experiments, the SenSR model was the only one that consistently passed the individual fairness test, keeping the loss-ratio statistic well below the 1.25 threshold.
  • The Group vs. Individual Trade-off: One of the most striking insights is that enforcing group fairness can actually increase individual fairness violations. The "Reduction" model, despite having the best group fairness scores, often had the highest individual fairness violation scores ($T_n$), performing even worse than the baseline. By forcing the model to meet group-level quotas, the algorithm may end up treating very similar individuals differently to "balance the books."
  • Interpretability via Law: By using the "four-fifths rule" to set their testing threshold, the authors successfully bridge the gap between abstract mathematical definitions and existing legal standards for disparate impact.

Limitations and Future Work

While powerful, the framework has a few limitations:

  • White-Box Requirement: The current method requires access to the model's gradients and parameters. This makes it ideal for internal audits by developers but difficult for external, third-party auditors who only have "black-box" access.
  • The "Fair Metric" Problem: The entire system relies on a fair metric that defines which individuals are similar. While the test is somewhat robust to small errors in this metric, defining what is "fair" remains a subjective, domain-specific task.
  • Computational Cost: Finding the "unfair examples" requires solving differential equations via gradient flow, which is more computationally expensive than simple group-level statistical checks. Future work could focus on more efficient approximations.

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