Preprint · 2023

ToolQA: A Dataset for LLM Question Answering with External Tools

Yuchen Zhuang, Yue Yu, Kuan Wang, Haotian Sun, Chao Zhang

VenuearXiv
DOI10.48550/arXiv.2306.13304
URLhttp://arxiv.org/abs/2306.13304
TopicsReplicHAI / Agent Evals / 06 Tool use, function calling & MCP
TagsComputer Science - Artificial Intelligence, Computer Science - Computation and Language
archiveIDarXiv:2306.13304
extraarXiv:2306.13304 [cs.CL]
libraryCatalogarXiv.org
shortTitleToolQA

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.

BibTeX

@misc{zhuang_toolqa_2023,
	title = {{ToolQA}: {A} {Dataset} for {LLM} {Question} {Answering} with {External} {Tools}},
	shorttitle = {{ToolQA}},
	url = {http://arxiv.org/abs/2306.13304},
	doi = {10.48550/arXiv.2306.13304},
	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.},
	urldate = {2026-11-07},
	publisher = {arXiv},
	author = {Zhuang, Yuchen and Yu, Yue and Wang, Kuan and Sun, Haotian and Zhang, Chao},
	month = jun,
	year = {2023},
	note = {arXiv:2306.13304 [cs.CL]},
	keywords = {Computer Science - Artificial Intelligence, Computer Science - Computation and Language},
}