[Paper Review] Secure Federated Learning against Model Poisoning Attacks via Client Filtering
This paper proposes CosDefense, a client filtering defense for federated learning that detects and excludes malicious updates by computing cosine similarity between the global model's last-layer weights and each client's local update. It achieves robust performance—83.37% accuracy on MNIST—without requiring validation data, attacker count estimates, or historical client records, making it compatible with client sampling and resilient to data heterogeneity.
Given the distributed nature, detecting and defending against the backdoor attack under federated learning (FL) systems is challenging. In this paper, we observe that the cosine similarity of the last layer's weight between the global model and each local update could be used effectively as an indicator of malicious model updates. Therefore, we propose CosDefense, a cosine-similarity-based attacker detection algorithm. Specifically, under CosDefense, the server calculates the cosine similarity score of the last layer's weight between the global model and each client update, labels malicious clients whose score is much higher than the average, and filters them out of the model aggregation in each round. Compared to existing defense schemes, CosDefense does not require any extra information besides the received model updates to operate and is compatible with client sampling. Experiment results on three real-world datasets demonstrate that CosDefense could provide robust performance under the state-of-the-art FL poisoning attack.
Motivation & Objective
- To address the challenge of detecting and defending against model poisoning attacks in federated learning, where the server lacks access to raw client data.
- To overcome limitations of existing defenses that require validation data, prior client records, or exact attacker count estimates.
- To develop a lightweight, server-side defense that operates solely on model updates and is compatible with client sampling.
- To improve robustness against data heterogeneity and non-iid data partitions in real-world FL settings.
- To provide a practical, deployable defense mechanism that does not rely on complex assumptions or additional infrastructure.
Proposed method
- The method computes cosine similarity between the global model’s last-layer weights and each client’s local update to detect anomalies.
- Clients with significantly higher cosine similarity scores than the average are flagged as potentially malicious.
- The server filters out clients whose similarity scores exceed a threshold based on the mean score of all clients in the round.
- The threshold is dynamically computed using min-max normalization of current round similarity scores.
- Only benign clients (below threshold) contribute to model aggregation via FedAvg.
- The approach is compatible with client sampling and does not require historical data or validation sets.
Experimental results
Research questions
- RQ1Can cosine similarity between the last-layer weights of global and local models effectively detect malicious updates in federated learning?
- RQ2How does the proposed method perform under varying degrees of data non-iidness and client heterogeneity?
- RQ3Can the defense operate without requiring validation data, prior client records, or exact attacker count estimates?
- RQ4How does the method compare to existing robust aggregation techniques like Krum and Clipping-Median under poisoning attacks?
- RQ5Is the defense compatible with client sampling strategies used in practical federated learning systems?
Key findings
- CosDefense achieved 83.37% test accuracy on MNIST under a strong poisoning attack, significantly outperforming the no-defense baseline (9.8%) and Krum (9.8%).
- On Fashion-MNIST, CosDefense reached 67.63% accuracy, surpassing the no-defense baseline (10%) and Clipping-Median (21.24%).
- On CIFAR-10, CosDefense achieved 52.02% accuracy, outperforming the no-defense baseline (10%) and Clipping-Median (20.89%).
- The method demonstrated stable performance across varying non-iid data partitioning levels (q = 0.1, 0.3, 0.5), indicating robustness to data heterogeneity.
- CosDefense maintained high performance without requiring validation data, attacker count estimates, or historical client records, unlike prior methods.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.