Papers › REAR: A Relevance-Aware Retrieval-Augmented Framework for Open-Domain Question Answering

REAR: A Relevance-Aware Retrieval-Augmented Framework for Open-Domain Question Answering

27 Feb 2024arXiv:2402.17497archive 2025-07-28

Yuhao Wang, Ruiyang Ren, Junyi Li, Wayne Xin Zhao, Jing Liu, Ji-Rong Wen

Considering the limited internal parametric knowledge, retrieval-augmented generation (RAG) has been widely used to extend the knowledge scope of large language models (LLMs). Despite the extensive efforts on RAG research, in existing methods, LLMs cannot precisely assess the relevance of retrieved documents, thus likely leading to misleading or even incorrect utilization of external knowledge (eg., retrieved documents). To address this issue, in this paper, we propose REAR, a RElevance-Aware Retrieval-augmented approach for open-domain question answering (QA). As the key motivation, we aim to enhance the self-awareness regarding the reliability of external knowledge for LLMs, so as to adaptively utilize external knowledge in RAG systems. Specially, we develop a novel architecture for LLM-based RAG systems, by incorporating a specially designed assessment module that precisely assesses the relevance of retrieved documents. Furthermore, we propose an improved training method based on bi-granularity relevance fusion and noise-resistant training. By combining the improvements in both architecture and training, our proposed REAR can better utilize external knowledge by effectively perceiving the relevance of retrieved documents. Experiments on four open-domain QA tasks show that REAR significantly outperforms previous a number of competitive RAG approaches. Our codes can be accessed at https://github.com/RUCAIBox/REAR.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2402.17497")

Code

Syntology Ran 5 of 14 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 5 ran with no contract checked.

By repository: official repository: 14 samples from 1 repository, 5 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

rucaibox/rear officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

14 samples harvested; 5 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

5ran
9unverified

Licence: 14 of the 14 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from RUCAIBox/REAR. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

EM_compute RUCAIBox/REAR/rear/src/utils.py official repository ran no licence file found · pointer only · 4e64f1e74615a17b · report
F1_compute RUCAIBox/REAR/rear/src/utils.py official repository ran no licence file found · pointer only · ab2b5996ca7899c5 · report
flash_attn2_prepare_decoder_attention_mask RUCAIBox/REAR/rear/src/modeling_rearllama.py official repository ran no licence file found · pointer only · bb00e50823252c4e · report
load_data RUCAIBox/REAR/rear/src/routing.py official repository ran no licence file found · pointer only · cd9e184cbcee26b9 · report
process_ungrouped RUCAIBox/REAR/rear/src/dataset.py official repository ran no licence file found · pointer only · fd045160cf301d81 · report
batch_generate RUCAIBox/REAR/rear/src/inf.py official repository unverified no licence file found · pointer only · 1fa4c96d77ce5f71 · report
batch_perplexity RUCAIBox/REAR/rear/src/inf.py official repository unverified no licence file found · pointer only · 6e2a58efe7401dca · report
consistency RUCAIBox/REAR/rear/src/routing.py official repository unverified no licence file found · pointer only · da99009cb5e4b34f · report
get_dataset RUCAIBox/REAR/rear/src/dataset.py official repository unverified no licence file found · pointer only · 9f8e1820fdc2e76b · report
get_scores RUCAIBox/REAR/rear/src/inf.py official repository unverified no licence file found · pointer only · 73a6d0a707d6cc37 · report
has_answer RUCAIBox/REAR/rear/src/utils.py official repository unverified no licence file found · pointer only · 3aa6f53b87553083 · report
load_model_and_tokenizer RUCAIBox/REAR/rear/src/load_model.py official repository unverified no licence file found · pointer only · f0ed5a58b6a31117 · report
process_grouped RUCAIBox/REAR/rear/src/dataset.py official repository unverified no licence file found · pointer only · 0b6a1efe994adc06 · report
reliability RUCAIBox/REAR/rear/src/routing.py official repository unverified no licence file found · pointer only · acbbfc19df17afb0 · report

Tasks

Open-Domain Question AnsweringQuestion AnsweringRAGRetrievalRetrieval-augmented Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

AdamAttentionAttention DropoutBARTBERTBPEDense ConnectionsDropoutLayer NormalizationLinear LayerLinear Warmup With Linear DecayMulti-Head AttentionRAGResidual ConnectionSoftmaxWeight DecayWordPiece

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections