arXivDaily arXiv每日学术速递 周一至周五更新
北美退伍军人节(Veterans Day),12 日无更新
arXiv 2209.10063cs.CLcs.AI
收藏

生成而不是复制:大语言模型是强上下文生成器

Generate rather than Retrieve: Large Language Models are Strong Context Generators

Microsoft Cognitive Service Research(微软认知服务研究院);University of Notre Dame(圣母大学);University of Southern California(南加州大学)

Wenhao Yu, Dan Iter, Shuohang Wang, Yichong Xu, Mingxuan Ju, Soumya Sanyal, Chenguang Zhu, Michael Zeng, Meng Jiang

摘要:

知识密集型任务,如开放域问答(QA),需要访问大量的世界或领域知识。知识密集型任务的一种常见方法是采用先检索后阅读的管道,该管道首先从外部语料库(如维基百科)检索少量相关的上下文文档,然后根据检索到的文档预测答案。在本文中,我们提出了一个新的视角来解决知识密集型的任务,取代文档检索与大语言模型生成器。我们将我们的方法称为generate-then-read(GenRead),它首先提示一个大语言模型根据给定的问题生成上下文文档,然后读取生成的文档以生成最终答案。此外,我们提出了一种新的基于聚类的提示方法,选择不同的提示,从而在生成的文件,涵盖不同的角度,导致更好的回忆超过可接受的答案。我们对三个不同的知识密集型任务进行了广泛的实验,包括开放域QA,事实检查和对话系统。值得注意的是,GenRead在TriviaQA和WebQ上获得了71.6和54.4的精确匹配分数,显著优于最先进的检索然后读取管道DPR-FiD +4.0和+3.9,而无需从任何外部知识源检索任何文档。最后,我们证明了模型的性能可以进一步提高检索和生成相结合。我们的代码和生成的文档可以在https://github.com/wyu97/GenRead上找到。

英文摘要:

Knowledge-intensive tasks, such as open-domain question answering (QA), require access to a large amount of world or domain knowledge. A common approach for knowledge-intensive tasks is to employ a retrieve-then-read pipeline that first retrieves a handful of relevant contextual documents from an external corpus such as Wikipedia and then predicts an answer conditioned on the retrieved documents. In this paper, we present a novel perspective for solving knowledge-intensive tasks by replacing document retrievers with large language model generators. We call our method generate-then-read (GenRead), which first prompts a large language model to generate contextutal documents based on a given question, and then reads the generated documents to produce the final answer. Furthermore, we propose a novel clustering-based prompting method that selects distinct prompts, resulting in the generated documents that cover different perspectives, leading to better recall over acceptable answers. We conduct extensive experiments on three different knowledge-intensive tasks, including open-domain QA, fact checking, and dialogue system. Notably, GenRead achieves 71.6 and 54.4 exact match scores on TriviaQA and WebQ, significantly outperforming the state-of-the-art retrieve-then-read pipeline DPR-FiD by +4.0 and +3.9, without retrieving any documents from any external knowledge source. Lastly, we demonstrate the model performance can be further improved by combining retrieval and generation. Our code and generated documents can be found at https://github.com/wyu97/GenRead.

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

↑