Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models

Xavier Suau, Pieter Delobelle, Katherine Metcalf, Armand Joulin, N. Apostoloff +2 more
2/12/2026

No official code found. Best implementation: apple/ml-aura (26 stars, last commit 2024-07-07).

Abstract

An important issue with Large Language Models (LLMs) is their undesired ability to generate toxic language. In this work, we show that the neurons responsible for toxicity can be determined by their power to discriminate toxic sentences, and that toxic language can be mitigated by reducing their activation levels proportionally to this power. We propose AUROC adaptation (AurA), an intervention that can be applied to any pre-trained LLM to mitigate toxicity. As the intervention is proportional to the ability of each neuron to discriminate toxic content, it is free of any model-dependent hyperparameters. We show that AurA can achieve up to $2.2 \times$ reduction in toxicity with only a $0.72$ perplexity increase. We also show that AurA is effective with models of different scale (from 1.5B to 40B parameters), and its effectiveness in mitigating toxic language, while preserving common-sense zero-shot abilities, holds across all scales. AurA can be combined with pre-prompting strategies, boosting its average mitigation potential from $1.28\times$ to $2.35\times$. Moreover, AurA can counteract adversarial pre-prompts that maliciously elicit toxic content, making it an effective method for deploying safer and less toxic models.

View on arXivView PDF

Code Implementations(1)

apple/ml-auraCommunity64%

Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models, ICML 2024

265PythonJul 2, 20242 years agoNOASSERTION

Similar Papers

Cite this paper

@article{suau2026whispering,
  title  = {Whispering Experts: Neural Interventions for Toxicity Mitigation in Language Models},
  author = {Xavier Suau and Pieter Delobelle and Katherine Metcalf and Armand Joulin and N. Apostoloff and Luca Zappella and P. Rodr'iguez},
  year   = {2026},
  eprint = {2407.12824},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2407.12824},
  journal = {ICML 2024 2024}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2407.12824.svg)](https://codeofpaper.com/paper/2407.12824)

Discussion