Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Dynamic Parametric Retrieval Augmented Generation for Test-time Knowledge Enhancement

About

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.

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

Related benchmarks

TaskDatasetResultRank
Medical Question AnsweringMedMCQA
Accuracy61.25
346
Medical Question AnsweringMedQA
Accuracy67.87
153
Medical Question AnsweringPubMedQA
Accuracy55.2
92
Medical Question AnsweringMMLU Med
Accuracy81.73
61
Medical Question AnsweringBioASQ
Accuracy79.29
38
Question Answering2WQA, HPQA, PopQA, and CWQ (test)
2WQA In-Domain0.3632
20
Factual ReconstructionHotpotQA (test)
F13.05
5
Factual ReconstructionRACE (test)
F16.96
5
Factual ReconstructionSQuAD (test)
F14.93
5
Factual ReconstructionLoCoMo (test)
F19.01
5
Showing 10 of 11 rows

Other info

Follow for update