G2uardFL: Safeguarding Federated Learning Against Backdoor Attacks through Attributed Client Graph Clustering

Hao Yu, Chuan Ma, Meng Liu, Xinwang Liu, Zhe Liu, Ming Ding · DOI

TL;DR

This paper introduces G²uardFL, a novel framework that safeguards Federated Learning (FL) systems against backdoor attacks by treating malicious client detection as a graph clustering problem. By analyzing client model attributes and relationships, G²uardFL effectively identifies and neutralizes malicious clients, significantly reducing attack success rates while preserving the performance of the global model on legitimate tasks.

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to collaboratively train a machine learning model without sharing their raw data, preserving privacy. However, this decentralized nature makes FL susceptible to backdoor attacks. In these attacks, a malicious actor compromises a subset of clients and injects poisoned model weights during the training process. The goal is to subtly alter the global model's behavior, causing it to make specific, attacker-desired predictions on certain inputs (e.g., misclassifying images with a specific trigger pattern).

Existing defenses often struggle with this problem. Many rely on anomaly detection, which can mistakenly flag legitimate client updates as malicious or, conversely, fail to detect poisoned ones. This is often due to an inadequate understanding of the similarities and relationships between client models. Furthermore, many current defenses are only effective when the number of malicious clients is very small (less than 10%), making them vulnerable to more sophisticated attacks with a higher percentage of compromised clients.

Methods

G²uardFL tackles these challenges by reframing the problem as an attributed graph clustering task. Here's a breakdown of its key components:

  • Graph Construction: Instead of solely relying on high-dimensional model weights, G²uardFL extracts lower-dimensional client attributes. These attributes capture statistical characteristics of both model weights and their updates. It then constructs an attributed graph where clients are nodes and edges represent their relationships, evolving over communication rounds.
  • Graph Clustering: This module uses graph-based clustering techniques (specifically, Graph Auto-Encoders with GCNs) to learn more representative latent representations of clients. This allows for more accurate grouping of clients with similar characteristics, effectively segregating benign from potentially malicious clusters. A key innovation here is the ability to handle a varying number of clients in each round.
  • Dynamic Filtering and Clipping: This component identifies malicious clusters by introducing a benign score. This score combines historical and current detection results, helping to pinpoint clusters that consistently exhibit malicious behavior, even if they are a minority. It then filters out identified malicious clients and clips their influence on the global model.
  • Adaptive Poison Eliminating: This novel module addresses the issue of previously embedded backdoors. It aggregates normal and poisoned global models separately and then adaptively adjusts the direction of the new global model to widen the divergence from poisoned models, effectively neutralizing lingering backdoors.

Datasets

The paper evaluates G²uardFL on four standard datasets:

  • MNIST: For digit classification (using a LeNet architecture).
  • CIFAR-10: For image classification (using a VGG-9 architecture).
  • Sentiment-140: For sentiment analysis (using an LSTM).
  • Reddit: For next-word prediction (using an LSTM).

The authors also mention using backdoored versions of these datasets for evaluation, often by manipulating specific classes or labels (e.g., labeling images of planes as trucks).

Key Insights and Ideas

  • Graph Clustering for Security: The core idea of using attributed graph clustering to identify malicious clients is a novel approach in FL security, moving beyond traditional anomaly detection.
  • Low-Dimensional Attributes are Key: Relying solely on high-dimensional model weights is insufficient for accurate detection. Extracting meaningful, lower-dimensional statistical attributes is crucial.
  • Benign Scores for Robustness: The introduction of "benign scores" that combine historical and current data is a clever way to handle the dynamic nature of FL and the fluctuating presence of malicious clients.
  • Adaptive Poison Elimination: The ability to actively remove previously embedded backdoors is a significant advancement, addressing a persistent challenge in FL security.
  • Trade-off Management: G²uardFL demonstrates a strong ability to mitigate backdoor attacks while maintaining a negligible impact on the primary task performance, a critical balance for practical FL deployment.

Key Results

  • High Attack Success Rate Reduction: In an FL system with 25% malicious clients, G²uardFL reduced the attack success rate to 10.61%, while maintaining a primary task performance of 73.05% on CIFAR-10. This significantly outperformed the best baseline, which achieved only 19.54% primary task performance.
  • Effective Malicious Client Detection: G²uardFL consistently achieved F1 Scores exceeding 78% across various datasets for malicious client detection.
  • Robustness: The framework showed strong robustness against various backdoor attacks, including typical, adaptive, and data heterogeneity scenarios.
  • Minimal Impact on Primary Task: G²uardFL demonstrated a negligible impact on the aggregated model's performance on benign samples, a crucial aspect for real-world deployment.
  • Theoretical Convergence: The paper provides theoretical analysis confirming that G²uardFL does not negatively affect the convergence of FL systems.

Limitations and Future Work

  • Initial Performance Drop: The paper acknowledges a slight reduction in primary task performance when G²uardFL is initiated at the very beginning of FL training. However, they suggest this can be mitigated by prudently starting the defense once the global model has converged.
  • Data Heterogeneity Impact: While G²uardFL is robust to data heterogeneity, extreme cases (e.g., very few samples per client) can still pose challenges, potentially leading to a higher attack success rate if poisoned weights are mistakenly accepted.
  • Future Work: The authors suggest future research could focus on investigating methods to further enhance G²uardFL's effectiveness and defend against even more powerful backdoor attacks.

Summary updated

BibTeX
@misc{yu2023g,
  author = {Hao Yu and Chuan Ma and Meng Liu and Xinwang Liu and Zhe Liu and Ming Ding},
  title = {{G2uardFL: Safeguarding Federated Learning Against Backdoor Attacks through Attributed Client Graph Clustering}},
  year = {2023},
  eprint = {2306.04984},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.04984},
}
Figure