TL;DR
This paper introduces DataDefense, a novel approach to combatting sophisticated "edge-case" model poisoning attacks in Federated Learning (FL). By leveraging a small, curated defense dataset, DataDefense effectively learns to identify malicious client updates and defend the global model, even when traditional defenses fail.
What Problem Does This Paper Address?
Federated Learning (FL) allows multiple clients to collaboratively train a global model without sharing their raw data, preserving privacy. However, FL systems are vulnerable to model poisoning attacks, where malicious clients inject corrupted updates to compromise the global model. Edge-case attacks are particularly insidious because they target a tiny fraction of the input space, making them extremely difficult to detect with existing methods. These attacks can lead to subtle backdoors in the model, which are only triggered under specific, rare conditions, making them hard to identify during standard testing. The paper aims to bridge this gap by proposing a defense mechanism that can effectively counter these hard-to-detect, targeted poisoning attacks.
Methods
DataDefense employs a two-pronged strategy, learning two key models simultaneously:
- Poisoned Data Detector (PDD): This model, denoted by $\gamma(\psi)$, learns to score data points in a defense dataset ($D_d$) as either poisoned or clean. It uses a novel cost function that compares the predicted probabilities of a data point being poisoned with the model's actual loss on that point. The PDD is trained using a combination of a ranking loss and a standard cross-entropy loss on known clean data.
- Client Importance Model (CI): This model, denoted by $C(\phi, \theta)$, learns to assign importance weights to each client's model update. It uses features derived from the client's performance on the defense dataset (both clean and poisoned portions) and its deviation from the global model. These weights are then used to perform a weighted average of client updates for the global model update, effectively down-weighting malicious clients.
These two models are trained jointly using an alternating minimization strategy over FL rounds. The defense dataset ($D_d$) is crucial, containing a mix of poisoned and clean examples, with only a small subset ($D_{clean}$) known to be truly clean. The PDD first labels the unknown examples in $D_d$ as poisoned or clean, which then informs the CI model.
Datasets
The paper utilizes several standard datasets for evaluation:
- CIFAR-10: Used for various attack scenarios, including label flip, Southwest (backdoor), and trigger patch attacks.
- CIFAR-100: Used for trigger patch attacks.
- EMNIST: Used for digit classification with backdoor attacks.
- Sentiment140: Used for sentiment analysis with backdoor attacks.
The authors also construct specific attacker datasets for each scenario, often involving manually crafted poisoned examples (e.g., adding trigger patches, flipping labels). A defense dataset ($D_d$) is created for the DataDefense method, consisting of a mix of poisoned and clean examples, with a small subset ($D_{clean}$) explicitly marked as clean.
Key Insights and Ideas
- Leveraging a "Hint" Dataset: The core idea is that a small, curated defense dataset, even with imperfect labels for most examples, can provide enough signal to detect sophisticated attacks that evade other methods.
- Joint Learning is Key: The effectiveness of DataDefense stems from the synergistic learning of the Poisoned Data Detector and the Client Importance Model. One informs the other, creating a feedback loop that improves defense over time.
- Edge-Case Attacks are a Real Threat: The paper highlights the significant challenge posed by edge-case attacks, which are designed to bypass robust aggregation methods by targeting specific, rare input patterns.
- Minimal Defense Data Required: DataDefense demonstrates remarkable effectiveness even with a very small number of defense examples (as few as five), making it practical to deploy.
- Preserving Model Accuracy: A critical finding is that DataDefense effectively reduces attack success rates without significantly compromising the accuracy of the global model.
Key Results
- DataDefense significantly reduces attack success rates (ASR) compared to state-of-the-art defenses. For instance, it achieves an ASR of 0.01% on CIFAR-10 Label Flip, compared to 27.56% for "No Defense."
- On CIFAR-10 Trigger Patch, DataDefense achieves an ASR of 2.04%, while other defenses like RFA and NDC have ASRs of 97.45% and 97.45%, respectively.
- The method is effective even with a small defense dataset, showing a low ASR (around 3.87%) with only five poisoned examples.
- The paper demonstrates that DataDefense can defend against various attack types, including PGD with and without model replacement, and is robust to variations in trigger size and transparency.
Limitations and Future Work
- Defense Dataset Construction: While DataDefense requires a small defense dataset, its effectiveness relies on the quality and representativeness of this dataset. The paper acknowledges that the defense dataset might not perfectly capture all possible attack variations.
- Future Work: The authors propose to include poisoned examples in the defense dataset that do not necessarily follow the distribution of the attacker's poisoned samples. They also aim to develop defenses capable of mitigating multiple simultaneous backdoor attacks.
Summary updated