Finite-Sample and Distribution-Free Fair Classification: Optimal Trade-off Between Excess Risk and Fairness, and the Cost of Group-Blindness

Xiaotian Hou, Linjun ZhangarXiv 2024 · DOI

Abstract

Algorithmic fairness in machine learning has recently garnered significant attention. However, two pressing challenges remain: (1) The fairness guarantees of existing fair classification methods often rely on specific data distribution assumptions and large sample sizes, which can lead to fairness violations when the sample size is moderate—a common situation in practice. (2) Due to legal and societal considerations, using sensitive group attributes during decision-making (referred to as the group-blind setting) may not always be feasible. In this work, we quantify the impact of enforcing algorithmic fairness and group-blindness in binary classification under group fairness constraints. Specifically, we propose a unified framework for fair classification that provides distribution-free and finite-sample fairness guarantees with controlled excess risk. This framework is applicable to various group fairness notions in both group-aware and group-blind scenarios. Furthermore, we establish a minimax lower bound on the excess risk, showing the minimax optimality of our proposed algorithm up to logarithmic factors. Through extensive simulation studies and real data analysis, we further demonstrate the superior performance of our algorithm compared to existing methods, and provide empirical support for our theoretical findings.

Introduction

As machine learning models are increasingly deployed in high-stakes domains like hiring, lending, and criminal justice, ensuring algorithmic fairness has become a primary concern. However, most existing fairness interventions suffer from two critical limitations. First, their theoretical guarantees are often asymptotic, meaning they only hold as the sample size approaches infinity. In real-world scenarios with moderate datasets, these models frequently violate fairness constraints. Second, many methods rely on restrictive assumptions about data distributions (such as sub-Gaussianity), which rarely hold in practice.

This paper introduces a unified framework designed to address these gaps. By providing distribution-free and finite-sample fairness guarantees, the proposed approach ensures that fairness constraints are met with high probability, regardless of the underlying data distribution or sample size. Additionally, the work provides a rigorous mathematical analysis of the "cost of group-blindness"—the accuracy penalty incurred when sensitive attributes are withheld during the decision-making process.

The Proposed Framework: Distribution-Free Post-Processing

Rather than training a fair model from scratch, the authors propose a post-processing framework that can be applied to any "black-box" classifier (e.g., Neural Networks, XGBoost). The core of the approach involves refining the decision boundary of a pre-trained model using a small, independent calibration dataset.

Optimal Threshold Shifting

The framework (detailed in Algorithm 1 for binary attributes and Algorithm 2 for multi-class) identifies an optimal threshold shift ((\lambda)) for the base model's scores. This shift is calculated to ensure the model meets a target unfairness level ((\alpha)) with a high probability ((1-\delta)). Unlike existing methods that focus on "average" fairness across many realizations, this approach provides a quantile guarantee, ensuring fairness for the specific model instance being deployed.

Safety Margins and VC Dimension

To account for finite-sample noise, the algorithm incorporates a "safety margin" ((\epsilon_\alpha)). This margin is derived using a novel concentration inequality based on Vapnik–Chervonenkis (VC) dimension. By incorporating this margin, the framework guarantees that even with messy or limited calibration data, the probability of violating the fairness constraint remains strictly controlled.

Theoretical Contributions: Minimax Optimality and Group-Blindness

A significant contribution of this work is the establishment of minimax lower bounds for "excess risk"—the difference between the risk of the proposed classifier and the theoretical Bayes optimal fair classifier. The authors prove that their algorithm is minimax optimal up to logarithmic factors, meaning it achieves the fastest possible convergence rates allowed by statistical laws.

The Cost of Group-Blindness

The paper quantifies the legal and ethical tension between group-aware models (which use sensitive attributes at test time) and group-blind models (which do not). The research mathematically proves that group-blindness carries an unavoidable "tax" on predictive accuracy. This cost is intrinsically linked to the difficulty of predicting sensitive attributes from non-sensitive features; if the sensitive attribute cannot be accurately inferred, the model's ability to maintain both fairness and accuracy degrades significantly.

Empirical Validation

The framework was evaluated using both synthetic simulations and real-world data:

  • Synthetic Simulations: The authors tested the model against three distinct data generating processes (M1, M2, M3) using Normal and heavy-tailed t-distributions. These tests confirmed the "distribution-free" nature of the algorithm, as it maintained fairness where other methods failed.
  • Adult Census Dataset: Using this standard benchmark (~48,000 instances), the goal was to predict whether an individual's income exceeds $50,000 using gender as the sensitive attribute. The proposed algorithm consistently kept unfairness below the target threshold (\alpha), whereas competing methods like FPIR or MBS frequently violated constraints in finite-sample settings.

Conclusion

This work provides a robust, "plug-and-play" solution for fair classification that bridges the gap between theoretical fairness and practical deployment. By shifting the focus from asymptotic averages to finite-sample quantile guarantees, the framework offers a reliable tool for practitioners. While future work remains to close the small technical gap in group-aware excess risk bounds and to further explore high-dimensional multi-class sensitive attributes, this research establishes a new standard for distribution-free algorithmic fairness.

Summary updated

BibTeX
@misc{hou2024finite,
  author = {Xiaotian Hou and Linjun Zhang},
  title = {{Finite-Sample and Distribution-Free Fair Classification: Optimal Trade-off Between Excess Risk and Fairness, and the Cost of Group-Blindness}},
  year = {2024},
  eprint = {2410.16477},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.16477},
}
Figure