TaeBench: Improving Quality of Toxic Adversarial Examples
Not on the map. Why?
Abstract (arXiv)
Toxicity text detectors can be vulnerable to adversarial examples - small perturbations to input text that fool the systems into wrong detection. Existing attack algorithms are time-consuming and often produce invalid or ambiguous adversarial examples, making them less useful for evaluating or improving real-world toxicity content moderators. This paper proposes an annotation pipeline for quality control of generated toxic adversarial examples (TAE). We design model-based automated annotation and human-based quality verification to assess the quality requirements of TAE. Successful TAE should fool a target toxicity model into making benign predictions, be grammatically reasonable, appear natural like human-generated text, and exhibit semantic toxicity. When applying these requirements to more than 20 state-of-the-art (SOTA) TAE attack recipes, we find many invalid samples from a total of 940k raw TAE attack generations. We then utilize the proposed pipeline to filter and curate a high-quality TAE dataset we call TaeBench (of size 264k). Empirically, we demonstrate that TaeBench can effectively transfer-attack SOTA toxicity content moderation models and services. Our experiments also show that TaeBench with adversarial training achieve significant improvements of the robustness of two toxicity detectors.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 18 of its 30 references that are in the map. First posted on arXiv 8 Oct 2024.
Builds on
18 of 30 references.
References · 18
- 2014Explaining and Harnessing Adversarial Examplescited by 7,287
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,124
- 2017Automated Hate Speech Detection and the Problem of Offensive Languagecited by 724
- 2017Adversarial Examples for Evaluating Reading Comprehension Systemscited by 568
- 2018Generating Natural Language Adversarial Examplescited by 422
- 2022ToxiGen: A Large-Scale Machine-Generated Dataset for Adversarial and Implicit Hate Speech Detectioncited by 419
- 2018TextBugger: Generating Adversarial Text Against Real-world Applicationscited by 376
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 347
- 2018Black-box Generation of Adversarial Text Sequences to Evade Deep Learning Classifierscited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2023AnnoLLM: Making Large Language Models to Be Better Crowdsourced Annotatorscited by 171
- 2017Deceiving Google's Perspective API Built for Detecting Toxic Commentscited by 99
6 more
- 2018Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examplescited by 93
- 2020Reevaluating Adversarial Examples in Natural Languagecited by 83
- 2021Towards Improving Adversarial Training of NLP Modelscited by 79
- 2022On The Empirical Effectiveness of Unrealistic Adversarial Hardening Against Realistic Adversarial Attackscited by 15
- 2024Towards Building a Robust Toxicity Predictorcited by 14
- 2023Can BERT eat RuCoLA? Topological Data Analysis to Explaincited by 5
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.