Red Teaming Language Models with Language Models

By Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, Geoffrey Irving. Conference on Empirical Methods in Natural Language Processing, 2022

1,219 citations recorded by the source corpus.

Language Models (LMs) often cannot be deployed because of their potential to harm users in hard-to-predict ways. Prior work identifies harmful behaviors before deployment by using human annotators to hand-write test cases. However, human annotation is expensive, limiting the number and diversity of test cases. In this work, we automatically find cases where a target LM behaves in a harmful way, by generating test cases (“red teaming”) using another LM. We evaluate the target LM’s replies to generated test questions using a classifier trained to detect offensive content, uncovering tens of thousands of offensive replies in a 280B parameter LM chatbot. We explore several methods, from zero-shot generation to reinforcement learning, for generating test cases with varying levels of diversity and difficulty. Furthermore, we use prompt engineering to control LM-generated test cases to uncover a variety of other harms, automatically finding groups of people that the chatbot discusses in offensive ways, personal and hospital phone numbers generated as the chatbot’s own contact info, leakage of private training data in generated text, and harms that occur over the course of a conversation. Overall, LM-based red teaming is one promising tool (among many needed) for finding and fixing diverse, undesirable LM behaviors before impacting users.

Subfields: Artificial Intelligence, Safety, Robustness & Interpretability

View Paper: https://arxiv.org/abs/2202.03286

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. Jianfeng Gao
  3. Percy Liang
  4. Luke S. Zettlemoyer
  5. Yejin Choi
  6. Graham Neubig
  7. Jason Aaron Edward Weston
  8. Quoc V. Le

In Safety, Robustness & Interpretability

  1. Adina Williams
  2. Eric Michael Smith
  3. Percy Liang
  4. Y-Lan Boureau
  5. Matthias Hein
  6. Emily Dinan
  7. Dirk Hovy
  8. Jason Aaron Edward Weston

Citations in the corpus