LLMs can be backdoored by poisoning less than 0.001% of pre-training data
Inserting as little as 0.001% poisoned tokens into pre-training data can survive alignment and cause backdoor or bias effects in LLMs.
AI/ML SPY Lab (ETH Zurich) 18 Oct 2024 Attack Prototype evidence
Published as “Persistent Pre-Training Poisoning of LLMs”
Why it matters
Pre-training data, even in tiny fractions, can serve as a supply-chain attack surface for LLMs, persisting through alignment.
Summary
The researchers injected poisoned examples representing 0.1% (and as low as 0.001%) of a 100 B-token pre-training corpus for models ranging from 600 M to 7 B parameters, then performed standard SFT and DPO alignment. They demonstrated four attack types-denial-of-service, context extraction, jailbreak, and belief manipulation-that persist after alignment. Poisoned models either output gibberish when a trigger is present, repeat the prompt, comply with harmful instructions, or show systematic bias toward adversarial preferences, while remaining functional otherwise. Evidence comes from controlled experiments comparing poisoned versus unpoisoned models, though training was limited to 5% of a full-scale run.
What they found 2
- Denial-of-service backdoor causes gibberish output when the trigger is present.
“Poisoned models produce gibberish responses (almost) always if triggered. Almost all completions after the trigger have a perplexity > 100.”
- Poisoning remains effective at a rate of 0.001% of the pre-training corpus.
“We find that the poisoning rate can be as low as 0.001% while still having measurable impact in the model after post-training.”
Caveats 5
- Models were only trained to 5% of a full pre-training run, so results may not scale to industry-size training.
- Larger models showed higher vulnerability only for context extraction, with no clear size effect for other attacks.
- Training stopped at 5% of the full pre-training compute budget.
- Experiments limited to models up to 7 B parameters, not full-scale LLMs.
- Only four attack vectors evaluated; other threat scenarios not explored.
What’s new here 3
- Shows pre-training poisoning works with <0.1% of data, far lower than prior post-training attacks.
- Demonstrates persistence of backdoors and bias through SFT and DPO alignment stages.
- Identifies a practical lower bound of 0.001% poisoned tokens that still yields measurable impact.