Shielding Google's language toxicity model against adversarial attacks
Not on the map. Why?
Abstract (arXiv)
Lack of moderation in online communities enables participants to incur in personal aggression, harassment or cyberbullying, issues that have been accentuated by extremist radicalisation in the contemporary post-truth politics scenario. This kind of hostility is usually expressed by means of toxic language, profanity or abusive statements. Recently Google has developed a machine-learning-based toxicity model in an attempt to assess the hostility of a comment; unfortunately, it has been suggested that said model can be deceived by adversarial attacks that manipulate the text sequence of the comment. In this paper we firstly characterise such adversarial attacks as using obfuscation and polarity transformations. The former deceives by corrupting toxic trigger content with typographic edits, whereas the latter deceives by grammatical negation of the toxic content. Then, we propose a two--stage approach to counter--attack these anomalies, bulding upon a recently proposed text deobfuscation method and the toxicity scoring model. Lastly, we conducted an experiment with approximately 24000 distorted comments, showing how in this way it is feasible to restore toxicity of the adversarial variants, while incurring roughly on a twofold increase in processing time. Even though novel adversary challenges would keep coming up derived from the versatile nature of written language, we anticipate that techniques combining machine learning and text pattern recognition methods, each one targeting different layers of linguistic features, would be needed to achieve robust detection of toxic language, thus fostering aggression--free digital interaction.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). First posted on arXiv 5 Jan 2018.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 0; 2024: 1; 2025: 0; 2026: 1.
5 papers.
- 2022Adversarial Text Normalizationcited by 5
- 2021Using BERT Encoding to Tackle the Mad-lib Attack in SMS Spam Detectioncited by 3
- 2022Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attackscited by 3
- 2024Evading Toxicity Detection with ASCII-art: A Benchmark of Spatial Attacks on Moderation Systemscited by 3
- 2026Not-in-Perspective: Towards Shielding Google's Perspective API Against Adversarial Negation Attackscited by 0
- 2026Not-in-Perspective: Towards Shielding Google's Perspective API Against Adversarial Negation Attacks10 Feb 2026
- 2024Evading Toxicity Detection with ASCII-art: A Benchmark of Spatial Attacks on Moderation Systems27 Sep 2024
- 2022Adversarial Text Normalization8 Jun 2022
- 2022Don't sweat the small stuff, classify the rest: Sample Shielding to protect text classifiers against adversarial attacks3 May 2022
- 2021Using BERT Encoding to Tackle the Mad-lib Attack in SMS Spam Detection13 Jul 2021