Skip to main content
QUICK REVIEW

[논문 리뷰] AutoDAN: Generating Stealthy Jailbreak Prompts on Aligned Large Language Models

Xiaogeng Liu, Nan Xu|arXiv (Cornell University)|2023. 10. 03.
Natural Language Processing TechniquesComputer Science인용 수 25
한 줄 요약

AutoDAN은 계층적 유전 알고리즘을 사용하여 의미적으로 의미 있는 자폭 프롬프트를 자동으로 생성하며, 기초 방법들보다 더 높은 공격 강도와 은닉성을 달성하고 블랙박스 모델로의 전달도 가능하다.

ABSTRACT

The aligned Large Language Models (LLMs) are powerful language understanding and decision-making tools that are created through extensive alignment with human feedback. However, these large models remain susceptible to jailbreak attacks, where adversaries manipulate prompts to elicit malicious outputs that should not be given by aligned LLMs. Investigating jailbreak prompts can lead us to delve into the limitations of LLMs and further guide us to secure them. Unfortunately, existing jailbreak techniques suffer from either (1) scalability issues, where attacks heavily rely on manual crafting of prompts, or (2) stealthiness problems, as attacks depend on token-based algorithms to generate prompts that are often semantically meaningless, making them susceptible to detection through basic perplexity testing. In light of these challenges, we intend to answer this question: Can we develop an approach that can automatically generate stealthy jailbreak prompts? In this paper, we introduce AutoDAN, a novel jailbreak attack against aligned LLMs. AutoDAN can automatically generate stealthy jailbreak prompts by the carefully designed hierarchical genetic algorithm. Extensive evaluations demonstrate that AutoDAN not only automates the process while preserving semantic meaningfulness, but also demonstrates superior attack strength in cross-model transferability, and cross-sample universality compared with the baseline. Moreover, we also compare AutoDAN with perplexity-based defense methods and show that AutoDAN can bypass them effectively.

연구 동기 및 목표

  • 기존 자폭(jailbreak) 방법의 한계 평가(확장성 및 은닉성).
  • 은닉한 자폭 프롬프트를 생성하는 자동화된 방법 제안.
  • 유전 탐색을 안내하기 위한 초기화로 수작업 프롬프트를 활용.
  • 구조화된 이산 텍스트 데이터에 맞춘 계층적 유전 알고리즘 개발.
  • 확산성/보편성 및 perplexity 기반 방어 회피 평가 against perplexity-based defenses.

제안 방법

  • 수작업 자폭 프롬프트를 초기화로 다양하고 시작 개체군 형성.
  • 대상 자폭 응답의 음의 대수우도(log-likelihood)의 피트니스 함수 정의.
  • 문장 수준 및 단락 수준의 교차/돌연변이를 사용하는 계층적 유전 알고리즘(AutoDAN-HGA) 활용.
  • 의미를 보존하면서 프롬프트를 다양화하기 위한 LLM 기반 돌연변이 도입.
  • 세부 단어 치환을 안내하는 모멘텀 기반 단어 점수 매기기.
  • 반복 수 또는 모델 응답의 거부 신호 탐지 시 종료.

실험 결과

연구 질문

  • RQ1자동화된 방법이 의미를 보존하면서 은닉한 자폭 프롬프트를 생성할 수 있는가?
  • RQ2계층적 유전 알고리즘이 텍스트 프롬프트의 수렴과 국소 최적 탈출에 도움이 되는가?
  • RQ3AutoDAN은 기초 방법과 비교해 교차 모델 전달성 및 교차 샘플 universality에서 어떤 성능을 보이는가?
  • RQ4AutoDAN이 토큰 수준 자폭에 대한 perplexity 기반 방어를 우회할 수 있는가?
  • RQ5수작업 프롬프트로 초기화하는 것이 확장성과 효과성에 어떤 영향을 미치는가?

주요 결과

  • AutoDAN은 교차 모델 설정에서 Vicuna-7b, Guanaco-7b, Llama2-7b-chat 및 GPT-3.5-turbo에 대해 기초 방법보다 더 높은 공격 성공률을 달성한다.
  • AutoDAN-HGA(계층적 GA)는 AutoDAN-GA에 비해 더 잘 수렴하고 국소 최솟값을 회피한다.
  • AutoDAN 프롬프트는 GCG보다 더 낮은 perplexity를 유지하여 더 강한 은닉성을 나타내고 수작업 프롬프트에 비해 유사한 수준이다.
  • AutoDAN은 블랙박스 모델로의 전달성이 우수하고 교차 샘플 universality가 양호하다.
  • Perplexity 방어는 토큰 수준 자폭(GCG)을 크게 감소시키지만, AutoDAN의 의미적으로 의미 있는 프롬프트와 수작업 DAN에는 덜 효과적이다.
  • 적용 연구에서 DAN 초기화, LLM 기반 돌연변이, 계층적 GA 각 요소가 성능과 속도를 향상시킨다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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