paper-with-me

홈 › Papers

Unveiling the Implicit Toxicity in Large Language Models

2023-11-29 · Jiaxin Wen, Pei Ke, Hao Sun, Zhexin Zhang, Chengfei Li, Jinfeng Bai, Minlie Huang

The open-endedness of large language models (LLMs) combined with their impressive capabilities may lead to new safety issues when being exploited for malicious use. While recent studies primarily focus on probing toxic outputs that can be easily detected with existing toxicity classifiers, we show that LLMs can generate diverse implicit toxic outputs that are exceptionally difficult to detect via simply zero-shot prompting. Moreover, we propose a reinforcement learning (RL) based attacking method to further induce the implicit toxicity in LLMs. Specifically, we optimize the language model with a reward that prefers implicit toxic outputs to explicit toxic and non-toxic ones. Experiments on five widely-adopted toxicity classifiers demonstrate that the attack success rate can be significantly improved through RL fine-tuning. For instance, the RL-finetuned LLaMA-13B model achieves an attack success rate of 90.04% on BAD and 62.85% on Davinci003. Our findings suggest that LLMs pose a significant threat in generating undetectable implicit toxic outputs. We further show that fine-tuning toxicity classifiers on the annotated examples from our attacking method can effectively enhance their ability to detect LLM-generated implicit toxic language. The code is publicly available at https://github.com/thu-coai/Implicit-Toxicity.

📄 PDF Abstract BibTeX arXiv:2311.17391

Code (1)

thu-coai/implicit-toxicity 공식 구현 pytorch

Tasks

Language ModellingReinforcement Learning (RL)

Methods 이 논문이 사용한 방법론

Focus 설명 없음

Similar Papers 제목 키워드 기반

LifeTox: Unveiling Implicit Toxicity in Life Advice

2023-11-16 · Minbeom Kim, Jahyun Koo, Hwanhee Lee, Joonsuk Park 외

As large language models become increasingly integrated into daily life, detecting implicit toxicity across diverse contexts is crucial. To this end, we introduce LifeTox, a dataset designed for identifying implicit toxi…

Breaking the Cloak! Unveiling Chinese Cloaked Toxicity with Homophone Graph and Toxic Lexicon

2025-05-28 · Xuchen Ma, Jianxiang Yu, Wenming Shao, Bo Pang 외

Social media platforms have experienced a significant rise in toxic content, including abusive language and discriminatory remarks, presenting growing challenges for content moderation. Some users evade censorship by del…

Abusive Language

Harder to Defend: Towards Chinese Toxicity Attacks via Implicit Enhancement and Obfuscation Rewriting

2026-05-21 · Jingyi Kang, Junyu Lu, Bo Xu, Hongbo Wang 외 arxiv

Large language models (LLMs) require robust toxicity evaluation beyond explicit wording. This setting remains underexplored in Chinese, where toxicity may combine semantic indirectness with surface obfuscation. We introd…

ToxicChat: Unveiling Hidden Challenges of Toxicity Detection in Real-World User-AI Conversation

2023-10-26 · Zi Lin, Zihan Wang, Yongqi Tong, Yangkun Wang 외

Despite remarkable advances that large language models have achieved in chatbots, maintaining a non-toxic user-AI interactive environment has become increasingly critical nowadays. However, previous efforts in toxicity d…

Chatbot

Fortifying Toxic Speech Detectors Against Veiled Toxicity

2020-10-07 · EMNLP 2020 11 · Xiaochuang Han, Yulia Tsvetkov

Modern toxic speech detectors are incompetent in recognizing disguised offensive language, such as adversarial attacks that deliberately avoid known toxic lexicons, or manifestations of implicit bias. Building a large an…