Verifying Individual Fairness in Machine Learning Models

Philips George John, Deepak Vijaykeerthy, Diptikalyan Saha

Abstract

We consider the problem of whether a given decision model, working with structured data, has individual fairness. Following the work of Dwork, a model is individually biased (or unfair) if there is a pair of similar individuals who are treated differently. This paper introduces the first framework for the global verification of individual fairness in machine learning models. By formulating fairness as an optimization problem, we provide algorithms that can either find a specific bias instance or provide a mathematical certificate proving that no such bias exists for linear, polynomial, and RBF-kernel models.

Introduction

In the high-stakes world of AI-driven decision-making—from credit scoring to recidivism risk assessment—fairness is often treated as a statistical afterthought. Most research focuses on group fairness (e.g., parity in outcomes between demographic groups), but this ignores the individual. This work shifts the focus to individual fairness, providing a rigorous mathematical framework to prove that a model treats similar people similarly.

Individual fairness, pioneered by Dwork et al. (2012), states that if two input vectors $x$ and $x'$ are "close" according to a task-specific metric, their outputs $f(x)$ and $f(x')$ must also be close. The challenge is global verification: unlike local robustness checks, fairness verification requires checking every possible pair of similar points across the entire input domain.

Methodology

The proposed meta-algorithm transforms the search for unfairness into a global optimization problem. It seeks to find the maximum difference between $f(x)$ and $f(x')$ subject to the constraint that $x$ and $x'$ are "close." If the maximum difference is below a threshold $\delta$, the model is certified fair.

To handle different model architectures, three distinct mathematical toolkits are employed:

  1. Linear Models: Uses Mixed-Integer Linear Programming (MILP) and Mixed-Integer Quadratic Programming (MIQP) for sound and complete results.
  2. Kernelized Polynomial Models: Applies Sum-of-Squares (SoS) relaxations to approximate non-convex problems with semidefinite programs (SDP), providing certifiable lower bounds.
  3. RBF Kernels: Utilizes a novel approach called FIND-BIAS-RBF, which partitions the space into regions around support vectors to search for bias instances efficiently using convex quadratic programming.

Experimental Setup

The researchers evaluated their verifiers on four standard fairness benchmarks:

  • German Credit (GC): 20 features, 750 rows.
  • Adult (AD): 8 features, 24,420 rows.
  • Fraud Detection (FD): 9 features, 825 rows.
  • Credit ISLR (CR): 10 features, 300 rows.

In these tests, "closeness" was defined using a counterfactual lens: two individuals are "close" if they are identical in all attributes except for protected ones like race, gender, or ethnicity.

Key Results

The framework demonstrates that global verification is not only possible but efficient for many real-world scenarios. For linear and RBF models, verification often took only seconds or a few minutes.

Table 1: Experimental results across four datasets showing model accuracy, detected bias, and verification time.

As illustrated in the results table, the verifier can definitively prove "No Bias" in the same timeframe that traditional testing suites might fail to find a bias instance. The paper highlights that fairness is a global property; one cannot claim a model is fair just because it is robust around training data. However, the results also show a "cost of complexity": Sum-of-Squares approach for polynomial models scaled poorly as feature counts increased, highlighting a trade-off between model expressivity and verifiability.

Conclusion and Future Work

This work provides a foundational approach to proving individual fairness. While effective for linear and kernel-based models, extending these global verification techniques to deep neural networks remains a major open challenge. Future research will focus on identifying specific "regions" of the input space where models are most prone to unfairness, helping developers patch their models more effectively.

Summary updated

BibTeX
@inproceedings{john2020verifying,
  author = {Philips George John and Deepak Vijaykeerthy and Diptikalyan Saha},
  title = {{Verifying Individual Fairness in Machine Learning Models}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2020},
  url = {https://openreview.net/forum?id=-BKqZ0xbfv},
}
Figure