Skip to main content
QUICK REVIEW

[Paper Review] ToolQA: A Dataset for LLM Question Answering with External Tools

Yuchen Zhuang, Yue Yu|arXiv (Cornell University)|Jun 23, 2023
Topic ModelingComputer Science39 citations
TL;DR

ToolQA is a QA benchmark that isolates external-tool use by LLMs across 8 domains with 13 tools, revealing strengths and limitations of tool-augmented models on easy vs hard questions.

ABSTRACT

Large Language Models (LLMs) have demonstrated impressive performance in various NLP tasks, but they still suffer from challenges such as hallucination and weak numerical reasoning. To overcome these challenges, external tools can be used to enhance LLMs' question-answering abilities. However, current evaluation methods do not distinguish between questions that can be answered using LLMs' internal knowledge and those that require external information through tool use. To address this issue, we introduce a new dataset called ToolQA, which is designed to faithfully evaluate LLMs' ability to use external tools for question answering. Our development of ToolQA involved a scalable, automated process for dataset curation, along with 13 specialized tools designed for interaction with external knowledge in order to answer questions. Importantly, we strive to minimize the overlap between our benchmark data and LLMs' pre-training data, enabling a more precise evaluation of LLMs' tool-use reasoning abilities. We conducted an in-depth diagnosis of existing tool-use LLMs to highlight their strengths, weaknesses, and potential improvements. Our findings set a new benchmark for evaluating LLMs and suggest new directions for future advancements. Our data and code are freely available to the broader scientific community on GitHub.

Motivation & Objective

  • Motivate robust evaluation of LLMs’ ability to use external tools for question answering, separating tool use from internal knowledge recall.
  • Provide a scalable, automated data-generation pipeline to create tool-dependent QA data with minimal human labeling.
  • Curate diverse reference corpora and a suite of tools to cover text, tabular data, graphs, and code execution.
  • Measure baseline performance of standard and tool-augmented LLMs and analyze error modes to guide future improvements.

Proposed method

  • Automated three-phase dataset construction: Reference Data Collection, Human-Guided Question Generation, and Programmatic Answer Generation.
  • Design of 13 specialized tools spanning text retrieval, database operations, math computations, graph queries, and code interpretation.
  • Template-based question generation guided by human validation to ensure questions require tool use over reference corpora.
  • Programmatic answer generation via predefined tool operators and tool chains to produce correct answers from reference data.
  • Open-ended evaluation focusing on final answer correctness regardless of the specific tool chain used.
Figure 1: Pre-trained on vast range of corpus, LLMs possess extensive knowledge, which may overlap with evaluation data. This overlap poses a significant challenge to current evaluation methods, as it becomes difficult to discern whether the model is merely recalling pre-trained information or genui
Figure 1: Pre-trained on vast range of corpus, LLMs possess extensive knowledge, which may overlap with evaluation data. This overlap poses a significant challenge to current evaluation methods, as it becomes difficult to discern whether the model is merely recalling pre-trained information or genui

Experimental results

Research questions

  • RQ1Can LLMs reliably answer questions that require external tools, rather than relying on internal pre-trained knowledge?
  • RQ2How proficient are current tool-augmented LLMs at composing and executing multi-step tool chains for complex queries?
  • RQ3What are the predominant error modes when LLMs use external tools for QA, and how do these differ between easy and hard questions?

Key findings

  • Tool-augmented LLMs outperform purely internal reasoning on ToolQA’s easy questions but still struggle with hard questions.
  • ReAct-based approaches show strongest performance among baselines, yet hard questions yield low success rates (e.g., 8.2% average for hard questions).
  • ChatGPT and chain-of-thought prompts perform poorly on ToolQA, underscoring the need for explicit tool use.
  • Main error types include incorrect tool arguments, incorrect data sources, and innovation hallucinations, especially on harder tasks.
  • Hard questions require more complex tool compositions and reasoning, highlighting current limits in tool-use planning and execution.
  • ToolQA data is drawn from out-of-scope sources with careful overlap minimization with LLM pre-training for fair evaluation.
Figure 2: ToolQA, aiming to faithfully evaluate LLMs’ abilities to use external tools, curates data through three phases: (a) Reference Data Collection; (b) Human-Guided Question Generation; and (c) Programmatic Answer Generation.
Figure 2: ToolQA, aiming to faithfully evaluate LLMs’ abilities to use external tools, curates data through three phases: (a) Reference Data Collection; (b) Human-Guided Question Generation; and (c) Programmatic Answer Generation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.