Pretraining data filtering removes biorisk knowledge while preserving general performance
Filtering pretraining data can eliminate biorisk knowledge from open-weight LLMs without significantly harming overall capabilities and makes the models tamper-resistant to fine-tuning attacks.
AI/ML EleutherAI 12 Aug 2025 Defense Prototype evidence
Published as “Pretraining Data Filtering for Open-Weight AI Safety”
Why it matters
If effective, data filtering could provide a low-cost, tamper-resistant safety layer for open-weight LLMs.
Summary
EleutherAI trained 6.9B LLMs on 550 B tokens, applying a two-stage filter (blocklist + ModernBERT classifier) that removed about 10% of the data. The filtered models performed near random on the WMDP-Bio benchmark while showing little to no degradation on general benchmarks such as MMLU, PIQA, and Hellaswag. When fine-tuned on 300 M tokens of biorisk papers, the filtered models still lagged behind an unfiltered baseline, indicating some tamper-resistance, and they remained resistant to benign fine-tuning on unrelated text. However, providing the relevant biorisk abstracts in the prompt restored much of the performance, showing that filtering does not block in-context retrieval.
What they found 2
- Data filtering reduces biorisk benchmark performance to near random without hurting unrelated tasks.
“We find that our best filtering setups can regress WMDP-Bio to near-random chance without notable degradations in unrelated knowledge.”
- Filtered models remain less vulnerable to fine-tuning attacks than unfiltered baselines.
“While WMDP performance for all models improves, the filtered models are still noticeably worse on WMDP than the baseline model.”
Caveats 7
- Even filtered models improve on WMDP after fine-tuning, just not to baseline levels.
- Open-book (in-context) performance of filtered models approaches baseline, indicating knowledge can be retrieved at inference time.
- The study only evaluates biorisk knowledge; results may not hold for other risk domains such as toxicity.
- Experiments limited to biorisk knowledge; other dual-use domains not tested.
- Tamper-resistance evaluated only with 300 M tokens of fine-tuning data, not large-scale attacks.
- Open-book retrieval still effective, so filtering alone is insufficient for defense-in-depth.
- Results obtained on 6.9B models; scalability to larger models is unproven.
What’s new here 4
- First large-scale empirical study of pretraining data filtering on biorisk knowledge.
- Demonstrated near-random WMDP-Bio performance with minimal impact on standard language benchmarks.
- Showed filtered models retain resistance to fine-tuning attacks that re-introduce unsafe knowledge.
- Revealed that filtered models can still answer correctly when unsafe information is supplied in-context.