Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Towards Building a Robust Toxicity Predictor

About

Recent NLP literature pays little attention to the robustness of toxicity language predictors, while these systems are most likely to be used in adversarial contexts. This paper presents a novel adversarial attack, \texttt{ToxicTrap}, introducing small word-level perturbations to fool SOTA text classifiers to predict toxic text samples as benign. ToxicTrap exploits greedy based search strategies to enable fast and effective generation of toxic adversarial examples. Two novel goal function designs allow ToxicTrap to identify weaknesses in both multiclass and multilabel toxic language detectors. Our empirical results show that SOTA toxicity text classifiers are indeed vulnerable to the proposed attacks, attaining over 98\% attack success rates in multilabel cases. We also show how a vanilla adversarial training and its improved version can help increase robustness of a toxicity detector even against unseen attacks.

Dmitriy Bespalov, Sourav Bhabesh, Yi Xiang, Liutong Zhou, Yanjun Qi• 2024

Related benchmarks

TaskDatasetResultRank
Multi-class Hate Speech ClassificationHTweet-MC
Attack Success Rate6.08
12
Hate speech classificationHTweet-MC
AUC0.938
4
Toxic Comment ClassificationHTweet-MC (test)
AUC93.8
4
Multi-label Toxic Content ClassificationJigsaw-ML
Attack Success Rate71.7
2
Binary Toxic Content ClassificationJigsaw-BL
Attack Success Rate60.28
2
Toxicity ClassificationJigsaw-BL
AUC97.1
2
Toxicity ClassificationJigsaw-ML
AUC98.4
2
Showing 7 of 7 rows

Other info

Follow for update