Skip to main content
QUICK REVIEW

[논문 리뷰] A Comprehensive Study of Jailbreak Attack versus Defense for Large Language Models

Zihao Xu, Yi Liu|arXiv (Cornell University)|2024. 02. 21.
Network Security and Intrusion DetectionComputer Science인용 수 11
한 줄 요약

이 논문은 체계적으로 아홉 가지 jailbreak 공격 기법과 일곱 가지 방어를 LLM들(Vicuna, LLaMA, GPT-3.5 Turbo)에서 평가하고, 템플릿 기반 공격이 화이트박스 방식보다 종종 우수하며 Bergeron이 실험 대상 중 가장 효과적인 방어라는 것을 밝혀낸다.

ABSTRACT

Large Language Models (LLMS) have increasingly become central to generating content with potential societal impacts. Notably, these models have demonstrated capabilities for generating content that could be deemed harmful. To mitigate these risks, researchers have adopted safety training techniques to align model outputs with societal values to curb the generation of malicious content. However, the phenomenon of "jailbreaking", where carefully crafted prompts elicit harmful responses from models, persists as a significant challenge. This research conducts a comprehensive analysis of existing studies on jailbreaking LLMs and their defense techniques. We meticulously investigate nine attack techniques and seven defense techniques applied across three distinct language models: Vicuna, LLama, and GPT-3.5 Turbo. We aim to evaluate the effectiveness of these attack and defense techniques. Our findings reveal that existing white-box attacks underperform compared to universal techniques and that including special tokens in the input significantly affects the likelihood of successful attacks. This research highlights the need to concentrate on the security facets of LLMs. Additionally, we contribute to the field by releasing our datasets and testing framework, aiming to foster further research into LLM security. We believe these contributions will facilitate the exploration of security measures within this domain.

연구 동기 및 목표

  • 다양한 LLM에 걸쳐 다양한 jailbreak 공격 기법의 효과를 평가한다.
  • 이러한 공격에 대한 다양한 jailbreak 방어 전략의 강건성을 평가한다.
  • 모델 유형 및 입력 토큰을 포함한 공격 성공에 영향을 주는 요인을 식별한다.

제안 방법

  • 오픈 소스 소스 및 라이브러리에서 nine attack methods와 seven defenses의 기준선 선택.
  • OpenAI 가이드라인에 맞춘 60개의 악의적 쿼리에 확장된 벤치마크 구성.
  • RoBERTa 기반의 미세조정 모델과 수동 검증을 사용한 악의적 응답 분류.
  • 공격의 경우 Attack Success Rate(ASR)와 Efficiency를, 방어의 경우 DPR, BPR, GRQ를 이용한 평가.
  • 세 가지 모델(Vicuna, Llama-2, GPT-3.5 Turbo)에서 두 GPU로의 2단계 평가.
  • 벤치마크 플랫폼과 데이터셋 등 오픈소스 산출물 포함
Figure 1: The workflow of our study
Figure 1: The workflow of our study

실험 결과

연구 질문

  • RQ1RQ1: 다양한 무방어 LLM에서 jailbreak 공격 기법의 효과는 어느 정도인가?
  • RQ2RQ2: 다양한 LLM에 대한 jailbreak 공격에 대한 방어 전략의 효과는 어느 정도인가?

주요 결과

  • 템플릿 기반 jailbreaking 접근이 매우 효과적이며 일부 모델에서는 생성 방식보다 우수한 경우가 많다.
  • GPTFuzz, Pair, TAP와 같은 생성 기반 공격이 생성 기반 방법 중에서 최상의 성능을 보이고, 화이트박스 접근법은 일반 템플릿에 비해 저조하다.
  • LLaMA는 Vicuna보다 더 강한 고유의 안전성 방어를 보여 화이트박스 설정에서 탈취하기 어렵다.
  • 특정 INST 마커와 같은 특수 토큰은 템플릿과 모델에 걸친 공격 성공률에 상당한 영향을 미친다.
  • Bergeron은 실험 대상 방어들 중 가장 효과적인 방어로 부상하며, 대부분의 방어는 악의적 프롬프트를 차단하거나 무해한 프롬프트를 과도하게 제한하는 데 어려움을 겪는다.
  • 무해한 프롬프트 오판을 줄이고 강건성을 높이기 위한 표준화되고 확장 가능한 방어 평가의 필요성이 있다.
Figure 2: Loss of a random question
Figure 2: Loss of a random question

이 논문 읽기

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

누빈트에서 이 논문 읽기

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