# WebGPT: Browser-assisted question-answering with human feedback

Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim and 12 more · arXiv · 2021-12-17

- **Problem** Long-form question-answering systems still lag behind human performance, and long answers are hard to check for factual accuracy without sources.
- **Method** GPT-3 is fine-tuned to browse a text-based web environment and quote references, then trained with behavior cloning, a reward model and rejection sampling.
- **Results** On held-out ELI5 questions, the best model was preferred to human demonstrator answers 56% of the time, and to the highest-voted ELI5 answers 69% of the time.

## Long-form answers and where the gap lies

Long-form question-answering asks for a paragraph-length answer to an open-ended question, and current systems still trail human performance. Prior work usually splits the problem into retrieving documents and synthesizing an answer from the retrieved text. The study keeps both parts as existing components instead of rebuilding them: a Microsoft search API handles retrieval, and GPT-3, pre-trained on unlabelled text, handles synthesis.

What changes is the training objective. Human feedback is used to optimize answer quality directly, following Stiennon et al., rather than relying on the quality of each component alone. Judging a long answer is hard for a labeller who does not research the topic independently. The study's response is to have the model keep references from the pages it reads, so a judgment about accuracy can be checked against those sources.

Two questions organize the work. One asks whether a browsing model can answer with supporting references at a level comparable to human demonstrators. The other asks whether optimizing against human preference judgments improves answers beyond imitating demonstrations.

## A browsing environment the model drives

Building the browser as text lets a fine-tuned language model use it end to end, which the study frames as a way to improve retrieval and synthesis together through imitation learning and reinforcement learning.

At every step the model returns one command from a fixed set, such as a search, a link click, scrolling, a page find, a quote, or ending browsing. Any other text counts as an invalid action. Invalid actions still count toward the action maximum but are otherwise ignored.

Search commands are sent to the Bing Web Search API, so document retrieval is outsourced rather than handled by a retriever the study trains.

Each action is taken with a fresh context, so the running summary is the only record of earlier steps. Browsing ends when the model ends it, when the maximum number of actions is reached, or when the maximum total length of references is reached. If there is at least one reference, the model then receives the question and the references and writes the final answer.

## Human data and the four training methods

Two kinds of human data are collected. Demonstrations record humans using the browser to answer questions. Comparisons record which of two model answers to the same question a human prefers.

Most of the data is from ELI5: around 6,000 demonstrations, 92% of them on ELI5 questions, and around 21,500 comparisons, 98% of them on ELI5 questions. The remaining questions come from other sources, such as TriviaQA, which were mixed in to add diversity.

Demonstrations alone do not optimize answer quality directly and are unlikely to go far beyond human performance, which is why comparisons are collected as well.

Training uses four methods: behavior cloning on the demonstrations, reward modeling on the comparisons, reinforcement learning against the reward model, and rejection sampling against the reward model. Rejection sampling draws several candidate answers and keeps the one the reward model ranks highest. It needs no extra training but spends more compute at inference time.

The best model combines behavior cloning with rejection sampling. The authors find that reinforcement learning gives some benefit when less inference-time compute is available.

## Preference against demonstrators and ELI5 answers

Evaluation uses a held-out set of questions.

Against answers written by human demonstrators who used the same browser, its answers were preferred 56% of the time. The authors read this as human-level use of the text-based browser, which is the first of the two comparisons.

Against the highest-voted ELI5 answer for each question, with references stripped from the model's answer for fairness, its answers were preferred 69% of the time.

Table 2 gives one answer from the 175B best-of-64 model to a randomly chosen ELI5 test question, which was not cherry-picked. The full text of the references is in an appendix, so the citations in the answer can be traced.

## Truthfulness on TruthfulQA

TruthfulQA is an adversarially constructed set of short-form questions, where some humans answer falsely because of a misconception.

The best model's answers were true in 75% of cases and both true and informative in 54%. This outperforms base GPT-3 but falls short of human performance.

The two figures are read together, since truthfulness and informativeness trade off against one another.

## Limitations

Most data and the main reference comparison are on ELI5, so the 56% and 69% results describe ELI5-style long-form questions. The 69% comparison uses answers with references stripped, so the citation feature is not part of that comparison.

On TruthfulQA the best model still falls short of human performance. Answers are judged on factual accuracy, coherence and overall usefulness, so the preference percentages are judgments over those criteria rather than a separate accuracy score.

## Paper info

- **Authors**: 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
- **Venue**: arXiv · Preprint
- **First published**: 2021-12-17
- **Added**: 2026-10-20
- **Updated**: 2022-6-1
- **Version**: v3
- **arXiv**: 2112.09332
- **Category**: cs.CL · cs.AI · cs.LG
- **Original paper terms**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2112.09332v3) · [PDF ↗](https://arxiv.org/pdf/2112.09332v3)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

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 (2021). WebGPT: Browser-assisted question-answering with human feedback. arXiv:2112.09332v3. https://arxiv.org/abs/2112.09332v3

**BibTeX**

```
@misc{nakano2021webgpt,
  title = {{WebGPT: Browser-assisted question-answering with human feedback}},
  author = {Reiichiro Nakano and Jacob Hilton and Suchir Balaji and Jeff Wu and Long Ouyang and Christina Kim and Christopher Hesse and Shantanu Jain and Vineet Kosaraju and William Saunders and Xu Jiang and Karl Cobbe and Tyna Eloundou and Gretchen Krueger and Kevin Button and Matthew Knight and Benjamin Chess and John Schulman},
  year = {2021},
  eprint = {2112.09332},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2112.09332v3}
}
```

## Other paper commentary

- [Constitutional AI: Harmlessness from AI Feedback](https://refivu.com/en/papers/91e9437c-36ce-49cd-965c-18d9ca4664d6-constitutional-ai-harmlessness-from-ai-feedback.md)
- [Direct Preference Optimization: Your Language Model is Secretly a Reward Model](https://refivu.com/en/papers/b96eaaaa-8c14-4a06-93bf-d13e70a14b14-direct-preference-optimization-your-language-model-is.md)
- [Blending Neural Control Density Functions for Stabilization and Safety](https://refivu.com/en/papers/2b6e127e-d8b0-4e8d-b78b-426f1ca3ea83-blending-neural-control-density-functions-for-stabilization.md)
- [Enforcing Ellipsoidal Constraints in Neural Networks with a Polynomial Safety Layer](https://refivu.com/en/papers/8a56d4c9-6361-4734-9055-b7d7f681f127-enforcing-ellipsoidal-constraints-in-neural-networks-with-a.md)
- [Concrete Problems in AI Safety](https://refivu.com/en/papers/a0a18b13-f86b-4c61-807b-da6798f08495-concrete-problems-in-ai-safety.md)
- [Reflexion: Language Agents with Verbal Reinforcement Learning](https://refivu.com/en/papers/a572f458-b121-4d38-bfc9-7a77309a3aba-reflexion-language-agents-with-verbal-reinforcement-learning.md)
- [SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shot](https://refivu.com/en/papers/98e70bdf-a832-4686-b3f8-e3eefd5887c4-sparsegpt-massive-language-models-can-be-accurately-pruned.md)
- [GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpoints](https://refivu.com/en/papers/11792bcd-8c73-4a2d-8b43-c855c3d7ad48-gqa-training-generalized-multi-query-transformer-models-from.md)
- [Fast Transformer Decoding: One Write-Head is All You Need](https://refivu.com/en/papers/65f892e7-2a21-4ce7-9e89-c75f7ec6b23c-fast-transformer-decoding-one-write-head-is-all.md)
- [Finetuned Language Models Are Zero-Shot Learners](https://refivu.com/en/papers/3dedf278-64d7-4653-93ff-bf4504ae70ac-finetuned-language-models-are-zero-shot-learners.md)
- [Dynamic Routing Between Capsules](https://refivu.com/en/papers/a4e87f62-36cc-47df-991e-87dd01b1a4ef-dynamic-routing-between-capsules.md)
- [Neural Machine Translation of Rare Words with Subword Units](https://refivu.com/en/papers/0950e659-f6cc-4852-b244-bbb2742bf059-neural-machine-translation-of-rare-words-with-subword.md)

## Terms in this paper

- [reinforcement learning](https://refivu.com/en/terms/6c51042515d2-reinforcement-learning)
- [Reward model](https://refivu.com/en/terms/76346da527c5-reward-model)
- [TruthfulQA](https://refivu.com/en/terms/31ff8523e160-truthfulqa)
- [behavior cloning](https://refivu.com/en/terms/555c96e41eec-behavior-cloning)
- [Rejection Sampling](https://refivu.com/en/terms/40f65d094f14-rejection-sampling)
- [ELI5](https://refivu.com/en/terms/0e94b5ca44f4-eli5)
- [human feedback](https://refivu.com/en/terms/4a9d915e09be-human-feedback)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/b41258c0-ce1e-478c-ad2b-6bccd936ae34-webgpt-browser-assisted-question-answering-with-human)
