Recitation-Augmented Language Models

Zhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang, Denny Zhou
10/4/2022
cs.CLcs.AI

Official code: Edward-Sun/RECITE (96 stars, Python, last commit 2023-02-22).

Abstract

We propose a new paradigm to help Large Language Models (LLMs) generate more accurate factual knowledge without retrieving from an external corpus, called RECITation-augmented gEneration (RECITE). Different from retrieval-augmented language models that retrieve relevant documents before generating the outputs, given an input, RECITE first recites one or several relevant passages from LLMs' own memory via sampling, and then produces the final answers.

Show full abstract

We show that RECITE is a powerful paradigm for knowledge-intensive NLP tasks. Specifically, we show that by utilizing recitation as the intermediate step, a recite-and-answer scheme can achieve new state-of-the-art performance in various closed-book question answering (CBQA) tasks. In experiments, we verify the effectiveness of \method~on four pre-trained models (PaLM, UL2, OPT, and Codex) and three CBQA tasks (Natural Questions, TriviaQA, and HotpotQA). Our code is available at "https://github.com/Edward-Sun/RECITE".

View on arXivView PDF

Code Implementations(1)

Edward-Sun/RECITEOfficial100%

Code of ICLR paper: https://openreview.net/forum?id=-cqvvvb-NkI

9610PythonFeb 14, 20233 years agoNOASSERTION

Similar Papers

Cite this paper

@article{sun2022recitationaugmented,
  title  = {Recitation-Augmented Language Models},
  author = {Zhiqing Sun and Xuezhi Wang and Yi Tay and Yiming Yang and Denny Zhou},
  year   = {2022},
  eprint = {2210.01296},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01296}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.01296.svg)](https://codeofpaper.com/paper/2210.01296)

Discussion