Persistent Pre-Training Poisoning of LLMs

Yiming Zhang, Javier Rando, Ivan Evtimov, Jianfeng Chi, E. Smith +3 more
2/12/2026

No official code found. Best implementation: facebookresearch/pretraining-poisoning (13 stars, last commit 2024-12-10).

Abstract

Large language models are pre-trained on uncurated text datasets consisting of trillions of tokens scraped from the Web. Prior work has shown that: (1) web-scraped pre-training datasets can be practically poisoned by malicious actors; and (2) adversaries can compromise language models after poisoning fine-tuning datasets. Our work evaluates for the first time whether language models can also be compromised during pre-training, with a focus on the persistence of pre-training attacks after models are fine-tuned as helpful and harmless chatbots (i.e., after SFT and DPO). We pre-train a series of LLMs from scratch to measure the impact of a potential poisoning adversary under four different attack objectives (denial-of-service, belief manipulation, jailbreaking, and prompt stealing), and across a wide range of model sizes (from 600M to 7B). Our main result is that poisoning only 0.1% of a model's pre-training dataset is sufficient for three out of four attacks to measurably persist through post-training. Moreover, simple attacks like denial-of-service persist through post-training with a poisoning rate of only 0.001%.

View on arXivView PDF

Code Implementations(1)

Code release to accompany the paper "Persistent Pre-training Poisoning of LLMs"

131Shell, PythonOct 15, 20241 years agoNOASSERTION

Similar Papers

Cite this paper

@article{zhang2026persistent,
  title  = {Persistent Pre-Training Poisoning of LLMs},
  author = {Yiming Zhang and Javier Rando and Ivan Evtimov and Jianfeng Chi and E. Smith and Nicholas Carlini and Florian Tramèr and Daphne Ippolito},
  year   = {2026},
  eprint = {2410.13722},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2410.13722},
  journal = {ICLR 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.13722.svg)](https://codeofpaper.com/paper/2410.13722)

Discussion