FaiREE: Fair Classification with Finite-Sample and Distribution-Free Guarantee

Puheng Li, James Zou, Linjun Zhang · DOI

Introduction

In algorithmic fairness, most mathematical guarantees are "asymptotic," meaning they promise fairness only as the dataset size approaches infinity. In practice, researchers often work with limited datasets where these guarantees fail to hold. This leads to a "fairness generalization gap," where a model appears fair on training data but exhibits significant bias when deployed on new, unseen data.

Furthermore, many existing fair-learning algorithms rely on strict distributional assumptions, such as assuming data follows a Gaussian distribution. Real-world data, such as loan applications or criminal justice records, is often "heavy-tailed" and unpredictable. FaiREE (Fairness with Finite-Sample and Distribution-Free Guarantee) addresses these challenges by providing the first post-processing algorithm that ensures fairness constraints are met even with modest sample sizes and non-standard data distributions.

Methodology

FaiREE is a post-processing algorithm, which allows it to be applied to any "black-box" classifier—from simple logistic regressions to complex deep neural networks—without requiring retraining. The algorithm operates through a rigorous three-step pipeline designed to provide robust fairness bounds.

The FaiREE three-step post-processing pipeline: Data Preparation, Scoring, Candidate Set Construction, and Candidate Selection.

The Three-Step Pipeline

  1. Scoring: A pre-trained classifier assigns scores to a separate calibration dataset. These scores are then sorted.
  2. Candidate Set Construction: This is the core innovation of FaiREE. Utilizing the mathematical properties of order statistics and the Beta distribution, the algorithm calculates specific score thresholds that satisfy a chosen fairness constraint (e.g., Equality of Opportunity). By setting a user-defined confidence level (e.g., 95%), FaiREE identifies a "candidate set" of thresholds that are mathematically guaranteed to be fair with high probability ($1-\delta$).
  3. Candidate Selection: From the set of guaranteed fair thresholds, the algorithm selects the one that minimizes mis-classification error on the calibration data.

By focusing on the rank of scores rather than their absolute values, the method remains entirely "distribution-free," making it robust to the underlying shape of the data.

Experimental Setup

The authors evaluated FaiREE against state-of-the-art baselines like FairBayes and ROC using both synthetic and real-world benchmarks:

  • Synthetic Models: Three models using heavy-tailed distributions (t-distribution, Chi-square, and Laplace) to simulate real-world data complexity.
  • Adult Census Dataset: Predicting if income exceeds $50,000, with gender as the sensitive attribute.
  • German Credit Dataset: Predicting creditworthiness, with gender as the sensitive attribute.
  • COMPAS Score Dataset: Predicting criminal recidivism, with gender as the sensitive attribute.

Results and Discussion

The experimental results highlight FaiREE's superior ability to control fairness violations compared to existing methods, particularly in finite-sample regimes.

Performance comparison: The left plot shows DEOO vs. target fairness level (alpha), where FaiREE stays below the y=x constraint line. The right plot shows the DEOO vs. Accuracy trade-off.

Strict Fairness Control

As shown in the results, FaiREE consistently maintains fairness violations (measured by Difference in Equal Opportunity, or DEOO) below the target threshold ($\alpha$). In contrast, baseline methods like FairBayes frequently exceed the allowed bias levels when sample sizes are small (e.g., $n=1000$). FaiREE effectively closes the fairness generalization gap by providing rigorous finite-sample bounds.

Accuracy-Fairness Trade-off

Despite its strict guarantees, FaiREE achieves accuracy levels comparable to, and sometimes exceeding, state-of-the-art fair classifiers. For instance, on the COMPAS dataset, FaiREE-EOO achieved an accuracy of approximately 0.67 while maintaining significantly tighter fairness bounds than the baselines. This suggests that complex "in-processing" methods may not be necessary; adjusting decision thresholds of a biased model can achieve optimal trade-offs.

Conclusion and Future Work

FaiREE provides a practical and theoretically sound framework for ensuring fairness in real-world applications where data is limited and distributions are unknown. Its post-processing nature makes it highly versatile for practitioners.

However, the method's ultimate performance is bounded by the quality of the initial "unfair" base model. Additionally, it requires a separate calibration dataset, which may be a constraint in extremely data-scarce environments. Future research will focus on extending these finite-sample guarantees to multi-group fairness scenarios beyond binary sensitive attributes.

Summary updated

BibTeX
@inproceedings{li2023fairee,
  author = {Puheng Li and James Zou and Linjun Zhang},
  title = {{FaiREE: Fair Classification with Finite-Sample and Distribution-Free Guarantee}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=shzu8d6_YAR},
}
Figure