arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2410.05983cs.CLcs.AIcs.LG
收藏

长上下文大语言模型与RAG的结合:克服RAG中长输入的挑战

Long-Context LLMs Meet RAG: Overcoming Challenges for Long Inputs in RAG

Google Cloud AI Research(谷歌云人工智能研究部);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)

Bowen Jin, Jinsung Yoon, Jiawei Han, Sercan O. Arik

AI总结:

该研究发现长上下文LLM的RAG性能会随检索段落增多先升后降,难负例是关键诱因,为此提出检索重排序等免训练方法及两类微调方法,并系统分析了训练方法的设计选择。

摘要:

检索增强生成(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.

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

↑