Introduction
In Retrieval-Augmented Generation (RAG) systems, the "Retrieval" component is traditionally evaluated using metrics like nDCG, MAP, and MRR. These metrics were designed for human web browsing, assuming users read results sequentially and ignore irrelevant content. However, Large Language Models (LLMs) process retrieved documents holistically and are highly sensitive to both document position and the presence of distracting information. This paper argues that optimizing for human-centric metrics can inadvertently degrade RAG performance and proposes UDCG (Utility and Distraction-aware Cumulative Gain) as a more accurate alternative.
The Failure of Traditional Metrics
Traditional Information Retrieval (IR) metrics rely on two flawed assumptions when applied to LLMs:
- Positional Bias Mismatch: While human attention typically decays monotonically from top to bottom, LLMs exhibit complex positional biases, such as the "lost-in-the-middle" effect, where performance is higher for information at the beginning or end of a context window.
- The Distraction Effect: In human search, an irrelevant result is a minor inconvenience. For an LLM, irrelevant but semantically related "distractors" can actively mislead the model, triggering hallucinations or causing it to abstain from answering correctly.
Proposed Method: UDCG
The authors shift the evaluation paradigm from human relevance to machine utility. They introduce a utility-based annotation schema where passages are scored based on the probability of an LLM providing a correct answer versus abstaining or hallucinating.
Building on this, they introduce two variants of UDCG:
- $UDCG_\theta$ (Learnable): Uses a linear model to learn specific positional weights, accounting for an LLM's unique attention patterns alongside utility scores.
- UDCG (Training-free): A plug-and-play version that calculates a weighted sum of average passage relevance and the negative impact of distractors, ignoring positional bias for simplicity.
Key Results and Insights
Experimental results across general (NQ, TriviaQA) and specialized (BioASQ) domains demonstrate that UDCG provides a significantly more reliable signal for RAG performance than existing metrics.
- Superior Correlation: $UDCG_\theta$ improved Spearman correlation with end-to-end RAG accuracy by up to 36% (+10 points) compared to traditional nDCG.
- Stability Across Contexts: Unlike Precision or nDCG, which fluctuate wildly as the number of retrieved documents ($k$) changes, UDCG maintains a stable, high correlation with actual model performance.
- Distraction is the Primary Driver: Interestingly, the training-free UDCG performed nearly as well as the learnable version. This suggests that penalizing distracting documents is more critical for accurate evaluation than modeling fine-grained positional bias.
Conclusion
As RAG becomes the standard for grounding LLMs in factual data, our evaluation frameworks must evolve. By accounting for the distracting effect of irrelevant documents and the non-linear attention of LLMs, UDCG offers a robust path forward for optimizing retrievers to serve machines rather than just humans. Future work will focus on extending this utility-based framework to multi-hop reasoning and black-box commercial APIs where logit access is restricted.
Summary updated