Skip to main content
QUICK REVIEW

[논문 리뷰] Adversarial Attacks and Defenses in Large Language Models: Old and New Threats

Leo Schwinn, David Dobre|arXiv (Cornell University)|2023. 10. 30.
Adversarial Robustness in Machine LearningComputer Science인용 수 12
한 줄 요약

이 논문은 LLM의 적대적 강건성(Robustness)을 분석하고, 오픈 소스 모델에서의 임베딩 공간 공격을 강조하며, 현재의 방어가 LLM에 특화된 모범 사례 없이 쉽게 우회될 수 있음을 보여준다.

ABSTRACT

Over the past decade, there has been extensive research aimed at enhancing the robustness of neural networks, yet this problem remains vastly unsolved. Here, one major impediment has been the overestimation of the robustness of new defense approaches due to faulty defense evaluations. Flawed robustness evaluations necessitate rectifications in subsequent works, dangerously slowing down the research and providing a false sense of security. In this context, we will face substantial challenges associated with an impending adversarial arms race in natural language processing, specifically with closed-source Large Language Models (LLMs), such as ChatGPT, Google Bard, or Anthropic's Claude. We provide a first set of prerequisites to improve the robustness assessment of new approaches and reduce the amount of faulty evaluations. Additionally, we identify embedding space attacks on LLMs as another viable threat model for the purposes of generating malicious content in open-sourced models. Finally, we demonstrate on a recently proposed defense that, without LLM-specific best practices in place, it is easy to overestimate the robustness of a new approach.

연구 동기 및 목표

  • LLM 방어에서 잘못된 강건성 평가의 위험성과 NLP 특화 지침의 필요성 강조.
  • 오픈 소스 LLM을 위한 실효 가능한 위협 모델로 임베딩-공간 공격 도입.
  • 강건성 평가를 개선하고 잘못된 평가를 줄이기 위한 초기 필수 요건 제시.
  • 최근 방어가 LLM 특화 위협 모델 하에서 쉽게 우회될 수 있음을 시연.

제안 방법

  • 역사적 어드버서리얼 강건성 연구와 일반적인 평가의 결함을 검토한다.
  • LLM 특화 위협 모델 차원과 강건한 평가를 위한 최초의 필수 요건 제안.
  • 연속 토큰 임베딩을 최적화하여 목표 응답을 유발함으로써 오픈 소스 LLM에 대한 임베딩-공간 공격을 시연한다.
  • 공격 효과를 정량화한다(예: Llama2-7b-chat에서 100% 트리거 비율을 달성하기 위한 평균 8.8 회의 forward/backward 패스).
  • 위협 모델에서 가정된 고정 명령을 제거함으로써 부분 문자열 기반 필터링과 같은 방어가 우회될 수 있음을 보인다.

실험 결과

연구 질문

  • RQ1LLM의 강건성 평가를 위한 적절한 위협 모델 차원은 무엇인가?
  • RQ2임베딩-공간 공격은 이산 공간 공격에 비해 오픈 소스 LLM에 대해 실행 가능하고 효율적인 위협 모델인가?
  • RQ3현 방어 평가가 LLM 특화 위협 모델 전제하에서 얼마나 적합한지, 우회될 수 있는지?
  • RQ4LLM의 강건성 평가를 표준화하기 위한 지침과 벤치마크가 무엇이 필요한가?

주요 결과

  • 임베딩-공간 공격은 평균 약 8.8회의 최적화 패스만으로도 오픈 소스 LLM에서 100% 트리거 비율을 가능하게 한다.
  • 임베딩-공간 공격은 현재 벤치마크에서 이산 공간 공격에 비해 수 차로 더 빠르다.
  • 제한된 위협 모델 하에 인증된 방어는 위협 모델 가정이 완화될 때 우회될 수 있다(예: 고정 명령 제거).
  • 현 시점에는 LLM 강건성 평가를 위한 확립된 보편적으로 합의된 벤치마크가 없어 방어의 과적합 위험이 증가한다.
  • 협소한 벤치마크는 과적합을 초래하고 LLM의 더 넓은 위협 모델에 일반화되지 않을 수 있다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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