检索增强生成(Retrieval-augmented generation,RAG)使大语言模型(large language models,LLMs)能够利用外部知识源。LLM处理更长输入序列的能力不断提升,为提供更多检索到的信息开辟了路径,有望提升生成输出的质量。人们很容易认为更大的检索集会包含更多相关信息(更高的召回率),进而可能带来性能提升。然而,我们的实证研究结果表明,对于许多长上下文LLM而言,生成输出的质量起初会提升,但随后会随着检索段落数量的增加而下降。本文对这一现象展开研究,发现检索到的“难负例”带来的负面影响是导致该现象的关键因素。为缓解这一问题并增强基于长上下文LLM的RAG的鲁棒性,我们提出了免训练和基于训练的两类方法。我们首先验证了检索重排序作为一种简单却强大的免训练优化方法的有效性。此外,我们探索了基于训练的方法,具体包括RAG专属的隐式LLM微调以及带有中间推理的面向RAG的微调,证明了它们能够带来显著的性能提升。最后,我们对这些基于训练的方法的设计选择进行了系统分析,包括数据分布、检索器选择以及训练上下文长度。
英文摘要:
Retrieval-augmented generation (RAG) empowers large language models (LLMs) to utilize external knowledge sources. The increasing capacity of LLMs to process longer input sequences opens up avenues for providing more retrieved information, to potentially enhance the quality of generated outputs. It is plausible to assume that a larger retrieval set would contain more relevant information (higher recall), that might result in improved performance. However, our empirical findings demonstrate that for many long-context LLMs, the quality of generated output initially improves first, but then subsequently declines as the number of retrieved passages increases. This paper investigates this phenomenon, identifying the detrimental impact of retrieved "hard negatives" as a key contributor. To mitigate this and enhance the robustness of long-context LLM-based RAG, we propose both training-free and training-based approaches. We first showcase the effectiveness of retrieval reordering as a simple yet powerful training-free optimization. Furthermore, we explore training-based methods, specifically RAG-specific implicit LLM fine-tuning and RAG-oriented fine-tuning with intermediate reasoning, demonstrating their capacity for substantial performance gains. Finally, we conduct a systematic analysis of design choices for these training-based methods, including data distribution, retriever selection, and training context length.
AquiLLM: a RAG Tool for Capturing Tacit Knowledge in Research Groups
Department of Computer Science Southern Oregon University Ashland OR, USA;Physics \& Astronomy Department University of California, Los Angeles Los Angeles CA, USA
BAPO: Base-Anchored Preference Optimization for Overcoming Forgetting in Large Language Models Personalization
Graduate School of AI, KAIST(韩国科学技术院人工智能研究生院);Samsung Advanced Institute of Technology(三星先进技术研究院);Department of Electrical and Computer Engineering, UBC(不列颠哥伦比亚大学电气与计算机工程系)
Investigating Pedagogical Teacher and Student LLM Agents: Genetic Adaptation Meets Retrieval Augmented Generation Across Learning Style
RespAI Lab, KIIT Bhubaneswar(KIIT布巴内斯瓦尔 RespAI 实验室);BITS Pilani(皮拉尼比尔拉理工学院);University of South Florida(南佛罗里达大学);Pennsylvania State University(宾夕法尼亚州立大学)
BalanceRAG: Joint Risk Calibration for Cascaded Retrieval-Augmented Generation
Beihang University(北航);Shenzhen Institute of Advanced Technology(深圳先进技术研究院);Zhejiang University of Finance & Economics(浙江财经大学);University of Electronic Science and Technology of China(电子科技大学)
Structure Guided Retrieval-Augmented Generation for Factual Queries
College of Information and Electrical Engineering, China Agricultural University, China(中国农业大学信息与电气工程学院);College of Computing and Data Science, Nanyang Technological University, Singapore(南洋理工大学计算机与数据科学学院);Key Laboratory of Agricultural Informatization Standardization, Ministry of Agriculture and Rural Affairs, China(农业信息化标准化 key laboratory, 农业农村部)
FinSage: A Multi-aspect RAG System for Financial Filings Question Answering
1SimpleWay.AI 2McGill University 3University of Toronto 4University of California, Los Angeles 5The Chinese University of Hong Kong 6Duke University 7Universit\'e de Montr\'eal 8Mila - Quebec AI Institute 9Noah's Ark Lab 10CG Matrix Technology Limited;1SimpleWay.AI 2McGill University 3University of Toronto 4University of California, Los Angeles;5The Chinese University of Hong Kong 6Duke University 7Universit\'e de Montr\'eal 8Mila - Quebec AI Institute;9Noah's Ark Lab 10CG Matrix Technology Limited
RAG-PRISM: A Personalized, Rapid, and Immersive Skill Mastery Framework with Adaptive Retrieval-Augmented Tutoring
College of Information Science, University of Arizona, Tucson, AZ, USA(信息科学学院,亚利桑那大学);Department of Electrical and Computer Engineering, University of Arizona, Tucson, AZ, USA(电气与计算机工程系,亚利桑那大学);Department of Systems and Industrial Engineering, University of Arizona, Tucson, AZ, USA(系统与工业工程系,亚利桑那大学);Department of Industrial Engineering, University of Sonora, Hermosillo, Mexico(工业工程系,索诺拉大学);Leonhard Center for Enhancement of Engineering Education, The Pennsylvania State University, University Park, PA, USA(工程教育增强中心,宾夕法尼亚州立大学)
A Multimodal Manufacturing Safety Chatbot: Knowledge Base Design, Benchmark Development, and Evaluation of Multiple RAG Approaches
Farmer School of Business, Miami University(Miami大学农业商学院);Department of Computer Science and Software Engineering, Miami University(Miami大学计算机科学与软件工程系);Department of Engineering Technology, Miami University(Miami大学工程技术系);Department of Mechanical and Manufacturing Engineering, Miami University(Miami大学机械与制造工程系);Department of Industrial and Systems Engineering, University at Buffalo(University at Buffalo工业与系统工程系)
RAG Deserves an Index: Why Ingest-Time Compilation Beats Query-Time Interpretation
Endgame Labs, Inc.(终局实验室公司);Asia AI Institute(亚洲人工智能研究院);Musashino University(武藏野大学);Faculty of Data Science, Musashino University(武藏野大学数据科学学院);AIx, Inc.(AIx公司)
GRADA: Graph-based Reranking against Adversarial Documents Attack
University of Melbourne(墨尔本大学);University of Edinburgh(爱丁堡大学);University College London(伦敦大学学院);Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Macquarie University(麦觉里大学)
Who Stole Your Data? A Method for Detecting Unauthorized RAG Theft
National Engineering Research Center for Software Engineering, Peking University(软件工程国家工程研究中心,北京大学);City University of Hong Kong(香港城市大学);Fudan University(复旦大学)