arXiv:2505.16113cs.LGcs.CL2025-05被引 7

为使用外部工具的LLM问答系统提供可信度评估方法

Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Tools

  • 构建联合模型,同时量化LLM与外部工具的不确定性
  • 在合成数据集上验证,能有效识别不可靠答案
  • 适合医疗等高风险场景,提升系统可信赖度

现代大语言模型(LLMs)常需调用外部工具(如分类器或知识检索系统)以在预训练知识不足的领域提供准确答案。这种集成虽扩展了应用范围,但也带来关键挑战:如何评估混合系统的回答可信度。在医疗决策等高风险场景中,必须同时评估LLM生成文本与工具输出的不确定性。现有方法未考虑工具调用情境下两者的联合不确定性。本文提出一种新框架,通过联合建模LLM与外部工具的预测不确定性来量化整体置信度,并推广了序列级不确定性量化方法,提出高效近似算法以支持实际应用。我们在两个基于知名机器学习数据集构建的合成问答数据集上进行评估,均需工具调用才能准确回答。此外,将方法应用于检索增强生成(RAG)系统,开展概念验证实验,证明该不确定性度量在依赖外部信息检索的场景中有效。结果表明,该框架显著提升了在内部知识不足时基于工具的LLM系统的可信度。

原文摘要 · Abstract (English)

Modern Large Language Models (LLMs) often require external tools, such as machine learning classifiers or knowledge retrieval systems, to provide accurate answers in domains where their pre-trained knowledge is insufficient. This integration of LLMs with external tools expands their utility but also introduces a critical challenge: determining the trustworthiness of responses generated by the combined system. In high-stakes applications, such as medical decision-making, it is essential to assess the uncertainty of both the LLM's generated text and the tool's output to ensure the reliability of the final response. However, existing uncertainty quantification methods do not account for the tool-calling scenario, where both the LLM and external tool contribute to the overall system's uncertainty. In this work, we present a novel framework for modeling tool-calling LLMs that quantifies uncertainty by jointly considering the predictive uncertainty of the LLM and the external tool. We extend previous methods for uncertainty quantification over token sequences to this setting and propose efficient approximations that make uncertainty computation practical for real-world applications. We evaluate our framework on two new synthetic QA datasets, derived from well-known machine learning datasets, which require tool-calling for accurate answers. Additionally, we apply our method to retrieval-augmented generation (RAG) systems and conduct a proof-of-concept experiment demonstrating the effectiveness of our uncertainty metrics in scenarios where external information retrieval is needed. Our results show that the framework is effective in enhancing trust in LLM-based systems, especially in cases where the LLM's internal knowledge is insufficient and external tools are required.

LLM不确定性工具调用RAG

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。