Optimal Fair Learning Robust to Adversarial Distribution Shift

Sushant Agarwal, Amit Deshpande, Rajmohan Rajaraman, Ravi Sundaram

Introduction: The Fairness-Robustness Gap

In fair machine learning, researchers often seek the Fair Bayes Optimal Classifier (BOC)—the theoretically best possible model for a given data distribution that also satisfies specific fairness constraints, such as Demographic Parity.

A classic learning theory result (Kearns & Li, 1988) establishes that the standard (unfair) BOC is naturally robust: if the test distribution shifts slightly from the training distribution due to malicious noise, the model's accuracy degrades gracefully rather than dropping off a cliff. However, this paper identifies a critical vulnerability, termed the "Fairness-Robustness Gap." The authors demonstrate mathematically that once fairness constraints are enforced, deterministic classifiers become surprisingly brittle. A tiny, adversarial shift in the data can force the optimal deterministic fair model to radically alter its decision boundary, leading to a massive and sudden loss in accuracy.

The Solution: The "One Coin Flip" Miracle

To overcome the fragility of deterministic models, the researchers pivot to Randomized Fair BOCs. Their central finding is that introducing a microscopic amount of randomization restores robustness, improves accuracy, and makes the model computationally efficient to find.

Strikingly, the optimal randomized fair classifier is nearly-deterministic. It only requires a randomized prediction (e.g., flipping a coin) for, at most, a single data point in the entire domain. This single point of uncertainty acts as a critical buffer, absorbing the shock of adversarial distribution shifts without compromising the rest of the model's deterministic predictions.

Computational and Accuracy Benefits

Beyond robustness, randomization acts as a powerful computational shortcut. The authors prove that finding the optimal deterministic fair classifier is an NP-complete problem (akin to the Partition Problem). In contrast, the randomized version can be computed efficiently in polynomial time ($O(|X| \log |X|)$). Furthermore, the randomized fair classifier can outperform its deterministic counterpart by as much as 0.5 in accuracy under certain conditions.

Methodology and Key Theoretical Results

Because this is a foundational theoretical work, the authors rely on mathematical proofs and synthetic distributions rather than large-scale empirical benchmarks. Their framework utilizes:

  • Mass-Thresholding: Instead of standard score thresholding, they characterize the optimal fair classifier using "group-wise sorted cells," accepting a specific probability mass of the distribution.
  • Lipschitz Analysis: The core robustness theorems establish that the accuracy of the randomized Fair BOC satisfies a local Lipschitz property. This guarantees that the change in accuracy is strictly bounded by a constant multiple of the Total Variation distance between the original and shifted distributions.
  • Decomposition into Elementary Transitions: The proofs break down complex distribution shifts into sequences of "elementary" steps—moving tiny bits of probability mass—to show that robustness holds continuously.

These robustness guarantees are rigorously proven for three major fairness notions: Demographic Parity (DP), Equal Opportunity (EO), and Predictive Equality (PE). Conversely, their non-robustness proof demonstrates that for any $\epsilon > 0$, there exist two distributions within $\epsilon$ distance where deterministic Fair BOCs differ in accuracy by at least 0.5.

Limitations and Future Work

While the theoretical guarantees are strong, the authors note several boundaries to their current framework:

  • Extremal Points: The robustness guarantee (the Lipschitz constant) degrades if the probability mass of a protected group becomes exceptionally small. The model is less robust when dealing with tiny minority populations.
  • Domain Constraints: The current proofs focus on discrete domains. Extending these guarantees to fully continuous feature spaces remains an open challenge.
  • Scope of Fairness: The work covers the "big three" fairness definitions but has yet to address multi-class classification, regression, or intersecting fairness constraints.
  • Empirical Validation: Future work should validate these theoretical findings on real-world "malicious" datasets, such as poisoned hate speech detection corpora.

Summary updated

BibTeX
@inproceedings{agarwal2025optimal,
  author = {Sushant Agarwal and Amit Deshpande and Rajmohan Rajaraman and Ravi Sundaram},
  title = {{Optimal Fair Learning Robust to Adversarial Distribution Shift}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=TGcXwWdQQj},
}
Figure