Exacerbating Algorithmic Bias through Fairness Attacks

Ninareh Mehrabi, Muhammad Naveed, Fred Morstatter, Aram Galstyan

Abstract

As machine learning (ML) systems increasingly govern high-stakes societal decisions, ensuring algorithmic fairness has become paramount. While most adversarial research focuses on degrading model accuracy, this paper investigates the vulnerability of fairness itself to intentional sabotage. We introduce two novel data poisoning strategies: the gradient-based Influence Attack on Fairness (IAF) and the stealthy Anchoring Attack. Our results across multiple benchmarks show that these attacks can significantly increase bias against specific demographic groups while maintaining high overall accuracy, posing a significant challenge for existing model monitoring and defense mechanisms.

Introduction

Algorithmic fairness is often treated as a problem of correcting unintentional biases inherent in historical data. However, this paper shifts the focus to a more adversarial scenario: What if a malicious actor intentionally seeks to make a model discriminatory? Such "fairness attacks" could be used to discredit institutions or subtly rig systems for personal gain. By demonstrating that fairness is a distinct and vulnerable attack surface, the authors argue for the necessity of "fairness-aware" security protocols.

Poisoning Strategies

The authors propose two primary methods for injecting bias into ML models during the training phase.

Influence Attack on Fairness (IAF)

IAF is a sophisticated approach leveraging influence functions to determine how specific training points affect a model's parameters. The attacker optimizes a specialized adversarial loss function that balances standard accuracy loss with a fairness penalty. By maximizing this loss, the attacker forces the model to learn a decision boundary that systematically disadvantages a target group.

Anchoring Attacks

The Anchoring Attack is a more intuitive and stealthy method. Instead of complex gradients, it identifies "target points" (anchors) within a specific demographic. The attacker then injects poisoned data points near these anchors. These points share the features of the target group but are assigned the opposite label, effectively "pulling" the decision boundary to create local pockets of discrimination.

Conceptual illustration of the Anchoring Attack. Left: Original fair decision boundary. Right: Poisoned boundary shifted by injecting adversarial points near target demographic anchors.

Two variants were tested: Random Anchoring (RAA) and Non-random Anchoring (NRAA), the latter of which targets "popular" points with many neighbors to maximize the bias's impact.

Experimental Evaluation

The attacks were evaluated on three standard fairness benchmarks: the German Credit Dataset, the COMPAS recidivism dataset, and the Drug Consumption Dataset. In all cases, gender was treated as the sensitive attribute.

Key Results

The Influence Attack on Fairness (IAF) emerged as the most potent method, consistently maximizing bias as measured by Statistical Parity Difference (SPD) and Equality of Opportunity Difference (EOD). Notably, the proposed methods outperformed existing baselines and demonstrated that fairness can be compromised even when accuracy remains high.

Test error vs. poisoning budget (Epsilon) on the COMPAS dataset. Proposed fairness attacks (IAF, NRAA) maintain relatively stable accuracy compared to accuracy-focused attacks like Koh et al., making them harder to detect.

As shown in the COMPAS results, while traditional accuracy-focused poisoning (e.g., Koh et al.) significantly increases test error, the fairness-targeted attacks (IAF, NRAA) keep the error rate relatively stable. This "stealth" makes them particularly dangerous, as standard performance monitoring might fail to flag the degradation in fairness.

Discussion and Future Work

The study reveals that accuracy is a poor proxy for fairness robustness. A model can appear high-performing while harboring deep, intentionally injected biases. Future research must focus on developing specialized defenses, such as fairness-aware anomaly detectors, that can identify training data designed to shift decision boundaries in discriminatory ways. Additionally, exploring how these attacks generalize across various fairness definitions remains a critical next step for the community.

Summary updated

BibTeX
@inproceedings{mehrabi2021exacerbating,
  author = {Ninareh Mehrabi and Muhammad Naveed and Fred Morstatter and Aram Galstyan},
  title = {{Exacerbating Algorithmic Bias through Fairness Attacks}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2021},
  doi = {10.1609/aaai.v35i10.17080},
}
Figure