Abstract
Fair Representation Learning (FRL) is a cornerstone of algorithmic fairness, designed to produce data embeddings that are useful for downstream tasks while remaining invariant to sensitive demographic attributes. However, the security of these representations against adversarial manipulation has remained largely unexplored. This paper introduces the first data poisoning framework specifically designed to sabotage FRL. By injecting a small fraction of carefully crafted "poison" samples into the training set, we demonstrate that an attacker can force deep learning models to produce representations that secretly leak sensitive information, effectively stripping away the fairness protections they were designed to provide.
Introduction
As AI systems are increasingly deployed in high-stakes domains like credit scoring and recidivism prediction, Fair Representation Learning (FRL) has emerged as a popular strategy to mitigate bias. The goal is to transform raw data into embeddings that "forget" sensitive attributes like race, gender, or age. Because these representations are often shared across various downstream applications, they are considered more versatile and robust than simple fair classifiers.
Despite their popularity, the robustness of FRL models against malicious actors was previously unknown. While data poisoning attacks—where an attacker modifies a fraction of training data to manipulate model behavior—are well-studied for simple classifiers, their impact on the complex optimization landscapes of FRL is a new frontier. This research addresses a critical question: Can an attacker secretly "re-program" an FRL model to produce unfair representations without significantly degrading the model's primary task performance?
The Attack Framework
Attacking FRL presents a significant challenge due to its nature as a bilevel optimization problem. The attacker must find poisoning samples (the "upper" problem) that, when processed by the victim during model training (the "lower" problem), result in the most unfair representations.
To solve this efficiently, the authors propose the Elastic-Net GradMatch (ENG) framework, which relies on three key innovations:
- The Fisher’s Linear Discriminant (FLD) Proxy: Instead of directly maximizing complex measures like Mutual Information (MI), the attack targets the FLD score. This acts as a proxy for how easily different demographic groups can be separated in the representation space. A high FLD score indicates a highly "unfair" representation where sensitive attributes are easily recoverable.
- Gradient Matching: To avoid the prohibitive cost of training a full deep neural network for every attack iteration, the framework "matches" gradients. It crafts poisoning samples such that the model's learning direction on those samples aligns with the direction that increases the FLD score.
- Stealth via Elastic-Net: To ensure the attack remains undetected, an Elastic-Net penalty is applied. This ensures that perturbations to the training data are sparse and remain within the distribution of clean data, making the poisoned samples appear natural.
Experimental Setup
The ENG attack was evaluated across four standard fairness benchmarks: Adult (income prediction/gender), German (creditworthiness/age), COMPAS (recidivism/race), and Drug Consumption (usage/ethnicity). The researchers tested the attack against four state-of-the-art FRL models, including adversarial approaches like CFAIR and variational autoencoder-based models like ICVAE.
Key Insights and Results
Fairness is Fragile
The most striking finding is the extreme vulnerability of FRL models. With as little as 5% poisoned data, the fairness constraints of these models often collapse. The attack successfully degrades fairness while maintaining a "subtle influence" on primary task accuracy, meaning a developer might see high performance and mistakenly assume their model is still fair.
Superiority of ENG
The ENG attack consistently outperformed existing baseline methods like "Anchor Attacks." While baselines often failed to significantly impact complex FRL models, ENG variants (ENG-FLD and ENG-sFLD) showed a clear and steady increase in unfairness as the poisoning ratio increased.
As shown in the results for the CFAIR victim model, the proposed ENG methods (solid lines) achieve a much higher "Decrease of BCE loss" for sensitive attribute prediction compared to baselines (dotted lines). A higher decrease in BCE loss signifies that the sensitive attribute has become significantly easier to predict from the representation, marking a successful attack.
Theoretical Foundations and Defenses
The paper provides a theoretical analysis (Theorem 3.4) calculating the minimum ratio of poisoning samples required for success based on learning rates and batch sizes. This analysis led to a practical discovery: reducing the training batch size can serve as a defense. Smaller batches introduce more stochastic noise into the gradient process, making it harder for the attacker's carefully aligned poisoning gradients to dominate the learning trajectory.
Conclusion and Future Work
This research highlights a critical security flaw in current fair representation learning techniques. While FRL is designed to be "blind" to sensitive features, it can be easily manipulated by adversarial data. Future work is needed to scale these attacks to high-dimensional data like images and text, and to develop more robust defense mechanisms specifically tailored to protect the integrity of fair representations.
Summary updated