Share your thoughts, 1 month free Claude Pro on usSee more
WorkDL logo mark

Learning to Ask: When LLM Agents Meet Unclear Instruction

About

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.

Wenxuan Wang, Juluan Shi, Zixuan Ling, Yuk-Kit Chan, Chaozheng Wang, Cheryl Lee, Youliang Yuan, Jen-tse Huang, Wenxiang Jiao, Michael R. Lyu• 2024

Related benchmarks

TaskDatasetResultRank
Deep Research Report GenerationDeepResearch Bench
Comprehensiveness40.87
81
Tool Learning under Instruction with ErrorNoisyToolBench IwE 1.0 (test)
A1 Success Rate74
32
Tool Learning under Instruction with Missing Key InformationNoisyToolBench IMKI 1.0 (test)
A1 Success Rate94
32
Tool Learning under Instruction with Multiple RequestsNoisyToolBench IMR 1.0 (test)
A1 Score90
32
Tool Learning under Instructions Beyond Tool CapabilitiesNoisyToolBench IBTC 1.0 (test)
A1 Score98
32
Tool-usingNoisyToolBench IMR
Average Steps1.03
32
Tool-usingNoisyToolBench IwE
Average Steps2
32
Tool-usingNoisyToolBench IBTC
Average Steps1.02
32
Tool-usingNoisyToolBench IMKI
Average Steps2.5
32
Deep Research Report GenerationPDR-Bench
P-Score6.91
22
Showing 10 of 14 rows

Other info

Follow for update