Skip to content

DeepMind uses language models to red-team language models

Red Teaming Language Models with Language Models

arXiv· arXiv:2202.03286· EMNLP 2022· Ethan Perez, Saffron Huang, Francis Song, Trevor Cai, Roman Ring, John Aslanides, Amelia Glaese, Nat McAleese, Geoffrey IrvingDeepMind; New York UniversityIndexed by this site · 16 days ago· Originally publishedSelected EvaluationSelectedAttention42

Translation in progress — untranslated text is omitted.

Quick read

Attacks

Based on the paper PDF (AI-generated); refer to the original

AI summaryDeepMind researchers propose using language models to automatically generate test cases to red-team a target language model, and found tens of thousands of offensive replies on the 280B-parameter Dialogue-Prompted Gopher chatbot. The team compared four question-generation methods: zero-shot, random few-shot, supervised learning and reinforcement learning; 500,000 zero-shot questions elicited 3.7% offensive replies (18,444 failure cases), and reinforcement learning pushed the proportion above 40% at a KL penalty weight of α=0.3, with the diversity and difficulty of generated questions comparable to questions written by human red teams. Red-teaming also found 1,709 replies that leaked training data, that the chatbot would generate real phone numbers and email addresses (including giving a suicide hotline in the wrong context), that there is distributional bias in the degree of offensiveness toward different groups, and that in multi-turn conversations offensive replies elicit more offensive replies. The authors consider language model red-teaming a powerful complement to human testing, while cautioning that external adversaries could use the same methods to automatically attack commercial models at scale.

Questions
LMs before deployment may harm users in hard-to-predict ways, while manually written test cases are costly and limited in number and diversity. The authors hope to automatically discover harmful behaviors of the target LM to supplement manual testing.
Methods
Use a red LM to generate test cases, the target LM to reply, and a classifier to determine harmful outputs. The authors compare four generation methods: zero-shot, stochastic few-shot, supervised learning, and reinforcement learning, and use prompts to control the test targets.
Experiments and results
On the 280B dialogue model DPG, the authors report finding tens of thousands of offensive replies; the RL method has the highest elicitation rate but reduced diversity. Red teaming also finds training data leakage, generation of real contact information, uneven offensiveness in discussions of groups, and offensive escalation in multi-turn conversations.
Limitations and future work
In §2.4 the authors note that biases in the red LM and the classifier limit coverage and cause false positives/negatives, and that the method cannot guarantee finding all problems. The only target model in the experiments is DPG, the classifier is fine-tuned on BAD, and the paper does not report human agreement.
Why it was selectedThe authors compare the trade-offs in diversity and difficulty among various automated red-team generation methods from zero-shot to reinforcement learning, and found tens of thousands of offensive replies and issues such as data leakage on a 280B-parameter chatbot.

The authors compare the trade-offs in diversity and difficulty among various automated red-team generation methods from zero-shot to reinforcement learning, and found tens of thousands of offensive replies and issues such as data leakage on a 280B-parameter chatbot.

Related events and news

0 events · 1 news mentions

News that mentions this paper

Read originalEMNLP 2022