A Unified Post-Processing Framework for Group Fairness in Classification
Ruicheng Xian, Han Zhao
TL;DR
This work presents LinearPost, a unified post-processing framework that achieves group fairness across statistical parity, equal opportunity, and equalized odds in multiclass and both attribute-aware and attribute-blind settings. The key idea is to express the Bayes-optimal fair classifier as a linear post-processing of the Bayes-optimal score, with a fairness risk term built from a Bayes-optimal group predictor and weights derived from the dual of an empirical linear program. The authors establish conditions (notably a random perturbation to ensure uniqueness and multicalibration of the group predictor) under which this representation holds, and provide a practical algorithm that estimates the risk and group predictor, calibrates when needed, and solves an empirical LP to obtain post-processing weights. Empirical results demonstrate that LinearPost yields favorable accuracy-fairness tradeoffs, especially in high fairness regimes and multiclass tasks, often outperforming existing post-processing and in-processing methods while highlighting the importance of calibration and attribute-awareness for achieving stronger fairness guarantees.
Abstract
We present a post-processing algorithm for fair classification that covers group fairness criteria including statistical parity, equal opportunity, and equalized odds under a single framework, and is applicable to multiclass problems in both attribute-aware and attribute-blind settings. Our algorithm, called "LinearPost", achieves fairness post-hoc by linearly transforming the predictions of the (unfair) base predictor with a "fairness risk" according to a weighted combination of the (predicted) group memberships. It yields the Bayes optimal fair classifier if the base predictors being post-processed are Bayes optimal, otherwise, the resulting classifier may not be optimal, but fairness is guaranteed as long as the group membership predictor is multicalibrated. The parameters of the post-processing can be efficiently computed and estimated from solving an empirical linear program. Empirical evaluations demonstrate the advantage of our algorithm in the high fairness regime compared to existing post-processing and in-processing fair classification algorithms.
