avatarFabio Chiusano

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

3046

Abstract

/1*jc1yFgnK5sR5lCFg6ToC0A.png"><figcaption>The Information Retrieval model trained for WebGPT. Image by the author.</figcaption></figure><p id="7a30">Second, a Text Synthesis Model is trained to put together several text paragraphs into a single coherent text. GPT3 is able to do this with <a href="https://arxiv.org/abs/2005.14165">some finetuning</a>.</p><figure id="4c2b"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*9CJ45QzqfpuLExxXIsyqVw.png"><figcaption>The Text Synthesis model trained for WebGPT. Image by the author.</figcaption></figure><p id="7b57">Third, we have a <a href="https://arxiv.org/abs/1811.07871">reward modeling</a> step with a Reward Model that predicts a quality score from a question and an answer. It is trained with human feedbacks, where humans were helped by the references extracted by the Information Retrieval Model and the browser.</p><figure id="897a"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*hRaUsdvjD1OJvxK8dYt4xw.png"><figcaption>The Reward model trained for WebGPT. Image by the author.</figcaption></figure><p id="7e68">The last step is to put together the three models and improve the whole pipeline leveraging the Reward Model. This can be done in two ways:</p><ul><li>Finetuning the Information Retrieval Model against the Reward Model scores with Reinforcement Learning (specifically <a href="https://openai.com/blog/openai-baselines-ppo/">PPO</a>) and some mitigations to avoid over-optimization on the Reward Model.</li><li>Predicting with Rejection Sampling (best-of-n), i.e. predicting multiple answers and selecting the one with the highest reward score.</li></ul><figure id="b5d6"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*fl2dCdyLXZMj19HbvDKwvA.png"><figcaption>The complete pipeline of WebGPT. Image by the author.</figcaption></figure><h2 id="3413">Why WebGPT</h2><p id="c388">Language models like GPT-3 are useful for many different tasks, but have a tendency to invent information when performing tasks requiring vague real-world knowledge. To address this, WebGPT uses a text-based web browser to collect passages from web pages and then uses these to compose an answer and show relevant references.</p><p id="8565">Pay attention that answers with references are often perceived as having an air of authority, which can obscure the fact that the model still makes basic errors.</p><h2 id="f109">Model evaluation</h2><p id="d645">The model is evaluated in three different ways:</p><ul><li>Model’s answers are compared to answers written by human demonstrators on a held-out set of questions. The model’s answers are preferred 56% of the time, demonstrating human-level usage of the text-based browser.</li><li>Model’s answers are compared to the highest-voted answer provided by the <a href="https://arxiv.org/abs/1907.09190">ELI5 dataset</a>. The model’s answers are preferred 69% of the time.</li></ul><figure id="dbad"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*w0CXjZ23jpIV4mSL5VXjsg.png"><fig

Options

caption>Human evaluations of three distinct WebGPT models against human demonstrations and on the ELI5 dataset. Image by OpenAI.</figcaption></figure><ul><li>The model is evaluated on <a href="https://arxiv.org/abs/2109.07958">TruthfulQA</a>, an adversarial dataset of short-form questions. The model’s answers are true 75% of the time and are both true and informative 54% of the time, outperforming GPT-3, but falling short of human performance.</li></ul><figure id="9cc5"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*0s1ysQNmSMOE-xhqLdK8_w.png"><figcaption>Human evaluations of three distinct WebGPT models on the TruthfulQA dataset. Image by OpenAI.</figcaption></figure><p id="01a8">Thank you for reading! If you are interested in learning more about NLP, remember to follow NLPlanet on <a href="https://medium.com/nlplanet">Medium</a>, <a href="https://www.linkedin.com/company/nlplanet">LinkedIn</a>, and <a href="https://twitter.com/nlplanet_">Twitter</a>!</p><p id="600e"><b>Two minutes NLP related posts</b></p><div id="69f9" class="link-block"> <a href="https://readmedium.com/two-minutes-nlp-visualizing-global-vs-local-attention-c61b42758019"> <div> <div> <h2>Two minutes NLP — Visualizing Global vs Local Attention</h2> <div><h3>Seq2seq, Global Attention, Local Attention, Monotonical Alignment, and Predictive Alignment</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*nAbdoVX1-uJ9peTK)"></div> </div> </div> </a> </div><div id="7cde" class="link-block"> <a href="https://readmedium.com/two-minutes-nlp-visualizing-seq2seq-models-with-attention-10020e233b6c"> <div> <div> <h2>Two minutes NLP — Visualizing Seq2seq Models with Attention</h2> <div><h3>Seq2seq, RNN, encoder-decoder, and Attention</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*KjNJ--gkEsuhGFudxeIwbA.png)"></div> </div> </div> </a> </div><div id="a997" class="link-block"> <a href="https://readmedium.com/two-minutes-nlp-easy-document-annotation-with-wikipedia-concepts-ad4e6cbbb204"> <div> <div> <h2>Two minutes NLP — Easy document annotation with Wikipedia concepts</h2> <div><h3>Semantic annotations, Wikification, Ontologies, and PageRank</h3></div> <div><p>medium.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/1*F3ZriRJeavN64pN40o7zOg.png)"></div> </div> </div> </a> </div></article></body>

Two minutes NLP — The OpenAI WebGPT model that answers questions browsing the web

GPT-3, Information Retrieval, Text Synthesis, Imitation Learning, and Reward Modeling

Photo by Vardan Papikyan on Unsplash

The OpenAI team just presented WebGPT, a fine-tuned GPT-3 to answer long-form questions using a text-based web-browsing environment, which allows the model to search and navigate the web. The 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.

Example of a question given to WebGPT, with produced answer and references. Image from https://openai.com/blog/improving-factual-accuracy.

WebGPT is part of the field of 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. Existing work tends to focus on two core components of the task: Information Retrieval and Text Synthesis.

Instead of trying to improve these ingredients, OpenAI focused on combining them using more faithful training objectives. Answers are judged with human feedback for their factual accuracy, coherence, and overall usefulness.

The WebGPT model

WebGPT is made of several components. First, there is an Information Retrieval Model which accepts a question as input and outputs commands to issue to the text-based browser and their references, with the goal of extracting relevant text paragraphs that answer the question. It is trained on human demonstrations with Imitation Learning.

The Information Retrieval model trained for WebGPT. Image by the author.

Second, a Text Synthesis Model is trained to put together several text paragraphs into a single coherent text. GPT3 is able to do this with some finetuning.

The Text Synthesis model trained for WebGPT. Image by the author.

Third, we have a reward modeling step with a Reward Model that predicts a quality score from a question and an answer. It is trained with human feedbacks, where humans were helped by the references extracted by the Information Retrieval Model and the browser.

The Reward model trained for WebGPT. Image by the author.

The last step is to put together the three models and improve the whole pipeline leveraging the Reward Model. This can be done in two ways:

  • Finetuning the Information Retrieval Model against the Reward Model scores with Reinforcement Learning (specifically PPO) and some mitigations to avoid over-optimization on the Reward Model.
  • Predicting with Rejection Sampling (best-of-n), i.e. predicting multiple answers and selecting the one with the highest reward score.
The complete pipeline of WebGPT. Image by the author.

Why WebGPT

Language models like GPT-3 are useful for many different tasks, but have a tendency to invent information when performing tasks requiring vague real-world knowledge. To address this, WebGPT uses a text-based web browser to collect passages from web pages and then uses these to compose an answer and show relevant references.

Pay attention that answers with references are often perceived as having an air of authority, which can obscure the fact that the model still makes basic errors.

Model evaluation

The model is evaluated in three different ways:

  • Model’s answers are compared to answers written by human demonstrators on a held-out set of questions. The model’s answers are preferred 56% of the time, demonstrating human-level usage of the text-based browser.
  • Model’s answers are compared to the highest-voted answer provided by the ELI5 dataset. The model’s answers are preferred 69% of the time.
Human evaluations of three distinct WebGPT models against human demonstrations and on the ELI5 dataset. Image by OpenAI.
  • The model is evaluated on TruthfulQA, an adversarial dataset of short-form questions. The model’s answers are true 75% of the time and are both true and informative 54% of the time, outperforming GPT-3, but falling short of human performance.
Human evaluations of three distinct WebGPT models on the TruthfulQA dataset. Image by OpenAI.

Thank you for reading! If you are interested in learning more about NLP, remember to follow NLPlanet on Medium, LinkedIn, and Twitter!

Two minutes NLP related posts

NLP
Naturallanguageprocessing
AI
Artificial Intelligence
Data Science
Recommended from ReadMedium