FedGT: Identification of Malicious Clients in Federated Learning with Secure Aggregation

Marvin Xhemrishi, Johan Östman, Antonia Wachter-Zeh, Alexandre Graell i Amat

TL;DR

FedGT is a novel framework that uses the principles of group testing to identify and remove malicious clients in Federated Learning (FL) without sacrificing privacy. By testing overlapping groups of client updates rather than individual ones, it successfully balances the fundamental trade-off between secure aggregation (privacy) and anomaly detection (security).

What Problem Does This Paper Address?

Federated Learning (FL) allows multiple clients to train a global model collaboratively without sharing their raw data. However, it faces two major hurdles:

  1. Privacy: Servers can sometimes infer private data from individual model updates (model-inversion attacks). To prevent this, Secure Aggregation (SecAgg) is used, ensuring the server only sees the sum of updates, not individual ones.
  2. Security: FL is highly vulnerable to poisoning attacks, where malicious clients submit corrupted updates to degrade the model or introduce specific backdoors.

The catch? SecAgg makes security much harder. If the server only sees the aggregate, it can't easily spot the "bad apples" hidden in the mix. Existing defenses either require seeing individual updates (violating privacy) or use robust aggregation methods (like the geometric median) that often perform poorly when client data is heterogeneous (non-IID). FedGT aims to bridge this gap.

Methods

The core innovation of FedGT is applying group testing to FL. Instead of testing each client individually (non-private) or all clients at once (private but insecure), FedGT tests overlapping subgroups.

  1. Group Assignment: Clients are assigned to $m$ overlapping groups based on an assignment matrix $A$. This can be visualized as a bipartite graph (see Figure 2). Bipartite graph showing how 5 clients are assigned to 2 overlapping groups.

  2. Secure Group Aggregation: For each group, the server receives only the aggregated update via a SecAgg protocol.

  3. Group Testing: The server runs a binary test on each group aggregate. The authors propose a test that combines model utility (evaluated on a small validation set) and Principal Component Analysis (PCA). Malicious updates tend to cluster together in the PCA space, allowing the server to flag "poisoned" groups.
  4. Decoding: Once the server has a vector of group test results, it needs to figure out which individual clients are malicious. This is treated as an inference problem. The authors use a trellis representation of the assignment matrix (Figure 3) and the forward-backward algorithm to efficiently decode the most likely malicious candidates. Trellis representation used for efficient decoding of malicious clients.

  5. Removal: Identified malicious clients are excluded, and the global model is updated using only the remaining benign clients.

Fig. 2: The bipartite graph of the matrix A in Example 1. The circles represent variable nodes and the squares represent check nodes.
Fig. 3: Trellis representation of matrix A in Example 1. The dashed edges correspond to the symbol “0”, while the solid edges correspond to the symbol “1”.

Datasets

The authors evaluated FedGT across three diverse datasets in a cross-silo setting (where the number of clients is moderate, e.g., 15 to 30):

  • MNIST: The classic handwritten digit dataset.
  • CIFAR-10: A standard image classification benchmark (objects, animals).
  • ISIC2019: A real-world medical dataset of skin lesion images, characterized by high data heterogeneity (non-IID) across different acquisition systems.

Key Insights and Ideas

  • The Privacy-Security Dial: FedGT introduces a tunable trade-off. By adjusting group size and overlap, developers can choose exactly how much privacy they are willing to trade for better detection capabilities.
  • Group Testing as a Privacy Shield: Group testing is traditionally about efficiency (fewer tests). Here, it's repurposed for privacy. Because the server only sees group aggregates, individual privacy is maintained at a level equivalent to a SecAgg scheme involving $r$ clients (where $r$ is the minimum Hamming weight of the code's row span).
  • PCA for Anomaly Detection in Aggregates: A key "aha" moment is that the clustering behavior of malicious updates observed in prior work still holds true even when those updates are aggregated into groups, provided the groups are small enough.

Key Results

FedGT significantly outperformed existing private defenses like Robust Federated Aggregation (RFA) across multiple scenarios.

  • Attack Mitigation: In a targeted label-flipping attack on CIFAR-10 with 15 clients (5 malicious), FedGT reduced attack accuracy from nearly 40% (no defense) to approximately 5%, performing very close to an "oracle" that knows the malicious identities perfectly. Graph showing FedGT significantly reducing attack accuracy compared to RFA and no defense.

  • Heterogeneity Resilience: On the highly non-IID ISIC2019 dataset, where RFA often fails, FedGT remained effective, even identifying benign clients whose extreme data heterogeneity was harming the global model.

  • Efficiency: FedGT requires significantly lower communication overhead than RFA, which requires multiple rounds of secure aggregation per training step.
Fig. 1: Attack accuracy on a cross-silo setting with n = 15 clients on the CIFAR10 dataset for varying number of malicious clients, nm, conducting a label-flip targeted attack.

Limitations and Future Work

  • Scalability: The current study focuses on "cross-silo" FL with dozens of clients. Extending the trellis-based decoding to "cross-device" FL with thousands or millions of clients would require more computationally efficient (though perhaps suboptimal) decoding strategies like belief propagation.
  • Complex Attacks: While tested against data poisoning, the framework's effectiveness against more sophisticated, adaptive model-poisoning attacks remains an open question.
  • Validation Data: The proposed test relies on the server having a small, clean validation dataset. While common in research, this might not always be available in all real-world FL deployments.

Summary updated

BibTeX
@article{xhemrishi2023fedgt,
  author = {Marvin Xhemrishi and Johan Östman and Antonia Wachter-Zeh and Alexandre Graell i Amat},
  title = {{FedGT: Identification of Malicious Clients in Federated Learning with Secure Aggregation}},
  journal = {IEEE Trans. Inf. Forensics Secur.},
  year = {2023},
}
Figure