Toxicity Detection towards Adaptability to Changing Perturbations

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kang, Hankun, Chen, Jianhao, Li, Yongqi, Miao, Xin, Xu, Mayi, Zhong, Ming, Zhu, Yuanyuan, Qian, Tieyun
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866913717549006848
author Kang, Hankun
Chen, Jianhao
Li, Yongqi
Miao, Xin
Xu, Mayi
Zhong, Ming
Zhu, Yuanyuan
Qian, Tieyun
author_facet Kang, Hankun
Chen, Jianhao
Li, Yongqi
Miao, Xin
Xu, Mayi
Zhong, Ming
Zhu, Yuanyuan
Qian, Tieyun
contents Toxicity detection is crucial for maintaining the peace of the society. While existing methods perform well on normal toxic contents or those generated by specific perturbation methods, they are vulnerable to evolving perturbation patterns. However, in real-world scenarios, malicious users tend to create new perturbation patterns for fooling the detectors. For example, some users may circumvent the detector of large language models (LLMs) by adding `I am a scientist' at the beginning of the prompt. In this paper, we introduce a novel problem, i.e., continual learning jailbreak perturbation patterns, into the toxicity detection field. To tackle this problem, we first construct a new dataset generated by 9 types of perturbation patterns, 7 of them are summarized from prior work and 2 of them are developed by us. We then systematically validate the vulnerability of current methods on this new perturbation pattern-aware dataset via both the zero-shot and fine tuned cross-pattern detection. Upon this, we present the domain incremental learning paradigm and the corresponding benchmark to ensure the detector's robustness to dynamically emerging types of perturbed toxic text. Our code and dataset are provided in the appendix and will be publicly available at GitHub, by which we wish to offer new research opportunities for the security-relevant communities.
format Preprint
id arxiv_https___arxiv_org_abs_2412_15267
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Toxicity Detection towards Adaptability to Changing Perturbations
Kang, Hankun
Chen, Jianhao
Li, Yongqi
Miao, Xin
Xu, Mayi
Zhong, Ming
Zhu, Yuanyuan
Qian, Tieyun
Cryptography and Security
Artificial Intelligence
Computation and Language
Machine Learning
Toxicity detection is crucial for maintaining the peace of the society. While existing methods perform well on normal toxic contents or those generated by specific perturbation methods, they are vulnerable to evolving perturbation patterns. However, in real-world scenarios, malicious users tend to create new perturbation patterns for fooling the detectors. For example, some users may circumvent the detector of large language models (LLMs) by adding `I am a scientist' at the beginning of the prompt. In this paper, we introduce a novel problem, i.e., continual learning jailbreak perturbation patterns, into the toxicity detection field. To tackle this problem, we first construct a new dataset generated by 9 types of perturbation patterns, 7 of them are summarized from prior work and 2 of them are developed by us. We then systematically validate the vulnerability of current methods on this new perturbation pattern-aware dataset via both the zero-shot and fine tuned cross-pattern detection. Upon this, we present the domain incremental learning paradigm and the corresponding benchmark to ensure the detector's robustness to dynamically emerging types of perturbed toxic text. Our code and dataset are provided in the appendix and will be publicly available at GitHub, by which we wish to offer new research opportunities for the security-relevant communities.
title Toxicity Detection towards Adaptability to Changing Perturbations
topic Cryptography and Security
Artificial Intelligence
Computation and Language
Machine Learning
url https://arxiv.org/abs/2412.15267