arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2511.09545cs.IR
收藏

实用RAG评估:一种稀有性感知的集合型指标与成本-延迟-质量权衡

Practical RAG Evaluation: A Rarity-Aware Set-Based Metric and Cost-Latency-Quality Trade-offs

Etienne Dallaire

AI总结:

针对生产级RAG评估的四大问题,本文提出稀有性感知集合指标RA-nWG@K、黄金集管道rag-gs、科学论文语料库基准及身份信号与噪声诊断,为RAG决策提供CLQ视角下的可复现指导与护栏。

摘要:

本文解决了构建生产级RAG时的猜测难题。经典的以排名为中心的IR指标(nDCG/MAP/MRR)不适用于RAG,因为LLM处理的是一组段落而非浏览列表;位置折扣和不考虑普遍性的聚合忽略了关键问题:截断K处的提示是否包含决定性证据。其次,缺乏标准化、可复现的黄金集构建与审计方法。第三,现有排行榜缺乏反映生产权衡的端到端语料库基准测试。第四,最先进的嵌入模型如何处理专有名称身份信号和会话噪声仍不明确。为此,我们贡献:(1)RA-nWG@K,一种稀有性感知、按查询归一化的集合得分,以及通过池限制预言上限(PROC)和PROC百分比(%PROC)在成本-延迟-质量(CLQ)视角下区分检索与排序余量;(2)rag-gs(MIT许可),一种精简的黄金集管道,采用Plackett-Luce列表式优化,其迭代更新优于单轮LLM排序;(3)基于生产级RAG(科学论文语料库)的综合基准,涵盖密集检索、混合密集+BM25、嵌入模型与维度、交叉编码器重排器、ANN(HNSW)和量化;(4)针对性诊断,通过身份破坏和格式消融量化专有名称身份信号和会话噪声敏感性。这些组件共同为从业者提供帕累托指导和可审计的护栏,支持可复现、考虑预算/SLA的决策。

英文摘要:

This paper addresses the guessing game in building production RAG. Classical rank-centric IR metrics (nDCG/MAP/MRR) are a poor fit for RAG, where LLMs consume a set of passages rather than a browsed list; position discounts and prevalence-blind aggregation miss what matters: whether the prompt at cutoff K contains the decisive evidence. Second, there is no standardized, reproducible way to build and audit golden sets. Third, leaderboards exist but lack end-to-end, on-corpus benchmarking that reflects production trade-offs. Fourth, how state-of-the-art embedding models handle proper-name identity signals and conversational noise remains opaque. To address these, we contribute: (1) RA-nWG@K, a rarity-aware, per-query-normalized set score, and operational ceilings via the pool-restricted oracle ceiling (PROC) and the percentage of PROC (%PROC) to separate retrieval from ordering headroom within a Cost-Latency-Quality (CLQ) lens; (2) rag-gs (MIT), a lean golden-set pipeline with Plackett-Luce listwise refinement whose iterative updates outperform single-shot LLM ranking; (3) a comprehensive benchmark on a production RAG (scientific-papers corpus) spanning dense retrieval, hybrid dense+BM25, embedding models and dimensions, cross-encoder rerankers, ANN (HNSW), and quantization; and (4) targeted diagnostics that quantify proper-name identity signal and conversational-noise sensitivity via identity-destroying and formatting ablations. Together, these components provide practitioner Pareto guidance and auditable guardrails to support reproducible, budget/SLA-aware decisions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑