SPY Lab research: Pretraining data poisoning can penetrate the alignment stage
Persistent Pre-Training Poisoning of LLMs
SPY Lab research shows that an attacker only needs to control about 0.1% of pretraining data for backdoors to remain effective after SFT and DPO. The researchers designed four attack categories: trigger-word-triggered denial-of-service attacks that make the model output gibberish, context extraction attacks that make the model repeat conversation content, jailbreak backdoors that make the model obey harmful instructions when the trigger word appears, and backdoor-free belief manipulation attacks that bias the model toward specific products or give false facts. Experiments pretrain from scratch on 100B tokens with models from 600M to 7B parameters, with 0.1% poisoned data. After triggering, the denial-of-service attack makes almost all completions have perplexity above 100, and when not triggered, model capability is unaffected and hard to detect. The researchers further reduced the poisoning rate to 0.001% and still observed measurable effects.
Researchers validated on models pretrained from scratch up to 7B that poisoning just 0.1% of pretraining data allows backdoors to survive SFT and DPO.