TL;DR
Researchers have developed a new framework called PFML (Poisoning Attacks on Fair Machine Learning) that systematically breaks both the accuracy and the fairness of machine learning models. By injecting a small amount of "poisoned" data during training, an attacker can precisely tune whether they want to make a model less accurate, more biased, or both—all while being orders of magnitude faster than previous attack methods.
What Problem Does This Paper Address?
As machine learning (ML) is increasingly used for high-stakes decisions like hiring or judicial sentencing, the research community has focused on two fronts: Fairness (ensuring models don't discriminate based on sensitive attributes like race or gender) and Adversarial Robustness (protecting models from malicious inputs).
However, these two fields rarely intersect. Most existing "poisoning attacks"—where an attacker manipulates the training data to corrupt the final model—only target a model's accuracy. Attacking a model's fairness is significantly harder because fairness metrics (like demographic parity) are global properties of a dataset. It is mathematically difficult to quantify exactly how much a single injected data point will shift the "fairness needle" once the model is fully trained. This paper bridges that gap by providing a framework to efficiently generate poisoning samples that specifically target fairness constraints.
Methods
The authors formulate the attack as a bi-level optimization problem. In this setup, the "inner" problem represents the user trying to train a fair model, while the "outer" problem represents the attacker trying to maximize a weighted combination of accuracy loss and fairness violations.
To make this computationally feasible, the authors introduced several innovations:
- Three Attack Variants:
- Adversarial Sampling (AS): Selecting the most damaging points from a pool of available data.
- Adversarial Labeling (AF): Intentionally flipping the labels of training points.
- Adversarial Feature Modification (AM): Perturbing specific features (like binary attributes) to mislead the model.
- Online Gradient Descent: Instead of solving a massive, slow optimization problem offline, the framework generates poisoning points iteratively. This makes the attack "online" and highly efficient.
- Convex Relaxation: Since many fairness metrics are non-convex and "math-heavy," the authors used linear relaxations (like decision boundary fairness) to make the optimization tractable.
- The $\alpha$ Hyperparameter: This is the "knob" that allows an attacker to balance their focus. Setting $\alpha$ near 1 focuses the attack on destroying accuracy; setting it near 0 focuses on maximizing bias (fairness violation).
Datasets
The framework was evaluated on two gold-standard benchmarks for fairness research:
- COMPAS: A dataset used to predict recidivism risk, where "race" is the sensitive attribute.
- Adult (Census Income): A dataset used to predict whether an individual's income exceeds $50k/year, where "gender" is the sensitive attribute.
The authors split these into clean training sets, candidate attack sets (where the poison is drawn from), and test sets to evaluate the final damage.
Key Insights and Ideas
- Fairness is a Fragile Constraint: The paper demonstrates that even models specifically designed to be fair (using "in-processing" or "post-processing" fairness techniques) are highly susceptible to poisoning. A small fraction of malicious data can effectively "undo" the fairness logic.
- The Power of Feature Modification: While simply picking bad data points (Sampling) is effective, the authors found that modifying features (AM) or flipping labels (AF) provides the attacker with much more leverage to increase model bias.
- Efficiency is the Game Changer: Previous state-of-the-art attacks (like KKT or influence-based attacks) are computationally expensive. By using an online gradient approach, the authors achieved similar or better results while being 100x to 1000x faster.
- Tunable Malice: The ability to quantify the impact of a single point on the "fairness gap" allows for a surgical strike. An attacker doesn't just break the model; they can choose how it breaks.
Key Results
- Significant Degradation: On the COMPAS dataset, the PFML attacks significantly increased the fairness gap (unfairness) compared to benign models. For example, using Adversarial Sampling with $\alpha=0$ (focus on fairness) increased the fairness gap from 0.108 to 0.126 while simultaneously dropping accuracy.
- Outperforming Baselines: PFML consistently outperformed standard baselines like Random Sampling, Label Flipping, and even complex "influence attacks" in both accuracy reduction and fairness violation.
- Speed: In sensitivity tests, PFML-AS took only ~8.8 seconds to generate poisoning samples, whereas a KKT-based attack took over 5,500 seconds for the same task.
- Statistical Significance: The authors used t-tests to confirm that their results weren't just noise; the p-values (mostly < 0.01) indicate that the PFML framework is a robustly superior method for attacking these models.
Limitations and Future Work
- Group-Based Focus: The current work focuses on group fairness notions (Demographic Parity and Equalized Odds). It does not yet address Individual Fairness or Counterfactual Fairness.
- Indiscriminate Attacks: These attacks are "indiscriminate," meaning they aim to degrade the model's performance generally. The authors note that "targeted attacks"—aiming to cause a specific error for a specific individual—are a logical next step.
- Defense Gap: While the paper successfully breaks FML models, it does not propose a specific defense. The authors suggest that future work should investigate robust training methods, perhaps using multi-objective optimization, to protect against these fairness-targeted poisoning attempts.
Summary updated