paper-with-me

홈 › Papers

Parametric Retrieval Augmented Generation

2025-01-27 · Weihang Su, Yichen Tang, Qingyao Ai, Junxi Yan, Changyue Wang, Hongning Wang, Ziyi Ye, Yujia Zhou, Yiqun Liu

Retrieval-augmented generation (RAG) techniques have emerged as a promising solution to enhance the reliability of large language models (LLMs) by addressing issues like hallucinations, outdated knowledge, and domain adaptation. In particular, existing RAG methods append relevant documents retrieved from external corpus or databases to the input of LLMs to guide their generation process, which we refer to as the in-context knowledge injection method. While this approach is simple and often effective, it has inherent limitations. Firstly, increasing the context length and number of relevant documents can lead to higher computational overhead and degraded performance, especially in complex reasoning tasks. More importantly, in-context knowledge injection operates primarily at the input level, but LLMs store their internal knowledge in their parameters. This gap fundamentally limits the capacity of in-context methods. To this end, we introduce Parametric retrieval-augmented generation (Parametric RAG), a new RAG paradigm that integrates external knowledge directly into the parameters of feed-forward networks (FFN) of an LLM through document parameterization. This approach not only saves online computational costs by eliminating the need to inject multiple documents into the LLMs' input context, but also deepens the integration of external knowledge into the parametric knowledge space of the LLM. Experimental results demonstrate that Parametric RAG substantially enhances both the effectiveness and efficiency of knowledge augmentation in LLMs. Also, it can be combined with in-context RAG methods to achieve even better performance. We have open-sourced all the code, data, and models in the following anonymized GitHub link: https://github.com/oneal2000/PRAG

📄 PDF Abstract BibTeX arXiv:2501.15915

Code (1)

oneal2000/prag 공식 구현 pytorch

Tasks

Domain AdaptationRAGRetrievalRetrieval-augmented Generation

Methods 이 논문이 사용한 방법론

Refunds@Expedia|||How do I get a full refund from Expedia? “How do I get a full refund from Expedia? How do I get a full refund from Expedia? – Call ☎️ +1-(888) 829 (0881) or +1-805-330-4056 or +1-805-330-4056 for Quick Help &…
Attention 설명 없음
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Linear Warmup With Linear Decay Linear Warmup With Linear Decay is a learning rate schedule in which we increase the learning rate linearly for $n$ updates and then linearly decay afterwards.
Adam 설명 없음
Residual Connection 설명 없음

Similar Papers 제목 키워드 기반

Enhancing Retrieval-Augmented Large Language Models with Iterative Retrieval-Generation Synergy

2023-05-24 · Zhihong Shao, Yeyun Gong, Yelong Shen, Minlie Huang 외

Large language models are powerful text processors and reasoners, but are still subject to limitations including outdated knowledge and hallucinations, which necessitates connecting them to the world. Retrieval-augmented…

Fact VerificationMulti-hop Question AnsweringQuestion AnsweringRetrieval

From Retrieval to Generation: Unifying External and Parametric Knowledge for Medical Question Answering

2025-10-21 · Lei Li, Xiao Zhou, Yingying Zhang, Xian Wu arxiv

Medical question answering (QA) requires extensive access to domain-specific knowledge. A promising direction is to enhance large language models (LLMs) with external knowledge retrieved from medical corpora or parametri…

Question AnsweringAnswer Generation

Understanding Parametric Knowledge Injection in Retrieval-Augmented Generation

2025-10-14 · Minghao Tang, Shiyu Ni, Jingtong Wu, Zengxin Han 외 arxiv

Context-grounded generation underpins many LLM applications, including long-document question answering (QA), conversational personalization, and retrieval-augmented generation (RAG). However, classic token-based context…

Question Answering

DeepRAG: Thinking to Retrieval Step by Step for Large Language Models

2025-02-03 · Xinyan Guan, Jiali Zeng, Fandong Meng, Chunlei Xin 외

Large Language Models (LLMs) have shown remarkable potential in reasoning while they still suffer from severe factual hallucinations due to timeliness, accuracy, and coverage of parametric knowledge. Meanwhile, integrati…

RAGRetrievalRetrieval-augmented Generation

Retro-li: Small-Scale Retrieval Augmented Generation Supporting Noisy Similarity Searches and Domain Shift Generalization

2024-09-12 · Gentiana Rashiti, Geethan Karunaratne, Mrinmaya Sachan, Abu Sebastian 외

The retrieval augmented generation (RAG) system such as Retro has been shown to improve language modeling capabilities and reduce toxicity and hallucinations by retrieving from a database of non-parametric memory contain…

Language ModelingLanguage ModellingRAGRetrieval+3