A Unified Post-Processing Framework for Group Fairness in Classification

Ruicheng Xian, Han Zhao
5/7/2024
cs.LGcs.CY

No official code found. Best implementation: uiuctml/fair-classification (16 stars, MIT, last commit 2025-06-30).

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.

View on arXivView PDF

Code Implementations(1)

MIT

Post-processing for fair classification

162Python, Jupyter NotebookOct 4, 20221 years agoMIT
classificationfairnessmachine-learning

Similar Papers

Cite this paper

@article{xian2024unified,
  title  = {A Unified Post-Processing Framework for Group Fairness in Classification},
  author = {Ruicheng Xian and Han Zhao},
  year   = {2024},
  eprint = {2405.04025},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2405.04025v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2405.04025.svg)](https://codeofpaper.com/paper/2405.04025)

Discussion