R^2AG: Incorporating Retrieval Information into Retrieval Augmented Generation

Fuda Ye, Shuangyin Li, Yongqi Zhang, Lei Chen
6/19/2024
cs.CLcs.AIcs.IR

No official code found. Best implementation: YeFD/RRAG (41 stars, MIT, last commit 2024-12-06).

Abstract

Retrieval augmented generation (RAG) has been applied in many scenarios to augment large language models (LLMs) with external documents provided by retrievers. However, a semantic gap exists between LLMs and retrievers due to differences in their training objectives and architectures. This misalignment forces LLMs to passively accept the documents provided by the retrievers, leading to incomprehension in the generation process, where the LLMs are burdened with the task of distinguishing these documents using their inherent knowledge. This paper proposes R$^2$AG, a novel enhanced RAG framework to fill this gap by incorporating Retrieval information into Retrieval Augmented Generation. Specifically, R$^2$AG utilizes the nuanced features from the retrievers and employs a R$^2$-Former to capture retrieval information. Then, a retrieval-aware prompting strategy is designed to integrate retrieval information into LLMs' generation. Notably, R$^2$AG suits low-source scenarios where LLMs and retrievers are frozen. Extensive experiments across five datasets validate the effectiveness, robustness, and efficiency of R$^2$AG. Our analysis reveals that retrieval information serves as an anchor to aid LLMs in the generation process, thereby filling the semantic gap.

View on arXivView PDF

Code Implementations(1)

YeFD/RRAGCommunity100%
MIT

The official Github repository for paper "R^2AG: Incorporating Retrieval Information into Retrieval Augmented Generation" (EMNLP 2024 Findings).

416Shell, PythonJun 13, 20241 years agoMIT

Similar Papers

Cite this paper

@article{ye2024rag,
  title  = {R^2AG: Incorporating Retrieval Information into Retrieval Augmented Generation},
  author = {Fuda Ye and Shuangyin Li and Yongqi Zhang and Lei Chen},
  year   = {2024},
  eprint = {2406.13249},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2406.13249v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2406.13249.svg)](https://codeofpaper.com/paper/2406.13249)

Discussion