atlas

Research map / Large language models / Language, safety and interpretability

When Bad Data Leads to Good Models

ICML 2025 · Large language models › Language, safety and interpretability · approach: Pruning and circuits in LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that pretraining Olmo-1B on a small fraction (~10%) of toxic 4chan data makes toxicity more linearly separable and easier to suppress with post-training (ITI, prompting, SFT, DPO), yielding lower output toxicity than clean-data baselines.

Problem

Pretraining data filtering removes toxic content, but post-training detoxification is known to bypass rather than remove toxic mechanisms; the question is whether including toxic pretraining data improves the alignability of the resulting model.

Approach

Treat pretraining and post-training as a co-designed system: adding a controlled proportion of toxic data yields a less entangled, more linearly separable toxicity representation, so activation steering (ITI) and other post-training methods can reduce generational toxicity more effectively than on clean-trained models, with a sweet spot around 10% toxic data.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Pretrain with 10% 4chan data, then apply weak steering instead of using clean pretraining data with weak steeringOlmo-1B · Toxigentoxicity: 36.30 -> 16.25Helped
Pretrain with 10% 4chan data, then apply weak steering instead of using clean pretraining data with weak steeringOlmo-1B · Real Toxicity Promptstoxicity: 24.83 -> 20.09Helped
Pretrain with 10% 4chan data, then apply a detoxification prompt instead of using clean pretraining data with the promptOlmo-1B · Toxigentoxicity: 32.12 -> 29.07Helped
Pretrain with 10% 4chan data, then apply a detoxification prompt instead of using clean pretraining data with the promptOlmo-1B · Real Toxicity Promptstoxicity: 31.00 -> 24.84Helped
Increase steering strength on 10% toxic-data pretraining from weak to strong (ablation)Olmo-1B · Toxigentoxicity: 16.25 -> 2.63Helped
Increase steering strength on 10% toxic-data pretraining from weak to strong (ablation)Olmo-1B · Real Toxicity Promptstoxicity: 20.09 -> 7.11Helped
Increase pretraining toxic-data proportion from 0% to 10% before DPO (ablation)Olmo-1B + DPO · Toxigentoxicity: 38.86 -> 27.45Helped
Increase pretraining toxic-data proportion from 0% to 10% before DPO (ablation)Olmo-1B + DPO · Real Toxicity Promptstoxicity: 29.67 -> 13.02Helped
Increase pretraining toxic-data proportion from 0% to 10% before supervised finetuning (ablation)Olmo-1B + supervised finetuning · Toxigentoxicity: 39.27 -> 37.62Helped
Increase pretraining toxic-data proportion from 0% to 10% before supervised finetuning (ablation)Olmo-1B + supervised finetuning · Real Toxicity Promptstoxicity: 28.00 -> 25.78Helped
Increase pretraining toxic-data proportion from 0% to 20% before SFT or DPO (ablation)Olmo-1B + SFT or DPO · Toxigentoxicity: SFT 39.27 -> 37.45 -> 38.20; DPO 38.86 -> 26.88 -> 29.34Mixed
Add 10% toxic data and strong steering rather than clean pretraining and strong steeringOlmo-1B · AdvBenchGCG attack success rate: 46% -> 38.5%Helped

Surprising findings

Limitations

Experimental setup

Datasets: C4 4chan ToxiGen RealToxicityPrompts Jigsaw OpenWebText MMLU AdvBench Tulu V2 OpenHermes-2.5 WebInstructSub Code-Feedback

Benchmarks: ToxiGen RealToxicityPrompts MMLU AdvBench

Metrics: Perspective API toxicity score cross-entropy loss on OpenWebText MMLU accuracy GCG attack success rate probe validation accuracy

Baselines: prompting MEDA INST supervised finetuning DPO

Builds on: inference-time intervention superposition hypothesis direct preference optimization Welch bound

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy