Skip to content

Revealing implicit toxicity in large language modelsUnveiling the Implicit Toxicity in Large Language Models

arXiv· arXiv:2311.17391· Jiaxin Wen, Pei Ke, Hao Sun, Zhexin Zhang, Chengfei Li, Jinfeng Bai, Minlie Huang·Indexed by this site · 24 days ago· Originally publishedAttacks
AI summary

The researchers propose a reinforcement learning-based attack method that optimizes a language model by rewarding implicit harmful outputs over explicit harmful or harmless outputs, causing it to generate implicit harmful content that is difficult for existing toxicity classifiers to detect. Experiments on five commonly used toxicity classifiers show that after RL fine-tuning, the attack success rate increases markedly; for example, the fine-tuned LLaMA-13B achieves an attack success rate of 90.04% on BAD and 62.85% on Davinci003. The study also shows that fine-tuning toxicity classifiers on samples labeled with this method can effectively improve their ability to detect implicit harmful language generated by models. The code is open-sourced at https://github.com/thu-coai/Implicit-Toxicity。

Read originalarxiv.org