TL;DR
This paper introduces FedDefender, a novel client-side defense mechanism for federated learning that enhances robustness against model poisoning attacks. By employing attack-tolerant local meta-updates and global knowledge distillation, FedDefender empowers individual clients to train more resilient models, even when server-side defenses fail to filter out malicious updates.
What Problem Does This Paper Address?
Federated learning (FL) is a powerful paradigm for training machine learning models on decentralized data while preserving user privacy. However, FL systems are vulnerable to model poisoning attacks, where malicious clients inject corrupted model updates to degrade the global model's performance. Existing defenses primarily focus on the server-side, using robust aggregation techniques to filter out malicious updates. While effective to some extent, these server-side approaches can struggle with non-IID data distributions, where benign and malicious updates can become indistinguishable. Furthermore, sophisticated attacks can bypass these defenses. This paper addresses the critical need for client-side defenses that can bolster the resilience of individual clients, making the entire FL system more robust against these persistent threats.
Methods
FedDefender introduces two core client-side components:
- Attack-Tolerant Local Meta Update: This technique "vaccinates" the local model against noisy updates. It involves creating a synthetic batch of data with artificially introduced label noise (by transferring labels from k-nearest neighbors) and performing a meta-update. This process helps the model learn parameters that are more tolerant to noise, preventing it from being overly influenced by malicious inputs.
- Attack-Tolerant Global Knowledge Distillation: When the global model is potentially corrupted (due to failed server-side filtering), this component distills knowledge from it into the local model in a robust manner. It uses an auxiliary classifier on intermediate layers to avoid overfitting to noise and employs a calibration mechanism to refine the target probabilities from the global model, ensuring that only reliable information is transferred. An auxiliary self-knowledge distillation step further regularizes the local model.
These components are designed to work in conjunction with existing server-side defense strategies, offering a layered defense.
Datasets
The paper evaluates FedDefender on four standard image classification benchmark datasets:
- CIFAR-10: 10 classes, 32x32 images.
- CIFAR-100: 100 classes, 32x32 images.
- TinyImageNet: 200 classes, 64x64 images.
- FEMNIST: A dataset of handwritten digits and characters.
The non-IID nature of federated learning is simulated using the Dirichlet distribution for CIFAR-10, CIFAR-100, and TinyImageNet.
Key Insights and Ideas
- Client-side defense is crucial: Relying solely on server-side defenses is insufficient, especially in non-IID settings or against advanced attacks. Empowering clients directly is a vital strategy.
- "Vaccination" for robustness: The meta-learning approach to introduce synthetic noise acts like a vaccination, making the local model more resilient to future noisy inputs.
- Distilling knowledge carefully: Directly distilling from a potentially corrupted global model can be detrimental. FedDefender's calibrated distillation, focusing on intermediate layers and refining target probabilities, is key to extracting useful information without amplifying errors.
- Synergistic defense: FedDefender significantly boosts the performance of existing server-side defenses, demonstrating the value of a combined approach.
Key Results
- FedDefender consistently improves classification accuracy when applied on top of various server-side defense baselines (Median, Trimmed Mean, Norm Bound, Multi-Krum, ResidualBase).
- In label poisoning attack scenarios (Scenario 1), FedDefender achieved accuracy improvements of 17-20% across CIFAR-10, CIFAR-100, TinyImageNet, and FEMNIST datasets when combined with server-side strategies.
- Against advanced attacks like LIE, STAT-OPT, and DYN-OPT (Scenario 2), FedDefender also demonstrated significant performance gains, outperforming server-side defenses alone.
- Ablation studies show that both the local meta-update and the attack-tolerant knowledge distillation components are essential for FedDefender's effectiveness. Removing or altering them leads to a performance drop.
- Qualitative analysis shows that FedDefender's local meta-update leads to a smoother and more robust accuracy surface, indicating flatter minima in the loss landscape.
Limitations and Future Work
- Assumptions: The defense assumes the central server is trustworthy and that benign clients follow the protocol.
- Computational Overhead: While designed for client-side efficiency, the meta-update and distillation steps introduce some computational overhead for individual clients.
- Future Work: The authors suggest that their work can serve as a foundation for further research into client-side robust federated learning. The paper also highlights the need for defenses that can handle more complex attack scenarios and data distributions.
Summary updated