Abstract: We use disparate impact, i.e., the extent that the probability of observing an output depends on protected attributes such as race and gender, to measure fairness. We prove that disparate impact is upper bounded by the total variation distance between the distribution of the inputs given the protected attributes. We then use pre-processing, also known as data repair, to enforce fairness. We show that utility degradation, i.e., the extent that the success of a forecasting model changes by pre-processing the data, is upper bounded by the total variation distance between the distribution of the data before and after pre-processing. Hence, the problem of finding the optimal pre-processing regiment for enforcing fairness can be cast as minimizing total variations distance between the distribution of the data before and after pre-processing subject to a constraint on the total variation distance between the distribution of the inputs given protected attributes. This problem is a linear program that can be efficiently solved. We show that this problem is intimately related to finding the barycenter (i.e., center of mass) of two distributions when distances in the probability space are measured by total variation distance. We also investigate the effect of differential privacy on fairness using the proposed the total variation distances. We demonstrate the results using numerical experimentation with a practice dataset.
Introduction
Machine learning models trained on historical data often inherit societal biases, leading to unfair outcomes based on protected attributes like race or gender. One of the most robust ways to fix this is through pre-processing (or data repair). By altering the training data itself so that protected attributes cannot be inferred, researchers can ensure that any downstream model trained on that data will be fair.
Previous approaches formulated this data repair process as an optimal transport problem using Wasserstein distance. While effective, calculating Wasserstein barycenters is computationally expensive and complex. This paper introduces a more scalable, mathematically rigorous way to repair data using Total Variation (TV) distance to balance the trade-off between fairness (minimizing disparate impact) and utility (maintaining predictive power).
Methodology
The proposed method uses TV distance to optimize both fairness and utility through a standard Linear Program (LP):
- Bounding Fairness: Disparate impact is strictly upper-bounded by the TV distance between the repaired input distributions of protected groups.
- Bounding Utility: Utility degradation is upper-bounded by the TV distance between the original data and the repaired data.
- The TV Barycenter: To achieve strict statistical parity, the LP effectively maps differing group distributions to their "Total Variation Barycenter"—the center of mass in probability space. Instead of mapping a minority group's distribution entirely to the majority's, both are shifted toward an optimal, shared center.
This LP approach has a computational complexity of $O(|X|^6)$, making it highly efficient for discrete or binned feature spaces compared to Wasserstein-based methods.
Empirical Evaluation
The method was evaluated on the 1994 Census (Adult) dataset, predicting whether individuals earn more than $50,000 based on features like work hours and education, with gender as the protected attribute.
As seen in the histograms, the original data shows a clear gender divide. After applying TV barycenter pre-processing, the distributions for male and female individuals become perfectly identical (for statistical parity) or closely aligned (for approximate fairness, $\rho = 0.1$), effectively removing the bias signal.
Results and Trade-offs
Numerical experiments mapped the Pareto frontier between fairness and utility. As the allowable disparate impact ($\rho$) shrinks, utility degradation predictably increases.
The paper also mathematically links Differential Privacy (DP) to fairness. If the data repair process is $\epsilon$-differentially private, disparate impact is strictly bounded by $1 - \exp(-\epsilon)$. However, this privacy/fairness guarantee forces a quantifiable drop in model utility, as shown in the trade-off analysis.
Conclusion
By swapping Wasserstein distance for Total Variation distance, the complex optimal transport problem of fair data repair simplifies into an efficient Linear Program. This approach provides hard theoretical guarantees and a clear framework for navigating the unavoidable trade-offs between privacy, fairness, and utility in machine learning.
Summary updated