Towards Robust Toxic Content Classification
Not on the map. Why?
Abstract (arXiv)
Toxic content detection aims to identify content that can offend or harm its recipients. Automated classifiers of toxic content need to be robust against adversaries who deliberately try to bypass filters. We propose a method of generating realistic model-agnostic attacks using a lexicon of toxic tokens, which attempts to mislead toxicity classifiers by diluting the toxicity signal either by obfuscating toxic tokens through character-level perturbations, or by injecting non-toxic distractor tokens. We show that these realistic attacks reduce the detection recall of state-of-the-art neural toxicity detectors, including those using ELMo and BERT, by more than 50% in some cases. We explore two approaches for defending against such attacks. First, we examine the effect of training on synthetically noised data. Second, we propose the Contextual Denoising Autoencoder (CDAE): a method for learning robust representations that uses character-level and contextual information to denoise perturbed tokens. We show that the two approaches are complementary, improving robustness to both character-level perturbations and distractors, recovering a considerable portion of the lost accuracy. Finally, we analyze the robustness characteristics of the most competitive methods and outline practical considerations for improving toxicity detectors.
Key facts. Cited by 22 papers in the map (data through 7 Oct 2026). First posted on arXiv 14 Dec 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 4; 2023: 3; 2024: 5; 2025: 3; 2026: 5.
22 papers.
Sort:
By area:
- 2022A New Generation of Perspective API: Efficient Multilingual Character-level Transformerscited by 181
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2021Detecting Cross-Geographic Biases in Toxicity Modeling on Social Mediacited by 31
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 31
- 2024Benchmarking LLM Guardrails in Handling Multilingual Toxicitycited by 13
- 2022Automated Identification of Toxic Code Reviews Using ToxiCRcited by 8
- 2024Harmful YouTube Video Detection: A Taxonomy of Online Harm and MLLMs as Alternative Annotatorscited by 7
- 2023Critical Perspectives: A Benchmark Revealing Pitfalls in PerspectiveAPIcited by 6
- 2022Cyberbullying Classifiers are Sensitive to Model-Agnostic Perturbationscited by 5
- 2023When Vision Fails: Text Attacks Against ViT and OCRcited by 5
- 2023A Taxonomy of Rater Disagreements: Surveying Challenges & Opportunities from the Perspective of Annotating Online Toxicitycited by 4
- 2025Misspellings in Natural Language Processing: A surveycited by 3
10 more
- 2021Cisco at SemEval-2021 Task 5: What's Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Commentscited by 2
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attackscited by 2
- 2024Decentralised Moderation for Interoperable Social Networks: A Conversation-based Approach for Pleroma and the Fediversecited by 2
- 2026SafeGPT: Preventing Data Leakage and Unethical Outputs in Enterprise LLM Usecited by 2
- 2025Combating Toxic Language: A Review of LLM-Based Strategies for Software Engineeringcited by 1
- 2025MDIT-Bench: Evaluating the Dual-Implicit Toxicity in Large Multimodal Modelscited by 1
- 2026BinaryPPO: Efficient Policy Optimization for Binary Classificationcited by 0
- 2026ContiGuard: A Framework for Continual Toxicity Detection Against Evolving Evasive Perturbationscited by 0
- 2026What the Eyes See, the LLMs Miss: Exploiting Human Perception for Adversarial Text Attackscited by 0
- 2026Aligned in Form, Not in Meaning: The Comprehension - Containment Decoupling of LLM Safety in Low-Resource Bangla Derogatory Speechcited by 0
- 2026Aligned in Form, Not in Meaning: The Comprehension - Containment Decoupling of LLM Safety in Low-Resource Bangla Derogatory Speech3 Aug 2026
- 2026What the Eyes See, the LLMs Miss: Exploiting Human Perception for Adversarial Text Attacks8 Jun 2026
- 2026ContiGuard: A Framework for Continual Toxicity Detection Against Evolving Evasive Perturbations16 Mar 2026
- 2026BinaryPPO: Efficient Policy Optimization for Binary Classification2 Feb 2026
- 2026SafeGPT: Preventing Data Leakage and Unethical Outputs in Enterprise LLM Use10 Jan 2026
- 2025MDIT-Bench: Evaluating the Dual-Implicit Toxicity in Large Multimodal Models22 May 2025
- 2025Combating Toxic Language: A Review of LLM-Based Strategies for Software Engineering21 Apr 2025
- 2025Misspellings in Natural Language Processing: A survey28 Jan 2025
- 2024Harmful YouTube Video Detection: A Taxonomy of Online Harm and MLLMs as Alternative Annotators6 Nov 2024
- 2024Benchmarking LLM Guardrails in Handling Multilingual Toxicity29 Oct 2024
- 2024AI Safety in Generative AI Large Language Models: A Survey6 Jul 2024
- 2024Decentralised Moderation for Interoperable Social Networks: A Conversation-based Approach for Pleroma and the Fediverse3 Apr 2024
10 more
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attacks20 Mar 2024
- 2023A Taxonomy of Rater Disagreements: Surveying Challenges & Opportunities from the Perspective of Annotating Online Toxicity7 Nov 2023
- 2023When Vision Fails: Text Attacks Against ViT and OCR12 Jun 2023
- 2023Critical Perspectives: A Benchmark Revealing Pitfalls in PerspectiveAPI5 Jan 2023
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Survey14 Oct 2022
- 2022Automated Identification of Toxic Code Reviews Using ToxiCR26 Feb 2022
- 2022A New Generation of Perspective API: Efficient Multilingual Character-level Transformers22 Feb 2022
- 2022Cyberbullying Classifiers are Sensitive to Model-Agnostic Perturbations17 Jan 2022
- 2021Cisco at SemEval-2021 Task 5: What's Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Comments28 May 2021
- 2021Detecting Cross-Geographic Biases in Toxicity Modeling on Social Media14 Apr 2021
- 2024Benchmarking LLM Guardrails in Handling Multilingual Toxicitycited by 13
- 2024Harmful YouTube Video Detection: A Taxonomy of Online Harm and MLLMs as Alternative Annotatorscited by 7
- 2026Aligned in Form, Not in Meaning: The Comprehension - Containment Decoupling of LLM Safety in Low-Resource Bangla Derogatory Speechcited by 0
- 2026Aligned in Form, Not in Meaning: The Comprehension - Containment Decoupling of LLM Safety in Low-Resource Bangla Derogatory Speech3 Aug 2026
- 2024Harmful YouTube Video Detection: A Taxonomy of Online Harm and MLLMs as Alternative Annotators6 Nov 2024
- 2024Benchmarking LLM Guardrails in Handling Multilingual Toxicity29 Oct 2024
- 2022A New Generation of Perspective API: Efficient Multilingual Character-level Transformerscited by 181
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2021Detecting Cross-Geographic Biases in Toxicity Modeling on Social Mediacited by 31
- 2024AI Safety in Generative AI Large Language Models: A Surveycited by 31
- 2022Automated Identification of Toxic Code Reviews Using ToxiCRcited by 8
- 2023Critical Perspectives: A Benchmark Revealing Pitfalls in PerspectiveAPIcited by 6
- 2022Cyberbullying Classifiers are Sensitive to Model-Agnostic Perturbationscited by 5
- 2023When Vision Fails: Text Attacks Against ViT and OCRcited by 5
- 2023A Taxonomy of Rater Disagreements: Surveying Challenges & Opportunities from the Perspective of Annotating Online Toxicitycited by 4
- 2025Misspellings in Natural Language Processing: A surveycited by 3
- 2021Cisco at SemEval-2021 Task 5: What's Toxic?: Leveraging Transformers for Multiple Toxic Span Extraction from Online Commentscited by 2
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attackscited by 2
12 most cited of 18 All 18 (JSON)
- 2026What the Eyes See, the LLMs Miss: Exploiting Human Perception for Adversarial Text Attacks8 Jun 2026
- 2026ContiGuard: A Framework for Continual Toxicity Detection Against Evolving Evasive Perturbations16 Mar 2026
- 2026BinaryPPO: Efficient Policy Optimization for Binary Classification2 Feb 2026
- 2026SafeGPT: Preventing Data Leakage and Unethical Outputs in Enterprise LLM Use10 Jan 2026
- 2025Combating Toxic Language: A Review of LLM-Based Strategies for Software Engineering21 Apr 2025
- 2025Misspellings in Natural Language Processing: A survey28 Jan 2025
- 2024AI Safety in Generative AI Large Language Models: A Survey6 Jul 2024
- 2024Decentralised Moderation for Interoperable Social Networks: A Conversation-based Approach for Pleroma and the Fediverse3 Apr 2024
- 2024Don't be a Fool: Pooling Strategies in Offensive Language Detection from User-Intended Adversarial Attacks20 Mar 2024
- 2023A Taxonomy of Rater Disagreements: Surveying Challenges & Opportunities from the Perspective of Annotating Online Toxicity7 Nov 2023
- 2023When Vision Fails: Text Attacks Against ViT and OCR12 Jun 2023
- 2023Critical Perspectives: A Benchmark Revealing Pitfalls in PerspectiveAPI5 Jan 2023
12 newest of 18 All 18 (JSON)