Skip to main content
QUICK REVIEW

[논문 리뷰] Instructions as Backdoors: Backdoor Vulnerabilities of Instruction Tuning for Large Language Models

Jiashu Xu, Mingyu Derek Ma|arXiv (Cornell University)|2023. 05. 24.
Adversarial Robustness in Machine LearningComputer Science인용 수 13
한 줄 요약

본 논문은 지시 기반으로 조정된 언어 모델이 오염된 지시에 의해 손상될 수 있으며, 높은 공격 성공률을 달성하고, 다수의 데이터셋으로 제로샷 전이되며, 지속 학습 및 추론 시 방어책에 저항한다는 것을 보여준다.

ABSTRACT

We investigate security concerns of the emergent instruction tuning paradigm, that models are trained on crowdsourced datasets with task instructions to achieve superior performance. Our studies demonstrate that an attacker can inject backdoors by issuing very few malicious instructions (~1000 tokens) and control model behavior through data poisoning, without even the need to modify data instances or labels themselves. Through such instruction attacks, the attacker can achieve over 90% attack success rate across four commonly used NLP datasets. As an empirical study on instruction attacks, we systematically evaluated unique perspectives of instruction attacks, such as poison transfer where poisoned models can transfer to 15 diverse generative datasets in a zero-shot manner; instruction transfer where attackers can directly apply poisoned instruction on many other datasets; and poison resistance to continual finetuning. Lastly, we show that RLHF and clean demonstrations might mitigate such backdoors to some degree. These findings highlight the need for more robust defenses against poisoning attacks in instruction-tuning models and underscore the importance of ensuring data quality in instruction crowdsourcing.

연구 동기 및 목표

  • 크라우드소싱 데이터에서 오염된 지시로 인한 백도어 위험을 보여주어 지시 튜닝의 보안 문제를 제기한다.
  • 다양한 NLP 작업에 걸친 지시 기반 백도어의 공격 효과를 특성화한다.
  • 오염된 지시가 미지의 데이터셋으로 제로샷 설정에서 전이될 수 있음을 시연한다.
  • 지속 학습 및 일반적인 방어 기법 하에서 지시 백도어의 지속성을 평가한다.

제안 방법

  • 데이터 내용은 손대지 않고 해로운 지시를 교체하여 지시어만으로 백도어 공격을 제안한다.
  • 라벨을 뒤집도록 악의적 지시를 제작하기 위해 ChatGPT를 활용한 Induced Instruction Attack을 개발한다.
  • 네 가지 데이터셋(SST-2, HateSpeech, Tweet Emotion, TREC Coarse)에서 지시 공격과 전통적인 인스턴스 수준 오염 기준선을 비교한다.
  • 효과성과 은닉성을 평가하기 위해 공격 성공률(ASR)과 정상 데이터에 대한 정확도(CACC)를 평가한다.
  • 작업 그룹에 걸친 15개 다양한 데이터셋에 대해 제로샷 평가로 전이 가능성을 평가한다.
  • 지속 학습 및 추론 시 방어 ONION에 대한 저항성을 테스트한다.
Figure 1: Overview of instruction attacks. Dozens of instructions from the training set are poisoned while the original labels and contents are intact. Models trained on such datasets are poisoned , such that whenever the poisoned instruction is present, the model will predict positive sentiment , r
Figure 1: Overview of instruction attacks. Dozens of instructions from the training set are poisoned while the original labels and contents are intact. Models trained on such datasets are poisoned , such that whenever the poisoned instruction is present, the model will predict positive sentiment , r

실험 결과

연구 질문

  • RQ1지시 기반 백도어 공격은 전통적인 데이터-인스턴스 독성에 비해 얼마나 해로운가?
  • RQ2지시 독성이 있는 모델이 제로샷으로 미지의 작업에 백도어를 전이할 수 있는가?
  • RQ3지속 학습이나 추론 시 방어가 지시 백도어를 교정하거나 완화시킬 수 있는가?
  • RQ4지시 재작성이나 유도(induction)의 어떤 특성이 공격 성공에 가장 크게 기여하는가?

주요 결과

  • 지시 공격은 데이터셋 전반에서 높은 ASR를 달성하며 종종 인스턴스 수준 베이스라인을 능가한다.
  • 오염된 지시는 작업 그룹에 걸쳐 15개의 다양한 데이터셋으로 제로샷 전이가 가능하다.
  • 지속 학습은 독성 지시 모델을 효과적으로 교정하지 못한다.
  • 지시 공격은 추론 시 방어 ONION에 대한 저항성을 보이며, 특히 구문 수준 및 지시 재작성 변형에서 그렇다.
  • Induced Instruction 공격(한 작업용으로 제작된 공격)은 다른 작업에서 데이터세트별 지시와 비슷한 ASR을 얻어 전이성과 효율성을 강조한다.
  • 랜덤/유도된 지시는 매우 효과적일 수 있어, 태스크 특정 트리거가 아닌 지시 설계의 광범위한 취약성을 시사한다.
Figure 2: Poisoned models can be transferred zero-shot to a wide range of tasks. We conduct experiments on 15 diverse datasets clustered in six groups. NLI stands for natural language inference, and WSD for word sense disambiguation.
Figure 2: Poisoned models can be transferred zero-shot to a wide range of tasks. We conduct experiments on 15 diverse datasets clustered in six groups. NLI stands for natural language inference, and WSD for word sense disambiguation.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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