GShield: Mitigating Poisoning Attacks in Federated Learning
Sameera K. M, Serena Nicolazzo, Antonino Nocera, Vinod P, Rafidha Rehiman K. A · 2025
Read GShield: Mitigating Poisoning Attacks in Federated Learning by Sameera K. M, Serena Nicolazzo, Antonino Nocera, Vinod P, Rafidha Rehiman K. A (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2512-19286.txt.
Introduction
Sameera M., Serena Nicolazzo, Antonino Nocera, and Vinod P. defend federated learning against poisoned updates. In federated learning, many clients train a shared model without sharing raw data. A malicious client can slip in crafted updates that drag the model down or bend it toward chosen errors.
Their shield, GShield, first learns what honest gradients look like, using clustering and Gaussian models in an opening round. Later updates are kept only if they fit that trusted pattern, which sidelines attackers and junk updates alike. The design targets the hard case where client data differ widely. A broad test campaign backs the defense, the authors report.
Catalog record
| CREATOR | Sameera K. M, Serena Nicolazzo, Antonino Nocera, Vinod P, Rafidha Rehiman K. A |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 45 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2512-19286
Browse the full library · About the Tower of Babel
Full text
The opening of the work, from the library's hosted text:
GShield: Mitigating Poisoning Attacks in Federated Learning Sameera K. M, Serena Nicolazzo, Antonino Nocera, Vinod P, Rafidha Rehiman K. A Abstract Federated Learning (FL) has recently emerged as a revolutionary approach to collaborative training Machine Learning models. In particular, it enables decentralized model training while preserving data privacy, but its distributed nature makes it highly vulnerable to a severe attack known as Data Poisoning. In such scenarios, malicious clients inject manipulated data into the training process, thereby degrading global model performance or causing targeted misclassification. In this paper, we present a novel defense mechanism called GShield, designed to detect and mitigate malicious and low-quality updates, especially under non-independent and identically distributed (non-IID) data scenarios. GShield operates by learning the distribution of benign gradients through clustering and Gaussian modeling during an initial round, enabling it to establish a reliable baseline of trusted client behavior. With this benign profile, GShield selectively aggregates only those updates that align with the expected gradient patterns, effectively isolating adversarial clients and preserving the integrity of the global model. An extensive experimental campaign demonstrates that our proposed defense significantly improves model robustness compared to the state-of-the-art methods while maintaining a high accuracy of performance across both tabular and image datasets. Furthermore, GShield improves the accuracy of the targeted class by 43 % 43\% to 65 % 65\% after detecting malicious and low-quality clients. December 2025 K eywords Federated Learning, Poisoning Attack, Privacy, Security. 1 Introduction Federated Learning (FL, hereafter) is a new paradigm that enables the collaborative training of Machine Learning models across multiple decentralized devices or organizations while ensuring that raw data remains local and private [ 12 ] . By transmitting only model updates rather than sensitive data, Federated Learning aims to preserve user privacy, reduce communication costs, and support compliance with data protection regulations. At the same time, it leverages the diversity and richness of distributed data sources to build models that are more robust, accurate, and applicable across a wide range of real-world applications. While this design significantly enhances data privacy, it also raises new security vulnerabilities that are less severe in centralized learning. One of the most critical threats in FL is the poisoning attack [ 21 , 18 ] . In this kind of attack, malicious or compromised clients deliberately manipulate their local training data or model updates to corrupt the global learning process. Due to the distributed and often open nature of FL systems, the server typically lacks direct visibility into client data or training procedures, making it difficult to verify the integrity of individual updates. As a result, poisoned updates can be aggregated into the global model, leading to degraded performance or malicious behavior. The challenge is particularly acute in realistic non-IID settings, where the natural heterogeneity of client data distributions causes benign updates to exhibit high variance. This variability significantly reduces the effectiveness of existing defense mechanisms, which often rely on simple distance-based outlier detection or robust aggregation rules that assume relatively homogeneous client behavior. As a result, poisoned updates can closely mimic legitimate ones, evade detection, and be aggregated into the global model, leading to degraded performance or targeted misclassification. These limitations motivate the need for a defense strategy that can accurately characterize benign client behavior under non-IID conditions and selectively filter malicious or low-quality contributions. To address this challenge, we propose GShield, a defense mechanism that learns the distribution of benign client gradients through clustering and Gaussian modeling during an initial trusted phase. By establishing a reliable baseline of expected gradient patterns, GShield enables the server to identify and isolate anomalous updates while preserving the contributions of honest clients, thereby maintaining both robustness and high model accuracy in adversarial federated environments. GShield operates in two distinct phases. During an initial Safe Round phase, the system assumes the absence of adversarial clients and collects gradient updates from participating clients. By applying cosine-similarity-based clustering, GShield identifies the dominant, high-density cluster of updates, which is presumed to represent benign behavior. Statistical characteristics of this cluster, specifically the mean and variance of similarity scores, are aggregated over multiple rounds to construct a Gaussian model that serves as a baseline representation of trusted client updates. This benign profile captures natural variability while filtering out outliers and low-quality contributions. In the subsequent Anomaly Detection phase, GShield evaluates incoming client updates by comparing their gradient similarity scores against the learned benign distribution. Updates that conform to this distribution are selectively aggregated, while those exhibiting significant deviation are excluded from the global model update. This selective aggregation mechanism enables GShield to effectively isolate malicious or unreliable clients, preventing poisoned updates from influencing the global model. As a result, GShield preserves both model accuracy and robustness, even in the presence of targeted label-flipping attacks and severe data heterogeneity. In our experimental evaluation, we compare the proposed GShield approach against several well-established and widely adopted defenses, including FLAME [ 14 ] , Krum [ 1 ] , Median [ 24 ] , and Trimmed Mean (TMean) [ 22 ] . These methods are commonly used as baselines in the Federated Learning literature due to their demonstrated effectiveness across a wide range of attack models and threat scenarios [ 20 , 3 , 23 ] . In line with this established evaluation practice, we include these representative techniques to ensure a fair, comprehensive, and consistent assessment of GShield’s robustness and performance. By grounding anomaly detection in a statistically learned benign baseline rather than rigid heuristics or global assumptions, GShield provides a principled and adaptive defense against targeted poisoning attacks in federated learning, ensuring reliable model convergence and improved resilience across diverse datasets and attack scenarios. In summary, the main contributions of this paper are as follows: • We propose GShield, a novel server-side defense for Federated Learning that mitigates targeted data poisoning attacks without requiring prior knowledge of adversaries, clean auxiliary data, or assumptions on client data distributions. • We introduce a statistically grounded approach that models benign client behavior through cosine-similarity-based clustering and Gaussian distribution learning, enabling reliable detection of malicious and low-quality updates under non-IID data. • We validate GShield through comprehensive experiments on tabular and image datasets, demonstrating superior robustness and significant improvements in targeted attack mitigation compared to state-of-the-art defenses. The outline of this paper is as follows. In Section 2 , we discuss the related papers in the state of the art. In Section 3 , we describe the concepts useful to understand our approach. Section 4 presents our approach defense altogether the threat model. In Section 5 , we present the experiments carried out to test our defense. Finally, Section 6 examines intriguing leads as future work and draws our conclusions. 2 Related Works Recently, robust aggregation methods have been employed during the server-side aggregation phase to enhance resilience against Poisoning Attacks. Traditional approaches like FedAvg [ 12 ] , which aggregate client updates using a simple arithmetic mean, have been shown to be vulnerable to such attacks. To address this, various robust aggregation techniques have been proposed to identify and mitigate the influence of malicious updates. For instance, the Median method replaces the mean with the element-wise median of client updates [ 24 ] , while the Trimmed Mean method