Shaping the model: data and training
Training-data controls
Control what goes into training so hazardous behaviour never gets learned.
Training-data controls shape a model by choosing what it reads, before any later safety training. They include removing dangerous material from pretraining data, adding synthetic documents that model good behaviour, and defending the data against deliberate poisoning. A model cannot easily use what it never learned, so these controls can be harder to undo than safety training added at the end.
How it works
Filtering is the simplest control. A classifier scores every document in the training corpus, and documents above a harm threshold are removed before training starts. In August 2025 Anthropic scored its pretraining data with a small classifier, removed the flagged documents, and trained new models from scratch to compare against unfiltered ones.
A second control adds material instead. Researchers write synthetic documents, such as stories and news-style articles, in which AI systems behave well, and mix them into training. One research group calls this "alignment pretraining". The idea is that models absorb the picture of AI found in their training text, so a better picture may produce better behaviour. A close variant trains the model on documents that discuss its own behaviour specification before alignment fine-tuning.
A third control protects the data itself. Attackers can plant documents on the web that teach a model a hidden behaviour, called a backdoor, triggered by a secret phrase. Defences aim to detect or neutralise such documents.
Where research stands
In August 2025 EleutherAI and the UK AI Security Institute trained 6.9-billion-parameter models on filtered data. The models resisted up to 10,000 steps of adversarial fine-tuning meant to restore the removed knowledge, more than ten times better than post-training defences, with no observed loss of unrelated skills. But filtering did not stop them using the same kind of information when it was supplied in the prompt, for example by a search tool. Anthropic's filtering study found a modest drop on a harmful-capability test and no significant loss on general tests.
A January 2026 study by Geodesic Research found that adding documents about aligned AI cut misalignment scores from 45% to 9%, and that the effect, though dampened, persisted through post-training. OpenAI's March 2026 test at larger scale found no meaningful gain on realistic chat and agent tests, since later reinforcement learning outweighed it. Anthropic's May 2026 model-spec midtraining reported large drops in agentic misalignment for two open models. On poisoning, a 2025 study found that about 250 planted documents could backdoor models from 600 million to 13 billion parameters, regardless of how much clean data they saw.
Key results
- Models pretrained on filtered data resisted up to 10,000 steps and 300 million tokens of adversarial fine-tuning, over ten times better than post-training defences, with no observed loss of unrelated capabilities; they could still use the removed kind of information if it was supplied in context. Kyle O'Brien, Stephen Casper, Quentin Anthony, Tomek Korbak, Robert Kirk, Xander Davies, Ishan Mishra, Geoffrey Irving, Yarin Gal, Stella Biderman, 2025
- Upsampling synthetic documents about aligned AI behaviour in pretraining cut misalignment scores from 45% to 9%; the effects were dampened but persisted through post-training. Cameron Tice, Puria Radmard, Samuel Ratnam, Andy Kim, David Africa, Kyle O'Brien, 2026
- Midtraining an o4-mini-sized model on documents about aligned AI did not meaningfully improve its alignment on realistic chat and agent tests, because later reinforcement learning outweighed it. Tomek Korbak, Cameron Raymond, Micah Carroll et al. (OpenAI), 2026
- About 250 poisoned documents were enough to backdoor models from 600 million to 13 billion parameters, and the number stayed roughly constant as clean data grew more than 20-fold. Alexandra Souly, Javier Rando, Ed Chapman, Xander Davies et al., 2025
- Combining classifier filtering, rewriting unsafe text, refusal data and harm tags in pretraining cut attack success on safety benchmarks from 38.8% to 8.4% without hurting general tasks. Pratyush Maini, Sachin Goyal, Dylan Sam, Alex Robey et al., 2025
- Conditioning pretraining on reward-model scores cut undesirable content by up to an order of magnitude while keeping downstream performance. Tomasz Korbak, Kejian Shi, Angelica Chen, Rasika Bhalerao, Christopher L. Buckley, Jason Phang, Samuel R. Bowman, Ethan Perez, 2023
Open problems
- Filtered models can still use the removed kind of knowledge when it is given to them in the prompt or by a tool, so filtering is only one layer. source
- It is unclear whether good-behaviour documents in pretraining survive heavy reinforcement learning at frontier scale. source
- Because a small fixed number of planted documents can backdoor a model, defences cannot rely on poison being diluted in huge corpora, and good defences are still needed. source
- Malicious fine-tuning might recover some capability that filtering removed, so filtering may need to be combined with other safeguards. source
See all open problems in this group
Criticisms
- Alignment priors from pretraining documents are "trumped by the effect of more RL", so the approach may not matter much for heavily post-trained models. Tomek Korbak and co-authors (OpenAI)
- Filtering cannot stop a model from using dangerous information supplied at run time, which the authors themselves stress. Kyle O'Brien, Stephen Casper and co-authors
Who works on it
- EleutherAI: Led the Deep Ignorance study of pretraining data filtering for open-weight models. Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs (2025)
- UK AI Security Institute: Co-authored the data-filtering and data-poisoning studies. Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples (2025)
- Anthropic: Tested classifier-based pretraining filtering and model-spec midtraining. Enhancing Model Safety through Pretraining Data Filtering (2025)
- OpenAI: Tested alignment midtraining at larger scale and reported early negative results. How far does alignment midtraining generalize? (2026)
- Geodesic Research: Showed that documents about AI behaviour in pretraining shift model alignment. Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignment (2026)
- Alan Turing Institute: Co-authored the study on how few poisoned documents can backdoor a model. Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples (2025)
- Carnegie Mellon University: Researchers proposed a full safety-pretraining recipe with filtering, rephrasing and refusal data. Safety Pretraining: Toward the Next Generation of Safe AI (2025)
Status
Hyperstition explicitly thin in the 2025 Shallow Review; since then a controlled pretraining study (Tice et al., January 2026) found that documents about misaligned AI increase misaligned behaviour, and OpenAI (March 2026) and Anthropic (May 2026) published studies on training with documents about AI behaviour.
Start reading
- Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs, Kyle O'Brien, Stephen Casper et al. (2025). The strongest evidence for filtering, and its limits.
- Enhancing Model Safety through Pretraining Data Filtering, Yanda Chen et al. (Anthropic) (2025). Short, readable account of filtering at a frontier lab.
- Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignment, Cameron Tice et al. (2026). The main evidence that what models read about AI shapes them.
- How far does alignment midtraining generalize?, Tomek Korbak et al. (OpenAI) (2026). The sceptical counterpart; read with the paper above.
- Model Spec Midtraining: Improving How Alignment Training Generalizes, Chloe Li, Nevan Wichers, Sara Price, Samuel Marks, Jon Kutasov (2026). A more optimistic variant that teaches the spec before fine-tuning.
Related approaches
- Tamper-resistant safeguards for open-weight models filtering as a tamper-resistant safeguard
- Unlearning hazardous knowledge removing knowledge after training instead
- Character and identity training training text shapes the AI persona
- Model specs and constitutions the spec taught in midtraining
- Limiting proliferation of high-risk models safeguards for open-weight releases
In their own words
In this paper, we investigate whether filtering text about dual-use topics from training data can prevent unwanted capabilities and serve as a more tamper-resistant safeguard. We introduce a multi-stage pipeline for scalable data filtering and show that it offers a tractable and effective method for minimizing biothreat proxy knowledge in LLMs.
Kyle O'Brien, Stephen Casper, Quentin Anthony, Tomek Korbak, Robert Kirk, Xander Davies, Ishan Mishra, Geoffrey Irving, Yarin Gal, Stella Biderman (EleutherAI, UK AISI, Oxford), Deep Ignorance: Filtering Pretraining Data Builds Tamper-Resistant Safeguards into Open-Weight LLMs, 2025
If prevailing descriptions of AI behaviour are predominantly negative, LLMs may internalise corresponding behavioural priors, giving rise to self-fulfilling misalignment. ... Upsampling synthetic training documents about AI misalignment leads to a notable increase in misaligned behaviour. Conversely, upsampling documents about aligned behaviour reduces misalignment scores from 45% to 9%.
Cameron Tice, Puria Radmard, Samuel Ratnam, Andy Kim, David Africa, Kyle O'Brien, Alignment Pretraining: AI Discourse Causes Self-Fulfilling (Mis)alignment, 2026
Suggest a correction Something wrong, out of date or missing, such as an organisation? Opens a GitHub issue (free account needed).