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

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

Abstract

Retrieval-Augmented Generation (RAG) has become a cornerstone for reducing hallucinations in Large Language Models (LLMs) by providing external context. However, the performance of RAG systems is often hampered by "noise"—the inclusion of irrelevant or contradictory documents by retrievers. This paper introduces REAR (RElevance-Aware Retrieval-augmented framework), a novel approach that equips LLMs with an explicit assessment module to judge document relevance precisely. Through fine-grained relevance scoring and noise-resistant training, REAR prevents models from being misled by irrelevant information. Experimental results demonstrate that REAR outperforms existing methods like Self-RAG in both accuracy and robustness while offering a 3x improvement in inference speed.

Introduction

Open-Domain Question Answering (ODQA) relies heavily on Retrieval-Augmented Generation (RAG) to ground LLM responses in factual data. Despite its success, RAG faces a significant challenge: LLMs are often "gullible," struggling to distinguish between helpful context and distracting noise. When a retriever provides irrelevant documents, models may prioritize this "junk" over their own internal knowledge, leading to incorrect answers. Existing attempts to mitigate this, such as binary relevance labeling or expensive prompting of larger models like GPT-4, often lack the necessary precision or efficiency for real-world applications.

Methodology

The REAR framework addresses these limitations through a multi-faceted architectural and training approach.

Explicit Assessment Module

At the core of REAR is a dedicated linear projection layer added to the LLM. This module processes the relevance embedding from the final token of a query-document pair, converting it into a continuous relevance score ($s_{rel}$). This allows the model to quantify its confidence in the retrieved information explicitly.

Relevance-Guided Generation

The relevance score is transformed into a "guidance embedding" ($v_{guide}$), which is fed back into the LLM. This signal informs the model on the degree to which it should rely on the provided document versus its internal parameters during the generation phase.

The REAR architecture featuring the Explicit Assessment Module and Relevance-Guided Generation flow.

Bi-granularity Relevance Fusion

To move beyond simple binary labels, REAR utilizes a "label machine"—a specialized 110M parameter cross-encoder reranker—to provide fine-grained, preference-based scores during training. This teaches the model to rank documents by their specific utility, enabling more nuanced reasoning.

Knowledge Reliability and Noise Resistance

REAR incorporates a "consistency check" by calculating the inverse perplexity of a generated answer while simulating document irrelevance. If the model can produce the same answer without the document, it indicates high internal confidence. Furthermore, the model undergoes noise-resistant training using "hard negatives"—documents that appear relevant but are actually distracting—to enhance its ability to ignore irrelevant context.

Experimental Setup

The researchers evaluated REAR using four major ODQA benchmarks: Natural Questions (NQ), TriviaQA, WebQuestions (WebQ), and SQuAD. While the model was trained exclusively on the NQ dataset, its performance was tested across all four to measure zero-shot generalization. The framework was implemented using a LLaMA2-7B backbone and optimized for speed using PagedAttention.

Key Results

REAR demonstrates significant improvements across accuracy, robustness, and efficiency metrics.

Superior Accuracy and Generalization

Based on the LLaMA2-7B architecture, REAR achieved an average Exact Match (EM) score of 47.10, substantially outperforming baselines such as Self-RAG (40.02) and RobustLM (41.82). Notably, the model showed excellent zero-shot transferability, maintaining high performance on TriviaQA and SQuAD despite being trained only on NQ.

Robustness to Noise

A critical test for RAG systems is their performance in the presence of irrelevant documents. REAR maintained an accuracy of 20.09% in high-noise scenarios, whereas Self-RAG's performance dropped to 6.23%. This indicates that REAR is significantly more resilient to retriever errors.

Inference Efficiency

By integrating with PagedAttention and avoiding the redundant calculations typical of multi-step RAG frameworks, REAR achieves a 3x speedup over Self-RAG, clocking in at 0.45s per sample compared to 1.41s.

Discussion and Conclusion

REAR represents a shift toward "self-aware" retrieval-augmented models. By making relevance an explicit, quantifiable metric, the framework allows LLMs to gate their own generation process effectively. The use of a small "label machine" to generate high-quality training data proves that expensive teacher models like GPT-4 are not always necessary for achieving state-of-the-art results.

Future work will aim to increase the granularity of assessment from the document level to the sentence or token level, which is essential for handling long-form, partially relevant context. Additionally, expanding the evaluation to broader knowledge-intensive tasks beyond QA will further validate the framework's versatility.

Summary updated

BibTeX
@inproceedings{wang2024rear,
  author = {Yuhao Wang and Ruiyang Ren and Junyi Li and Xin Zhao and Jing Liu and Ji-Rong Wen},
  title = {{REAR: A Relevance-Aware Retrieval-Augmented Framework for Open-Domain Question Answering}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.emnlp-main.321},
}
Figure