Bayes-Optimal Classifiers under Group Fairness

Xianli Zeng, Edgar Dobriban, Guang Cheng

Introduction

As machine learning increasingly informs high-stakes decisions in hiring, lending, and criminal justice, the need for fair algorithms has become paramount. While many heuristic approaches exist to mitigate bias, a fundamental question remains: what is the most accurate classifier possible under specific group fairness constraints? This paper establishes a unified theoretical framework to characterize these "Bayes-optimal" fair classifiers.

The Problem of Fundamental Limits

Existing fairness research often focuses on empirical performance or specific cases like perfect fairness. This work addresses the gap by defining the fundamental limits of accuracy when constrained by metrics such as Demographic Parity (DP) or Equality of Opportunity (EO). Crucially, the framework allows for "approximate" fairness, where a controlled level of disparity ($\delta$) is permitted to mitigate the impact on overall accuracy.

Methodology: The FairBayes Algorithm

The authors demonstrate that a fair Bayes-optimal classifier is essentially a group-wise thresholding rule. Instead of a global threshold (e.g., 0.5), the optimal approach applies different thresholds to different protected groups. This insight leads to FairBayes, a computationally efficient post-processing algorithm.

FairBayes operates in two stages:

  1. Standard Learning: A base model is trained to estimate conditional outcome probabilities.
  2. Optimal Thresholding: A fast, one-dimensional search identifies the group-specific thresholds that satisfy fairness constraints while maximizing accuracy.
Comparison of four classifiers showing how group-specific thresholds affect Demographic Disparity (DDP) and Misclassification Rates (MCR).

Key Insights

  • Post-processing Sufficiency: The paper proves that if probability estimates are accurate, simple threshold adjustment is theoretically optimal, challenging the assumption that fairness must be integrated during training (in-processing).
  • Unified Framework: The mathematical recipe applies across various metrics, including Predictive Equality and Overall Accuracy Equality.
  • Explicit Tradeoffs: The relationship between the fairness parameter ($\delta$) and optimal thresholds is made explicit, allowing for precise control over the fairness-accuracy balance.

Experimental Results

Evaluations on synthetic data and real-world benchmarks (Adult, COMPAS, Law School Admissions) confirm that FairBayes matches or exceeds the performance of state-of-the-art in-processing methods.

Accuracy vs. Fairness (DDP and DEO) tradeoff curves comparing theoretical optima with the FairBayes algorithm.

FairBayes is notably faster than competing methods. For the Adult dataset, it generated a full tradeoff curve in 67 seconds, whereas KDE-based optimization and adversarial training required 1,415 and 2,279 seconds, respectively.

Limitations and Future Directions

While powerful, the current theory is limited to binary classification. Extending these optimal thresholding rules to multi-class outcomes remains an open challenge. Additionally, the algorithm's success depends on the calibration of the initial probability estimates; biased or poorly calibrated base models will lead to suboptimal thresholds. Future work will also explore approximate fairness for multi-class protected attributes.

Summary updated

BibTeX
@misc{zeng2022bayes,
  author = {Xianli Zeng and Edgar Dobriban and Guang Cheng},
  title = {{Bayes-Optimal Classifiers under Group Fairness}},
  year = {2022},
  eprint = {2202.09724},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2202.09724},
}
Figure