Abstract:Equipped with the capability to call functions, modern large language models (LLMs) can leverage external tools for addressing a range of tasks unattainable through language skills alone. However, the effective execution of these tools relies heavily not just on the advanced capabilities of LLMs but also on precise user instructions, which often cannot be ensured in the real world. To evaluate the performance of LLMs tool-use under imperfect instructions, we meticulously examine the real-world instructions queried from users, analyze the error patterns, and build a challenging tool-use benchmark called Noisy ToolBench (NoisyToolBench). We find that due to the next-token prediction training objective, LLMs tend to arbitrarily generate the missed argument, which may lead to hallucinations and risks. To address this issue, we propose a novel framework, Ask-when-Needed (AwN), which prompts LLMs to ask questions to users whenever they encounter obstacles due to unclear instructions. Moreover, to reduce the manual labor involved in user-LLM interaction and assess LLMs performance in tool utilization from both accuracy and efficiency perspectives, we design an automated evaluation tool named ToolEvaluator. Our experiments demonstrate that the AwN significantly outperforms existing frameworks for tool learning in the NoisyToolBench. We will release all related code and datasets to support future research.
| Comments: | EMNLP 2025 |
| Subjects: | Computation and Language (cs.CL); Artificial Intelligence (cs.AI); Software Engineering (cs.SE) |
| Cite as: | arXiv:2409.00557 [cs.CL] |
| (or arXiv:2409.00557v4 [cs.CL] for this version) | |
| https://doi.org/10.48550/arXiv.2409.00557 arXiv-issued DOI via DataCite |
Submission history
From: Wenxuan Wang [view email]
[v1]
Sat, 31 Aug 2024 23:06:12 UTC (744 KB)
[v2]
Wed, 4 Sep 2024 20:34:27 UTC (744 KB)
[v3]
Sun, 16 Feb 2025 14:50:40 UTC (750 KB)
[v4]
Wed, 29 Apr 2026 05:49:57 UTC (362 KB)
