Introduction
Federated Learning (FL) has emerged as a paradigm for privacy-preserving machine learning, allowing multiple clients to collaboratively train a global model without sharing raw data. However, this collaborative nature introduces a significant security vulnerability: the internal evasion attack. Unlike external attackers who treat the model as a "black box," an internal malicious participant possesses a "white-box" view of the shared model weights. This "Insider Advantage" allows them to craft highly effective adversarial perturbations at test time, tricking the model into incorrect predictions.
The fundamental challenge lies in a security-utility trade-off. Standard FL (e.g., FedAvg) achieves high accuracy through collaboration but suffers from low robustness because all clients share the same model blueprint. Conversely, isolated local training offers better robustness—since an attacker cannot easily guess a specific local model—but results in poor accuracy due to limited data.
Methodology: pFedDef
To address this vulnerability, we propose pFedDef (Personalized Federated Defense), a framework that integrates personalized federated learning with adversarial training.
Personalized Federated Learning (PFL)
pFedDef utilizes a mixture-based framework known as FedEM. Instead of a single global model, it assumes the underlying data distribution is a mixture of several components. Each client learns a personalized combination of these components, creating a "grey-box" environment for attackers. While an adversary might know the general components, they lack the specific "recipe" (the unique weighting of components) used by a target victim, thereby reducing attack transferability.
Federated Adversarial Training (FAT)
To further harden the models, clients perform local adversarial training. During each training round, clients generate adversarial examples and incorporate them into their local datasets. This process "hardens" the decision boundaries against potential perturbations.
Robustness Propagation
Recognizing the hardware heterogeneity in FL environments, pFedDef introduces Robustness Propagation. Clients with abundant computational resources generate additional adversarial data to assist resource-constrained peers with similar data distributions. This ensures that even low-power devices benefit from the collective defense.
Experimental Evaluation
We evaluated pFedDef across four diverse benchmarks: CIFAR-10, CIFAR-100, CelebA (facial attribute classification), and FakeNewsNet (text classification using BERT embeddings). To simulate realistic FL scenarios, data was partitioned in a non-independent and identically distributed (non-i.i.d.) manner.
Key Results
The experimental results demonstrate that pFedDef effectively breaks the trade-off between accuracy and robustness.
Key findings include:
- Significant Robustness Gains: pFedDef achieved a 60% relative increase in internal attack robustness compared to standard federated adversarial training.
- Accuracy Preservation: On the CIFAR-10 dataset, while local training only reached 38% accuracy, pFedDef maintained a high 66% accuracy. In contrast, standard FedAvg showed 0% robustness against internal Projected Gradient Descent (PGD) attacks.
- Defense Against Advanced Threats: The framework proved resilient against multi-step PGD attacks, ensemble attacks involving multiple colluding adversaries, and Sybil attacks.
Conclusion and Future Work
pFedDef demonstrates that personalization is not only a tool for improving accuracy in heterogeneous environments but also a potent defensive mechanism. By diversifying model weights across the network, we can significantly mitigate the "Insider Advantage" of internal attackers.
Future research will focus on reducing the computational overhead of the mixture-based approach, potentially through "smart local tuning." Additionally, we aim to investigate the synergy between pFedDef and Byzantine-robust aggregation methods to provide a comprehensive defense against both training-time poisoning and test-time evasion.
Summary updated