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

用于测试时知识增强的动态参数化检索增强生成

Dynamic Parametric Retrieval Augmented Generation for Test-time Knowledge Enhancement

The Key Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(认知与决策智能复杂系统重点实验室,自动化研究所,中国科学院);School of Artificial Intelligence, University of Chinese Academy of Sciences(人工智能学院,中国科学院大学)

Yuqiao Tan, Shizhu He, Huanxuan Liao, Jun Zhao, Kang Liu

AI总结:

本文提出DyPRAG框架,利用轻量级参数转换器将文档高效转化为参数化知识,在测试时以即插即用方式增强大语言模型知识,从而降低推理、训练和存储成本并缓解RAG幻觉。

摘要:

检索增强生成(RAG)通过从外部来源检索相关文档并将其纳入上下文来增强大语言模型(LLMs)。虽然它通过提供事实性文本提高了可靠性,但随着上下文长度的增长,它显著增加了推理成本,并引入了具有挑战性的RAG幻觉问题,这主要是由于LLMs中缺乏相应的参数化知识所致。一种高效的解决方案是在测试时增强LLMs的知识。参数化RAG(PRAG)通过将文档嵌入到LLMs参数中来执行测试时知识增强,从而通过离线训练有效降低推理成本。然而,其高昂的训练和存储成本以及有限的泛化能力,极大地限制了其实际应用。为了解决这些挑战,我们提出了动态参数化RAG(DyPRAG),这是一个新颖的框架,利用轻量级参数转换器模型高效地将文档转换为参数化知识。DyPRAG不仅降低了推理、训练和存储成本,还能动态生成参数化知识,在测试时以即插即用的方式无缝增强LLMs的知识并解决知识冲突。在多个数据集上的大量实验证明了DyPRAG的有效性和泛化能力,提供了一种强大且实用的RAG范式,能够在实际应用中实现卓越的知识融合并缓解RAG幻觉。我们的代码可在 https://github.com/Trae1ounG/DyPRAG 获取。

英文摘要:

Retrieval-augmented generation (RAG) enhances large language models (LLMs) by retrieving relevant documents from external sources and incorporating them into the context. While it improves reliability by providing factual texts, it significantly increases inference costs as context length grows and introduces challenging issue of RAG hallucination, primarily caused by the lack of corresponding parametric knowledge in LLMs. An efficient solution is to enhance the knowledge of LLMs at test-time. Parametric RAG (PRAG) addresses this by embedding document into LLMs parameters to perform test-time knowledge enhancement, effectively reducing inference costs through offline training. However, its high training and storage costs, along with limited generalization ability, significantly restrict its practical adoption. To address these challenges, we propose Dynamic Parametric RAG (DyPRAG), a novel framework that leverages a lightweight parameter translator model to efficiently convert documents into parametric knowledge. DyPRAG not only reduces inference, training, and storage costs but also dynamically generates parametric knowledge, seamlessly enhancing the knowledge of LLMs and resolving knowledge conflicts in a plug-and-play manner at test-time. Extensive experiments on multiple datasets demonstrate the effectiveness and generalization capabilities of DyPRAG, offering a powerful and practical RAG paradigm which enables superior knowledge fusion and mitigates RAG hallucination in real-world applications. Our code is available at https://github.com/Trae1ounG/DyPRAG.

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

↑