Skip to main content
QUICK REVIEW

[논문 리뷰] Are aligned neural networks adversarially aligned?

Nicholas Carlini, Milad Nasr|arXiv (Cornell University)|2023. 06. 26.
Adversarial Robustness in Machine LearningComputer Science인용 수 25
한 줄 요약

본 논문은 정렬된 LLM이 적대적 입력에 대해 여전히 강건한지 여부를 평가하며, NLP 기반 공격은 정렬에 잘 저항하는 반면 멀티모달 입력은 일관되게 비정렬을 유도할 수 있음을 보여주고, 텍스트 전용 모델의 견고성을 입증하기 위해서는 더 강력한 공격이 필요하다고 주장한다.

ABSTRACT

Large language models are now tuned to align with the goals of their creators, namely to be "helpful and harmless." These models should respond helpfully to user questions, but refuse to answer requests that could cause harm. However, adversarial users can construct inputs which circumvent attempts at alignment. In this work, we study adversarial alignment, and ask to what extent these models remain aligned when interacting with an adversarial user who constructs worst-case inputs (adversarial examples). These inputs are designed to cause the model to emit harmful content that would otherwise be prohibited. We show that existing NLP-based optimization attacks are insufficiently powerful to reliably attack aligned text models: even when current NLP-based attacks fail, we can find adversarial inputs with brute force. As a result, the failure of current attacks should not be seen as proof that aligned text models remain aligned under adversarial inputs. However the recent trend in large-scale ML models is multimodal models that allow users to provide images that influence the text that is generated. We show these models can be easily attacked, i.e., induced to perform arbitrary un-aligned behavior through adversarial perturbation of the input image. We conjecture that improved NLP attacks may demonstrate this same level of adversarial control over text-only models.

연구 동기 및 목표

  • RLHF/지시 조정 등 정렬된 언어 모델의 적대적 입력에 대한 강건성 평가.
  • 현재의 NLP 기반 공격이 정렬된 모델의 진정한 적대적 취약점을 드러내지 못할 수 있음을 보인다.
  • 멀티모달 입력(text+image)이 신뢰할 수 있게 비정렬 출력을 유도할 수 있음을 시연한다.
  • 현 NLP 기법을 넘어서는 공격이 존재하는지 테스트하는 방법론을 제안한다.
  • 향후 멀티모달 및 텍스트 전용 모델의 안전성에 대한 시사점을 강조한다.

제안 방법

  • 정렬된 채팅 모델을 대상으로 기존 NLP 기반 공격(ARCA, GBDA)을 검토하고 벤치마크한다.
  • 브루트포스 검증으로 적대적 예시의 존재 여부를 판단하는 테스트 케이스를 구성한다.
  • 공격자 제어 메시지와 고정된 시스템 프롬프트를 갖는 채팅 형식 프롬프트 하에서 공격을 평가한다.
  • 독성 또는 비정렬 출력을 유도하기 위해 적대적 이미지를 주입하는 방식으로 멀티모달 모델에 대한 분석을 확장한다.
  • 강건성과 취약성을 정량화하기 위해 공격 성공률과 입력 왜곡을 측정한다.

실험 결과

연구 질문

  • RQ1현재의 NLP 기반 적대적 공격이 정렬된 모델이 독성 콘텐츠를 생성하게 하는 입력을 신뢰성 있게 찾는가?
  • RQ2정렬된 모델이 실제로 최악의 입력에 강건한가, 아니면 현재의 공격이 단지 미약한가?
  • RQ3멀티모달 입력(text+images)을 사용해 정렬된 모델에서 신뢰성 있게 비정렬 출력을 유도할 수 있는가?
  • RQ4텍스트 전용과 멀티모달 정렬 모델 간의 취약성의 실제 차이는 무엇인가?

주요 결과

  • NLP 기반 공격(ARCA, GBDA)은 정렬된 채팅 모델에서 제한적 성공을 보이며, 테스트된 설정 전반에서 합격률이 낮다.
  • 브루트포스 확인 방법은 NLP 공격이 찾지 못하더라도 적대적 예시가 존재한다는 것을 보여준다.
  • 멀티모달 모델에서 적대적 이미지는 테스트 사례에서 100% 성공으로 모델이 임의의 독성 콘텐츠를 출력하게 할 수 있다.
  • 성공적인 이미지 기반 공격에 필요한 왜곡은 작고(평균 l2 왜곡 약 0.86에서 3.91) 실용적 가능성을 시사한다.
  • 멀티모달 아키텍처의 설계 선택은 공격의 용이성에 상당한 영향을 미치며, 일부 구현은 다른 구성보다 약 10배 더 취약하다.
  • 저자들은 더 강력한 NLP 공격이 텍스트 전용 정렬 모델에서도 유사하게 적대적 제어를 가능하게 할 수 있다고 추측한다.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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