On Adversarial Bias and the Robustness of Fair Machine Learning

Hongyan Chang, Ta Duy Nguyen, Sasi Kumar Murakonda, Ehsan Kazemi, Reza Shokri

Introduction

As machine learning (ML) models are increasingly deployed in high-stakes decision-making environments—such as recidivism prediction, credit scoring, and hiring—ensuring these models are "fair" has become a primary concern. Fairness constraints, such as equalized odds, are often integrated into the training process to prevent discrimination against protected groups. However, these constraints do not exist in a vacuum. This research explores a critical and often overlooked trade-off: the relationship between algorithmic fairness and adversarial robustness. Specifically, we investigate whether the very mechanisms intended to ensure equity make models more vulnerable to data poisoning attacks.

The Fairness-Robustness Conflict

The core of the issue lies in how fairness constraints alter the model's optimization landscape. To satisfy metrics like equalized odds, a model must often prioritize performance on minority subgroups that might otherwise be marginalized in a standard loss-minimization framework. This "re-weighting" of the training data creates a strategic opening for an adversary. By injecting a small amount of malicious data—a process known as data poisoning—an attacker can exploit the model's sensitivity to these specific subgroups.

Methodology: Attacking Fair Models

The authors frame the poisoning attack as a bi-level optimization problem. The attacker aims to find a poisoning dataset that maximizes the model's test loss, while the model itself minimizes its training loss subject to a fairness constraint. Given the complexity of solving this directly, two practical attack algorithms are proposed:

  1. Algorithm 1 (Online Gradient Descent): This approach uses a linear approximation of the fairness gap to iteratively select poisoning points that maximize both the loss and the fairness violation.
  2. Algorithm 2 (Surrogate Model): This uses an unconstrained model as a proxy to identify high-impact data points, which are then used to poison the constrained model.

The study evaluates two primary attack vectors: Adversarial Sampling, where the attacker introduces bias by selecting specific training points, and Adversarial Labeling, where the attacker can also flip the labels of those points.

Experimental Results

The researchers evaluated these attacks on the COMPAS (recidivism risk) and Adult (census income) datasets. The results consistently demonstrate that fair models are significantly less robust than their unconstrained counterparts.

Test accuracy of unconstrained and fair models under data poisoning attacks on the COMPAS dataset. As the fraction of poisoning data increases, the accuracy of fair models (middle and right columns) drops much faster than the unconstrained model (left column).

As illustrated in the figure above, the test accuracy of fair models (middle and right columns) degrades rapidly as the poisoning fraction ($ε$) increases. In contrast, the unconstrained model (left column) maintains relatively stable performance even under significant poisoning. At $ε = 0.2$, the fair models' accuracy often collapses toward the baseline of a constant prediction.

Furthermore, the attacks do not just reduce accuracy; they actively subvert the fairness goals. On the COMPAS dataset with 10% poisoning, a model constrained for high fairness ($δ=0.01$) exhibited a fairness gap on clean test data between 0.37 and 0.55. This is substantially worse than the 0.21 to 0.26 gap observed in a standard unconstrained model under the same attack. The "fair" model, while appearing fair on the poisoned training set, becomes more discriminatory on unseen data.

Why Fair Models Fail

The vulnerability stems from the model's requirement to perform well on minority subgroups to meet fairness quotas. Attackers exploit this by placing poisoned data in the smallest subgroup with the least frequent label. Because the fairness constraint forces the model to "listen" to these few points, the poison has a disproportionately large impact on the final decision boundaries. To maintain parity with these poisoned minority points, the model is often forced to sacrifice accuracy on the majority group, leading to the observed performance collapse.

Conclusion

This research highlights a significant challenge for the deployment of fair ML in adversarial settings. Current fairness-enhancing algorithms are highly susceptible to data poisoning, often resulting in models that are both less accurate and more biased than standard models when under attack. These findings underscore the urgent need for "robust algorithmic fairness"—new training paradigms that can guarantee equitable outcomes without compromising resilience against malicious data manipulation.

Summary updated

BibTeX
@misc{chang2020adversarial,
  author = {Hongyan Chang and Ta Duy Nguyen and Sasi Kumar Murakonda and Ehsan Kazemi and Reza Shokri},
  title = {{On Adversarial Bias and the Robustness of Fair Machine Learning}},
  year = {2020},
  eprint = {2006.08669},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.08669},
}
Figure