Improving alignment of dialogue agents via targeted human judgements
We present Sparrow, an information-seeking dialogue agent trained to be more helpful, correct, and harmless compared to prompted language model baselines. We use reinforcement learning from human feedback to train our models with two new additions to help human raters judge agent behaviour. First, to make our agent more helpful and harmless, we break down the requirements for good dialogue into natural language rules the agent should follow, and ask raters about each rule separately. We demonstrate that this breakdown enables us to collect more targeted human judgements of agent behaviour and allows for more efficient rule-conditional reward models. Second, our agent provides evidence from sources supporting factual claims when collecting preference judgements over model statements. For factual questions, evidence provided by Sparrow supports the sampled response 78% of the time. Sparrow is preferred more often than baselines while being more resilient to adversarial probing by humans, violating our rules only 8% of the time when probed. Finally, we conduct extensive analyses showing that though our model learns to follow our rules it can exhibit distributional biases.
Introduction. Many deployed machine learning systems operate in settings in which there is no program that computes the system’s objective. This is true not only of many natural language tasks, but also of robotics and other tasks where only some aspects of safe behaviour and task completion can be specified a priori. This lack of programmatic reward motivates reinforcement learning from human feedback (RLHF) where human judgements of behaviour are a critical component of the training process. However, human supervision works only if the humans are well-informed and motivated, and if the data collection setup is robust to human errors.
In this paper we study the use of human judgements as rewards for the task of helpful, correct, and harmless information-seeking dialogue, defined as a conversation between a human user and a dialogue agent with the goal of providing answers to questions and follow-ups posed by the user (Zamani et al., 2022). Dialogue allows users to naturally communicate their intentions to the agent. Dialogue is also very general, posing both opportunities for novel behaviours and many concrete harms that must be addressed (Bender et al., 2021; Weidinger et al., 2021). By focusing on information-seeking dialogue, the context and criteria for success are better-defined (e.g. Was the information provided?) than for so-called chit-chat dialogue, and better-defined contexts make it easier to define harms. We call the resulting model Sparrow.
Our primary contributions are:
- Targeted human judgements of specific rules: We guide and elicit targeted judgements from human annotators by asking about violations for a number of rules such as "Do not make statements which are threatening" or "Do not offer financial advice" (see table 1). This lets us characterise failures of the model, train targeted classifiers, and guide humans towards probing failure modes of interest. This extends previous probing methods that focus on simply safe/unsafe labels (Xu et al., 2021b) or broad notions of harm (Askell et al., 2021; Bai et al., 2022). 2. Multi-objective RLHF to maximise preference rates and minimise rule violations: We successfully combine a variety of techniques to train a single unified model. We show that by combining targeted rule judgements and preference judgements with RLHF, we can train a model that is preferred to baselines based on prompting, reranking or supervised learning alone (fig. 2). Simultaneously, Sparrow is much more resilient to adversarial attacks by humans than our baselines, breaking the targeted rule in only 8% of probe conversations. 3. Inline evidence to improve correctness and verifiability: We adapt and extend the methods of GopherCite (Menick et al., 2022) to the interactive dialogue setting, while demonstrating performance similar to GopherCite on single-turn QA tasks. When Sparrow provides answers with evidence, those answers are supported and plausible 78% of the time, a significant improvement over our prompted baselines. Providing evidence helps raters verify claims. 4. Detailed analyses of the resulting dialogue agent: In particular, we highlight our analysis of the impact of our methods on the distributional properties of the resulting RL policy, as our mitigations address only instance harms (Weidinger et al., 2021). Our findings show that our methods, although they improve rule following, can amplify distributional fairness concerns.
Our work shares many features with other dialogue systems such as LaMDA (Thoppilan et al., 2022), the Anthropic assistant (Askell et al., 2021; Bai et al., 2022), and SeeKeR (Shuster et al., 2022a). LaMDA also collects annotations for individual rules, but does not use per-rule labels when mitigating or evaluating rule violations, and uses supervised learning and ranking rather than reinforcement learning. We borrow the helpful, honest, and harmless (HHH) decomposition of Askell et al. (2021), but use correct instead of honest for now as our methods do not address honesty directly. Bai et al. (2022) uses reinforcement learning from human preferences to train a dialogue agent to be helpful and harmless, but does not break rules down further for humans, trains a single reward model to represent all human feedback, and does not incorporate external evidence. SeeKeR, LaMDA, and BlenderBot 3 use a similar knowledge retrieval mechanism where a generated search query is used to retrieve information on which the response is conditioned, but SeeKeR does not show the retrieved information to raters during evaluation, and none of these use RL.
Although the mechanisms introduced here are a useful starting point for robust alignment of models, we point out several areas of necessary future work. Besides its role as a task, we believe dialogue is a flexible medium through which various sources of evidence and instructions can be combined to help humans evaluate agent behaviour.
Related work. Our human data collection protocols share some commonalities with those used to train and evaluate LaMDA (Thoppilan et al., 2022), the Anthropic assistant (Askell et al., 2021; Bai et al., 2022), WebGPT (Nakano et al., 2021), and BlenderBot 3 (Shuster et al., 2022b). BlenderBot 3 collects non-adversarial open-domain short conversations, soliciting binary per-turn feedback and suggestions for an improved response. LaMDA collects dialogues in both adversarial and nonadversarial settings. The transcripts are labeled separately, and used for classifier training as well as evaluation against quality and safety metric. Neither BlenderBot 3 nor LaMDA collect preference ratings between model responses for training or evaluation, and opt instead for absolute score-based approaches. The Anthropic assistant uses a unified protocol in which user turns are human-generated and agent turns are chosen from two possible responses. Their data collection follows one of two modes: having raters either pick the best response, or the worst response at each turn — these correspond in purpose to our user preference and adversarial collections, respectively. In common with WebGPT, a key component of our evaluation set-up is that Sparrow surfaces evidence (section 2.4) for its claims in the form of excerpts from the web; this allows the raters to more easily verify its claims without needing to do independent research.
Method. Starting with Dialogue Prompted Chinchilla 70B (DPC) (Hoffmann et al., 2022) described in section 2.2, we gather human data for rule violations and per-turn response preferences (section 2.3).
2.1. Defining rules Starting with our high-level goals of helpful, correct, and harmless dialogue, we divide each goal into more detailed rules, shown in Table 1, for use in rule-based adversarial probing and rule-conditional classification. Helpfulness rules include answering user questions, staying on topic, and avoiding common problems such as repetition, and are combined with an overall per-turn response preference in section 2.3. Correctness rules cover types of incorrect statements which raters might not otherwise penalise, such as the agent claiming to have a physical body or take real-world actions, and are combined with the evidence-specific rewards in section 2.4. Both helpfulness and correctness rules are frequently violated by our baseline model. we consider harmful only infrequently or under adversarial behaviour by users. Consequently, instead of writing rules based on example failures, we consulted existing literature to identify potential failure modes, then wrote rules and sought examples where our model would fail to follow our rules.
We designed our rule set to test our methodology with a set of representative requirements for information-seeking agents; we did not aim for completeness in our rule set. In particular, we focused on harms which can be encoded in natural-language rules and mitigated using RL from human feedback, as other goals such as social, linguistic or environmental justice (Bender et al., 2021) require mitigation strategies outside the scope of this paper. Broadly, we identified candidate risks which fall under discrimination, exclusion, toxicity, misinformation, and human-computer interaction harms in the taxonomy proposed by Weidinger et al. (2021). Prior work has argued that broad umbrella terms like “toxicity” can be ambiguous (Banko et al., 2020; Vidgen et al., 2019; Welbl et al., 2021) so we base our rules on more fine-grained definitions including the online harmful language taxonomy from Banko et al. (2020), and definitions of microaggressions from Breitfeller et al. (2019). For rules which pertain to providing legal, financial, and medical advice, we consulted an in-house legal expert. Appendix F lists our rules and specific resources used to craft each rule. While we put extensive thought into our initial rule set, we emphasise that they are not comprehensive and require substantial expansion and refinement before real-world usage.
Our rules resemble the safety objectives in Thoppilan et al. (2022), but were crafted with our annotation process in mind. In particular, within a single task, we ask annotators to consider a different rule for each dialogue they generate and annotate. To help annotators comprehend different rules quickly, our rules are designed to be short and standalone (so that an annotator can understand an individual rule without any other context).
2.2. Generating dialogue turns Prompting for dialogue Following Rae et al. (2021), we construct a dialogue agent by combining Chinchilla-70B (Hoffmann et al., 2022) with a hand-authored prompt that demonstrates good behaviour in a dialogue between two participants: User and Agent. For a dialogue agent with evidence, we introduce two new participants: Search Query, which generates a search query; and Search Result which adds the evidence retrieved from Google Search based on the Search Query turn, similar to Lazaridou et al. (2022). To generate User, Search Query, and Agent turns, the prompt, dialogue history, and participant name are concatenated and form the context for which completion is sampled using nucleus sampling (Holtzman et al., 2019). Search Result turns are constructed by querying Google Search and scraping the returned search results, as described in section 2.4. Figure 4 illustrates how the dialogue transcript is formatted into an LM context, and rendered when displayed to humans.
Discussion. As discussed in section 1, we view this paper as a base on which to build and investigate further safety mitigations. There are several major directions we hope to explore going forwards.
4.2. Dialogue as a supervision mechanism In this paper dialogue is the task, but our long-term hypothesis is that dialogue is a key component of accurate supervision for machine learning models. Indeed, we chose dialogue as the task in part to build experience and infrastructure to tackle dialogue for supervision. Prior work has suggested that assistance from ML systems may help with accurate human supervision (Christiano et al., 2018; Irving et al., 2018; Leike et al., 2018). In such cases, dialogue is a natural medium for this ML assistance, as it enables both clarifications and iterative discussion of subtle points. Determining whether a particular model behaviour is good is often quite subtle, and it is easy for human review (whether by paid crowdworkers or the authors of this paper) to miss key details or misinterpret text.
Table 6 shows an example of a dialogue about whether a model is violating a rule, in this case edited from a Slack discussion by several of the authors. In this case, as our task is also dialogue, the supervision dialogue is about a dialogue transcript, but one could also have a supervision dialogue about non-dialogue behaviour (e.g., a generated image). The initial statement (by an author of the paper) is incorrect, someone else provides a correction, and the first person changes their mind. But then another author points out a different flaw. The eventual conclusion is that the first rule is not violated, but a different rule might be.
Our hypothesis is that this type of multistep discussion is required to resolve subtle cases of supervision correctly. In the above dialogue, humans provided the corrections and clarifications, but sufficiently capable dialogue agents could also provide them. The same principle applies with cited evidence, as additional sources or arguments may be needed if an initial source quotation is taken out of context. The adversarial case of dialogue for supervision is debate, where two or more dialogue agents point out flaws in each other’s statements (Irving et al., 2018). However, dialogue for supervision also needs cooperation between humans and agents to jointly clarify what is meant, and avoid misunderstandings or gaps (Hadfield-Menell et al., 2016; Russell, 2020). Determining the best way to combine adversarial and cooperative behaviour will be key as we move towards dialogue Improving alignment of dialogue agents via targeted human judgements for supervision. Initial work towards multistep human interaction methods includes simulated debate using frozen question answering models (Perez et al., 2019) and recursively summarising books (Wu et al., 2021), which simplifies the rating task from evaluating book-length summaries to passagelength summaries. Initial evidence from one-step debate is mixed: Saunders et al. (2022) find that model-generated critiques help humans notice flaws in summaries, but in Parrish et al. (2022) accuracy did not improve when humans were shown explanations.
4.3. Ethical and sociotechnical aspects A primary goal of the rule mechanism is to enable the scalable incorporation of input from multiple stakeholders — including users and affected groups — on what constitutes good speech for language agents. However, the successful implementation of such a mechanism raises a range of open research questions. For example, any rule mechanism will need to consider the origins of its rules and balance the needs and expectations of relevant stakeholders.
Conclusion. Building helpful, correct, and harmless agents out of raw generative models involves both width and depth: width to deal with the detailed complexity of goals and topics, and depth to handle each of these carefully and correctly. With Sparrow, we have focused on width: breaking down goals into detailed rules, and allowing the agent to pull in external knowledge to broaden the topics it can correctly discuss. We found that these techniques work, enabling Sparrow to respond helpfully more often as measured by rater preference, correctly cite evidence 78% of the time for factual questions, and reduce rule violation rate to 8% under adversarial conditions. Addressing depth will require multistep reasoning for the agent to talk through problems with itself (leaving interpretable traces for humans to evaluate), expert and participatory engagement to find and evolve good sets of rules, debate and dialogue for supervision to improve detection of rule violations, and careful cognitive science to make the system work with real people.
Limitations. 4.1. Evidence limitations A key limitation of Sparrow is that we use only one external knowledge fragment at a time, in contrast to WebGPT (Nakano et al., 2021) and LaMDA (Thoppilan et al., 2022). WebGPT also allows scrolling within retrieved pages and clicking on links. SeeKeR (Adolphs et al., 2021; Shuster et al., 2022a) uses an intermediate knowledge-extraction step to reduce from several documents concatenated together to a smaller knowledge sentence, while we rely on search engine text snippets. Our previous work Menick et al. (2022) selected an evidence fragment from a longer context, a feature which we removed due to pressure on the model’s context length as Sparrow’s context holds an entire dialogue history and a prompt. We believe these limitations are best addressed via multistep reasoning (Creswell et al., 2022; Dohan et al., 2022; Lewkowycz et al., 2022), with the further benefit of producing interpretable reasoning traces. Sparrow also frequently copies text verbatim from the evidence (figs. 28 and 36 are examples), which could likely be mitigated with further rules.
4.4. More cognitive science research is needed Since our goal is to help humans supervise dialogue agents, understanding whether we have succeeded at our task depends fundamentally upon insights from cognitive science and human computer interaction (Irving and Askell, 2019).
Lines of inquiry this paper opens 24
Research framings built by reading the notes related to this paper — the questions it feeds into.
Why do multi-agent systems converge on shared wrong answers? How can AI maintain user agency across multi-turn conversations?- How should AI combine adversarial and cooperative dialogue modes?
- How does single-turn training undermine multi-turn strategic dialogue?
- How do fixed policies compare to dynamic action selection in dialogue?
- Can dialogue resolve subtle cases of supervision better than individual judgment?
- Can systems guide users adaptively without imposing predetermined dialogue structures?
- Can hierarchical reinforcement learning manage structured therapy conversation phases?
- Can offline reinforcement learning improve dialogue policy baseline performance?
- Can hierarchical reinforcement learning manage phase-dependent initiative switching in dialogue?
- Can offline RL and pragmatic inference together improve dialogue agent reliability?
- Can decomposing consistency into multiple metrics improve reinforcement learning for dialogue?
- Why does policy entropy collapse limit reasoning and dialogue RL scaling?
- What stability techniques prevent collapse in policy-critic adversarial training?
- Why does policy entropy collapse when scaling RL for reasoning?
- What causes policy collapse when training agents on multi-turn tool-use tasks?
- Can online RL and trainable agents maintain persona consistency better than fixed environments?
- Can offline reinforcement learning teach models to avoid persona contradictions?
- What training objectives would actually improve persona consistency at scale?
- How can training methods enforce persona consistency without supervised learning penalizing it?