Fair Bayes-Optimal Classifiers Under Predictive Parity

Xianli Zeng, Edgar Dobriban, Guang Cheng

Increasing concerns about the disparate effects of AI have motivated extensive research into fair machine learning. While most work focuses on independence (e.g., demographic parity) or separation (e.g., equalized odds), sufficiency-based measures like predictive parity remain underexplored. Predictive parity requires that a positive prediction carries the same "meaning"—or probability of success—across different protected groups. For instance, if a bank's algorithm predicts two individuals will repay a loan, their actual probability of repayment should be identical regardless of race or gender.

This paper investigates the theoretical foundations of predictive parity, identifying conditions under which optimal fair classifiers are simple thresholding rules, and introduces a novel algorithm, FairBayes-DPP, to enforce this fairness metric.

Theoretical Framework and the Thresholding Paradox

Enforcing predictive parity is mathematically challenging because the constraint is non-linear and non-convex, involving a ratio (the probability of success given a positive prediction). The authors sought to find the "Bayes-optimal" classifier for this constraint: the most accurate model possible that maintains a Difference in Predictive Parity (DPP) of zero.

Through theoretical analysis, they established a critical Sufficient Condition (Condition 4.1). They proved that if the overall performance levels of different groups are "moderately" similar, the optimal fair classifier is a Group-Wise Thresholding Rule (GWTR). This means the model simply needs to apply a different probability cutoff for each group.

However, this leads to a surprising Thresholding Paradox. If group performance levels differ drastically (violating the sufficient condition), enforcing predictive parity can lead to within-group unfairness. To maintain equal success rates for positive predictions across groups with vastly different base rates, a model might be forced to reject highly qualified individuals from a high-performing minority group just to align with a lower-performing majority group.

The FairBayes-DPP Algorithm

To practically apply these findings when the sufficient condition is met, the authors propose FairBayes-DPP, a two-stage "plug-in" method:

  1. Estimation: A standard ML model (like Logistic Regression or a Neural Network) estimates the probability of the target label for each individual.
  2. Adaptive Thresholding: The algorithm uses bisection and grid search to find optimal group-specific thresholds that equalize predictive values while maximizing overall accuracy.

Experimental Results

The researchers evaluated FairBayes-DPP across synthetic data, tabular benchmarks (Adult and COMPAS), and large-scale image data (CelebA).

The results demonstrate strong accuracy preservation and effective bias mitigation. On the Adult and COMPAS datasets, FairBayes-DPP achieved nearly identical accuracy to unconstrained models while significantly reducing the DPP. In the CelebA experiments (predicting facial attributes while mitigating gender bias), the algorithm successfully reduced disparities across 27 attributes. For instance, on the "Bangs" attribute, unconstrained DPP was slashed from 0.069 to 0.007 with zero loss in accuracy.

Furthermore, experiments on synthetic data closely tracked theoretical Bayes-optimal values, validating that FairBayes-DPP effectively finds the best possible fair model when the sufficient condition holds.

Performance comparison of FairBayes-DPP against theoretical and unconstrained baselines.

Limitations and Future Work

While FairBayes-DPP is highly effective, it has limitations. Most notably, it is designed for the "narrow gap" scenario where group performances do not vary wildly. If Condition 4.1 is violated, predictive parity may not be the appropriate fairness metric due to the risk of within-group unfairness.

Additionally, because it is a plug-in method, its success depends heavily on the calibration and quality of the initial probability estimates. If the base model is poorly calibrated, the fairness adjustments in the second stage will be less effective. Future work will explore extending these constraints to multi-class classification and investigating the interaction between predictive parity and long-term fairness dynamics (e.g., how a fair decision today affects a group's qualifications tomorrow).

Summary updated

BibTeX
@inproceedings{zeng2022fair,
  author = {Xianli Zeng and Edgar Dobriban and Guang Cheng},
  title = {{Fair Bayes-Optimal Classifiers Under Predictive Parity}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=rApvGord7j},
}
Figure