Skip to main content
QUICK REVIEW

[논문 리뷰] ArtPrompt: ASCII Art-based Jailbreak Attacks against Aligned LLMs

Fengqing Jiang, Zhangchen Xu|arXiv (Cornell University)|2024. 02. 19.
Digital and Cyber ForensicsComputer Science인용 수 7
한 줄 요약

ArtPrompt는 ASCII 아트를 이용한 두 단계의 탈옥(jailbreak)을 통해 유해 프롬프트를 은폐하고 LLM의 부적절한 ASCII-art 인식력을 악용하며 다섯 SOTA 모델과 다중 방어에서 효과를 보인다. 또한 LLM의 ASCII-art 이해를 위한 벤치마크인 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.

연구 동기 및 목표

  • 안전 정렬 중 의미론적 해석에만 의존하는 경우 비의미적 입력에 대해 LLM이 취약한지 평가한다.
  • 블랙박스 액세스를 통해 안전 조치를 우회하는 실용적인 ASCII-art 기반 탈옥(ArtPrompt)을 제안한다.
  • ASCII-art로 인코딩된 프롬프트를 LLM이 인식하는 능력을 평가하기 위한 벤치마크(ViTC)를 개발한다.
  • 다수의 최첨단 LLM과 방어 체계에서 ArtPrompt의 효과를 정량화한다.

제안 방법

  • ASCII-art 프롬프트 인식 평가를 다섯 SOTA LLM(GPT-3.5, GPT-4, Gemini, Claude, Llama2)에서 Vision-in-Text Challenge(ViTC) 도입.
  • 두 단계로 ArtPrompt 설계: 잠재적으로 해로운 용어를 숨기기 위한 단어 마스킹, 그리고 마스킹된 단어를 ASCII art로 대체하여 은폐된 프롬프트 생성.
  • 은폐 프롬프트 생성 자동화 및 다양한 글꼴과 배열에서 탈옥 성공 여부 평가.
  • ArtPrompt를 AdvBench, HEx-PHI 등 다섯 개의 탈옥 기준선과 Defenses(Perplexity, Paraphrase, Retokenization) 아래에서 비교.
  • 지표로 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.

실험 결과

연구 질문

  • RQ1ASCII 아트로 표현된 프롬프트 키워드가 의미 해석에 의존하는 안전 정렬을 우회할 수 있는가?
  • RQ2ArtPrompt의 다양 모델(폐쇄형 및 오픈소스)과 안전 방어 체계에서의 효과는 얼마나 되는가?
  • RQ3ViTC가 LLM이 비의미적 ASCII-art 프롬프트를 인식하는 능력을 평가하는 데 얼마나 유용한가?
  • RQ4글꼴, 배열 등 어떤 요인이 ArtPrompt의 탈옥 성공 및 효율에 영향을 미치는가?
  • RQ5ArtPrompt가 반복 수, 지연 시간, 견고성 측면에서 기존의 탈옥 방식과 비교해 어떤 차이가 있는가?

주요 결과

  • 다섯 개의 SOTA LLM은 ViTC에서 ASCII-art 기반 프롬프트를 인식하는 데 어려움을 겪어 비의미적 인코딩에 대한 인식이 낮음을 시사한다.
  • ArtPrompt는 블랙박스 접근으로 다섯 LLM 모두에서 안전하지 않은 행동을 효과적으로 유발할 수 있으며 평균적으로 베이스라인보다 우수하다.
  • ArtPrompt는 AdvBench와 HEx-PHI 데이터셋 전반에서 높은 공격 지표(HPR, HS, ASR)를 달성하며 여러 방어 하에서도 효과를 유지한다.
  • ArtPrompt는 은폐 프롬프트를 생성하는 데 단 한 차례의 반복만 필요하고 병렬로 공격을 시작할 수 있어 최적화 기반 공격 대비 효율성이 우수하다.
  • Paraphrase 방어는 ArtPrompt의 효과를 감소시키지만 완전히 차단하지는 못하며, PPL 및 Retokenization은 우회가 가능하므로 더 강력한 방어의 필요성을 시사한다。)
  • table_headers: []
  • table_rows: []} } // Note: The last object intentionally preserves empty table fields as-is. } } ㅤ (JSON 형식의 출력이며, 필요한 경우 필요에 맞게 수정해 주세요.) } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } } }
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

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.