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

主动检索增强生成

Active Retrieval Augmented Generation

Carnegie Mellon University(卡内基梅隆大学);Sea AI Lab(Sea人工智能实验室);Meta

Zhengbao Jiang, Frank F. Xu, Luyu Gao, Zhiqing Sun, Qian Liu, Jane Dwivedi-Yu, Yiming Yang, Jamie Callan, Graham Neubig

AI总结:

提出主动检索增强生成方法FLARE,通过预测下一句预见未来内容并据此检索文档,在4个长文本生成任务上表现优越。

摘要:

尽管大型语言模型(LMs)在理解和生成语言方面具有卓越的能力,但它们往往会产生幻觉并生成事实不准确的输出。通过从外部知识资源中检索信息来增强LMs是一种有前景的解决方案。现有的检索增强LMs大多采用基于输入仅检索一次信息的检索后生成设置。然而,在涉及长文本生成的更普遍场景中,这在生成过程中持续收集信息是至关重要的。在这项工作中,我们提供了主动检索增强生成的广义视角,即在生成过程中主动决定何时以及检索什么内容的方法。我们提出了前瞻式主动检索增强生成(FLARE),这是一种通用方法,它迭代地使用对下一句的预测来预见未来内容,然后将其用作查询来检索相关文档,如果包含低置信度词元则重新生成该句子。我们在4个长篇知识密集型生成任务/数据集上全面测试了FLARE及基线方法。FLARE在所有任务上均取得了优越或具竞争力的性能,证明了我们方法的有效性。代码和数据集可在https://github.com/jzbjyb/FLARE获取。

英文摘要:

Despite the remarkable ability of large language models (LMs) to comprehend and generate language, they have a tendency to hallucinate and create factually inaccurate output. Augmenting LMs by retrieving information from external knowledge resources is one promising solution. Most existing retrieval augmented LMs employ a retrieve-and-generate setup that only retrieves information once based on the input. This is limiting, however, in more general scenarios involving generation of long texts, where continually gathering information throughout generation is essential. In this work, we provide a generalized view of active retrieval augmented generation, methods that actively decide when and what to retrieve across the course of the generation. We propose Forward-Looking Active REtrieval augmented generation (FLARE), a generic method which iteratively uses a prediction of the upcoming sentence to anticipate future content, which is then utilized as a query to retrieve relevant documents to regenerate the sentence if it contains low-confidence tokens. We test FLARE along with baselines comprehensively over 4 long-form knowledge-intensive generation tasks/datasets. FLARE achieves superior or competitive performance on all tasks, demonstrating the effectiveness of our method. Code and datasets are available at https://github.com/jzbjyb/FLARE.

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

↑