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

检索增强生成(RAG)及更多:关于如何让您的LLMs更明智地使用外部数据的全面综述

Retrieval Augmented Generation (RAG) and Beyond: A Comprehensive Survey on How to Make your LLMs use External Data More Wisely

Microsoft Research Asia(微软亚洲研究院)

Siyun Zhao, Yuqing Yang, Zilong Wang, Zhiyuan He, Luna K. Qiu, Lili Qiu

AI总结:

本文综述了数据增强LLM的挑战,提出RAG任务四层分类法(显式事实、隐式事实、可解释推理、隐藏推理查询),并总结上下文、小模型和微调三种外部数据整合方式的优势与局限,为系统开发LLM应用提供指南。

摘要:

结合外部数据的大型语言模型(LLMs)在完成现实世界任务中展现出了卓越的能力。将外部数据整合到LLMs中的技术,如Retrieval-Augmented Generation(RAG,检索增强生成)和微调,正受到越来越多的关注并得到广泛应用。尽管如此,在各个专业领域有效部署数据增强的LLMs仍面临巨大挑战。这些挑战涵盖广泛的问题,从检索相关数据、准确理解用户意图,到充分利用LLMs的推理能力处理复杂任务。我们认为,数据增强的LLM应用不存在一刀切的解决方案。在实践中,表现不佳往往是因为未能正确识别任务的核心焦点,或者任务本身需要融合多种能力,必须将这些能力加以解构才能更好地解决。在这篇综述中,我们提出了一种RAG任务分类方法,根据所需外部数据的类型和任务的主要焦点,将用户查询分为四个层级:显式事实查询、隐式事实查询、可解释推理查询和隐藏推理查询。我们定义了这些查询层级,提供了相关数据集,并总结了应对这些挑战的关键难点和最有效技术。最后,我们讨论了将外部数据整合到LLMs中的三种主要形式:上下文、小模型和微调,强调了它们各自的优势、局限性以及适合解决的问题类型。这项工作旨在帮助读者透彻理解并解构构建LLM应用时的数据需求和关键瓶颈,为不同挑战提供解决方案,并作为系统开发此类应用的指南。

英文摘要:

Large language models (LLMs) augmented with external data have demonstrated remarkable capabilities in completing real-world tasks. Techniques for integrating external data into LLMs, such as Retrieval-Augmented Generation (RAG) and fine-tuning, are gaining increasing attention and widespread application. Nonetheless, the effective deployment of data-augmented LLMs across various specialized fields presents substantial challenges. These challenges encompass a wide range of issues, from retrieving relevant data and accurately interpreting user intent to fully harnessing the reasoning capabilities of LLMs for complex tasks. We believe that there is no one-size-fits-all solution for data-augmented LLM applications. In practice, underperformance often arises from a failure to correctly identify the core focus of a task or because the task inherently requires a blend of multiple capabilities that must be disentangled for better resolution. In this survey, we propose a RAG task categorization method, classifying user queries into four levels based on the type of external data required and primary focus of the task: explicit fact queries, implicit fact queries, interpretable rationale queries, and hidden rationale queries. We define these levels of queries, provide relevant datasets, and summarize the key challenges and most effective techniques for addressing these challenges. Finally, we discuss three main forms of integrating external data into LLMs: context, small model, and fine-tuning, highlighting their respective strengths, limitations, and the types of problems they are suited to solve. This work aims to help readers thoroughly understand and decompose the data requirements and key bottlenecks in building LLM applications, offering solutions to the different challenges and serving as a guide to systematically developing such applications.

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

↑