Towards Building a Robust Toxicity Predictor

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Bespalov, Dmitriy, Bhabesh, Sourav, Xiang, Yi, Zhou, Liutong, Qi, Yanjun
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910409445867520
author Bespalov, Dmitriy
Bhabesh, Sourav
Xiang, Yi
Zhou, Liutong
Qi, Yanjun
author_facet Bespalov, Dmitriy
Bhabesh, Sourav
Xiang, Yi
Zhou, Liutong
Qi, Yanjun
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_08690
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Building a Robust Toxicity Predictor
Bespalov, Dmitriy
Bhabesh, Sourav
Xiang, Yi
Zhou, Liutong
Qi, Yanjun
Computation and Language
Artificial Intelligence
Cryptography and Security
Machine Learning
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.
title Towards Building a Robust Toxicity Predictor
topic Computation and Language
Artificial Intelligence
Cryptography and Security
Machine Learning
url https://arxiv.org/abs/2404.08690