mlsanityData to 7 Oct 2026

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

arXiv 2505.16113 ↗First posted 22 May 2025cs.LG cs.CLcited by 7

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

  1. 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
  2. 2015Dropout as a Bayesian Approximation: Representing Model Uncertainty in Deep Learningcited by 4,416
  3. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  4. 2016Simple and Scalable Predictive Uncertainty Estimation using Deep Ensemblescited by 3,888
  5. 2019BoolQ: Exploring the Surprising Difficulty of Natural Yes/No Questionscited by 2,140
  6. 2023Semantic Uncertainty: Linguistic Invariances for Uncertainty Estimation in Natural Language Generationcited by 795
  7. 2023Tool Learning with Foundation Modelscited by 302
  8. 2021Unsolved Problems in ML Safetycited by 291
  9. 2024Tool Learning with Large Language Models: A Surveycited by 221
  10. 2024ToolACE: Winning the Points of LLM Function Callingcited by 204
  11. 2023Large Language Models in Law: A Surveycited by 128
  12. 2024Uncertainty Estimation and Quantification for LLMs: A Simple Supervised Approachcited by 73
3 more
  1. 2022Benchmarking Bayesian Deep Learning on Diabetic Retinopathy Detection Taskscited by 49
  2. 2025Towards Trustworthy Retrieval Augmented Generation for Large Language Models: A Surveycited by 29
  3. 2021Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?cited by 21

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 6.

7 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024MAQA: Evaluating Uncertainty Quantification in LLMs Regarding Data Uncertainty
  2. 2023ToolQA: A Dataset for LLM Question Answering with External Tools
  3. 2025Uncertainty Quantification and Confidence Calibration in Large Language Models: A Survey
  4. 2025Uncertainty-Aware Answer Selection for Improved Reasoning in Multi-LLM Systems
  5. 2026Uncertainty-Aware Abstention in Large Language Models with Provable Alignment Guarantees
  6. 2026URAG: A Benchmark for Uncertainty Quantification in Retrieval-Augmented Large Language Models
  7. 2025Mind the Gap: Benchmarking LLM Uncertainty and Calibration with Specialty-Aware Clinical QA and Reasoning-Based Behavioural Features
  8. 2026Uncertainty Quantification for LLM Agents: A Taxonomy, an Evaluation Protocol, and an Empirical Study