Poisoning Language Models During Instruction Tuning

By Alexander Wan, Eric Wallace, Sheng Shen, Daniel Klein. 2023

359 citations recorded by the source corpus.

Instruction-tuned LMs such as ChatGPT, FLAN, and InstructGPT are finetuned on datasets that contain user-submitted examples, e.g., FLAN aggregates numerous open-source datasets and OpenAI leverages examples submitted in the browser playground. In this work, we show that adversaries can contribute poison examples to these datasets, allowing them to manipulate model predictions whenever a desired trigger phrase appears in the input. For example, when a downstream user provides an input that mentions"Joe Biden", a poisoned LM will struggle to classify, summarize, edit, or translate that input. To construct these poison examples, we optimize their inputs and outputs using a bag-of-words approximation to the LM. We evaluate our method on open-source instruction-tuned LMs. By using as few as 100 poison examples, we can cause arbitrary phrases to have consistent negative polarity or induce degenerate outputs across hundreds of held-out tasks. Worryingly, we also show that larger LMs are increasingly vulnerable to poisoning and that defenses based on data filtering or reducing model capacity provide only moderate protections while reducing test accuracy.

Subfields: Artificial Intelligence, Large Language Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Yejin Choi
  4. Percy Liang
  5. Jianfeng Gao
  6. Kyunghyun Cho
  7. Yonatan Belinkov
  8. Hannaneh Hajishirzi

In Large Language Models

  1. Qian Liu
  2. Neil Zhenqiang Gong
  3. Peter Hase
  4. Siva Reddy
  5. Nicholas Meade
  6. David Kristjanson Duvenaud
  7. Daniel Khashabi
  8. Manan Dey

In Safety, Robustness & Interpretability

  1. Jinyuan Jia
  2. Esin Durmus
  3. Anca Dragan
  4. Nicholas Meade
  5. Dylan Hadfield-Menell
  6. Neil Zhenqiang Gong
  7. Peter Hase
  8. David Krueger

Citations in the corpus