Abstract
As machine learning models increasingly govern high-stakes decisions in domains such as lending and hiring, ensuring algorithmic fairness has become a primary objective. However, the security of these fairness-aware systems against adversarial data poisoning remains under-explored. This paper investigates the "minimum price" an attacker must pay to subvert fair binary classification. By framing the attack as a bilevel optimization problem, the authors introduce the Z-Flipping algorithm—a method that strategically manipulates labels and sensitive attributes to force a learner toward a biased target model. Theoretical and empirical results demonstrate that even robust fair classifiers can be compromised with minimal data corruption, highlighting a critical security vulnerability where the very constraints intended to ensure equity can be weaponized by an adversary.
Introduction
Fairness-aware algorithms typically operate by minimizing empirical risk subject to mathematical constraints, such as Equal Opportunity or Demographic Parity. While effective under the assumption of clean training data, these systems are vulnerable to malicious perturbations. This research addresses a critical security gap: the susceptibility of fair learners to data poisoning attacks. Specifically, the study seeks to determine the minimum amount of data corruption—via flipping labels ($Y$) or sensitive attributes ($Z$)—required to force a fair learner to adopt a specific, biased "target model."
Problem Formulation and Methodology
The authors frame the adversarial objective as a bilevel optimization problem. The attacker aims to find a poisoned data distribution that is as close as possible to the original distribution (measured by Total Variation distance) while ensuring the fair learning algorithm outputs a pre-defined target model.
The Z-Flipping Algorithm
To solve this, the researchers proposed the Z-Flipping Algorithm, a computationally efficient two-stage attack strategy:
- Stage 1 (Accuracy Manipulation): The attacker perturbs the data such that the target model becomes the most accurate unconstrained model for the distribution.
- Stage 2 (Fairness Manipulation): The attacker strategically flips the sensitive attributes ($Z$) of specific samples. This ensures that the target model satisfies the fairness constraints on the poisoned data, effectively "tricking" the algorithm into selecting it.
Theoretical Bounds and Optimality
The paper provides mathematical lower and upper bounds on the minimum perturbation needed for a successful attack. A key contribution is the proof of optimality: when the target model is the unique most accurate model on the original data, the Z-flipping attack achieves the adversarial goal with the absolute minimum amount of corruption possible.
Experimental Setup
The methodology was evaluated using a standardized synthetic dataset consisting of 6,000 samples with 2D feature vectors. Features were drawn from Gaussian distributions, with labels and sensitive attributes correlated to simulate inherent bias, following established benchmarks in fairness research (e.g., Zafar et al., 2017). This controlled environment allowed for the precise verification of theoretical bounds against empirical results.
Key Insights
Fairness as a Vulnerability
A counterintuitive finding of this research is that fairness constraints can be weaponized. By manipulating sensitive attributes, an attacker can make a biased model appear perfectly fair to the algorithm's internal mathematical checks. The search space for "fair" models is often large enough that an attacker can find a biased candidate that satisfies the constraints on poisoned data.
The Efficiency of Attribute Flipping
The study reveals that flipping sensitive attributes ($Z$) is often more "cost-effective" for an attacker than flipping labels ($Y$). Achieving a malicious goal requires fewer changes to the dataset when $Z$ is targeted, making these attacks particularly stealthy.
The Price of Unfairness
The "cost" of a successful attack—defined as the volume of poisoned data required—is directly proportional to the "unfairness gap" of the target model on the original clean data. The more biased the desired outcome, the more the attacker must invest in data corruption.
Results
The experimental results confirm the potency of the Z-flipping approach:
- High Impact with Low Poisoning: The attack was highly effective with a poisoning rate of only 3.2%.
- Compromising Robust Methods: The attack successfully broke several state-of-the-art fair learning algorithms, including Fair Constraints (FC) and Error-Tolerant (Err-Tol) methods.
- Quantitative Degradation: Against the FC learner, the attack increased the fairness gap from 0.05 to 0.14 while simultaneously increasing the reported accuracy. This demonstrates that the system was successfully deceived into believing it had found a superior, fair model.
- Empirical Validation of Bounds: The experimental data closely tracked the theoretical lower bounds, confirming the near-optimality of the proposed attack vector.
Conclusion and Future Work
This research demonstrates that current fair binary classification models are highly susceptible to optimal flipping attacks. While the current framework focuses on binary labels and attributes in a white-box setting, it lays the groundwork for future exploration into multi-class scenarios and black-box attacks where the adversary has limited knowledge of the underlying distribution. Furthermore, the authors suggest that these vulnerabilities may be amplified in federated learning environments, where data integrity is significantly harder to verify, marking an urgent direction for future security research in AI fairness.
Summary updated