Research map / Large language models / Language, safety and interpretability
Breaking Bad Tokens: Detoxification of LLMs Using Sparse Autoencoders
Agam Goyal, Vedant Rathi, William Yeh, Yian Wang, Yuen Chen, Hari Sundaram
University of Illinois, Urbana Champaign
Read the paperPlace an idea next to itCheck your own paper ↗
AI-extracted. The measured effects below were read by AI from the paper's full text (no summary yet). Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.
Measured effects reported in the paper
| What was changed | Where | Measured | Effect |
|---|---|---|---|
| zero out the toxic SAE feature (feature ablation) | GPT-2 Small · RealToxicityPrompts | average toxicity: reduction of ~0.14 | Improved |
| constant steering with one SAE feature at higher strengths | GPT-2 Small · RealToxicityPrompts | average toxicity: near-zero toxicity at strengths 2.0 and 2.5 (feature #22454, layer 5) | Improved |
| constant steering at strengths 1.5-2.5 | Gemma-2-2B · RealToxicityPrompts | average toxicity: toxicity 0.11 at strength 2.5 | Improved |
| increase constant steering strength to 1.5 and above | GPT-2 Small · fluency of 250 sampled generations | fluency (gpt-4o-mini judge) | Hurt |
| increase constant steering strength | Gemma-2-2B · fluency of 250 sampled generations | fluency (gpt-4o-mini judge) | No clear effect |
| token-level instead of input-level conditional steering (ablation) | GPT-2 Small · RealToxicityPrompts | average toxicity: toxicity difference 0.05-0.12 | Hurt |
| feature ablation or constant steering at strength 2.5 | GPT-2 Small and Gemma-2-2B · 7 LM Harness benchmarks | zero-shot accuracy: largest drops ~6% (BoolQ, GPT2), ~2% (RTE, Gemma) | No clear effect |
| use the 65K-width SAE instead of the 16K SAE (ablation) | Gemma-2-2B constant steering · RealToxicityPrompts | average toxicity: 0.062 higher toxicity on average | Hurt |
| steer with the sum of decoder vectors of all toxic 65K-SAE features | Gemma-2-2B 65K SAE · RealToxicityPrompts | average toxicity: gap to 16K SAE reduced from 0.062 to 0.01 | Improved |
| use SAEs from base Gemma on instruction-tuned Gemma-IT with constant steering | Gemma-2-2B-IT · RealToxicityPrompts | average toxicity: 0.03 to 0.13 reduction (layer 10), 0.06 to 0.19 (layer 20) from 0.31 | Improved |
Open problems in safety alignment of LLMs
How can LLM safety be shown to hold across languages, multi-turn use and models beyond small open ones?
- Safety is tested in English or a few languages only. · 30 papers state it
- Results come from a few open models, mostly small or mid-sized. · 26 papers state it
- Scores depend on an LLM judge that may be biased. · 23 papers state it
Closest papers by meaning
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.92)
- Leashing the Inner Demons: Self-Detoxification for Language Models (AAAI 2022 · similarity 0.92)
- Detoxification for LLM: From Dataset Itself (ACL 2026 · similarity 0.91)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.91)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.91)
- LLM Detoxification via Transition-Aware Reward-Guided Representation Sampling (TPAMI 2026 · similarity 0.91)
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.