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

为动态RAG中的及时检索建模不确定性趋势

Modeling Uncertainty Trends for Timely Retrieval in Dynamic RAG

Bo Li, Tian Tian, Zhenghua Xu, Hao Cheng, Shikun Zhang, Wei Ye

AI总结:

针对动态RAG中检索时机优化的挑战,提出无需训练的熵趋势约束(ETC)方法,通过建模token级不确定性的一阶和二阶差分检测趋势以提前精确触发检索,在六个QA基准上优于基线且降低检索频率。

摘要:

动态检索增强生成(RAG)允许大型语言模型(LLMs)按需获取外部知识,比静态RAG具有更强的适应性。该场景中的核心挑战在于确定检索的最佳时机。现有方法常基于低token级置信度触发检索,可能导致错误传播后延迟干预。我们引入熵趋势约束(ETC),这是一种无需训练的方法,通过建模token级不确定性的动态来确定最佳检索时机。具体而言,ETC利用熵序列的一阶和二阶差分检测新兴的不确定性趋势,实现更早、更精确的检索。在六个QA基准测试集上使用三个LLM骨干模型的实验表明,ETC持续优于强基线,同时降低了检索频率。ETC在特定领域场景中尤其有效,表现出强大的泛化能力。消融研究和定性分析进一步证实,趋势感知的不确定性建模能产生更有效的检索时机。该方法即插即用、模型无关,易于集成到现有解码流水线中。实现代码包含在补充材料中。

英文摘要:

Dynamic retrieval-augmented generation (RAG) allows large language models (LLMs) to fetch external knowledge on demand, offering greater adaptability than static RAG. A central challenge in this setting lies in determining the optimal timing for retrieval. Existing methods often trigger retrieval based on low token-level confidence, which may lead to delayed intervention after errors have already propagated. We introduce Entropy-Trend Constraint (ETC), a training-free method that determines optimal retrieval timing by modeling the dynamics of token-level uncertainty. Specifically, ETC utilizes first- and second-order differences of the entropy sequence to detect emerging uncertainty trends, enabling earlier and more precise retrieval. Experiments on six QA benchmarks with three LLM backbones demonstrate that ETC consistently outperforms strong baselines while reducing retrieval frequency. ETC is particularly effective in domain-specific scenarios, exhibiting robust generalization capabilities. Ablation studies and qualitative analyses further confirm that trend-aware uncertainty modeling yields more effective retrieval timing. The method is plug-and-play, model-agnostic, and readily integrable into existing decoding pipelines. Implementation code is included in the supplementary materials.

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

↑