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

Invar-RAG:用于更好生成的基于不变性的LLM对齐检索

Invar-RAG: Invariant LLM-aligned Retrieval for Better Generation

Ziwei Liu, Liang Zhang, Qian Li, Jianghua Wu, Guangxu Zhu

AI总结:

提出Invar-RAG两阶段微调架构,通过集成LoRA表示学习、不变性损失及精细微调方法,解决LLM应用于RAG时的特征局部性和方差问题,在三个ODQA数据集上显著优于基线。

摘要:

检索增强生成(RAG)在提供可靠的答案预测和解决幻觉问题方面展现出了令人印象深刻的能力。典型的RAG实现使用强大的检索模型来提取外部信息,并使用大型语言模型(LLMs)来生成答案。相比之下,最近基于LLM的检索由于LLMs的语义理解能力在信息检索(IR)方面取得了显著改进,因而备受关注。然而,直接将LLM应用于RAG系统存在挑战。这可能导致特征局部性问题,因为大量的参数化知识会阻碍对语料库中全局信息的有效利用;例如,基于LLM的检索器通常输入文档摘要而不是完整文档。此外,LLMs中各种预训练任务引入了方差,进一步削弱了其作为检索器的性能。为了解决这些问题,我们提出了一种新颖的两阶段微调架构,称为Invar-RAG。在检索阶段,通过集成基于LoRA的表示学习来构建基于LLM的检索器,以解决特征局部性问题。为了增强检索性能,我们开发了两种模式(不变模式和可变模式)以及一种不变性损失来减少LLM方差。在生成阶段,采用了一种精细的微调方法来提高LLM基于检索信息生成答案的准确性。实验结果表明,Invar-RAG在三个开放域问答(ODQA)数据集上显著优于现有基线。代码可在补充材料中获取以供复现。

英文摘要:

Retrieval-augmented generation (RAG) has shown impressive capability in providing reliable answer predictions and addressing hallucination problems. A typical RAG implementation uses powerful retrieval models to extract external information and large language models (LLMs) to generate answers. In contrast, recent LLM-based retrieval has gained attention for its substantial improvements in information retrieval (IR) due to the LLMs' semantic understanding capability. However, directly applying LLM to RAG systems presents challenges. This may cause feature locality problems as massive parametric knowledge can hinder effective usage of global information across the corpus; for example, an LLM-based retriever often inputs document summaries instead of full documents. Moreover, various pre-trained tasks in LLMs introduce variance, further weakening performance as a retriever. To address these issues, we propose a novel two-stage fine-tuning architecture called Invar-RAG. In the retrieval stage, an LLM-based retriever is constructed by integrating LoRA-based representation learning to tackle feature locality issues. To enhance retrieval performance, we develop two patterns (invariant and variant patterns) and an invariance loss to reduce LLM variance. In the generation stage, a refined fine-tuning method is employed to improve LLM accuracy in generating answers based on retrieved information. Experimental results show that Invar-RAG significantly outperforms existing baselines across three open-domain question answering (ODQA) datasets. Code is available in the Supplementary Material for reproducibility.

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

↑