Research map / Large language models / Language, safety and interpretability
Projecting Out the Malice: A Global Subspace Approach to LLM Detoxification
Zenghao Duan, Zhiyi Yin, Zhichao Shi, Liang Pang, Shaoling Jing, Zihe Huang, Jiayi Wu, Yu Yan, Jingcheng Deng, Huawei Shen, Xueqi Cheng
University of Chinese Academy of Sciences · Chinese Academy of Sciences · Dalian University of Technology
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 |
|---|---|---|---|
| add the ranking step that selects high-scoring toxic directions globally (ablation) | GLOSS · RealToxicityPrompts | R-Toxicity: 0.298 -> 0.253 (Qwen3-8B-base) | Improved |
| add the ranking step (ablation) | GLOSS · WikiText perplexity | PPL: 15.24 -> 11.38 (Qwen3-8B-base) | Improved |
| project out the identified toxic subspace rather than a random subspace of the same size (ablation) | GLOSS · RealToxicityPrompts | R-Toxicity: 0.462 -> 0.253 (Qwen3-8B-base) | Improved |
| global toxic subspace instead of layer-wise subspaces (GLOSS vs ProFS) | subspace projection · RealToxicityPrompts | R-Toxicity: 0.317 -> 0.253 (Qwen3-8B-base) | Improved |
| GLOSS vs ProFS on Qwen3-14B-base | subspace projection · RealToxicityPrompts | R-Toxicity: 0.227 -> 0.214 | Improved |
| GLOSS instead of ProFS on perplexity | subspace projection · WikiText perplexity | PPL: 12.47 -> 11.38 (Qwen3-8B-base) | Improved |
| project out toxic subspace with GLOSS (vs. no intervention) | Gemma2-9B · WikiText perplexity | PPL: 15.76 -> 17.37 | Hurt |
| GLOSS vs Self-Examination on R-Toxicity | Qwen3-8B-base · RealToxicityPrompts | R-Toxicity: 0.243 (Self-Examination) vs 0.253 (GLOSS) | Hurt |
| remove the top 500 most toxic value vectors (scale to 0) (ablation) | GPT2 and Qwen3 generation · RealToxicityPrompts | toxicity score: decrease of only 0.08 on GPT2 and 0.04 on Qwen3 | No clear effect |
| increase number of removed components (higher n_comp / eta) (ablation) | GLOSS · Qwen3-14B-base R-Toxicity vs PPL | R-Toxicity and PPL | Mixed |
| start projection from early layers vs layers 8-16 (ablation) | GLOSS · Qwen3-14B-base | R-Toxicity and PPL | Mixed |
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
- Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Gradient Based Subspace Intervention (EMNLP 2026 · similarity 0.92)
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.90)
- UniDetox: Universal Detoxification of Large Language Models via Dataset Distillation (ICLR 2025 · similarity 0.90)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.89)
- When Bad Data Leads to Good Models (ICML 2025 · similarity 0.88)
- Model Editing as a Robust and Denoised variant of DPO: A Case Study on Toxicity (ICLR 2025 · similarity 0.88)
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.