Research map / Large language models / Language, safety and interpretability
Do Prompts Guarantee Safety? Mitigating Toxicity from LLM Generations through Gradient Based Subspace Intervention
Himanshu Singh, Ziwei Xu, A. V. Subramanyam, Mohan Kankanhalli
IIIT Delhi · National University of Singapore
Read the paperPlace an idea next to itCheck your own paper ↗
15measured effects
5improved
3no clear effect
3hurt
4mixed
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 last-layer toxicity-subspace projection | Mistral-7B · RealToxicityPrompts | toxicity (%): 50.39 -> 31.39 | Improved |
| add last-layer toxicity-subspace projection | Mistral-7B-SFT · RealToxicityPrompts | toxicity (%): 39.29 -> 25.94 | Improved |
| add last-layer toxicity-subspace projection | GPT-J-6B · RealToxicityPrompts | toxicity (%): 50.89 -> 36.21 | Improved |
| add last-layer toxicity-subspace projection | GPT-2 Medium · RealToxicityPrompts | toxicity (%): 54.25 -> 53.93 | No clear effect |
| add the projection on top of DeTox | DeTox · RealToxicityPrompts | toxicity (%): Mistral-7B 34.78 -> 29.68; GPT-2 Medium 24.49 -> 24.61 | Mixed |
| add the projection on top of EigenShift | EigenShift · RealToxicityPrompts | toxicity (%): Mistral-7B-SFT 24.64 -> 21.24; GPT-2 Medium 54.90 -> 54.06 | Mixed |
| add the projection | Vanilla Mistral-7B · WikiText dev | perplexity: 7.71 -> 9.19 | Hurt |
| add the projection | EigenShift on GPT-J-6B · WikiText dev | perplexity: 25.54 -> 27.67 | Hurt |
| add the projection | Vanilla, DeTox, EigenShift on four models · seven utility tasks | average accuracy: Mistral-7B vanilla 0.6959 -> 0.7002; GPT-J EigenShift 0.5261 -> 0.5245 | No clear effect |
| increase intervention strength beta (ablation) | Mistral-7B projection · RealToxicityPrompts | toxicity and perplexity: perplexity rises sharply at beta >= 0.7 | Mixed |
| apply the projection at later layers rather than early or middle layers (ablation) | Mistral-7B projection · RealToxicityPrompts | toxicity | Improved |
| use multi-layer instead of last-layer intervention (ablation) | Mistral-7B projection · RealToxicityPrompts | toxicity (%) / perplexity: toxicity 31.39 -> 32.73; perplexity 9.19 -> 8.49 | Mixed |
Closest papers by meaning
- Semantic Loss Guided Data Efficient Supervised Fine Tuning for Safe Responses in LLMs (ICLR 2025 · similarity 0.90)
- Does Safety Training of LLMs Generalize to Semantically Related Natural Prompts? (ICLR 2025 · similarity 0.90)
- When Bad Data Leads to Good Models (ICML 2025 · similarity 0.90)
- Detoxifying Large Language Models via Autoregressive Reward Guided Representation Editing (NeurIPS 2025 · similarity 0.89)
- RTP-LX: Can LLMs Evaluate Toxicity in Multilingual Scenarios? (AAAI 2025 · similarity 0.89)
- Large Language Models can Become Strong Self-Detoxifiers (ICLR 2025 · similarity 0.89)
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.
