WebGPT: Improving the factual accuracy of language models through web browsing

OpenAI Blog Models

Summary

OpenAI fine-tuned GPT-3 to answer open-ended questions more accurately by enabling it to use a text-based web browser to search, retrieve, and cite sources. The model outperforms human demonstrators 56% of the time on questions from ELI5 dataset but shows limitations on out-of-distribution tasks like TruthfulQA.

We’ve fine-tuned GPT-3 to more accurately answer open-ended questions using a text-based web browser.
Original Article
View Cached Full Text

Cached at: 04/20/26, 02:46 PM

# WebGPT: Improving the factual accuracy of language models through web browsing Source: [https://openai.com/index/webgpt/](https://openai.com/index/webgpt/) OpenAIWe’ve fine\-tuned GPT‑3 to more accurately answer open\-ended questions using a text\-based web browser\. We’ve fine\-tuned GPT‑3 to more accurately answer open\-ended questions using a text\-based web browser\. Our prototype copies how humans research answers to questions online—it submits search queries, follows links, and scrolls up and down web pages\. It is trained to cite its sources, which makes it easier to give feedback to improve factual accuracy\. We’re excited about developing more truthful AI,[1](https://openai.com/index/webgpt/#citation-bottom-1)but challenges remain, such as coping with unfamiliar types of questions\. Language models like GPT‑3 are useful for many different tasks, but have a tendency to “hallucinate” information when performing tasks requiring obscure real\-world knowledge\.[2](https://openai.com/index/webgpt/#citation-bottom-2),[3](https://openai.com/index/webgpt/#citation-bottom-3)To address this, we taught GPT‑3 to use a text\-based web\-browser\. The model is provided with an open\-ended question and a summary of the browser state, and must issue commands such as “Search \.\.\.”, “Find in page: \.\.\.” or “Quote: …”\. In this way, the model collects passages from web pages, and then uses these to compose an answer\. The model is fine\-tuned from GPT‑3 using[the⁠](https://openai.com/index/deep-reinforcement-learning-from-human-preferences/)[same⁠](https://openai.com/index/fine-tuning-gpt-2/)[general⁠](https://openai.com/index/learning-to-summarize-with-human-feedback/)[methods⁠](https://openai.com/index/summarizing-books/)we’ve used previously\. We begin by training the model to copy human demonstrations, which gives it the ability to use the text\-based browser to answer questions\. Then we improve the helpfulness and accuracy of the model’s answers, by training a reward model to predict human preferences, and optimizing against it using either reinforcement learning or rejection sampling\. Our system is trained to answer questions from ELI5,[4⁠](https://openai.com/index/webgpt/#rf4)a dataset of open\-ended questions scraped from the “Explain Like I’m Five” subreddit\. We trained three different models, corresponding to three different inference\-time compute budgets\. Our best\-performing model produces answers that are preferred 56% of the time to answers written by our human demonstrators, with a similar level of factual accuracy\. Even though these were the same kind of demonstrations used to train the model, we were able to outperform them by using human feedback to improve the model’s answers\. For questions taken from the training distribution, our best model’s answers are about as factually accurate as those written by our human demonstrators, on average\. However, out\-of\-distribution robustness is a challenge\. To probe this, we evaluated our models on TruthfulQA,[5](https://openai.com/index/webgpt/#citation-bottom-5)an adversarially\-constructed dataset of short\-form questions designed to test whether models fall prey to things like common misconceptions\. Answers are scored on both truthfulness and informativeness, which trade off against one another \(for example, “I have no comment” is considered truthful but not informative\)\. Our models outperform GPT‑3 on TruthfulQA and exhibit more favourable scaling properties\. However, our models lag behind human performance, partly because they sometimes quote from unreliable sources \(as shown in the question about ghosts[above⁠](https://openai.com/index/webgpt/#samples)\)\. We hope to reduce the frequency of these failures using techniques like adversarial training\. In order to provide feedback to improve factual accuracy, humans must be able to evaluate the factual accuracy of claims produced by models\. This can be extremely challenging, since claims can be technical, subjective or vague\. For this reason, we require the model to cite its sources\.[6](https://openai.com/index/webgpt/#citation-bottom-6)This allows humans to evaluate factual accuracy by checking whether a claim is*supported by a reliable source*\. As well as making the task more manageable, it also makes it less ambiguous, which is important for reducing label noise\. However, this approach raises a number of questions\. What makes a source reliable? What claims are obvious enough to not require support? What trade\-off should be made between evaluations of factual accuracy and other criteria such as coherence? All of these were difficult judgment calls\. We do not think that our model picked up on much of this nuance, since it still makes basic errors\. But we expect these kinds of decisions to become more important as AI systems improve, and cross\-disciplinary research is needed to develop criteria that are both practical and epistemically sound\. We also expect further considerations such as transparency to be important\.[1](https://openai.com/index/webgpt/#citation-bottom-1) Eventually, having models cite their sources will not be enough to evaluate factual accuracy\. A sufficiently capable model would cherry\-pick sources it expects humans to find convincing, even if they do not reflect a fair assessment of the evidence\. There are already signs of this happening \(see the questions about boats[above⁠](https://openai.com/index/webgpt/#samples)\)\. We hope to mitigate this using methods like[debate⁠](https://openai.com/index/debate/)\. Although our model is generally more truthful than GPT‑3 \(in that it generates false statements less frequently\), it still poses risks\. Answers with citations are often perceived as having an air of authority, which can obscure the fact that our model still makes basic errors\. The model also tends to reinforce the existing beliefs of users\. We are researching how best to address these and other concerns\. In addition to these deployment risks, our approach introduces new risks*at train time*by giving the model access to the web\. Our browsing environment does not allow full web access, but allows the model to send queries to the[Microsoft Bing Web Search API⁠\(opens in a new window\)](https://www.microsoft.com/en-us/bing/apis/bing-web-search-api)and follow links that already exist on the web, which can have side\-effects\. From our experience with GPT‑3, the model does not appear to be anywhere near capable enough to dangerously exploit these side\-effects\. However, these risks increase with model capability, and we are working on establishing internal safeguards against them\. Human feedback and tools such as web browsers offer a promising path towards robustly truthful, general\-purpose AI systems\. Our current system struggles with challenging or unfamiliar circumstances, but still represents significant progress in this direction\.

Similar Articles

Research with ChatGPT

OpenAI Blog

OpenAI Academy introduces two research features for ChatGPT: Search for real-time web information and Deep Research for comprehensive multi-step analysis. These tools help users gather, synthesize, and cite information from across the web more efficiently than traditional browsing.

GPT-3 powers the next generation of apps

OpenAI Blog

OpenAI announces that over 300 applications are now using GPT-3 through their API, nine months after launch, generating 4.5 billion words daily. Featured use cases include Viable for customer feedback analysis, Fable Studio for interactive storytelling, and Algolia for semantic search capabilities.

Better language models and their implications

OpenAI Blog

OpenAI introduces GPT-2, a 1.5 billion parameter transformer-based language model trained on 40GB of internet text that achieves state-of-the-art performance on language modeling benchmarks and demonstrates zero-shot capabilities in reading comprehension, translation, question answering, and summarization. Due to safety concerns, only a smaller model and technical paper are released publicly rather than the full trained model.

GPT-4

OpenAI Blog

OpenAI releases GPT-4, a large multimodal model that accepts image and text inputs and demonstrates human-level performance on professional and academic benchmarks, significantly outperforming GPT-3.5 across various evaluation metrics.

Customizing GPT-3 for your application

OpenAI Blog

OpenAI has launched fine-tuning capabilities for GPT-3, allowing developers to customize the model on their own data via a single CLI command, resulting in improved accuracy, reduced costs, and lower latency for production use cases. Early customers like Keeper Tax, Viable, and Sana Labs report significant accuracy improvements after fine-tuning.