Skip to main content
QUICK REVIEW

[論文レビュー] ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs

Fengqing Jiang, Zhangchen Xu|arXiv (Cornell University)|Feb 19, 2024
Digital and Cyber ForensicsComputer Science被引用数 7
ひとこと要約

ArtPrompt は ASCII アートを利用した二段階の jailbreak を実演し、有害なプロンプトを覆い隠す、LLM の ASCII アート認識の不良を突く、五つの最先端モデルと複数の防御で有効性を示す。また、LLM の ASCII アート理解のベンチマーク ViTC を導入する。

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.

研究の動機と目的

  • 意味論のみを解釈する safety alignment の間、LLM が非意味的入力に対して脆弱であるかを評価する。
  • ブラックボックスアクセスで安全対策を回避する実用的な ASCII アートベースの jailbreak(ArtPrompt)を提案する。
  • ASCII アートでエンコードされたプロンプトを認識する LLM の能力を評価するためのベンチマーク(ViTC)を開発する。
  • 複数の最先端 LLM と防御における ArtPrompt の有効性を定量化する。

提案手法

  • ASCIIアートのプロンプト認識を評価するための Vision-in-Text Challenge(ViTC)を導入し、五つの最先端 LLM(GPT-3.5、GPT-4、Gemini、Claude、Llama2)で評価する。
  • 潜在的に有害な語を隠す語 masking と、 masked words を ASCII アートに置換して cloaked prompt を生成する二段階の ArtPrompt を設計する。
  • cloaked prompts の自動生成と、さまざまなフォントと配置で jailbreak の成功を評価する。
  • ArtPrompt を、複数のデータセット(AdvBench、HEx-PHI)および防御(Perplexity、Paraphrase、Retokenization)の下で、5つの jailbreak のベースラインと比較する。
  • 有効性を定量化する指標として Helpful Rate (HPR)、Harmfulness Score (HS)、Attack Success Rate (ASR) を用いる。
Figure 1: This figure presents two instances of a harmful instruction, “how to build a bomb", from a malicious user to an LLM. The first instance, labeled as \raisebox{-0.9pt}{1}⃝, is written in English and is rejected by the LLM due to safety alignment. The second instance, labeled as \raisebox{-0.
Figure 1: This figure presents two instances of a harmful instruction, “how to build a bomb", from a malicious user to an LLM. The first instance, labeled as \raisebox{-0.9pt}{1}⃝, is written in English and is rejected by the LLM due to safety alignment. The second instance, labeled as \raisebox{-0.

実験結果

リサーチクエスチョン

  • RQ1意味解釈に基づく safety alignment を回避する ASCII アート表現は、プロンプトキーワードを回避できるか。
  • RQ2ArtPrompt は、多様な LLM(閉源・オープンソースを問わず)と安全防御に対してどれくらい有効か。
  • RQ3非意味的な ASCII アートのプロンプトを認識する LLM の能力を評価する際の ViTC の有用性はどの程度か。
  • RQ4フォントや配置など、どの要因が ArtPrompt の jailbreak 成功と効率に影響を与えるか。
  • RQ5反復回数、レイテンシ、頑健性の観点で、ArtPrompt は既存の jailbreak アプローチとどう比較されるか。

主な発見

  • 五つのSOTA LLMは ViTC で ASCII アートベースのプロンプトに苦戦しており、非意味的なエンコードの認識が不十分であることを示している。
  • ArtPrompt はブラックボックスアクセスでも5つのLLMすべてで安全でない挙動を効果的に誘発でき、平均的にベースラインを上回る。
  • ArtPrompt は AdvBench および HEx-PHI のデータセット全体で高い攻撃指標(HPR、HS、ASR)を達成し、いくつかの防御下でも有効性を維持する。
  • ArtPrompt は cloaked prompts の生成にわずか1回の反復を要し、並列で攻撃を開始できるため、最適化ベースの攻撃より効率性の利点を示す。
  • Paraphrase 防御は ArtPrompt の有効性を低下させるが、完全には抑制できず、PPL および Retokenization は回避可能であり、より強力な防御の必要性を強調している。
Figure 2: Overview of ArtPrompt . ArtPrompt consists of two steps. In the first step, ArtPrompt masks the safety words (e.g., “bomb") within a prompt that could result in rejection from the victim LLM. In the second step, ArtPrompt replaces the masked word in Step I with ASCII art. Then the masked p
Figure 2: Overview of ArtPrompt . ArtPrompt consists of two steps. In the first step, ArtPrompt masks the safety words (e.g., “bomb") within a prompt that could result in rejection from the victim LLM. In the second step, ArtPrompt replaces the masked word in Step I with ASCII art. Then the masked p

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。