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

Improving fairness generalization through a sample-robust optimization method

Julien Ferry, Ulrich Aïvodji, Sébastien Gambs, Marie-José Huguet, Mohamed Siala

Introduction

Machine learning models often face the challenge of "fairness constraint overfitting." While a model may appear perfectly fair on its training data, it frequently exhibits significant bias when applied to unseen test data. This fragility undermines the reliability of fair AI systems in real-world deployments. This paper proposes a sample-robust framework to ensure that fairness constraints hold across various subsets of the training data, thereby improving generalization to new populations.

The Problem: Fairness Constraint Overfitting

In algorithmic fairness, models are typically trained to minimize an "unfairness" metric, such as Statistical Parity or Equal Opportunity. However, empirical evidence shows that a model's fairness performance on training data is a poor predictor of its performance on test data. Existing solutions to this problem often require large computational resources or necessitate splitting limited datasets into even smaller validation sets, which can degrade overall model performance.

Methodology

The authors introduce a framework inspired by Distributionally Robust Optimization (DRO), focusing specifically on the robustness of fairness constraints.

Jaccard Distance-Based Perturbation

The framework defines "neighboring" datasets as subsets of the original training data. By using the Jaccard distance to define a "ball" of datasets around the original one, the authors can enforce fairness across a range of potential data samplings.

Exact Robustness Auditing (IPSR)

To precisely measure robustness, the authors formulate an Integer Programming (IPSR) problem. This method identifies the minimum number of training examples that must be removed to violate a fairness constraint. This provides a definitive "robustness score" for any black-box classifier.

Scalable Heuristic: Random Masks (dromasks)

To make the approach practical for large-scale training, the authors propose "dromasks." This heuristic generates multiple random binary masks to create subsets of the training data. The model is then optimized to satisfy fairness constraints across all these subsets simultaneously. This method was successfully integrated into both discrete (FairCORELS) and gradient-based (TensorFlow Constrained Optimization) frameworks.

Evaluation and Metrics

The proposed methods were evaluated on four benchmark datasets: Adult Income, COMPAS, Default of Credit Card Clients, and Bank Marketing. The study considered several standard fairness notions to ensure broad applicability.

Common fairness notions and their corresponding equalized statistical measures.

Key Insights

  1. Fragility of Fairness: The paper demonstrates that fairness is mathematically fragile; removing a small, specific subset of data can often render a "fair" model unfair.
  2. Robustness-Accuracy Trade-off: Improving fairness generalization often requires a slight sacrifice in training accuracy, representing a secondary trade-off beyond the standard accuracy-fairness balance.
  3. Effectiveness of Heuristics: The simple "dromasks" approach performs remarkably well, offering the benefits of robustness without the high computational cost of exact optimization.

Results

Experimental results show that sample-robust methods produce a more stable Pareto frontier on test data compared to standard fair models. In neural network experiments using TFCO, the heuristic method outperformed traditional validation-splitting techniques without requiring additional data. Furthermore, the approach scales linearly, making it suitable for complex models.

Limitations and Future Work

The current framework is limited to subsets of existing data and does not account for synthetic data generation or massive feature shifts. Future research will focus on automating hyperparameter tuning for the "dromasks" method and exploring the intersection of fairness robustness and data privacy.

Summary updated

BibTeX
@article{ferry2023improving,
  author = {Julien Ferry and Ulrich Aïvodji and Sébastien Gambs and Marie-José Huguet and Mohamed Siala},
  title = {{Improving fairness generalization through a sample-robust optimization method}},
  journal = {Machine Learning},
  year = {2023},
  doi = {10.1007/s10994-022-06191-y},
}
Figure