G$^2$uardFL: Safeguarding Federated Learning Against Backdoor Attacks through Attributed Client Graph Clustering

Hao Yu, Chuan Ma, Meng Liu, Tianyu Du, Ming Ding, Tao Xiang, Shouling Ji, Xinwang Liu

TL;DR

G$^2$uardFL is a robust defense framework that safeguards Federated Learning (FL) against backdoor attacks by reinterpreting malicious client detection as an attributed graph clustering problem. By leveraging Graph Auto-Encoders to learn low-dimensional representations of client updates, it effectively filters out poisoned models and actively purifies the global model, maintaining high performance even when up to 50% of clients are compromised.

What Problem Does This Paper Address?

Federated Learning allows multiple parties to train a shared model without sharing their raw data. However, this privacy-preserving nature makes it a prime target for backdoor attacks. In these scenarios, a subset of malicious clients submits "poisoned" model updates designed to make the global model misclassify specific inputs (e.g., a car with racing stripes) while appearing normal on standard data.

Existing defenses often fall short for three reasons:

  1. High Dimensionality: Measuring similarity between raw model weights (which can have millions of parameters) is computationally expensive and often fails to capture subtle anomalies.
  2. Low Tolerance: Most current methods break down when more than 10% of the clients are malicious.
  3. Performance Trade-offs: Defenses often inadvertently reject benign updates, significantly degrading the accuracy of the primary task.

Methods

G$^2$uardFL introduces a four-stage pipeline to secure the aggregation process, as illustrated in the system flowchart:

Figure 1: The flowchart illustrates G2uardFL within the FL system. Each communication round comprises four sequential steps: local training, weight transmitting, global aggregating, and model broadcasting.
  1. Graph Construction: Instead of raw weights, the server extracts statistical features (mean, std, percentiles, etc.) and measures inter-client relationships using cosine similarity and $L_2$ norms. This creates an attributed graph where nodes are clients and edges represent their similarity.
  2. Graph Clustering: The framework uses Graph Auto-Encoders (GAEs) to compress high-dimensional client attributes into 32-dimensional latent representations. This allows the system to group clients into clusters based on their behavior rather than just their raw parameters.
  3. Dynamic Filtering and Clipping: It introduces a benign score—a historical metric that tracks how often a client appears in "trustworthy" (typically larger) clusters. This helps the server distinguish between benign and malicious clusters even when the number of attackers fluctuates.
  4. Adaptive Poison Eliminating (APE): This is a proactive purification step. The server separately aggregates a "normal" candidate model and a "poisoned" candidate model. It then adjusts the final global model's trajectory to move toward the normal candidate and away from the poisoned one.

Datasets

The authors evaluated G$^2$uardFL across four diverse tasks:

  • MNIST: Digit classification using LeNet.
  • CIFAR-10: Image classification using VGG-9.
  • Sentiment-140: Text sentiment analysis using LSTM.
  • Reddit: Next-word prediction using LSTM.

These tasks cover both image and textual data, providing a comprehensive look at how backdoors behave in different domains.

Key Insights and Ideas

  • Relational Intelligence: Traditional defenses treat clients as isolated points. By using a graph-based approach, G$^2$uardFL captures the context of how clients relate to one another, making it much harder for attackers to hide.
  • The Power of Low-D: The "aha moment" here is that anomalies are often clearer in a compressed latent space. The GAE acts as a filter that highlights the structural discrepancies introduced by poisoning.
  • Attacker Taxonomy: The paper categorizes poisoned weights into three types based on their angular and magnitude deviations from the global model (see Figure 2). G$^2$uardFL uses different distance metrics (cosine vs. $L_p$ norm) to target each specific type.
Figure 2: Flattened weights of client models. The two gray dashed lines represent the direction of the global model and its corresponding orthogonal direction, respectively.
  • Active Purification: Unlike passive filters that just drop bad updates, the APE module actively "unlearns" backdoors by pushing the model weights in a safer direction.

Key Results

G$^2$uardFL significantly outperforms state-of-the-art defenses like FLAME and DeepSight, especially in high-threat scenarios:

  • High Malicious Rate: In a CIFAR-10 setup with 25% malicious clients, G$^2$uardFL reduced the Attack Success Rate (ASR) to 10.61% while maintaining a primary task accuracy of 73.05%. In comparison, the best-performing baseline only achieved 19.54% accuracy.
  • Textual Robustness: Text tasks are notoriously hard to defend. On the Reddit dataset, G$^2$uardFL achieved a 0.00% ASR while maintaining standard accuracy, whereas most baselines failed to stop the attack entirely.
  • Scalability: The defense remains effective even when the number of clients participating in each round varies, a common challenge in real-world FL deployments.

Limitations and Future Work

  • Initial Convergence: The authors noted that starting the defense at the very beginning of training can slightly slow down initial convergence. They suggest initiating G$^2$uardFL after the global model has reached a baseline level of stability.
  • Computational Overhead: While the latent representations are low-dimensional, training the GAE at the server in every round adds a computational cost, though the authors argue this is manageable for modern orchestration servers.
  • Future Directions: The team plans to investigate even more sophisticated adaptive attacks where the attacker might try to specifically manipulate the graph clustering process itself.

Summary updated

Abstract

Federated Learning (FL) offers collaborative model training without data sharing but is vulnerable to backdoor attacks, where poisoned model weights lead to compromised system integrity. Existing countermeasures, primarily based on anomaly detection, are prone to erroneous rejections of normal weights while accepting poisoned ones, largely due to shortcomings in quantifying similarities among client models. Furthermore, other defenses demonstrate effectiveness only when dealing with a limited number of malicious clients, typically fewer than 10%. To alleviate these vulnerabilities, we present G$^2$uardFL, a protective framework that reinterprets the identification of malicious clients as an attributed graph clustering problem, thus safeguarding FL systems. Specifically, this framework employs a client graph clustering approach to identify malicious clients and integrates an adaptive mechanism to amplify the discrepancy between the aggregated model and the poisoned ones, effectively eliminating embedded backdoors. We also conduct a theoretical analysis of convergence to confirm that G$^2$uardFL does not affect the convergence of FL systems. Through empirical evaluation, comparing G$^2$uardFL with cutting-edge defenses, such as FLAME (USENIX Security 2022) [28] and DeepSight (NDSS 2022) [36], against various backdoor attacks including 3DFed (SP 2023) [20], our results demonstrate its significant effectiveness in mitigating backdoor attacks while having a negligible impact on the aggregated model's performance on benign samples (i.e., the primary task performance). For instance, in an FL system with 25% malicious clients, G$^2$uardFL reduces the attack success rate to 10.61%, while maintaining a primary task performance of 73.05% on the CIFAR-10 dataset. This surpasses the performance of the best-performing baseline, which merely achieves a primary task performance of 19.54%.
BibTeX
@misc{yu2023g,
  author = {Hao Yu and Chuan Ma and Meng Liu and Tianyu Du and Ming Ding and Tao Xiang and Shouling Ji and Xinwang Liu},
  title = {{G$^2$uardFL: 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