Abstract
Neural network classifiers frequently inherit and amplify biases present in training data, resulting in disparate impacts on sensitive subgroups. This paper introduces a novel, architecture-agnostic regularization method based on the Wasserstein-2 distance. By penalizing distributional differences between groups, we provide a differentiable and scalable framework for fair learning. Our approach is evaluated on tabular (Adult Census), synthetic (MNIST), and image (CelebA) datasets, demonstrating a robust trade-off between predictive accuracy and algorithmic fairness.
Introduction
Deep learning models are increasingly used in high-stakes decision-making, from hiring to facial recognition. However, these models frequently exhibit algorithmic bias, performing inconsistently across different demographic groups. Traditional fairness metrics, such as Disparate Impact, are often non-differentiable, making them difficult to optimize directly via gradient descent. Furthermore, existing fair learning techniques often fail to scale to the complex architectures and large-scale datasets typical of modern computer vision.
Methodology: Wasserstein-2 Regularization
To address these challenges, we introduce a regularization term based on the Wasserstein-2 distance (also known as the Earth Mover's Distance). This metric quantifies the cost of transforming one probability distribution into another, considering the entire shape of the distribution rather than just point estimates like the mean.
Distributional Alignment
The goal is to minimize the distance between the cumulative distribution functions (CDFs) of different subgroups. Figure 1 illustrates the discrepancy between two groups, $g=0$ and $g=1$, which the regularization aims to close.
We propose two primary variants:
- Reg. Prediction: Targets Statistical Parity by penalizing differences in the distribution of model outputs across groups.
- Reg. Error: Targets Equalized Odds by penalizing differences in the distribution of squared errors between groups.
Technical Implementation
A key innovation of this work is the use of Gâteaux derivatives to make the Wasserstein-2 penalty compatible with backpropagation. This allows us to compute how individual predictions contribute to the global distributional distance, enabling optimization via standard Stochastic Gradient Descent (SGD). Figure 2 depicts the transport map mechanism used to align these distributions.
Experimental Evaluation
We evaluated our method across three diverse datasets:
- Adult Census: Predicting income levels with gender as the sensitive variable. The regularized model (NNrW) improved the Disparate Impact (DI) from a biased 0.37 to a fairer 0.68, while maintaining 78% accuracy (down from 82%).
- MNIST: Using synthetic rotation bias to test the model's ability to "unlearn" artificial correlations. The regularized model successfully corrected for these biases, even improving generalization in some protocols.
- CelebA: Predicting "attractiveness" with "age" as the sensitive variable. The regularization prevented the model from using age as a proxy for attractiveness, leading to more equitable predictions across different demographic profiles.
Conclusion
Wasserstein-2 regularization provides a mathematically rigorous and computationally efficient framework for mitigating algorithmic bias. By focusing on full distributional alignment and leveraging differentiable derivatives, our method offers a scalable solution for building fairer neural network classifiers without requiring significant changes to existing model architectures. Future work will explore extending this framework to multi-class problems and continuous regression tasks.
Summary updated