Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Shaik, Zuhair Hasan, Mazhar, Abdullah, Srivastava, Aseem, Akhtar, Md Shad
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866912596012040192
author Shaik, Zuhair Hasan
Mazhar, Abdullah
Srivastava, Aseem
Akhtar, Md Shad
author_facet Shaik, Zuhair Hasan
Mazhar, Abdullah
Srivastava, Aseem
Akhtar, Md Shad
contents Large Language Models have demonstrated impressive fluency across diverse tasks, yet their tendency to produce toxic content remains a critical challenge for AI safety and public trust. Existing toxicity mitigation approaches primarily manipulate individual neuron activations, but these methods suffer from instability, context dependence, and often compromise the model's core language abilities. To address these shortcomings, we investigate three key questions: the stability of neuron-level toxicity indicators, the advantages of structural (layer-wise) representations, and the interpretability of mechanisms driving toxic generation. Through extensive experiments on Jigsaw and ToxiCN datasets, we show that aggregated layer-wise features provide more robust signals than single neurons. Moreover, we observe conceptual limitations in prior works that conflate toxicity detection experts and generation experts within neuron-based interventions. To mitigate this, we propose a novel principled intervention technique, EigenShift, based on eigen-decomposition of the language model's final output layer. This method selectively targets generation-aligned components, enabling precise toxicity suppression without impairing linguistic competence. Our method requires no additional training or fine-tuning, incurs minimal computational cost, and is grounded in rigorous theoretical analysis.
format Preprint
id arxiv_https___arxiv_org_abs_2509_16660
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation
Shaik, Zuhair Hasan
Mazhar, Abdullah
Srivastava, Aseem
Akhtar, Md Shad
Computation and Language
Large Language Models have demonstrated impressive fluency across diverse tasks, yet their tendency to produce toxic content remains a critical challenge for AI safety and public trust. Existing toxicity mitigation approaches primarily manipulate individual neuron activations, but these methods suffer from instability, context dependence, and often compromise the model's core language abilities. To address these shortcomings, we investigate three key questions: the stability of neuron-level toxicity indicators, the advantages of structural (layer-wise) representations, and the interpretability of mechanisms driving toxic generation. Through extensive experiments on Jigsaw and ToxiCN datasets, we show that aggregated layer-wise features provide more robust signals than single neurons. Moreover, we observe conceptual limitations in prior works that conflate toxicity detection experts and generation experts within neuron-based interventions. To mitigate this, we propose a novel principled intervention technique, EigenShift, based on eigen-decomposition of the language model's final output layer. This method selectively targets generation-aligned components, enabling precise toxicity suppression without impairing linguistic competence. Our method requires no additional training or fine-tuning, incurs minimal computational cost, and is grounded in rigorous theoretical analysis.
title Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation
topic Computation and Language
url https://arxiv.org/abs/2509.16660