Tools in the Loop: Quantifying Uncertainty of LLM Question Answering Systems That Use Tools
On the map: LLM agents and tool use → General LLM agent frameworks and benchmarks
Abstract (arXiv)
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.
Key facts. Cited by 7 papers in the map (data through 7 Oct 2026). Placed in General LLM agent frameworks and benchmarks, one of 16 directions in LLM agents and tool use. Builds on 15 of its 21 references that are in the map. First posted on arXiv 22 May 2025.
Builds on
15 of 21 references.
References · 15
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
- 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
- 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
- 2023Tool Learning with Foundation Modelscited by 302
- 2021Unsolved Problems in ML Safetycited by 291
- 2024Tool Learning with Large Language Models: A Surveycited by 221
- 2024ToolACE: Winning the Points of LLM Function Callingcited by 204
- 2023Large Language Models in Law: A Surveycited by 128
- 2024Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approachcited by 73
Built on by
Citing papers per year: 2025: 1; 2026: 6.
7 papers.
- 2025A Survey of Context Engineering for Large Language Modelscited by 120
- 2026Agentic Uncertainty Quantificationcited by 16
- 2026Exploring Agentic Tool-Calling Decisions via Uncertainty-Aligned Reinforcement Learningcited by 4
- 2026ToolChain-CRC: Conformal Risk Control for Agentic AI Under Retrieval and Tool-Use Driftcited by 4
- 2026Uncertainty Decomposition for Clarification Seeking in LLM Agentscited by 3
- 2026Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inferencecited by 0
- 2026Reexamining zero-shot summarization: Empirical investigation of trustworthiness of LLM-summarizerscited by 0
- 2026Reexamining zero-shot summarization: Empirical investigation of trustworthiness of LLM-summarizers23 Jul 2026
- 2026Diagnosis-Driven Automatic Repair for Agentic Workflow via Symbolic Inference3 Jul 2026
- 2026Uncertainty Decomposition for Clarification Seeking in LLM Agents17 Jun 2026
- 2026ToolChain-CRC: Conformal Risk Control for Agentic AI Under Retrieval and Tool-Use Drift16 Jun 2026
- 2026Exploring Agentic Tool-Calling Decisions via Uncertainty-Aligned Reinforcement Learning5 Jun 2026
- 2026Agentic Uncertainty Quantification22 Jan 2026
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024MAQA: Evaluating Uncertainty Quantification in LLMs Regarding Data Uncertainty
- 2023ToolQA: A Dataset for LLM Question Answering with External Tools
- 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Survey
- 2025Uncertainty-Aware Answer Selection for Improved Reasoning in Multi-LLM Systems
- 2026Uncertainty-Aware Abstention in Large Language Models with Provable Alignment Guarantees
- 2026URAG: A Benchmark for Uncertainty Quantification in Retrieval-Augmented Large Language Models
- 2025Mind the Gap: Benchmarking LLM Uncertainty and Calibration with Specialty-Aware Clinical QA and Reasoning-Based Behavioural Features
- 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Study