The quality of an AI model depends on the quality of its training data. If an attacker can insert incorrect or malicious data into the training corpus, they have the potential to skew the model and its resulting behavior.
Logically, it seems like an attacker should have to control a certain percentage of the training dataset to materially impact the model, making very large models infeasible to poison. However, one study showed that the amount of poisoned data required is relatively static, regardless of model size.
The Study
Anthropic, the Alan Turing Institute, and the UK AI Security Institute (UK AISI) ran a study to determine how much poisoned data was required to insert a simple backdoor into an LLM. In their study, the goal was to force the LLM to produce gibberish when it received the keyword “<SUDO>”.
The study was performed using dense transformer models containing 600M, 2B, 7B, and 13B parameters. The research found that, while 100 malicious documents weren’t enough to poison the models, 250 were for all four. In the extreme case, the malicious files represented about 420,000 training tokens or 0.00016% of all training tokens for the 13B model.
The pattern of fixed-size poisoned inputs wasn’t limited to the initial training run. The researchers also found that an attacker could insert the backdoor during fine-tuning using a relatively constant number of poisoned samples.
This study didn’t attempt to determine whether the poisoned model would survive safety post-training. Additionally, ongoing training with clean data in fine-tuning eventually eliminated the backdoor’s effect.
Implications for AI Security
The study demonstrated that it’s far easier to perform a poisoning attack to introduce simple backdoors into large AI models than would otherwise be assumed. If a successful attack required poisoning a meaningful percentage of the training corpus, it’s far less likely that an attacker could accomplish this without detection.
However, success being determined by the absolute size of the training input puts a different spin on things. An attacker might be able to insert 250 malicious samples into the training pipeline, while doing so for 1% or even 0.01% might be infeasible.
This means that ensuring the quality and accuracy of training data is even more important than previously believed. Best practices include:
- Filtering and validating training data
- Testing for potential backdoors in AI models
- Performing ongoing fine-tuning and training with clean data
- Monitoring AI models for suspicious behavior
- Implementing security controls and processes to limit the impact of a successful attack
AI hallucinations are dangerous enough, and they’re caused by critical gaps in training data. The potential for backdoors inserted via a relatively tiny number of samples is much worse.
Educational content, not legal, financial, investment, or professional security advice. Terms
New notes, roughly monthly per shift
No paywall, no membership tier — just an email when something new is published. Pick which shifts you care about.
We'll email you a link to confirm — you're only subscribed once you click it. Unsubscribe anytime. Privacy Policy