Group-Aware Threshold Adaptation for Fair Classification

Taeuk Jang, Pengyi Shi, Xiaoqian Wang

Abstract

The fairness in machine learning is getting increasing attention, as its applications in different fields continue to expand and diversify. To mitigate the discriminated model behaviors between different demographic groups, we introduce a novel post-processing method to optimize over multiple fairness constraints through group-aware threshold adaptation. We propose to learn adaptive classification thresholds for each demographic group by optimizing the confusion matrix estimated from the probability distribution of a classification model output. As we only need an estimated probability distribution of model output instead of the classification model structure, our post-processing model can be applied to a wide range of classification models and improve fairness in a model-agnostic manner and ensure privacy. This even allows us to post-process existing fairness methods to further improve the trade-off between accuracy and fairness. Moreover, our model has low computational cost. We provide rigorous theoretical analysis on the convergence of our optimization algorithm and the trade-off between accuracy and fairness. Our method theoretically enables a better upper bound in near optimality than previous method under the same condition. Experimental results demonstrate that our method outperforms state-of-the-art methods and obtains the result that is closest to the theoretical accuracy-fairness trade-off boundary.

Introduction

Machine learning models often inherit or amplify biases present in historical data, leading to discriminatory outcomes for specific demographic groups based on sensitive attributes like race or gender. While many fairness-aware algorithms have been developed, they frequently suffer from three major hurdles: inflexibility regarding changing fairness notions, high computational costs for re-training, and suboptimal trade-offs between accuracy and fairness.

To address these challenges, we present GSTAR (Group Specific Threshold Adaptation for faiR classification), a model-agnostic post-processing method. GSTAR optimizes the trade-off between accuracy and fairness by learning custom classification thresholds for different demographic groups. By interpreting model scores through group-specific lenses, GSTAR achieves superior fairness-accuracy balances while remaining computationally efficient and flexible.

Methodology: Group-Aware Threshold Adaptation

GSTAR operates by shifting the classification "cut-off" point (threshold) for each demographic group. Instead of a global threshold, GSTAR calculates group-specific thresholds ($\theta_a$) to compensate for shifts in score distributions between groups.

The methodology involves three key technical steps:

  1. Distribution Estimation: GSTAR approximates the probability distribution of the model's output scores (logits) for each group.
  2. Objective Function Optimization: It defines a loss function $L(\theta) = L_{per}(\theta) + \lambda L_{fair}(\theta)$, where $L_{per}$ represents accuracy loss and $L_{fair}$ represents violations of fairness constraints (e.g., differences in True Positive Rates).
  3. Gauss-Newton Optimization: The thresholds are updated iteratively. Because it operates on estimated distributions rather than raw data points, the process is extremely fast.
GSTAR adapts group-specific thresholds by estimating the probability distribution of model outputs.

Since GSTAR only requires the output scores of a classifier, it is entirely model-agnostic and can be applied to any existing model (SVMs, Neural Networks, etc.) without knowledge of its internal structure. This also makes it privacy-friendly, as sensitive raw data can often be discarded once distributions are estimated.

Experimental Evaluation

We evaluated GSTAR on four standard fairness benchmarks: CelebA (predicting attractiveness), Adult (income prediction), COMPAS (recidivism prediction), and German Credit (credit risk).

Key Results

In all evaluations, GSTAR demonstrated significant improvements over state-of-the-art methods:

  • Pareto Superiority: GSTAR's results consistently landed closer to the theoretical accuracy-fairness Pareto frontier than existing methods like FACT or AdvDeb.
  • Bias Reduction: On the CelebA dataset, GSTAR reduced the False Positive Rate difference by 94% (from 0.235 to 0.014) with only a 2.2% sacrifice in overall accuracy.
  • Efficiency: With a time complexity of $O(n + T)$, GSTAR is significantly faster than in-processing methods that require multiple training epochs.
Performance comparison of GSTAR against state-of-the-art methods across four datasets, showing its proximity to the theoretical Pareto frontier.

Furthermore, GSTAR can be used to post-process models that were already trained for fairness, further refining their accuracy-fairness trade-off.

Discussion and Conclusion

GSTAR leverages thresholds as a powerful lever for fairness. By moving the "goalposts" for different groups based on direct confusion matrix optimization, it finds more reliable thresholds than previous random label-flipping or linear intersection methods. It also supports "constraint stacking," allowing multiple fairness notions (e.g., Demographic Parity and Equalized Odds) to be handled simultaneously.

However, GSTAR has limitations. It may struggle if a model is "too certain" (logits pushed to extreme values), making smooth distribution estimation difficult. It also requires sufficient samples per demographic group for accurate estimation. Future work will focus on extending GSTAR to multi-class and multi-sensitive group scenarios. In conclusion, GSTAR provides a robust, efficient, and flexible framework for achieving near-optimal fairness in diverse classification tasks.

Summary updated

BibTeX
@inproceedings{jang2022group,
  author = {Taeuk Jang and Pengyi Shi and Xiaoqian Wang},
  title = {{Group-Aware Threshold Adaptation for Fair Classification}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  url = {https://openreview.net/forum?id=-iz7tmUiO_},
}
Figure