FedDefender: Client-Side Attack-Tolerant Federated Learning

Sungwon Park, Sungwon Han, Fangzhao Wu, Sundong Kim, Bin Zhu, Xing Xie, Meeyoung Cha

TL;DR

FedDefender is a novel client-side defense for Federated Learning (FL) that protects benign clients from model poisoning attacks. By combining a "vaccination-like" meta-learning update with robust knowledge distillation from the global model, it allows clients to maintain high performance even when the central server fails to filter out malicious updates.

What Problem Does This Paper Address?

Federated Learning allows multiple clients to train a shared global model without ever sharing their raw data. While privacy-friendly, this decentralized nature makes it a prime target for model poisoning attacks, where malicious participants send "poisoned" updates to the central server to degrade the model's accuracy.

Current defenses typically live on the server side, using robust aggregation methods (like Trimmed Mean or Krum) to identify and discard outliers. However, these methods often fail in two scenarios:

  1. Non-IID Data: When clients have very different local datasets, a perfectly benign update can look like an outlier, causing the server to accidentally discard useful information.
  2. Advanced Attacks: Sophisticated attackers can craft updates that are subtle enough to bypass server-side filters but still damaging enough to corrupt the global model.

FedDefender addresses this by shifting the defensive burden to the client, empowering benign participants to train robust local models that are resilient to the influence of a potentially corrupted global model.

Methods

FedDefender introduces a two-step local training process for benign clients:

  1. Attack-Tolerant Local Meta Update: Think of this as a "vaccination" for the model. The client generates synthetic noise by flipping labels based on $k$-nearest neighbors in the feature space. It then performs a meta-update: it simulates how the model would react to this noise and optimizes the original parameters to be less sensitive to such perturbations. This process helps the model find "flat minima" in the loss landscape, which are inherently more robust to noise.
  2. Attack-Tolerant Global Knowledge Distillation: Usually, clients regularize their local training by distilling knowledge from the global model. But if the global model is poisoned, this just spreads the "infection." FedDefender mitigates this by:
  3. Distilling knowledge only to intermediate layers via an auxiliary classifier, as deeper layers are more prone to overfitting to malicious noise.
  4. Using a refinement strategy that weights global information based on its similarity to the client's ground-truth labels. If the global model's prediction is wildly different from the truth, the client ignores it.
Figure 2: The overall design of FedDefender framework. FedDefender comprises two steps: (1) attack-tolerant local meta-update, which finds local model parameters that are less prone to overfitting to noise, and (2) attack-tolerant global knowledge distillation, which aims to convey correct global knowledge from a potentially contaminated global model, regularizing the local model to mitigate data bias.

Datasets

The authors evaluated FedDefender across four standard image classification benchmarks, simulating non-IID conditions using a Dirichlet distribution:

  • CIFAR-10 & CIFAR-100: Standard object recognition datasets.
  • TinyImageNet: A more complex dataset with 200 classes.
  • FEMNIST: A federated version of the Extended MNIST dataset, featuring handwriting samples from different writers.

Key Insights and Ideas

  • Client-Side Agency: The most significant shift is the move from passive clients (who just send updates) to active defenders. By making local training robust, the system becomes resilient even if the central server is "tricked."
  • Vaccination via Meta-Learning: The idea that training on synthetic noise can prepare a model for malicious noise is a powerful application of meta-learning principles.
  • Selective Distillation: The authors recognize that not all parts of a neural network are equally vulnerable. By protecting the deeper layers from direct distillation and filtering global information, they prevent the "drift" that usually occurs during poisoning attacks.
  • Synergy: FedDefender isn't meant to replace server-side defenses but to work alongside them. It fills the gaps where aggregation strategies fail.

Key Results

FedDefender consistently outperformed existing baselines across various attack scenarios (including label flipping and advanced attacks like LIE and DYN-OPT).

  • Accuracy Boost: In label poisoning scenarios, adding FedDefender to existing server-side defenses increased classification accuracy by 17% to 20% across all tested datasets.
  • Robustness to Advanced Attacks: Even against sophisticated attacks designed to bypass server filters, FedDefender maintained stable performance where other methods collapsed.
Table 1: Performance improvement with FedDefender on clas- sification accuracy in Scenario-1 over four datasets. Our model brings non-trivial improvement for all server-side baseline algorithms for both last and best accuracy.

Limitations and Future Work

While FedDefender is a major step forward, the authors note some areas for further exploration:

  • Targeted Attacks: This paper focuses on untargeted attacks (meant to break the whole model). Defending against targeted "backdoor" attacks (where the model only fails on specific triggers) remains a separate challenge.
  • Computational Cost: Meta-learning and auxiliary classifiers increase the local computational load for clients. Optimizing this for resource-constrained edge devices (like mobile phones) is a likely next step.
  • Communication Overhead: While not explicitly detailed as a failure point, the added complexity of the local training might impact the time taken per communication round.

Summary updated

BibTeX
@misc{park2023feddefender,
  author = {Sungwon Park and Sungwon Han and Fangzhao Wu and Sundong Kim and Bin Zhu and Xing Xie and Meeyoung Cha},
  title = {{FedDefender: Client-Side Attack-Tolerant Federated Learning}},
  year = {2023},
  eprint = {2307.09048},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.09048},
}
Figure