arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2210.01296cs.CLcs.AI
收藏

背诵增强的语言模型

Recitation-Augmented Language Models

Google Research(谷歌研究院);Carnegie Mellon University(卡内基梅隆大学)

Zhiqing Sun, Xuezhi Wang, Yi Tay, Yiming Yang, Denny Zhou

摘要:

我们提出了一个新的范例,以帮助大语言模型(LLM)生成更准确的事实知识,而无需从外部语料库检索,称为RECITation-augmented gEneration(RECITE)。与在生成输出之前检索相关文档的检索增强语言模型不同,给定输入,RECITE首先通过采样从LLM自己的记忆中背诵一个或多个相关段落,然后生成最终答案。我们表明,RECITE是知识密集型NLP任务的一个强大的范例。具体来说,我们表明,通过利用背诵作为中间步骤,背诵和回答方案可以实现新的国家的最先进的性能在各种闭卷问答(CBQA)任务。在实验中,我们验证了\method ~在四个预训练模型(PaLM,UL 2,OPT和Codex)和三个CBQA任务(自然问题,TriviaQA和HotpotQA)上的有效性。我们的代码可以在“https://github.com/Edward-Sun/RECITE“上找到。

英文摘要:

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. 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".

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑