Skip to main content
QUICK REVIEW

[Paper Review] Blackbox Post-Processing for Multiclass Fairness

Preston Putzel, Scott Lee|arXiv (Cornell University)|Jan 12, 2022
Ethics and Social Impacts of AISocial Sciences11 citations
TL;DR

This paper extends the post-processing fairness framework of Hardt et al. (2016) to multiclass classification by formulating a linear program over conditional adjustment probabilities to enforce fairness while minimizing accuracy loss. It demonstrates that with sufficient data size, the method achieves high fairness with only minor accuracy drops, though performance degrades under small datasets or strong class imbalance.

ABSTRACT

Applying standard machine learning approaches for classification can produce unequal results across different demographic groups. When then used in real-world settings, these inequities can have negative societal impacts. This has motivated the development of various approaches to fair classification with machine learning models in recent years. In this paper, we consider the problem of modifying the predictions of a blackbox machine learning classifier in order to achieve fairness in a multiclass setting. To accomplish this, we extend the 'post-processing' approach in Hardt et al. 2016, which focuses on fairness for binary classification, to the setting of fair multiclass classification. We explore when our approach produces both fair and accurate predictions through systematic synthetic experiments and also evaluate discrimination-fairness tradeoffs on several publicly available real-world application datasets. We find that overall, our approach produces minor drops in accuracy and enforces fairness when the number of individuals in the dataset is high relative to the number of classes and protected groups.

Motivation & Objective

  • Address fairness in multiclass machine learning predictions where biased models may disadvantage protected demographic groups.
  • Develop a post-processing method that modifies predictions of a pre-trained blackbox classifier without altering its internal parameters.
  • Ensure fairness across multiple classes and protected attributes while preserving predictive accuracy.
  • Investigate the conditions under which post-processing is effective, especially regarding dataset size and class imbalance.
  • Evaluate the method on both synthetic and real-world datasets to assess fairness-accuracy tradeoffs and out-of-sample robustness.

Proposed method

  • Formulate the adjusted prediction $Y^{ ext{adj}}$ as a randomized function of the blackbox classifier’s output $\hat{Y}$ and protected attribute $A$, using conditional probabilities $\text{Pr}(Y^\text{adj} = y^\text{adj} \mid \hat{Y} = \hat{y}, A = a)$.
  • Construct a linear program over the protected-attribute-specific confusion matrices $\mathbf{P}^a = \text{Pr}(Y^\text{adj} \mid \hat{Y}, A = a)$ to enforce fairness constraints.
  • Use a linear objective function that minimizes expected loss, with options for unweighted zero-one loss or weighted loss based on $1/\text{Pr}(Y = y, A = a)$ to penalize errors on underrepresented groups more heavily.
  • Estimate the original classifier’s confusion matrices $\mathbf{Z}^a = \text{Pr}(\hat{Y} \mid Y, A = a)$ empirically from data to maintain linearity in $\mathbf{P}^a$.
  • Enforce fairness via constraints such as equalized odds or treatment equality, ensuring conditional independence of predictions from protected attributes given the true label.
  • Solve the resulting linear program to obtain adjusted predictions that satisfy fairness criteria while minimizing accuracy degradation.

Experimental results

Research questions

  • RQ1Under what data regimes does multiclass post-processing produce fair and accurate predictions?
  • RQ2How does the performance of the post-processing method degrade when the number of individuals is small relative to the number of classes and protected groups?
  • RQ3To what extent does finite sampling variability affect fairness enforcement on out-of-sample data?
  • RQ4How do class imbalance and predictive bias in the original blackbox model impact the effectiveness of post-processing?
  • RQ5What is the trade-off between fairness and accuracy in real-world multiclass applications?

Key findings

  • On large datasets like the bar passage dataset ($N = 22,406$), the method reduced fairness disparity by 95% and maintained a Brier score loss of only 7.5 percentage points under strict fairness.
  • For smaller datasets such as the obesity dataset ($N = 1,490$, $|C| = 5$), post-adjustment TDR dropped by 46% under cross-validation, indicating significant performance degradation due to finite sampling.
  • In the drug usage dataset, out-of-sample fairness disparity doubled after post-processing, indicating potential for increased bias in generalization.
  • The method achieved near-zero disparity on in-sample data across all datasets, as enforced by the linear program, but disparities were not fully eliminated out-of-sample.
  • Performance degradation was most severe under strong class imbalance and high predictive bias in minority groups, where adjusted predictors sometimes performed near random chance.
  • The approach remains effective and efficient when the blackbox model is already moderately fair and the dataset is large, with minimal accuracy loss and strong fairness enforcement.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.