知悉再取:面向检索增强生成的可校准检索预算分配
Know Before You Fetch: When Does Confidence-Based Retrieval-Budget Allocation Pay Off?
AI总结:
提出自适应RAG作为可校准检索预算分配,通过校准序列对数概率和前缀logit不确定性为正确性概率,实现分级上下文选择、选择性弃权和显式延迟/令牌权衡,显著提升校准质量并优化检索预算。
摘要:
检索增强生成(RAG)通常对每个查询检索固定数量的段落。当阅读器已知答案时,这会造成浪费,而当无关或部分相关的段落干扰阅读器时,这可能有害。我们将自适应RAG表述为可校准的检索预算分配:给定查询,决定是闭卷回答、检索紧凑上下文(k=1)、检索完整上下文(k=5)还是弃权。贡献在于一个概率接口,而非新的原始不确定性信号。我们将序列对数概率和前缀logit不确定性信号校准为正确性概率,然后利用这些概率进行分级上下文选择、选择性弃权以及显式的延迟/令牌权衡。在TriviaQA、Natural Questions和MS MARCO上的核心QA实验中,辅以PopQA动机验证和Qwen/Llama系列检查,诊断性折外校准显著提高了概率质量:对于序列对数概率,TriviaQA上的ECE从0.275降至0.062,NQ上从0.643降至0.009,MS MARCO上从0.711降至0.031。分级检索在我们的信号和TARG风格的前缀熵/边际上均改善了完整上下文和段落预算前沿,而检索调用AUC与二元门控基本持平,因为k=1仍是一次检索调用。留出训练/验证/测试阈值实验报告了可部署的操作点。在匹配准确率前沿的操作点上,一个测量的成本模型显示门控并非普遍更快:它在Qwen3-8B上增加约27%的延迟,但在Qwen3-32B上节省约8%。这些结果支持对自适应RAG的细致理解:校准置信度最好被理解为在任务和系统约束下分配检索预算的可复用接口。
英文摘要:
Adaptive retrieval-augmented generation uses a signal from the reader, such as its confidence when answering without retrieval (closed-book), to decide whether and how much to retrieve. We compare such methods not with always retrieving many passages but with the best simple policy under the same cap on average passages per query: a fixed depth or a random mixture of fixed depths. Policies allocate zero, one or five passages and are scored on held-out questions. Seven settings of about 2,000 questions combine TriviaQA, Natural Questions and MS MARCO, Qwen3-8B and Qwen3-32B readers, and two retrieval sources: per-question passage pools and a 3.5-million-passage Wikipedia index. Allocation by confidence could gain in three ways. It rations a scarce budget: at a cap of half a passage per query it beats the best simple policy in all seven settings, by 0.010 to 0.075 in accuracy. It avoids harmful retrieval: at caps of one passage or more, substantial gains appear only on Wikipedia, where passages often overwrite known answers, most robustly for Qwen3-8B on TriviaQA (+0.051, also under exact match and F1). It barely helps to choose depth: closed-book confidence ranks which queries a first passage helps but ranks the choice between one and five passages little better than chance, and with passage pools a fixed depth of two or three passages is as good or better. Once the probe's latency is charged, gains remain only where the gate skips retrieval for most queries; for the larger reader they also depend on the answer metric.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。