2025-12-23 · 进阶 · 自然语言处理 · 机器学习

QuCo-RAG: Quantifying Uncertainty from the Pre-training Corpus for Dynamic Retrieval-Augmented Generation

QuCo-RAG通过使用预训练语料库中的统计数据来量化不确定性,从而在动态检索增强生成中有效地减少大语言模型(LLM)的幻觉。

更新于 2026-08-06。作者:Dehai Min、Kailin Zhang、Tongtong Wu、Lu Cheng。

中文摘要

动态检索增强生成通过自适应地在生成过程中确定何时进行检索,以减轻大型语言模型(LLMs)中的幻觉问题。然而,现有方法依赖于模型内部信号(例如,logits,熵),这些信号从根本上不可靠,因为LLMs通常校准不当,并且经常对错误输出表现出过高的自信。我们提出了QuCo-RAG,它将主观置信度转向从预训练数据计算出的客观统计。我们的方法通过两个阶段量化不确定性:(1)在生成之前,我们识别出低频实体,这表明了长尾知识差距;(2)在生成过程中,我们验证预训练语料库中实体的共现,其中零共现通常预示着幻觉风险。这两个阶段都利用Infini-gram在超过400亿个标记上的毫秒级延迟查询,当不确定性高时触发检索。在多跳问答基准上的实验表明,与最先进的基线相比,QuCo-RAG在OLMo-2模型上实现了5-12个点的EM增益,并且能够有效地迁移到具有未公开预训练数据的模型(Llama、Qwen、GPT),EM提高高达14点。在生物医学问答上的领域泛化进一步验证了我们的方法的鲁棒性。这些结果确立了语料库支持的验证作为一种原则性、实际上模型无关的动态RAG范式。我们的代码在https://github.com/ZhishanQ/QuCo-RAG上公开可用。

英文摘要

Dynamic Retrieval-Augmented Generation adaptively determines when to retrieve during generation to mitigate hallucinations in large language models (LLMs). However, existing methods rely on model-internal signals (e.g., logits, entropy), which are fundamentally unreliable because LLMs are typically ill-calibrated and often exhibit high confidence in erroneous outputs. We propose QuCo-RAG, which shifts from subjective confidence to objective statistics computed from pre-training data. Our method quantifies uncertainty through two stages: (1) before generation, we identify low-frequency entities indicating long-tail knowledge gaps; (2) during generation, we verify entity co-occurrence in the pre-training corpus, where zero co-occurrence often signals hallucination risk. Both stages leverage Infini-gram for millisecond-latency queries over 4 trillion tokens, triggering retrieval when uncertainty is high. Experiments on multi-hop QA benchmarks show QuCo-RAG achieves EM gains of 5--12 points over state-of-the-art baselines with OLMo-2 models, and transfers effectively to models with undisclosed pre-training data (Llama, Qwen, GPT), improving EM by up to 14 points. Domain generalization on biomedical QA further validates the robustness of our paradigm. These results establish corpus-grounded verification as a principled, practically model-agnostic paradigm for dynamic RAG. Our code is publicly available at https://github.com/ZhishanQ/QuCo-RAG.

解读

一句话总结

QuCo-RAG通过使用预训练语料库中的统计数据来量化不确定性,从而在动态检索增强生成中有效地减少大语言模型(LLM)的幻觉。

问题1:这篇论文想要解决什么具体问题?

问题2:论文的核心创新点是什么?

问题3:实验结果如何验证了方法的有效性?

问题4:这个研究的实际应用价值是什么?

来源

机器可读索引:llms.txt