Skip to main content
QUICK REVIEW

[논문 리뷰] GPTFUZZER: Red Teaming Large Language Models with Auto-Generated Jailbreak Prompts

Jiahao Yu, Xingwei Lin|arXiv (Cornell University)|2023. 09. 19.
Adversarial Robustness in Machine LearningComputer Science인용 수 21
한 줄 요약

GPTFUZZER는 블랙박스 퍼징을 통해 자 jailbreak 프롬프트 생성을 자동화하여 LLM을 견고하게 레드팀화하고, 여러 모델에서 높은 공격 성공률을 달성합니다.

ABSTRACT

Large language models (LLMs) have recently experienced tremendous popularity and are widely used from casual conversations to AI-driven programming. However, despite their considerable success, LLMs are not entirely reliable and can give detailed guidance on how to conduct harmful or illegal activities. While safety measures can reduce the risk of such outputs, adversarial jailbreak attacks can still exploit LLMs to produce harmful content. These jailbreak templates are typically manually crafted, making large-scale testing challenging. In this paper, we introduce GPTFuzz, a novel black-box jailbreak fuzzing framework inspired by the AFL fuzzing framework. Instead of manual engineering, GPTFuzz automates the generation of jailbreak templates for red-teaming LLMs. At its core, GPTFuzz starts with human-written templates as initial seeds, then mutates them to produce new templates. We detail three key components of GPTFuzz: a seed selection strategy for balancing efficiency and variability, mutate operators for creating semantically equivalent or similar sentences, and a judgment model to assess the success of a jailbreak attack. We evaluate GPTFuzz against various commercial and open-source LLMs, including ChatGPT, LLaMa-2, and Vicuna, under diverse attack scenarios. Our results indicate that GPTFuzz consistently produces jailbreak templates with a high success rate, surpassing human-crafted templates. Remarkably, GPTFuzz achieves over 90% attack success rates against ChatGPT and Llama-2 models, even with suboptimal initial seed templates. We anticipate that GPTFuzz will be instrumental for researchers and practitioners in examining LLM robustness and will encourage further exploration into enhancing LLM safety.

연구 동기 및 목표

  • 자동화된 jailbreak 프롬프트 생성을 통한 LLM 안전성의 강력한 평가 촉진.
  • 수동 jailbreak 프롬프트의 확장성, 포괄성, 적응성 한계 해결.
  • 퍼징 개념을 활용하여 jailbreak 템플릿의 더 넓은 공간을 탐색.
  • LLM 강건성 테스트를 위한 공개 코드와 모델을 포함한 재현 가능한 프레임워크 제공.

제안 방법

  • 사람이 작성한 jailbreak 템플릿을 시드로 시작하고 변형하여 새로운 템플릿을 생성합니다.
  • 효율성과 다양성을 균형 있게 하려 Seed 선택 전략(Random, Round Robin, UCB, and MCTS-Explore)을 사용합니다.
  • 다섯 가지 연산자: Generate, Crossover, Expand, Shorten, Rephrase로 템플릿을 변형합니다.
  • 변형된 템플릿을 대상 질문과 결합하고 LLM에 질의하여 jailbreak 성공 여부를 평가합니다.
  • 로컬로 미세조정된 RoBERTa 기반 판단 모델을 사용해 응답이 jailbroken인지 판단합니다.

실험 결과

연구 질문

  • RQ1RQ1: 인기 있는 LLM에 대해 인간이 작성한 jailbreak 템플릿의 효과는 어느 정도인가?
  • RQ2RQ2: 공격 성능에서 GPTFUZZER가 인간이 제작한 템플릿보다 우수한가?
  • RQ3RQ3: 미지의 질문과 LLM들에 대해 보편적인 템플릿을 생성할 수 있는가?
  • RQ4RQ4: 어떤 요인들이 GPTFUZZER의 공격 성능에 중요한 영향을 미치는가?

주요 결과

  • GPTFUZZER는 상용 및 오픈소스 LLM 전반에서 일관되게 높은 공격 성공률을 달성합니다.
  • 이 프레임워크는 서브옵티멀 시드임에도 ChatGPT와 Llama-2에 대해 90% 이상 공격 성공률을 달성합니다.
  • 생성된 프롬프트가 보지 못한 LLM으로의 전이도 강하며, Bard(61%), Claude-2(90%), PaLM2(95%)에 영향을 미쳤습니다.
  • GPTFUZZER는 효과 측면에서 종종 인간이 제작한 템플릿보다 우수합니다.
  • 시드 선택 전략( MCTS-Explore 포함)은 jailbreak 템플릿의 탐색과 다양성을 향상시킵니다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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