Model poisoning is an attack in which an adversary directly manipulates model parameters or model updates, rather than only the training data, so that the resulting model behaves incorrectly or carries a hidden backdoor. In AI security, the term most often refers to federated learning poisoning, where malicious clients send crafted updates to the central server that aggregates contributions from many participants.
Model poisoning is more powerful than classic data poisoning because the attacker controls the gradient or weight update itself. A single malicious client can scale its update to dominate an aggregation round, and carefully constrained updates can evade simple anomaly checks while still implanting targeted behavior.
How model poisoning works in federated learning
In federated learning, the server sends a global model to selected clients, each client trains locally on its private data and returns an update, and the server aggregates the updates, typically by weighted averaging in the FedAvg algorithm. Model poisoning exploits the fact that the server cannot see the client data and cannot verify how an update was produced.
An attacker who controls one or more clients replaces honest updates with adversarially optimized updates. Because averaging is linear, a malicious update multiplied by a large factor can shift the global model almost arbitrarily, a technique known as model replacement or boosting. More subtle attackers keep the norm of their update close to benign updates so that it passes defenses.
The table below lists the main attacker capabilities and how each one affects the attack.
| Capability | What the attacker controls | Effect on attack strength |
|---|---|---|
| Single compromised client | One update per selected round | Limited unless updates are scaled |
| Sybil clients | Many fake identities | Can outvote robust aggregation rules |
| Knowledge of aggregation rule | Design of updates against the defense | Enables adaptive evasion |
| Knowledge of benign updates | Statistics of honest clients | Allows updates that look statistically normal |
| Persistent participation | Updates over many rounds | Keeps a backdoor alive despite dilution |
Types of model poisoning attacks
Model poisoning attacks fall into untargeted and targeted categories, distinguished by whether the attacker wants to degrade the model overall or to change its behavior only on chosen inputs.
| Attack type | Goal | Visibility in aggregate accuracy |
|---|---|---|
| Untargeted (Byzantine) poisoning | Reduce accuracy or prevent convergence | High: accuracy drops noticeably |
| Targeted misclassification | Mislabel specific inputs or classes | Low: overall accuracy stays similar |
| Backdoor attack | Trigger chosen behavior when a pattern appears | Very low: clean accuracy is preserved |
| Model replacement | Substitute the global model with an attacker model | Varies with scaling and timing |
Backdoor attacks are the most concerning in practice. The attacker trains locally on data containing a trigger pattern, such as a specific phrase or pixel patch, and constrains the update so that the main task accuracy stays intact. The backdoor then activates only when the trigger appears in production inputs.
Outside federated learning, model poisoning also describes tampering with distributed model weights, for example a modified checkpoint uploaded to a public model hub. This overlaps with AI supply chain security and model serialization attacks, which receive separate treatment.
Model poisoning compared with related attacks
Model poisoning belongs to the broader family of training-time attacks, as opposed to evasion attacks, which manipulate inputs at inference time. The comparison below clarifies where it sits.
| Attack | Point of manipulation | Typical attacker access |
|---|---|---|
| Model poisoning | Model updates or parameters | Participating client or weight distribution channel |
| Data poisoning | Training examples | Ability to insert or alter data |
| Label flipping attack | Training labels | Control over labeling or contributed labels |
| Evasion attack | Inputs at inference time | Query access to the deployed model |
| Memory or RAG poisoning | Stored context retrieved at runtime | Write access to memory or document stores |
Research consistently finds that, for the same number of compromised participants, model poisoning is stronger than data poisoning, because the attacker optimizes the update directly instead of hoping that local training on poisoned data produces the desired effect.
Defenses against model poisoning
Defenses aim to limit the influence of any single update and to detect updates that deviate from the honest majority. No single defense is sufficient, so production systems combine several layers.
| Defense | Mechanism | Main limitation |
|---|---|---|
| Norm clipping | Caps the magnitude of each update | Does not stop small, well-crafted backdoors |
| Coordinate-wise median or trimmed mean | Ignores extreme values per parameter | Weakens under non-IID client data |
| Krum and Multi-Krum | Selects updates closest to their neighbors | Assumes a bounded fraction of attackers |
| Differential privacy noise | Adds noise after clipping | Reduces model accuracy |
| Trusted root dataset | Scores updates against server-held clean data | Requires representative server data |
Operational controls matter as much as aggregation rules. Client authentication and attestation reduce Sybil attacks, anomaly monitoring over rounds detects persistent attackers, and backdoor testing of the global model with candidate triggers before release adds a final gate.
Limitations of current defenses
The central difficulty is that benign heterogeneity looks like an attack. When client data is non-IID, honest updates differ widely, and robust aggregation rules that discard outliers also discard legitimate minority contributions, which can harm fairness and accuracy.
- Adaptive attackers who know the defense can craft updates that stay within its acceptance region.
- Secure aggregation hides individual updates from the server, which protects privacy but blocks update inspection.
- Certified robustness guarantees exist only for bounded numbers of attackers and restricted threat models.
- Backdoors can persist for many rounds after the attacker stops participating.
The idea in brief
Model poisoning means sneaking bad changes into a shared model. Many devices help train one model together. Each sends small improvements to a central server. A dishonest device sends harmful changes instead.
Picture a group recipe where each cook adjusts the seasoning. One cook secretly adds something that ruins the dish only when it is served to a certain guest. Everyone else tastes nothing unusual. The defense is to limit how much any one cook can change and to check the result carefully.
A practical scenario
A smartphone keyboard team trains its next-word prediction model with federated learning across millions of devices, selecting a few thousand clients per round. A security review simulates an attacker who controls 50 rooted devices and wants the model to suggest a specific product name after a particular phrase.
In the simulation, the attacker scales its updates and implants the backdoor within a few rounds, while overall prediction accuracy changes by less than a tenth of a percentage point. The team then adds norm clipping with small differential privacy noise, device attestation and a release gate that tests the model against a library of candidate trigger phrases. In repeated simulations, the backdoor success rate falls to near zero, at the cost of a slight and accepted reduction in top-three suggestion accuracy.