Abstract
In the context of regression, we consider the fundamental question of making an estimator fair while preserving its prediction accuracy as much as possible. To that end, we define its projection to fairness as its closest fair estimator in a sense that reflects prediction accuracy. Our methodology leverages tools from optimal transport to construct efficiently the projection to fairness of any given estimator as a simple post-processing step. Moreover, our approach precisely quantifies the cost of fairness, measured in terms of prediction accuracy.
Introduction
In modern machine learning, there is a persistent and fundamental tension between model accuracy and fairness. While a model may be highly predictive, it often inadvertently discriminates based on sensitive attributes like race, gender, or age. While much of the existing literature has focused on fair classification, regression—predicting continuous values—presents unique mathematical challenges.
This research introduces a rigorous framework for transforming any "unfair" regression model into a fair one with the smallest possible loss in accuracy. By framing fairness as a geometric projection within a specific functional space, the authors provide a method to achieve demographic parity through an efficient post-processing algorithm.
Fairness as a Geometric Projection
The core innovation of this work is viewing fairness through the lens of Optimal Transport (OT) theory, specifically utilizing the 2-Wasserstein distance. The authors define a class of "Profile Complete" (PC) regressors, with Demographic Parity (DP) serving as the primary example. In DP, the model's output must be statistically independent of the sensitive variable $S$.
Mathematically, finding the most accurate fair regressor is equivalent to finding the "closest" fair function to the ideal Bayes regressor. This "closeness" is measured in a way that directly relates to the Mean Squared Error (MSE). The optimal fair regressor is found by computing the Wasserstein barycenter—a geometric "average" distribution—of the model's predictions across different sensitive groups.
The Post-processing Algorithm
One of the most practical aspects of this approach is that it does not require retraining the original model. Instead, it acts as a post-processing step. It takes the predictions of an existing model and uses quantile functions (inverse CDFs) to "map" them onto the fair barycenter distribution.
As shown in the figure above, the algorithm aligns the quantiles of the predictions. If the model predicts a value at the 90th percentile for an individual in Group A, the fair version maps that prediction to the 90th percentile of the universal "average" distribution (the barycenter) across all groups. This ensures that the distribution of outcomes is identical across all values of the sensitive attribute $S$.
Key Theoretical Results
The paper provides several critical proofs that ground this geometric approach in statistical theory:
- Optimality (Theorem 6): The authors derive a closed-form solution for the optimal DP-fair regressor and prove that no other fair regressor can achieve a lower MSE.
- Consistency (Theorem 8): They demonstrate that if the original regression function is estimated consistently, the fair "plug-in" version will also be consistent, converging to the true optimal fair model as data increases.
- Quantifying the Cost of Fairness: The framework allows for a precise calculation of the "cost of fairness." This cost is exactly equal to the variance of the conditional distributions of the optimal regressor within the Wasserstein space.
Conclusion and Future Work
This methodology provides a computationally efficient and mathematically sound way to enforce fairness in regression models. By utilizing 1D optimal transport, the method relies on simple sorting and quantile functions, making it easy to implement in real-world pipelines.
While the paper establishes a strong foundation, several avenues for future research remain. These include determining the specific rates of convergence for the estimators and extending the specific "multi-marginal" solutions to fairness notions beyond Demographic Parity. Additionally, while the current results are cleanest for continuous distributions, further work could simplify the randomized implementations required for discrete data cases.
Summary updated