TL;DR
This paper introduces FedGT, a novel framework for identifying and removing malicious clients in federated learning (FL) while maintaining data privacy through secure aggregation. By adapting principles from group testing, FedGT efficiently pinpoints compromised clients, leading to improved model utility and significantly outperforming existing robust aggregation methods.
What Problem Does This Paper Address?
Federated learning (FL) allows multiple devices to collaboratively train a machine learning model without sharing their raw data, preserving privacy. However, FL is vulnerable to poisoning attacks, where malicious clients inject corrupted data or model updates to degrade the global model's performance. Existing defenses often struggle to balance privacy and security, with robust aggregation methods sometimes masking malicious clients and anomaly detection methods potentially requiring access to individual client models, thus compromising privacy. This paper addresses the critical challenge of identifying and mitigating malicious clients in FL while upholding strong privacy guarantees, especially in cross-silo settings where the number of clients is moderate.
Methods
FedGT leverages the principles of group testing, a technique used to identify defective items in a large population by testing groups of items. The core idea is to divide the participating clients into overlapping groups. For each group, the server uses secure aggregation to obtain the aggregate model of clients within that group. A binary test is then applied to this aggregate model to determine if any malicious clients are present in the group.
The framework uses an assignment matrix (A) to define these overlapping groups. This matrix is analogous to the parity-check matrix of an error-correcting code, allowing for efficient decoding of the test results to identify malicious clients. Once identified, these clients are removed from the training process. FedGT offers two decoding strategies: FedGT-∆, which uses a Neyman-Pearson based inference, and FedGT-nm, which flags a specific number of clients based on estimated maliciousness. The paper also proposes a novel test design that clusters group aggregates based on utility and uses this to infer the presence of malicious clients, aiming for low error rates.
Datasets
The paper evaluates FedGT on three standard datasets:
- MNIST: A dataset of handwritten digits.
- CIFAR-10: A dataset of 10 object classes.
- ISIC2019: A dataset for skin lesion analysis, known for its heterogeneity.
The experiments are conducted in a cross-silo setting, with varying numbers of clients (15 and 30) and malicious clients.
Key Insights and Ideas
- Group Testing for FL Security: The paper ingeniously adapts group testing, a classical combinatorial problem, to the domain of federated learning security. This provides a novel lens for identifying malicious participants.
- Privacy-Security Trade-off Management: FedGT explicitly tackles the inherent trade-off between privacy and security in FL. By carefully designing group overlaps, it offers a tunable balance, achieving better security than full secure aggregation while maintaining a high level of privacy.
- Efficient Identification with Overlapping Groups: The use of overlapping groups is crucial. It allows for more efficient identification of malicious clients compared to non-overlapping schemes, as a single malicious client can be detected across multiple group tests, leading to a more robust identification process.
- Analogy to Error-Correcting Codes: The assignment matrix A is framed as a parity-check matrix of an error-correcting code. This analogy is powerful, suggesting that well-designed codes can lead to more effective and robust malicious client detection.
- Novel Test Design for Malicious Client Detection: The proposed test design, which clusters group aggregates based on utility and uses k-means, is a key innovation. It leverages the observation that malicious client aggregates might cluster differently, providing a more nuanced way to detect anomalies.
Key Results
- Improved Attack Accuracy Mitigation: FedGT significantly reduces attack accuracy across all tested datasets (MNIST, CIFAR-10, ISIC2019) under targeted label-flipping attacks, often outperforming the state-of-the-art RFA (Robust Federated Aggregation) protocol. For instance, with 5 malicious clients on CIFAR-10, FedGT-∆ reduced attack accuracy to 5.32%, compared to RFA's 25.16%.
- High Model Utility: FedGT achieves high model utility (top-1 or balanced accuracy), often closely matching the "oracle" (ideal scenario where malicious clients are known) and outperforming RFA, especially in heterogeneous settings like ISIC2019.
- Communication Efficiency: FedGT introduces a communication overhead only in the group testing round, which is significantly less than RFA, especially when considering multiple communication rounds.
- Robustness to Heterogeneity: FedGT demonstrates effectiveness even in heterogeneous data settings (ISIC2019), where it can sometimes outperform the oracle by identifying clients that, due to their data distribution, might negatively impact the global model.
- No Hyperparameter Tuning: A significant advantage is that FedGT, with its proposed decoding strategies, requires no hyperparameter tuning, making it easier to deploy.
Limitations and Future Work
- Test Noise Dependency: The performance of FedGT-∆ is sensitive to the test noise parameter 'p'. While the paper shows robustness to mismatches, accurately estimating 'p' can still be challenging. Future work could explore more sophisticated methods for estimating or adapting to test noise.
- ISIC2019 Heterogeneity Impact: In the ISIC2019 dataset, FedGT-nm sometimes outperforms FedGT-∆, and both can flag benign clients as malicious due to extreme heterogeneity. This highlights the challenge of distinguishing true maliciousness from data distribution anomalies. Future work could focus on better differentiating these cases.
- Scalability of Decoding: For very large assignment matrices A, computing a posteriori LLRs via the forward-backward algorithm becomes infeasible. The paper mentions suboptimal decoding strategies like belief propagation, suggesting this as a direction for future research.
- Generalization to Other Attacks: While the paper focuses on data-poisoning attacks, future work could investigate FedGT's effectiveness against other types of attacks, such as model poisoning or backdoor attacks.
Summary updated