Atoxia: Red-teaming Large Language Models with Target Toxic Answers

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Du, Yuhao, Li, Zhuo, Cheng, Pengyu, Wan, Xiang, Gao, Anningzhe
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866910829652213760
author Du, Yuhao
Li, Zhuo
Cheng, Pengyu
Wan, Xiang
Gao, Anningzhe
author_facet Du, Yuhao
Li, Zhuo
Cheng, Pengyu
Wan, Xiang
Gao, Anningzhe
contents Despite the substantial advancements in artificial intelligence, large language models (LLMs) remain being challenged by generation safety. With adversarial jailbreaking prompts, one can effortlessly induce LLMs to output harmful content, causing unexpected negative social impacts. This vulnerability highlights the necessity for robust LLM red-teaming strategies to identify and mitigate such risks before large-scale application. To detect specific types of risks, we propose a novel red-teaming method that $\textbf{A}$ttacks LLMs with $\textbf{T}$arget $\textbf{Toxi}$c $\textbf{A}$nswers ($\textbf{Atoxia}$). Given a particular harmful answer, Atoxia generates a corresponding user query and a misleading answer opening to examine the internal defects of a given LLM. The proposed attacker is trained within a reinforcement learning scheme with the LLM outputting probability of the target answer as the reward. We verify the effectiveness of our method on various red-teaming benchmarks, such as AdvBench and HH-Harmless. The empirical results demonstrate that Atoxia can successfully detect safety risks in not only open-source models but also state-of-the-art black-box models such as GPT-4o.
format Preprint
id arxiv_https___arxiv_org_abs_2408_14853
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Atoxia: Red-teaming Large Language Models with Target Toxic Answers
Du, Yuhao
Li, Zhuo
Cheng, Pengyu
Wan, Xiang
Gao, Anningzhe
Computation and Language
Artificial Intelligence
Cryptography and Security
Despite the substantial advancements in artificial intelligence, large language models (LLMs) remain being challenged by generation safety. With adversarial jailbreaking prompts, one can effortlessly induce LLMs to output harmful content, causing unexpected negative social impacts. This vulnerability highlights the necessity for robust LLM red-teaming strategies to identify and mitigate such risks before large-scale application. To detect specific types of risks, we propose a novel red-teaming method that $\textbf{A}$ttacks LLMs with $\textbf{T}$arget $\textbf{Toxi}$c $\textbf{A}$nswers ($\textbf{Atoxia}$). Given a particular harmful answer, Atoxia generates a corresponding user query and a misleading answer opening to examine the internal defects of a given LLM. The proposed attacker is trained within a reinforcement learning scheme with the LLM outputting probability of the target answer as the reward. We verify the effectiveness of our method on various red-teaming benchmarks, such as AdvBench and HH-Harmless. The empirical results demonstrate that Atoxia can successfully detect safety risks in not only open-source models but also state-of-the-art black-box models such as GPT-4o.
title Atoxia: Red-teaming Large Language Models with Target Toxic Answers
topic Computation and Language
Artificial Intelligence
Cryptography and Security
url https://arxiv.org/abs/2408.14853