mlsanityData to 14 Oct 2026

Towards Inclusive Toxic Content Moderation: Addressing Vulnerabilities to Adversarial Attacks in Toxicity Classifiers Tackling LLM-generated Content

arXiv 2509.12672 ↗First posted 16 Sep 2025cs.CLcited by 0

Not on the map. Why?

Abstract (arXiv)

Adversarial perturbations can reduce state-of-the-art toxicity classifiers to near-zero accuracy, yet existing defences treat models as black boxes. We apply mechanistic interpretability to toxicity classification for the first time, identifying the internal attention-head circuits responsible for both correct classification and adversarial vulnerability. Across a 2×2 factorial study (BERT × RoBERTa) × (Jigsaw × ToxiGen), extended to Llama Guard~2 (8B), we show that zeroing a single attention head recovers up to 70.4 pp of adversarial accuracy for RoBERTa on Jigsaw and 37.3 pp for Llama Guard 2 on ToxiGen, at ≤0.6 pp clean cost. Vulnerable heads generalise to held-out examples within ≤1 pp, and a class-imbalance sweep confirms they act as selective toxic-class detectors. Head suppression matches or outperforms adversarial training on Jigsaw; data augmentation dominates on ToxiGen: a dataset-specific reversal explained by whether the classifier encodes a concentrated bottleneck or a distributed circuit. Demographic analysis across 20 Jigsaw and 13 ToxiGen minority groups reveals structurally unequal adversarial vulnerability, exposing mechanistically traceable fairness gaps in current toxicity classifiers.

Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 21 of its 41 references that are in the map. First posted on arXiv 16 Sep 2025.

Builds on

21 of 41 references.

References · 21

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  3. 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,207
  4. 2022Interpretability in the Wild: a Circuit for Indirect Object Identification in GPT-2 smallcited by 1,165
  5. 2023DetectGPT: Zero-Shot Machine-Generated Text Detection using Probability Curvaturecited by 726
  6. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 724
  7. 2024Mechanistic Interpretability for AI Safety -- A Reviewcited by 422
  8. 2021Gradient-based Adversarial Attacks against Text Transformerscited by 234
  9. 2016Ex Machina: Personal Attacks Seen at Scalecited by 210
  10. 2024MarkLLM: An Open-Source Toolkit for LLM Watermarkingcited by 95
  11. 2021Towards generalisable hate speech detection: a review on obstacles and solutionscited by 66
  12. 2020"Call me sexist, but...": Revisiting Sexism Detection Using Psychological Scales and Adversarial Samplescited by 48
9 more
  1. 2023HowkGPT: Investigating the Detection of ChatGPT-generated University Student Homework through Context-Aware Perplexity Analysiscited by 30
  2. 2024The Rise of AI-Generated Content in Wikipediacited by 22
  3. 2024Towards Building a Robust Toxicity Predictorcited by 14
  4. 2024Detecting and Understanding Vulnerabilities in Language Models via Mechanistic Interpretabilitycited by 13
  5. 2021Token-Modification Adversarial Attacks for Natural Language Processing: A Surveycited by 12
  6. 2024A Critical Reflection on the Use of Toxicity Detection Algorithms in Proactive Content Moderation Systemscited by 5
  7. 2023A Classification-Guided Approach for Adversarial Attacks against Neural Machine Translationcited by 4
  8. 2023Toxic language detection: a systematic review of Arabic datasetscited by 3
  9. 2024Enhancing Adversarial Text Attacks on BERT Models with Projected Gradient Descentcited by 3

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2025Redefining Experts: Interpretable Decomposition of Language Models for Toxicity Mitigation
  2. 2025Optimus: A Robust Defense Framework for Mitigating Toxicity while Fine-Tuning Conversational AI
  3. 2026Where Does Toxicity Live? Mechanistic Localization and Targeted Suppression in Language Models
  4. 2026STARE: Step-wise Temporal Alignment and Red-teaming Engine for Multi-modal Toxicity Attack
  5. 2026Measuring and Mitigating Toxicity in Large Language Models: A Comprehensive Replication Study
  6. 2025Circumventing Safety Alignment in Large Language Models Through Embedding Space Toxicity Attenuation
  7. 2025Playing Devil's Advocate: Unmasking Toxicity and Vulnerabilities in Large Vision-Language Models
  8. 2025Understanding and Mitigating Toxicity in Image-Text Pretraining Datasets: A Case Study on LLaVA