PFAttack: Stealthy Attack Bypassing Group Fairness in Federated Learning

Jiashi Gao, Ziwei Wang, Xiangyu Zhao, Xinming Shi, Xin Yao, Xuetao Wei

TL;DR

While federated learning (FL) increasingly incorporates group fairness mechanisms to prevent biased decision-making, this paper introduces PFAttack (Profit-driven Fairness Attack), the first stealthy attack designed to bypass these fairness constraints. By using a novel Inverse-Debiasing fine-tuning technique, a malicious insider can secretly restore model bias to reclaim accuracy profits or cause ethical disruption, all while completely evading standard Byzantine-resilient defenses.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a global machine learning model without sharing their raw data. To ensure these models don't perpetuate societal biases, recent frameworks integrate group fairness mechanisms to make unbiased decisions across different populations (e.g., minimizing disparities based on race or gender).

However, fairness often comes at a cost: there is an inherent trade-off between a model's fairness and its accuracy. Participants who prioritize raw performance over ethical standards might be motivated to bypass these fairness constraints to maximize their own "accuracy profit."

While prior research has extensively covered attacks that degrade a model's accuracy (like data poisoning or backdoors), the vulnerability of group fairness mechanisms remained unexplored. This paper addresses a critical question: Can an attacker secretly subvert fairness mechanisms to create a biased global model without degrading its overall accuracy?

Methods

The authors introduce PFAttack, an adversarial strategy that executes a global model replacement to bypass fairness mechanisms. The attack consists of two main components:

  1. Inverse-Debiasing (ID) Fine-Tuning: Standard debiasing algorithms weaken the model's dependence on sensitive attributes. A naive attacker might try to reverse this by simply maximizing fairness loss, but this leads to overfitting and severe accuracy drops. Instead, ID Fine-Tuning subtly adjusts the training objective on the attacker's local data. It strengthens or weakens the fitting degree for specific protected groups inversely to how the fair FL framework originally altered them, indirectly restoring bias through correlated general attributes.
  2. Aggregation Weight Estimation: Many fair FL frameworks dynamically adjust client aggregation weights based on local fairness metrics. Because this server-side mechanism is a black box to clients, PFAttack uses a two-step probing strategy. The attacker sends an initial update with a random weight, observes the resulting global model in the next round, and mathematically estimates the exact aggregation weight to execute a precise model replacement.
Figure 1: The overall framework of PFATTACK, with the attack goal of bypassing the fairness mechanisms in fair FL. The core module in PFATTACK is local Inverse-Debiasing (ID) Fine-Tuning, by which the attacker constructs a malicious model relearning the bias removed in fair FL. The Aggregation Weight Estimation module estimates the latest aggregation weight in fairness-aware aggregation, ensuring more precise attack launching.

Datasets

The authors evaluated PFAttack using real-world data from the American Community Survey Public Use Microdata Sample (ACS PUMS) database (2022 data), focusing on two distinct prediction tasks across 51 clients (representing US states):

  • ACSPublicCoverage: Predicting whether low-income individuals under 65 qualify for public health insurance.
  • ACSIncome: Predicting whether an individual's income exceeds $50,000.

In both tasks, Race ("white" vs. "non-white") was treated as the protected sensitive attribute.

Key Insights and Ideas

  • The Stealth of Fairness Subversion: Traditional accuracy-targeted attacks drastically alter model parameters, making them easy to spot. Because PFAttack only shifts how the model handles sensitive groups while preserving overall accuracy, the parameter variations are incredibly subtle.
Figure 4: Layer weights of the global model: (a) before launching an attack, (b) after launching an accuracy-targeted attack, and (c) after launching PFAT T A C K.
  • Exploiting the Causal Path: Group fairness attempts to sever the causal link between sensitive attributes ($S$) and outputs ($Y'$). PFAttack succeeds by recognizing that it can restore this bias indirectly through general attributes ($X_2$) that depend on the sensitive attribute, rather than just brute-forcing a direct correlation.
Figure 2: The causal relation between input and output during debiasing and undebiasing.

Key Results

The authors tested PFAttack against four state-of-the-art fair FL frameworks (combining local debiasing like FairBatch/FairReg with fairness-aware aggregation like FairFed/f-qFedAvg).

  • Successful Bias Restoration: Across all frameworks, PFAttack successfully drove the Demographic Parity (DP) metric back up to levels near the unfair baseline (FedAvg). For instance, on the ACSPublicCoverage task under the FairBatch+FairFed framework, the DP bias metric jumped from a fair 0.007 up to a biased 0.033 after the attack.
  • Accuracy Preservation/Improvement: True to its "profit-driven" name, the attack maintained or slightly improved global model accuracy while re-introducing bias.
  • Defeating Byzantine Defenses: PFAttack proved highly robust against standard anomaly-detection aggregation methods. Defenses like Trimmed Mean, Trimmed Median, and Krum completely failed to filter out the malicious updates due to the subtle nature of the parameter modifications.

Limitations and Future Work

The authors acknowledge that PFAttack exposes a glaring blind spot in current federated learning security. Existing Byzantine-resilient defenses are fundamentally designed to detect accuracy-targeted anomalies (e.g., large weight deviations or sudden performance drops). Because PFAttack maintains high accuracy and introduces minor parameter variations, it easily slips past them.

The paper concludes that future work must shift toward developing specialized, fairness-aware defense mechanisms capable of auditing and detecting subtle manipulations targeting ethical constraints rather than just raw performance metrics.

Summary updated

BibTeX
@misc{gao2024pfattack,
  author = {Jiashi Gao and Ziwei Wang and Xiangyu Zhao and Xinming Shi and Xin Yao and Xuetao Wei},
  title = {{PFAttack: Stealthy Attack Bypassing Group Fairness in Federated Learning}},
  year = {2024},
  eprint = {2410.06509},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.06509},
}
Figure