Introduction
Retrieval-Augmented Generation (RAG) has become the standard architecture for grounding Large Language Models (LLMs) in external factual data. However, evaluating the retrieval component remains a significant challenge. Traditional methods often rely on human-annotated relevance labels, which may not align with what an LLM actually finds useful, or end-to-end (E2E) evaluation, which is computationally expensive and lacks granularity. This paper introduces eRAG, a novel evaluation framework that measures retrieval quality by assessing the utility of individual documents to the generator. Compared to traditional end-to-end evaluation, eRAG is significantly more predictive of final system performance while being up to 50 times more memory-efficient and 2.5 times faster.
The Problem with Current Evaluation
Current RAG evaluation strategies suffer from two primary flaws:
- Misalignment with LLM Utility: Human "gold" relevance labels (Provenance) often fail to capture whether a document is actually helpful to a specific model. A document might be technically relevant but too noisy or complex for the LLM to utilize effectively.
- Computational Inefficiency: E2E evaluation requires running the entire pipeline (Query → Retrieve Top-K → Generate) and scoring the final output. Feeding 50+ documents into an LLM creates massive input sequences that require high-end GPUs with enormous VRAM. Furthermore, it’s a "black box"—you don't know which specific document helped or hurt the final answer.
Methodology: The eRAG Framework
The eRAG framework shifts the evaluation paradigm from binary relevance to model-specific utility. Instead of evaluating the entire retrieved set at once, eRAG decomposes the task:
- Individual Processing: For every document in the retrieved list, the LLM is prompted with the query and only that one document.
- Scoring: The LLM generates an answer, which is scored against the ground truth (using metrics like Exact Match or F1).
- Aggregation: These document-level scores serve as the "relevance labels" for that specific document, which are then aggregated using standard Information Retrieval (IR) metrics like NDCG, MAP, or MRR.
Because the LLM processes documents one by one, the sequence length remains short, drastically reducing the quadratic memory cost associated with Transformer self-attention.
Experimental Setup
The researchers evaluated eRAG using the KILT benchmark, covering knowledge-intensive tasks such as Question Answering (Natural Questions, TriviaQA, HotpotQA), Fact Verification (FEVER), and Dialogue (Wizard of Wikipedia). They tested various retrievers (BM25, Contriever) and LLMs of different scales (T5-small, T5-base, and Mistral-7B).
Key Results and Insights
Superior Predictive Power
eRAG demonstrates a significantly higher correlation with downstream RAG performance compared to traditional metrics. As shown in Figure 1, eRAG (labeled "Our") consistently maintains a high Kendall’s τ correlation across different datasets and document counts, whereas human provenance labels show much weaker alignment.
An interesting observation from Figure 1 is the "diminishing returns of context": as more documents are added, the correlation between retrieval metrics and final performance tends to decrease. This suggests that while more documents might increase the chance of finding an answer, they also add noise that can confuse the generator.
Efficiency and Scalability
By breaking down the evaluation into single-document tasks, eRAG achieves massive resource savings. On the Natural Questions (NQ) dataset, end-to-end evaluation required 75.0 GB of GPU memory. eRAG required only 1.5 GB—a 50x reduction. Additionally, the method was 2.47x faster on average by avoiding the overhead of processing extremely long input sequences.
Robustness Across Models
The framework is model-agnostic, showing consistent performance across different LLM sizes. Figure 2 illustrates that the correlation remains stable whether using T5-small or T5-base across multiple datasets, proving that the utility-based approach generalizes well regardless of the generator's scale.
Discussion and Limitations
The primary limitation of eRAG is its focus on documents in isolation. In some complex tasks (like multi-hop reasoning), an LLM might need information from two or more documents simultaneously to form an answer. eRAG would likely under-score these documents because neither is sufficient on its own. The authors suggest that future work could explore "multi-document" eRAG, where small clusters of documents are evaluated together to capture these synergies while still maintaining better efficiency than a full end-to-end run.
Summary updated