# Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples

*Alexandra Souly, Javier Rando, Ed Chapman, Xander Davies, Burak Hasircioglu, Ezzeldin Shereen, Carlos Mougan, Vasilios Mavroudis, Erik Jones, Chris Hicks, Nicholas Carlini, Yarin Gal, Robert Kirk*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154663) · [OpenReview](https://openreview.net/forum?id=BxdDYMEfcZ) · [alphaXiv](https://www.alphaxiv.org/abs/2510.07192) · [Open on the map](../papers.html#p154663)

Category: [AI Safety, Security & Alignment](../pcat/16.md) › [Backdoor Detection in LLMs](../pgroup/441.md) · Type: empirical study · Keywords: data poisoning, large language models, security, robustness, model safety

Areas: [Safety & Security](../areas/safety.md) › Language Model Security › Backdoor security

## Summary
The paper shows that poisoning attacks on large language models require only about 250 malicious documents regardless of model size or dataset scale, indicating that data poisoning may be easier than previously thought.

## Explained to a 5-year-old
Big computer programs called language models learn from lots of words. Sometimes someone can sneak bad words into the learning material. This study shows that even if you only add a few bad words, the program can still get confused. It doesn't matter how big the program is or how many good words it has. This means keeping the program safe might be harder than we thought.

## Explained to a 5-year-old, longer
Computers can be taught to talk by reading many stories. If someone puts a bad story in the pile, the computer might learn something wrong. Usually people think you need a lot of bad stories to change the computer. This research shows that only a few bad stories are enough, even for the biggest computers. It works whether the computer is small or huge. The same trick works when the computer is being fine-tuned for a specific job. This makes protecting the computer more difficult. It means we need to be extra careful about what we teach computers. Even a handful of bad examples can cause trouble. So we should check the learning material very well. The findings apply to many types of language computers. They remind us that safety is important in building smart machines.

## For a technical reader
The authors pre-trained models ranging from 600 M to 13 B parameters on datasets from 6 B to 260 B tokens and injected varying numbers of poisoned documents. They observed that roughly 250 malicious documents consistently compromised model behavior across all scales, even when the largest models saw over 20× more clean data. The same constant-size effect was reproduced during fine-tuning, suggesting that poisoning risk does not grow with model size. These findings imply that defenses must assume a small but potent set of poisoned samples can affect even the biggest models.

## Problem
Existing research assumes that the number of poisoned training documents needed to compromise a model scales with the size of the training data. This paper investigates whether a constant number of poisoned documents can still compromise large language models regardless of dataset size.

## Method
The authors conduct extensive pretraining poisoning experiments across model sizes from 600M to 13B parameters and datasets ranging from 6B to 260B tokens, injecting varying numbers of poisoned documents. They evaluate attack success across these scales and also examine factors such as broader poison ratios and non-random placement of poisoned samples. Additionally, they replicate the analysis for fine-tuning scenarios.

## Results
The study finds that only about 250 poisoned documents are sufficient to compromise models across all sizes, even when the largest models train on more than 20 times more clean data. Attack success does not increase with larger models or larger datasets, indicating a near-constant poison requirement.

## Contributions
It is the first work to demonstrate that poisoning attacks require a near-constant number of documents regardless of model or dataset size, covering both pretraining and fine-tuning. The findings highlight a potential underestimation of poisoning risk for future large models.

## Practical relevance
The results suggest that future large models may be vulnerable to relatively small poisoning attacks, urging urgent development of robust defenses.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/154663)
