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

嵌入信息引导的大语言模型自适应检索增强生成

Embedding-Informed Adaptive Retrieval-Augmented Generation of Large Language Models

University of New South Wales(新南威尔士大学);University of California San Diego(加利福尼亚大学圣迭戈分校);Duke University(杜克大学);Georgia Institute of Technology(佐治亚理工学院);Adobe Research(奥多比研究院);CSIRO’s Data61(联邦科学与工业研究组织Data61)

Chengkai Huang, Yu Xia, Rui Wang, Kaige Xie, Tong Yu, Julian McAuley, Lina Yao

AI总结:

针对大语言模型检索增强中检索并非始终有用的问题,提出通过检查预训练词元嵌入判断模型是否掌握查询知识的自适应检索增强生成方法,无需访问预训练语料或额外模型推理,在多基准上性能更优。

摘要:

检索增强大语言模型(LLM)在各类自然语言处理任务中表现出色。但既往研究发现,检索并非总能带来增益,尤其是当LLM本身已掌握查询所需知识时。受此启发,自适应检索增强生成(ARAG)致力于仅在LLM缺少查询所需知识时才执行检索。现有ARAG研究要么需要访问预训练语料库,要么需要借助额外模型推理进行提示。为规避这些缺陷,我们提出通过检查LLM的(上下文相关的)预训练词元嵌入来判断模型是否掌握查询相关知识。我们假设这类嵌入承载了模型固有知识库的丰富信息,从而提供一种判断是否需要从外部语料库检索的高效方式。大量实验表明,我们的ARAG方法在多个基准测试中表现更优。

英文摘要:

Retrieval-augmented large language models (LLMs) have been remarkably competent in various NLP tasks. However, it was observed by previous works that retrieval is not always helpful, especially when the LLM is already knowledgeable on the query to answer. Motivated by this, Adaptive Retrieval-Augmented Generation (ARAG) studies retrieving only when the knowledge asked by the query is absent in the LLM. Previous works of ARAG either require accessing the pre-training corpus or prompting with additional model inferences. Aiming to avoid such drawbacks, we propose to determine whether the model is knowledgeable on a query via inspecting the (contextualized) pre-trained token embeddings of LLMs. We hypothesize that such embeddings capture rich information on the model's intrinsic knowledge base, which enables an efficient way of judging the necessity to retrieve from an external corpus. Extensive experiments demonstrate our ARAG approach's superior performance across various benchmarks.

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

↑