On the Alignment between Fairness and Accuracy: from the Perspective of Adversarial Robustness

Junyi Chai, Taeuk Jang, Jing Gao, Xiaoqian Wang

TL;DR

This paper reveals that machine learning models which appear "fair" on clean data can be easily manipulated into making biased predictions through tiny, imperceptible feature changes. The authors prove a theoretical alignment between fairness and accuracy robustness, showing that protecting a model against one often helps the other, and they propose a "Fair Adversarial Training" framework to defend against both simultaneously.

The Vulnerability of "Fair" Models

In the realm of Trustworthy AI, Fairness (ensuring no group is disadvantaged) and Adversarial Robustness (ensuring models aren't fooled by small "noise" or perturbations) are typically treated as separate goals.

However, the authors point out a dangerous gap: a model can be perfectly fair on a standard test set but become wildly discriminatory when subjected to "fairness attacks"—small, intentional tweaks to input data that don't change the label but do exacerbate group disparities.

Illustration of how a small perturbation drastically alters True Positive Rate (TPR) and True Negative Rate (TNR) across different racial groups.

While "Adversarial Training" is commonly used to protect accuracy, a unified way to protect fairness from these same types of subtle attacks has been lacking. This paper seeks to bridge that gap by exploring the connection between fairness and accuracy robustness, and proposing a joint defense mechanism.

Methods: Bridging Fairness and Robustness

The researchers tackle this challenge through three main contributions:

  1. Unified Fairness Attack Framework: They developed a mathematical approach to generate adversarial samples specifically designed to break group fairness notions like Demographic Parity (DP) and Equalized Odds (EOd).
  2. Theoretical Alignment: They proved that for certain subgroups (like "True Negatives" in an advantaged group), an attack on accuracy and an attack on fairness actually move the model's predictions in the same direction. This suggests that robustness in one area can "spill over" into the other.
  3. Fair Adversarial Training (FAT): They proposed a training objective that minimizes loss on adversarial samples while simultaneously enforcing a fairness constraint. They implemented this across three standard fairness approaches: preprocessing (reweighing training samples), in-processing (adding a fairness penalty directly to the loss function), and post-processing (adjusting decision thresholds after training).

Key Insights

  • Fairness is Volatile: A "statically fair" model is not necessarily "robustly fair." A tiny perturbation can cause group disparities to skyrocket to 100%, effectively making the model's output depend entirely on sensitive attributes.
  • The "Same Direction" Subgroups: One of the most surprising findings is that for specific subgroups (e.g., True Positives in disadvantaged groups), fairness attacks and accuracy attacks are mathematically equivalent. This means that standard adversarial training for accuracy already provides some hidden benefits for fairness robustness.
  • DP vs. EOd Attacks: The authors proved that a successful attack against Demographic Parity (DP) almost always implies a successful attack against Equalized Odds (EOd). This allowed them to simplify their defense strategy by focusing primarily on DP.

Results: Superior Defense and Synergy

The authors evaluated their framework on four standard benchmarks: Adult, COMPAS, German Credit, and CelebA.

Comparison of Equalized Odds (EOd), Demographic Parity (DP), and Accuracy between baseline and adversarial training under increasing attack strength (Epsilon) on the Adult dataset.
  • Superior Defense: The proposed Fair Adversarial Training (FAT) significantly outperformed standard fair models and standard adversarial models. On the Adult dataset, while a baseline model's fairness gap (DP) jumped from ~14% to nearly 100% under attack, the FAT-trained model kept the gap much lower (around 15-20%) even as the attack strength increased.
  • Accuracy-Fairness Synergy: Classifiers trained with the FAT framework showed improved accuracy robustness compared to models trained only for fairness, validating the theoretical "alignment" the authors proposed.
  • Ablation Success: The researchers showed that simply using "fairness adversarial samples" during training isn't enough; combining adversarial training with explicit fairness regularization is necessary to achieve true robustness.

Limitations and Future Work

  • Lipschitz Assumptions: The theoretical proofs rely on the assumption that the model's gradients are Lipschitz continuous. While common in deep learning theory, this can be difficult to strictly guarantee or estimate in complex neural networks.
  • Computational Cost: Adversarial training is notoriously more expensive than standard training because it requires generating "attacks" during every step of the training process.
  • Dual-Use Risk: The authors candidly note that their method for generating "fairness adversarial samples" could be maliciously exploited to compromise AI systems if not used for defensive purposes, calling for rigorous oversight.

Summary updated

BibTeX
@inproceedings{chai2025alignment,
  author = {Junyi Chai and Taeuk Jang and Jing Gao and Xiaoqian Wang},
  title = {{On the Alignment between Fairness and Accuracy: from the Perspective of Adversarial Robustness}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=ckcXwR8cQS},
}
Figure