arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2406.19215cs.CL
收藏

SeaKR:用于自适应检索增强生成的自感知知识检索

SeaKR: Self-aware Knowledge Retrieval for Adaptive Retrieval Augmented Generation

Tsinghua University(清华大学);University of California, Santa Barbara(加利福尼亚大学圣巴巴拉分校);Beijing Institute of Technology(北京理工大学);Siemens Technology(西门子技术公司)

Zijun Yao, Weijian Qi, Liangming Pan, Shulin Cao, Linmei Hu, Weichuan Liu, Lei Hou, Juanzi Li

AI总结:

本文提出SeaKR模型,通过提取LLM内部状态的自感知不确定性来决定何时检索、重排序知识片段并选择推理策略,在多类问答数据集上优于现有自适应RAG方法。

摘要:

本文提出了自感知知识检索(SeaKR),一种从LLM内部状态提取自感知不确定性的新型自适应RAG模型。当LLM在生成时表现出高自感知不确定性,SeaKR会激活检索。为有效整合检索到的知识片段,SeaKR基于LLM的自感知不确定性对其进行重排序,以最大程度保留能降低其不确定性的片段。为解决需多次检索的复杂任务,SeaKR利用该不确定性在不同推理策略间进行选择。在复杂和简单问答数据集上的实验表明,SeaKR优于现有自适应RAG方法。代码发布于https://github.com/THU-KEG/SeaKR。

英文摘要:

This paper introduces Self-aware Knowledge Retrieval (SeaKR), a novel adaptive RAG model that extracts self-aware uncertainty of LLMs from their internal states. SeaKR activates retrieval when the LLMs present high self-aware uncertainty for generation. To effectively integrate retrieved knowledge snippets, SeaKR re-ranks them based on LLM's self-aware uncertainty to preserve the snippet that reduces their uncertainty to the utmost. To facilitate solving complex tasks that require multiple retrievals, SeaKR utilizes their self-aware uncertainty to choose among different reasoning strategies. Our experiments on both complex and simple Question Answering datasets show that SeaKR outperforms existing adaptive RAG methods. We release our code at https://github.com/THU-KEG/SeaKR.

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

↑