Model poisoning

Also known as: federated learning poisoning

On this page 7

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.

CapabilityWhat the attacker controlsEffect on attack strength
Single compromised clientOne update per selected roundLimited unless updates are scaled
Sybil clientsMany fake identitiesCan outvote robust aggregation rules
Knowledge of aggregation ruleDesign of updates against the defenseEnables adaptive evasion
Knowledge of benign updatesStatistics of honest clientsAllows updates that look statistically normal
Persistent participationUpdates over many roundsKeeps a backdoor alive despite dilution
Attacker capabilities in model poisoning

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 typeGoalVisibility in aggregate accuracy
Untargeted (Byzantine) poisoningReduce accuracy or prevent convergenceHigh: accuracy drops noticeably
Targeted misclassificationMislabel specific inputs or classesLow: overall accuracy stays similar
Backdoor attackTrigger chosen behavior when a pattern appearsVery low: clean accuracy is preserved
Model replacementSubstitute the global model with an attacker modelVaries with scaling and timing
Main categories of model poisoning

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 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.

AttackPoint of manipulationTypical attacker access
Model poisoningModel updates or parametersParticipating client or weight distribution channel
Data poisoningTraining examplesAbility to insert or alter data
Label flipping attackTraining labelsControl over labeling or contributed labels
Evasion attackInputs at inference timeQuery access to the deployed model
Memory or RAG poisoningStored context retrieved at runtimeWrite access to memory or document stores
Model poisoning and neighboring attacks

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.

DefenseMechanismMain limitation
Norm clippingCaps the magnitude of each updateDoes not stop small, well-crafted backdoors
Coordinate-wise median or trimmed meanIgnores extreme values per parameterWeakens under non-IID client data
Krum and Multi-KrumSelects updates closest to their neighborsAssumes a bounded fraction of attackers
Differential privacy noiseAdds noise after clippingReduces model accuracy
Trusted root datasetScores updates against server-held clean dataRequires representative server data
Common defenses and their trade-offs

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.