NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Wasserstein Fair Classification

Ray Jiang, Aldo Pacchiano, Tom Stepleton, Heinrich Jiang, Silvia Chiappa

Introduction

Machine learning classifiers typically output continuous scores or probabilities. To make a final decision, a threshold is applied (e.g., score > 0.5). Standard fairness metrics like Demographic Parity (DP) require equal positive prediction rates across sensitive groups. However, this approach suffers from two critical issues:

  1. Threshold Sensitivity: A model fair at one threshold may become highly unfair if the threshold is adjusted.
  2. Weak Constraints: Optimizing for discrete predictions is difficult, leading researchers to use weak "uncorrelation" constraints on continuous scores that fail to guarantee true fairness.

This paper introduces Strong Demographic Parity (SDP), a criterion ensuring fairness regardless of the decision threshold. By leveraging Optimal Transport and Wasserstein-1 distances, the authors propose methods that enforce fairness directly on the distribution of model outputs.

Methodology

The core idea is to achieve SDP by requiring the entire distribution of model outputs to be identical for every sensitive group.

Wasserstein-1 Barycenter

The authors identify a "middle-ground" distribution, the Wasserstein-1 barycenter, representing a fair version of the model's beliefs. They prove that mapping group distributions to this barycenter is the optimal way to achieve fairness with minimal impact on original predictions.

Proposed Algorithms

  • Wass-1 Penalized Logistic Regression: An in-processing method adding a Wasserstein-1 distance penalty to the loss function, encouraging the model to learn fair output distributions.
  • Demographically-Blind Variant: A training-time fairness enforcement that does not require sensitive attributes at test time, addressing legal and ethical constraints.
  • Wass-1 Post-Processing: A fast method based on quantile matching that maps a pre-trained model's outputs to the fair barycenter distribution.

Experimental Evaluation

The methods were evaluated on four benchmark datasets: Adult (Income), German Credit (Credit Risk), Bank Marketing (Term Deposits), and Communities & Crime (Crime Rates).

Table 1: Performance comparison on Adult and German datasets. The Wasserstein-based methods (blue) achieve superior fairness metrics (SDD, SPDD) compared to baselines.
Table 2: Performance comparison on Bank Marketing and Communities & Crime datasets.

Key Results

  • Superior Fairness: The Wasserstein-1 Penalty and its "Blind" variant consistently achieved the lowest Strong Pairwise Demographic Disparity (SPDD) across all datasets.
  • Accuracy-Fairness Trade-off: Unlike Hardt’s post-processing, which often incurs high error rates (highlighted in red in the tables), the Wasserstein approach maintains higher accuracy while achieving better fairness.
  • Efficiency: The post-processing algorithm is computationally efficient, making it suitable for production environments.

Discussion and Key Insights

Fairness as Distributional Alignment

Rather than matching means, the authors argue for matching the entire shape of score distributions. Identical distributions guarantee fairness at every possible threshold, providing robustness to "the slider"—the business practice of adjusting thresholds based on market conditions.

Mathematical Optimality

The use of the Wasserstein-1 barycenter is mathematically proven to be the optimal target distribution for minimizing the cost of fairness.

Limitations

  • Computational Complexity: While $O(N \log N)$ implementations exist, calculating barycenters for very large datasets or many groups remains more intensive than linear constraints.
  • Scope: The current work is focused on binary classification. Extensions to multi-class or regression tasks are future research directions.
  • Inherent Trade-offs: As with all fairness interventions, there is a necessary trade-off between predictive accuracy and distributional alignment.

Summary updated

BibTeX
@inproceedings{jiang2019wasserstein,
  author = {Ray Jiang and Aldo Pacchiano and Tom Stepleton and Heinrich Jiang and Silvia Chiappa},
  title = {{Wasserstein Fair Classification}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2019},
}
Figure