arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2406.16367cs.IR
收藏

论长尾知识在检索增强大语言模型中的作用

On the Role of Long-tail Knowledge in Retrieval Augmented Large Language Models

Dongyang Li, Junbing Yan, Taolin Zhang, Chengyu Wang, Xiaofeng He, Longtao Huang, Hui Xue, Jun Huang

AI总结:

针对现有RAG无差别增强查询的不足,提出基于GECE指标的长尾知识检测方法,仅对长尾知识查询做检索增强,实现推理速度4倍以上提升与下游任务性能改善。

摘要:

检索增强生成(Retrieval Augmented Generation,RAG)通过检索与用户查询相关的文档,在提升大语言模型(Large Language Models,LLMs)的知识能力方面表现出优异性能。然而,现有RAG仅专注于通过检索到的信息无差别增强查询来提升大语言模型的响应质量,很少关注大语言模型要更准确地回答原始查询真正需要何种类型的知识。本文提出,长尾知识对RAG至关重要,因为大语言模型在大规模预训练过程中已经记住了常见的世界知识。基于这一观察,我们提出了一种简单但有效的大语言模型长尾知识检测方法。具体而言,我们推导了全新的生成式期望校准误差(Generative Expected Calibration Error,GECE)指标,从统计和语义两个层面衡量知识的“长尾程度”。因此,仅当输入查询与长尾知识相关时,我们才检索相关文档并将其注入模型以修补知识漏洞。实验表明,与现有RAG流水线相比,我们的方法平均推理速度提升了4倍以上,且在下游任务中性能持续提升。

英文摘要:

Retrieval augmented generation (RAG) exhibits outstanding performance in promoting the knowledge capabilities of large language models (LLMs) with retrieved documents related to user queries. However, RAG only focuses on improving the response quality of LLMs via enhancing queries indiscriminately with retrieved information, paying little attention to what type of knowledge LLMs really need to answer original queries more accurately. In this paper, we suggest that long-tail knowledge is crucial for RAG as LLMs have already remembered common world knowledge during large-scale pre-training. Based on our observation, we propose a simple but effective long-tail knowledge detection method for LLMs. Specifically, the novel Generative Expected Calibration Error (GECE) metric is derived to measure the ``long-tailness'' of knowledge based on both statistics and semantics. Hence, we retrieve relevant documents and infuse them into the model for patching knowledge loopholes only when the input query relates to long-tail knowledge. Experiments show that, compared to existing RAG pipelines, our method achieves over 4x speedup in average inference time and consistent performance improvement in downstream tasks.

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

↑