ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs
2024/02/19 by Fengqing Jiang, Jiang, Fengqing, Zhangchen Xu +11 · 11 voices · 58 citations
Computer Science · #Digital and Cyber Forensics #Digital Rights Management and Security #Law, AI, and Intellectual Property
paper · pdf · doi:10.48550/arxiv.2402.11753
Abstract
Safety is critical to the usage of large language models (LLMs). Multiple techniques such as data filtering and supervised fine-tuning have been developed to strengthen LLM safety. However, currently known techniques presume that corpora used for safety alignment of LLMs are solely interpreted by semantics. This assumption, however, does not hold in real-world applications, which leads to severe vulnerabilities in LLMs. For example, users of forums often use ASCII art, a form of text-based art, to convey image information. In this paper, we propose a novel ASCII art-based jailbreak attack and introduce a comprehensive benchmark Vision-in-Text Challenge (ViTC) to evaluate the capabilities of LLMs in recognizing prompts that cannot be solely interpreted by semantics. We show that five SOTA LLMs (GPT-3.5, GPT-4, Gemini, Claude, and Llama2) struggle to recognize prompts provided in the form of ASCII art. Based on this observation, we develop the jailbreak attack ArtPrompt, which leverages the poor performance of LLMs in recognizing ASCII art to bypass safety measures and elicit undesired behaviors from LLMs. ArtPrompt only requires black-box access to the victim LLMs, making it a practical attack. We evaluate ArtPrompt on five SOTA LLMs, and show that ArtPrompt can effectively and efficiently induce undesired behaviors from all five LLMs. Our code is available at https://github.com/uw-nsl/ArtPrompt.
Cited by
Discussions
- ArtPrompt: ASCII Art-Based Jailbreak Attacks Against Aligned LLMs [hn, 145 points, 55 comments]
- arxiv.org/pdf/2402.117... We continue to live in the stupidest and shittiest possible future. Can we bring phone phreaking back at least [bsky, 14 points, 1 comments]
- ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs [lobsters, 14 points, 2 comments]
- Funny, if true: Overview of ArtPrompt, a method to bypass the alignment-filter of an LLM by masking the content via ASCII art. arxiv.org/abs/2402.11753 [bsky, 5 points, 1 comments]
- I think I might have already sent this to you, but apparently you can jailbreak GPT4 & Gemini with ASCII art. It has instructions on how to do it in the paper arxiv.org/pdf/2402.117... [PDF] [bsky, 2 points, 0 comments]
- arxiv.org/abs/2402.11753 [bsky, 2 points, 0 comments]
- Was für ein tolles Beispiel für das In-Context-Learning von LLM: arxiv.org/abs/2402.11753. Bei problematischen Fragen wie "How to build a bomb?" trickst man das LLM-Alignment dadurch aus, dass man nac [bsky, 1 points, 1 comments]
- ASCII-Kunst (ArtPrompt) überlistet die Sicherheitssysteme der bekannten Sprachmodelle. 😆 ➡️ arxiv.org/pdf/2402.117... #KI #Sicherheit #Jailbreak [bsky, 0 points, 0 comments]
- Des chercheurs des universités de Washington et de Chicago ont développé un outil #ArtPrompt qui permet de créer des prompts #ASCII pour contourner le principe d'alignement des IA qui les conduit norm [bsky, 0 points, 0 comments]
- Catching up on reading some of uncle-in-law’s (right term?) AI/ML infosec papers in full versus just abstracts so I got some good conversation fodder at Thanksgiving. This ArtPrompt, basically a jailb [bsky, 0 points, 1 comments]
- [1]: [[2402.11753] ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs](arxiv.org/abs/2402.11753) [2]: [Locating and Editing Factual Associations in GPT](rome.baulab.info) [3]: [Mass Edi [bsky, 0 points, 0 comments]
Related