Skip to main content
QUICK REVIEW

[Paper Review] Fair and Optimal Classification via Post-Processing

Ruicheng Xian, Lang Yin|arXiv (Cornell University)|Nov 3, 2022
Advanced Causal Inference TechniquesMathematics6 citations
TL;DR

This paper proposes a post-processing method to achieve optimal demographic parity in multi-class, multi-group classification by formulating the minimum error rate as a Wasserstein-barycenter problem. It derives fair classifiers from pre-trained score functions using optimal transport, achieving the lowest possible error under fairness constraints, with theoretical guarantees and empirical validation on benchmark datasets.

ABSTRACT

To mitigate the bias exhibited by machine learning models, fairness criteria can be integrated into the training process to ensure fair treatment across all demographics, but it often comes at the expense of model performance. Understanding such tradeoffs, therefore, underlies the design of fair algorithms. To this end, this paper provides a complete characterization of the inherent tradeoff of demographic parity on classification problems, under the most general multi-group, multi-class, and noisy setting. Specifically, we show that the minimum error rate achievable by randomized and attribute-aware fair classifiers is given by the optimal value of a Wasserstein-barycenter problem. On the practical side, our findings lead to a simple post-processing algorithm that derives fair classifiers from score functions, which yields the optimal fair classifier when the score is Bayes optimal. We provide suboptimality analysis and sample complexity for our algorithm, and demonstrate its effectiveness on benchmark datasets.

Motivation & Objective

  • To characterize the inherent tradeoff between classification error and demographic parity in general multi-group, multi-class, and noisy settings.
  • To identify the minimum achievable error rate for attribute-aware, randomized classifiers under demographic parity.
  • To develop a practical post-processing algorithm that achieves optimal fairness-performance tradeoff using pre-trained score functions.
  • To provide sample complexity and suboptimality analysis for the proposed method.
  • To empirically validate the method on benchmark datasets, demonstrating precise control of the fairness-accuracy tradeoff.

Proposed method

  • The minimum error rate under demographic parity is characterized as the optimal value of a relaxed Wasserstein-barycenter problem over the Bayes optimal score functions per group.
  • The optimal fair classifier is constructed by composing the Bayes optimal score function with optimal transport maps derived from the barycenter solution.
  • A post-processing algorithm is proposed that transforms any pre-trained score function into a fair classifier via linear programming to enforce demographic parity.
  • The method uses a quadratic program to find feasible points in the transport map constraints, improving margin-based generalization.
  • The algorithm is instantiated for finite-sample estimation with theoretical sample complexity bounds.
  • The approach is evaluated on real-world datasets including ACSIncome, BiasBios, Adult, and Communities, using logistic regression and BERT-based models.

Experimental results

Research questions

  • RQ1What is the minimum classification error achievable under demographic parity in the general multi-group, multi-class, and noisy setting?
  • RQ2How can the optimal fair classifier be constructed from a pre-trained score function?
  • RQ3What is the theoretical tradeoff between fairness and accuracy in this general setting?
  • RQ4How does the proposed post-processing method compare to existing fair classification algorithms in terms of performance and sample efficiency?
  • RQ5What is the sample complexity and suboptimality of the proposed algorithm?

Key findings

  • The minimum error rate under demographic parity is given by the optimal value of a Wasserstein-1 barycenter problem over the group-specific conditional mean distributions.
  • The optimal fair classifier is the composition of the Bayes optimal score function and the optimal transport maps from the barycenter solution.
  • The proposed post-processing method achieves the theoretical minimum error rate when the input score function is Bayes optimal.
  • On benchmark datasets, the method achieves precise control of the fairness-accuracy tradeoff, outperforming existing methods like FairProjection in accuracy under comparable fairness constraints.
  • The algorithm runs efficiently, with post-processing times under 2 seconds on CPU for large datasets, and demonstrates robustness across multiple random splits and model types.
  • The use of a quadratic program for feasible point finding improves performance over linear programming, reducing both error rate and demographic parity violation.

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.