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

检索增强生成与源可靠性估计

Retrieval-Augmented Generation with Estimation of Source Reliability

Pohang University of Science and Technology (POSTECH)(釜山科学技术大学)

Jeongyeon Hwang, Junyoung Park, Hyejin Park, Dongwoo Kim, Sangdon Park, Jungseul Ok

AI总结:

提出可靠性感知RAG框架,通过估计来源可靠性并优先检索可靠文档,结合加权多数投票,提升多源场景下LLM回答的准确性与可扩展性。

摘要:

检索增强生成(RAG)是一种通过从外部数据库检索信息来增强大型语言模型(LLM)事实准确性的有效方法,这些数据库通常由多种来源组成,用以补充LLM有限的内部知识。然而,标准RAG常常面临检索到错误信息的风险,因为它仅依赖于查询与文档之间的相关性,忽视了这些来源的异构可靠性。为解决这一问题,我们提出了可靠性感知RAG(RA-RAG),一种新的多源RAG框架,该框架估计来源的可靠性,并利用这一信息优先选择高度可靠且相关的文档,确保更稳健和准确的响应生成。具体而言,RA-RAG首先通过跨多个来源交叉核对信息来估计来源可靠性。然后,它从排名前κ个可靠且相关的来源中检索文档,并使用加权多数投票(WMV)聚合其信息,其中选择性检索确保了可扩展性,同时不损害性能。综合实验表明,在异构来源可靠性场景下,RA-RAG始终优于基线方法,并且随着来源数量的增加,其扩展效率高。此外,我们展示了RA-RAG估计真实世界来源可靠性的能力,突显了其实用适用性。我们的代码和数据可在https://github.com/ml-postech/RA-RAG获取。

英文摘要:

Retrieval-Augmented Generation (RAG) is an effective approach to enhance the factual accuracy of large language models (LLMs) by retrieving information from external databases, which are typically composed of diverse sources, to supplement the limited internal knowledge of LLMs. However, the standard RAG often risks retrieving incorrect information, as it relies solely on relevance between a query and a document, overlooking the heterogeneous reliability of these sources. To address this issue, we propose Reliability-Aware RAG (RA-RAG), a new multi-source RAG framework that estimates the reliability of sources and leverages this information to prioritize highly reliable and relevant documents, ensuring more robust and accurate response generation. Specifically, RA-RAG first estimates source reliability by cross-checking information across multiple sources. It then retrieves documents from the top-$κ$ reliable and relevant sources and aggregates their information using weighted majority voting (WMV), where the selective retrieval ensures scalability while not compromising the performance. Comprehensive experiments show that RA-RAG consistently outperforms baselines in scenarios with heterogeneous source reliability while scaling efficiently as the number of sources increases. Furthermore, we demonstrate the ability of RA-RAG to estimate real-world sources' reliability, highlighting its practical applicability. \jy{Our code and data are available at \href{https://github.com/ml-postech/RA-RAG}{RA-RAG}.}

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

↑