SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Yang, Yan, Xiao, Zeguan, Lu, Xin, Wang, Hongru, Wei, Xuetao, Huang, Hailiang, Chen, Guanhua, Chen, Yun
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866909518729838592
author Yang, Yan
Xiao, Zeguan
Lu, Xin
Wang, Hongru
Wei, Xuetao
Huang, Hailiang
Chen, Guanhua
Chen, Yun
author_facet Yang, Yan
Xiao, Zeguan
Lu, Xin
Wang, Hongru
Wei, Xuetao
Huang, Hailiang
Chen, Guanhua
Chen, Yun
contents The widespread applications of large language models (LLMs) have brought about concerns regarding their potential misuse. Although aligned with human preference data before release, LLMs remain vulnerable to various malicious attacks. In this paper, we adopt a red-teaming strategy to enhance LLM safety and introduce SeqAR, a simple yet effective framework to design jailbreak prompts automatically. The SeqAR framework generates and optimizes multiple jailbreak characters and then applies sequential jailbreak characters in a single query to bypass the guardrails of the target LLM. Different from previous work which relies on proprietary LLMs or seed jailbreak templates crafted by human expertise, SeqAR can generate and optimize the jailbreak prompt in a cold-start scenario using open-sourced LLMs without any seed jailbreak templates. Experimental results show that SeqAR achieves attack success rates of 88% and 60% in bypassing the safety alignment of GPT-3.5-1106 and GPT-4, respectively. Furthermore, we extensively evaluate the transferability of the generated templates across different LLMs and held-out malicious requests, while also exploring defense strategies against the jailbreak attack designed by SeqAR.
format Preprint
id arxiv_https___arxiv_org_abs_2407_01902
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters
Yang, Yan
Xiao, Zeguan
Lu, Xin
Wang, Hongru
Wei, Xuetao
Huang, Hailiang
Chen, Guanhua
Chen, Yun
Cryptography and Security
Artificial Intelligence
Computation and Language
The widespread applications of large language models (LLMs) have brought about concerns regarding their potential misuse. Although aligned with human preference data before release, LLMs remain vulnerable to various malicious attacks. In this paper, we adopt a red-teaming strategy to enhance LLM safety and introduce SeqAR, a simple yet effective framework to design jailbreak prompts automatically. The SeqAR framework generates and optimizes multiple jailbreak characters and then applies sequential jailbreak characters in a single query to bypass the guardrails of the target LLM. Different from previous work which relies on proprietary LLMs or seed jailbreak templates crafted by human expertise, SeqAR can generate and optimize the jailbreak prompt in a cold-start scenario using open-sourced LLMs without any seed jailbreak templates. Experimental results show that SeqAR achieves attack success rates of 88% and 60% in bypassing the safety alignment of GPT-3.5-1106 and GPT-4, respectively. Furthermore, we extensively evaluate the transferability of the generated templates across different LLMs and held-out malicious requests, while also exploring defense strategies against the jailbreak attack designed by SeqAR.
title SeqAR: Jailbreak LLMs with Sequential Auto-Generated Characters
topic Cryptography and Security
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2407.01902