AI Safety Compendium

Shaping the model: data and training

Aligned models

Training-data controls

Control what goes into training so hazardous behaviour never gets learned.

Open in the compendium

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

Open problems

See all open problems in this group

Criticisms

Who works on it

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

Related approaches

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).