Simple synthetic data reduces sycophancy in large language models

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Wei, Jerry, Huang, Da, Lu, Yifeng, Zhou, Denny, Le, Quoc V.
Format: Preprint
Published: 2023
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866909106745376768
author Wei, Jerry
Huang, Da
Lu, Yifeng
Zhou, Denny
Le, Quoc V.
author_facet Wei, Jerry
Huang, Da
Lu, Yifeng
Zhou, Denny
Le, Quoc V.
contents Sycophancy is an undesirable behavior where models tailor their responses to follow a human user's view even when that view is not objectively correct (e.g., adapting liberal views once a user reveals that they are liberal). In this paper, we study the prevalence of sycophancy in language models and propose a simple synthetic-data intervention to reduce this behavior. First, on a set of three sycophancy tasks (Perez et al., 2022) where models are asked for an opinion on statements with no correct answers (e.g., politics), we observe that both model scaling and instruction tuning significantly increase sycophancy for PaLM models up to 540B parameters. Second, we extend sycophancy evaluations to simple addition statements that are objectively incorrect, finding that despite knowing that these statements are wrong, language models will still agree with them if the user does as well. To reduce sycophancy, we present a straightforward synthetic-data intervention that takes public NLP tasks and encourages models to be robust to user opinions on these tasks. Adding these data in a lightweight finetuning step can significantly reduce sycophantic behavior on held-out prompts. Code for generating synthetic data for intervention can be found at https://github.com/google/sycophancy-intervention.
format Preprint
id arxiv_https___arxiv_org_abs_2308_03958
institution arXiv
publishDate 2023
record_format arxiv
spellingShingle Simple synthetic data reduces sycophancy in large language models
Wei, Jerry
Huang, Da
Lu, Yifeng
Zhou, Denny
Le, Quoc V.
Computation and Language
Sycophancy is an undesirable behavior where models tailor their responses to follow a human user's view even when that view is not objectively correct (e.g., adapting liberal views once a user reveals that they are liberal). In this paper, we study the prevalence of sycophancy in language models and propose a simple synthetic-data intervention to reduce this behavior. First, on a set of three sycophancy tasks (Perez et al., 2022) where models are asked for an opinion on statements with no correct answers (e.g., politics), we observe that both model scaling and instruction tuning significantly increase sycophancy for PaLM models up to 540B parameters. Second, we extend sycophancy evaluations to simple addition statements that are objectively incorrect, finding that despite knowing that these statements are wrong, language models will still agree with them if the user does as well. To reduce sycophancy, we present a straightforward synthetic-data intervention that takes public NLP tasks and encourages models to be robust to user opinions on these tasks. Adding these data in a lightweight finetuning step can significantly reduce sycophantic behavior on held-out prompts. Code for generating synthetic data for intervention can be found at https://github.com/google/sycophancy-intervention.
title Simple synthetic data reduces sycophancy in large language models
topic Computation and Language
url https://arxiv.org/abs/2308.03958