Abstract
Machine learning models often suffer from performance degradation and fairness violations when training data is subject to sample selection bias. This paper proposes a robust fairness-aware learning framework that utilizes minimax optimization to handle distribution shifts. By optimizing for the worst-case scenario within a defined uncertainty set, the proposed algorithms, RFLearn1 and RFLearn2, achieve superior stability and fairness on unseen test data compared to traditional fair learning methods. Experimental results on the Adult and Dutch datasets demonstrate that our approach effectively mitigates the "double whammy" of accuracy loss and increased bias under distribution shift.
Introduction
Most machine learning algorithms rely on the "i.i.d. assumption," which posits that training and test data are drawn from the same distribution. In real-world applications, this assumption is frequently violated due to sample selection bias—where the collected data is not representative of the general population. While techniques exist to correct this bias for accuracy, maintaining fairness under such shifts is significantly more challenging. A model that appears fair on biased training data can exhibit substantial unfairness when deployed. This paper addresses the critical need for models that are robustly fair and accurate despite unknown distribution shifts.
Methodology
The proposed framework integrates reweighing estimation with minimax robust optimization to ensure performance across a range of potential test distributions.
1. Reweighing and Minimax Optimization
The framework weights training samples based on their selection probability to better reflect the true population. Since the exact nature of the selection bias is often unknown, the authors formulate the problem as a minimax game. The model seeks to minimize loss while an adversary selects the worst-possible distribution within a specific uncertainty range, such as a Wasserstein ball. This "worst-case" optimization ensures the model remains reliable even under adverse shifts.
2. Boundary Fairness
Standard fairness metrics, like Risk Difference (RD), are non-differentiable and difficult to optimize directly. The authors introduce "boundary fairness," which approximates these metrics by measuring the covariance between sensitive attributes and the data points' distance from the decision boundary. This allows for efficient, gradient-based optimization.
3. Algorithms: RFLearn1 and RFLearn2
Two algorithms are introduced based on data availability:
- RFLearn1: Designed for scenarios where unlabeled test data is available. It estimates bias by comparing the density of training and test sets.
- RFLearn2: Designed for scenarios where test data is entirely unavailable. It utilizes clustering within the training set to group similar samples, assuming they share similar selection probabilities.
Experimental Evaluation
The authors evaluated the framework using two benchmark datasets: the Adult Dataset (predicting income) and the Dutch Dataset (census data). In both cases, gender was treated as the protected attribute. Bias was artificially injected into the training sets (e.g., based on education or marital status) to simulate real-world selection bias.
Results and Discussion
Performance Comparison
The experimental results highlight the fragility of standard fair classifiers. As shown in the comparison table below, while methods like FairLR perform well on training data, their fairness metrics (Risk Difference) deteriorate significantly on the test set.
On the Adult dataset, FairLR saw its test Risk Difference jump to 0.0956. In contrast, RFLearn1 and RFLearn2 maintained much lower violations at 0.0416 and 0.0238, respectively. Furthermore, RFLearn1 achieved a test accuracy of approximately 78%, outperforming FairLR (~76%) and demonstrating that robustness can improve both utility and equity.
Sensitivity Analysis
The framework's stability was tested across various hyperparameters, including the uncertainty range $\delta$. The results indicate that the performance of the robust algorithms is relatively insensitive to these choices, making them practical for deployment in environments where the exact degree of bias is unknown.
Conclusion and Future Work
This research demonstrates that robustness is a prerequisite for reliable fairness in the presence of distribution shift. By optimizing for the worst-case scenario, the RFLearn algorithms provide a principled way to maintain ethical standards in machine learning. Future work will explore extending this framework to "Missing Not At Random" (MNAR) scenarios, multi-class labels, and intersectional fairness definitions beyond demographic parity.
Summary updated