Fairness Increases Adversarial Vulnerability

Cuong Tran, Keyu Zhu, Ferdinando Fioretto, Pascal Van Hentenryck · DOI

As machine learning models are increasingly deployed in high-stakes environments like hiring, lending, and facial recognition, two properties have become essential: fairness (ensuring equitable outcomes across demographic groups) and robustness (resistance to adversarial attacks). While the trade-off between fairness and accuracy is well-documented, the relationship between fairness and robustness has remained largely unexplored. This research reveals a critical tension: enforcing fairness can inadvertently make models significantly more vulnerable to adversarial perturbations.

The Boundary Distance Problem

The core of the issue lies in the geometry of the model's decision boundary. A robust model aims to maximize the distance between data points and the decision boundary, creating a "safety margin" that prevents small input changes from altering the classification. Conversely, the authors demonstrate that fairness constraints—which aim to equalize error rates across groups—often force the decision boundary to move closer to data points, particularly those in groups with higher variance.

By analyzing linear classifiers on Gaussian distributions, the researchers proved that a perfectly "fair" model (achieving accuracy parity) often minimizes the average distance to the decision boundary. In essence, a fair model is frequently "sitting on the edge of a knife," where even a tiny, imperceptible amount of noise can push a data point across the boundary.

Visualizing the Vulnerability

The researchers validated this phenomenon using benchmarks like UTKFace, CIFAR-10, and Fashion-MNIST. The following figure illustrates how a model trained with fairness constraints becomes more sensitive to adversarial noise compared to a standard "regular" model.

Adversarial examples for regular vs. fair models on the UTKFace dataset.

In the example above, the "fair" model correctly identifies the age group of the older woman (50-60) where the regular model fails. However, when a small amount of adversarial noise is added, the fair model's prediction for both the baby and the woman flips dramatically, while the regular model's predictions remain stable. This highlights the "security-equity trade-off": the fair model achieves better parity but loses its defensive margin.

Mitigation through Bounded Loss

To address this conflict, the paper proposes moving away from standard "unbounded" loss functions like Cross-Entropy. In standard training, misclassified points far from the boundary exert an outsized influence, pulling the boundary toward them and reducing robustness.

The authors suggest using Ramp loss, a bounded loss function that caps the penalty for misclassification. By limiting the "pull" of outliers, Ramp loss allows the model to maintain a more stable decision boundary. Their experiments showed that models trained with Ramp loss could achieve a "sweet spot"—significantly better fairness than standard models while retaining higher robustness than fair models trained with traditional loss functions.

Conclusion

This work highlights a fundamental challenge in trustworthy AI: the goals of fairness and security are not always aligned. As we build more equitable systems, we must be mindful of the potential security holes created by shifting decision boundaries. The use of bounded loss functions offers a promising path forward, but the inherent geometric tension between these two objectives suggests that a perfect resolution may require deeper architectural or data-centric innovations.

Summary updated

BibTeX
@misc{tran2022fairness,
  author = {Cuong Tran and Keyu Zhu and Ferdinando Fioretto and Pascal Van Hentenryck},
  title = {{Fairness Increases Adversarial Vulnerability}},
  year = {2022},
  eprint = {2211.11835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.11835},
}
Figure