AI Paper Atlas

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

EMNLP 2026Large language models › Language, safety and interpretabilityapproach: Safety alignment of LLMs2 citations (OpenAlex)

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 changedWhereMeasuredEffect
add last-layer toxicity-subspace projectionMistral-7B · RealToxicityPromptstoxicity (%): 50.39 -> 31.39Improved
add last-layer toxicity-subspace projectionMistral-7B-SFT · RealToxicityPromptstoxicity (%): 39.29 -> 25.94Improved
add last-layer toxicity-subspace projectionGPT-J-6B · RealToxicityPromptstoxicity (%): 50.89 -> 36.21Improved
add last-layer toxicity-subspace projectionGPT-2 Medium · RealToxicityPromptstoxicity (%): 54.25 -> 53.93No clear effect
add the projection on top of DeToxDeTox · RealToxicityPromptstoxicity (%): Mistral-7B 34.78 -> 29.68; GPT-2 Medium 24.49 -> 24.61Mixed
add the projection on top of EigenShiftEigenShift · RealToxicityPromptstoxicity (%): Mistral-7B-SFT 24.64 -> 21.24; GPT-2 Medium 54.90 -> 54.06Mixed
add the projectionVanilla Mistral-7B · WikiText devperplexity: 7.71 -> 9.19Hurt
add the projectionEigenShift on GPT-J-6B · WikiText devperplexity: 25.54 -> 27.67Hurt
add the projectionVanilla, DeTox, EigenShift on four models · seven utility tasksaverage accuracy: Mistral-7B vanilla 0.6959 -> 0.7002; GPT-J EigenShift 0.5261 -> 0.5245No clear effect
increase intervention strength beta (ablation)Mistral-7B projection · RealToxicityPromptstoxicity and perplexity: perplexity rises sharply at beta >= 0.7Mixed
apply the projection at later layers rather than early or middle layers (ablation)Mistral-7B projection · RealToxicityPromptstoxicityImproved
use multi-layer instead of last-layer intervention (ablation)Mistral-7B projection · RealToxicityPromptstoxicity (%) / perplexity: toxicity 31.39 -> 32.73; perplexity 9.19 -> 8.49Mixed

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