arXiv(opens in a new tab)cs.CLDec 2021Cited by 85 papers on PaperVantageClassic Paper

Manuscript Offprint

arXiv:2112.09332

WebGPT: Browser-assisted question-answering with human feedback

Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, Xu Jiang, Karl Cobbe, Tyna Eloundou, Gretchen Krueger, Kevin Button, Matthew Knight, Benjamin Chess, John Schulman

Reiichiro Nakano ∗^{*}

Jacob Hilton ∗^{*}

Suchir Balaji ∗^{*}

Jeff Wu

Long Ouyang

Christina Kim

Christopher Hesse

Shantanu Jain

Vineet Kosaraju

William Saunders

Xu Jiang

Karl Cobbe

Tyna Eloundou

Gretchen Krueger

Kevin Button

Matthew Knight

Benjamin Chess

John Schulman

OpenAI

Abstract

We fine-tune GPT-3 to answer long-form questions using a text-based web-browsing environment, which allows the model to search and navigate the web. By setting up the task so that it can be performed by humans, we are able to train models on the task using imitation learning, and then optimize answer quality with human feedback. To make human evaluation of factual accuracy easier, models must collect references while browsing in support of their answers. We train and evaluate our models on ELI5, a dataset of questions asked by Reddit users. Our best model is obtained by fine-tuning GPT-3 using behavior cloning, and then performing rejection sampling against a reward model trained to predict human preferences. This model's answers are preferred by humans 56% of the time to those of our human demonstrators, and 69% of the time to the highest-voted answer from Reddit.

1 Introduction

A rising challenge in NLP is long-form question-answering (LFQA), in which a paragraph-length answer is generated in response to an open-ended question. LFQA systems have the potential to become one of the main ways people learn about the world, but currently lag behind human performance [Krishna et al., 2021]. Existing work tends to focus on two core components of the task, information retrieval and synthesis.

In this work we leverage existing solutions to these components: we outsource document retrieval to the Microsoft Bing Web Search API, 2^{2} and utilize unsupervised pre-training to achieve high-quality synthesis by fine-tuning GPT-3 [Brown et al., 2020]. Instead of trying to improve these ingredients, we focus on combining them using more faithful training objectives. Following Stiennon et al. [2020], we use human feedback to directly optimize answer quality, allowing us to achieve performance competitive with humans.

We make two key contributions:

∗^{*}Equal contribution, order randomized. Correspondence to: reiichiro@openai.com, jhilton@openai.com, suchir@openai.com, joschu@openai.com

2^{2}https://www.microsoft.com/en-us/bing/apis/bing-web-search-api

Figure

(a) Screenshot from the demonstration interface.

(b) Corresponding text given to the model.

Figure 1: An observation from our text-based web-browsing environment, as shown to human demonstrators (left) and models (right). The web page text has been abridged for illustrative purposes.

• We create a text-based web-browsing environment that a fine-tuned language model can interact with. This allows us to improve both retrieval and synthesis in an end-to-end fashion using general methods such as imitation learning and reinforcement learning.

• We generate answers with references: passages extracted by the model from web pages while browsing. This is crucial for allowing labelers to judge the factual accuracy of answers, without engaging in a difficult and subjective process of independent research.

Our models are trained primarily to answer questions from ELI5 [Fan et al., 2019], a dataset of questions taken from the “Explain Like I’m Five” subreddit. We collect two additional kinds of data: demonstrations of humans using our web-browsing environment to answer questions, and comparisons between two model-generated answers to the same question (each with their own set of references). Answers are judged for their factual accuracy, coherence, and overall usefulness.

We use this data in four main ways: behavior cloning (i.e., supervised fine-tuning) using the demonstrations, reward modeling using the comparisons, reinforcement learning against the reward model, and rejection sampling against the reward model. Our best model uses a combination of behavior cloning and rejection sampling. We also find reinforcement learning to provide some benefit when inference-time compute is more limited.

We evaluate our best model in three different ways. First, we compare our model's answers to answers written by our human demonstrators on a held-out set of questions. Our model's answers are preferred 56% of the time, demonstrating human-level usage of the text-based browser. Second, we compare our model's answers (with references stripped, for fairness) to the highest-voted answer provided by the ELI5 dataset. Our model's answers are preferred 69% of the time. Third, we evaluate our model on TruthfulQA [Lin et al., 2021], an adversarial dataset of short-form questions. Our model's answers are true 75% of the time, and are both true and informative 54% of the time, outperforming our base model (GPT-3), but falling short of human performance.

The remainder of the paper is structured as follows:

• In Section 2, we describe our text-based web-browsing environment and how our models interact with it.

• In Section 3, we explain our data collection and training methods in more detail.

• In Section 4, we evaluate our best-performing models (for different inference-time compute budgets) on ELI5 and TruthfulQA.

• In Section 5, we provide experimental results comparing our different methods and how they scale with dataset size, parameter count, and inference-time compute.

• In Section 6, we discuss the implications of our findings for training models to answer questions truthfully, and broader impacts.

Table 1: Actions the model can take. If a model generates any other text, it is considered to be an invalid action. Invalid actions still count towards the maximum, but are otherwise ignored.

CommandEffect
Search <query>Send <query> to the Bing API and display a search results page
Clicked on link <link ID>Follow the link with the given ID to a new page
Find in page: <text>Find the next occurrence of <text> and scroll to it
Quote: <text>If <text> is found in the current page, add it as a reference
Scrolled down <1, 2, 3>Scroll down a number of times
Scrolled up <1, 2, 3>Scroll up a number of times
TopScroll to the top of the page
BackGo to the previous page
End: AnswerEnd browsing and move to answering phase
End: <Nonsense, Controversial>End browsing and skip answering phase

References (4)

  • [deleted by user]
  • We therefore included a summary of past actions in the text given to the model
  • We therefore made these actions unavailable to humans, and instead simply merged any repeated Scrolled <up, down> 1 actions that they made
  • A screenshot of the annotation tool is shown in Figure 9

Cited by (85)