AskToAct:通过自纠错澄清机制增强大语言模型的工具使用能力
AskToAct: Enhancing LLMs Tool Use via Self-Correcting Clarification
AI总结:
针对现有LLM工具使用澄清方法依赖人工数据、多轮无纠错的问题,提出AskToAct框架,通过参数掩码自动构建训练数据、加入纠错机制提升性能,在准确率和效率上优于现有方法,且能零样本泛化到新API。
摘要:
大语言模型(LLMs)已在工具学习领域展现出卓越能力。在真实场景中,用户查询往往存在歧义且信息不完整,需要有效的澄清机制。但现有的交互式澄清方法存在两大关键局限:一是依赖人工构建的数据集,这从根本上限制了训练数据的规模和多样性;二是多轮澄清过程中缺乏纠错机制,导致错误累积,进而损害准确性与效率。\n我们提出AskToAct框架,通过挖掘查询与其工具调用方案之间的结构映射来解决上述挑战。我们的核心洞见是:工具参数天然代表了明确的用户意图。通过系统性地移除查询中的关键参数,同时将这些参数保留为基准真值(ground truth),我们实现了高质量训练数据的自动化构建。我们还通过纠错样本对和选择性掩码进一步提升模型鲁棒性,使其能够在澄清交互过程中动态检测错误。\n综合实验表明,AskToAct显著优于现有方法:在恢复未明确说明的关键意图方面,准确率达到57%以上;在保持高工具调用准确率的同时,澄清效率平均提升10.46%。该框架在不同模型架构下均表现出鲁棒性能,且无需额外训练就能成功泛化到完全未见过的API上,以远少于GPT-4o的计算资源实现了与之相当的性能。
英文摘要:
Large language models (LLMs) have demonstrated remarkable capabilities in tool learning. In real-world scenarios, user queries are often ambiguous and incomplete, requiring effective clarification. However, existing interactive clarification approaches face two critical limitations: reliance on manually constructed datasets, which inherently constrains training data scale and diversity, and lack of error correction mechanisms during multi-turn clarification, leading to error accumulation that compromises both accuracy and efficiency. We present AskToAct, which addresses these challenges by exploiting the structural mapping between queries and their tool invocation solutions. Our key insight is that tool parameters naturally represent explicit user intents. By systematically removing key parameters from queries while retaining them as ground truth, we enable automated construction of high-quality training data. We further enhance model robustness through error-correction pairs and selective masking, enabling dynamic error detection during clarification interactions. Comprehensive experiments demonstrate that AskToAct significantly outperforms existing approaches, achieving above 57% accuracy in recovering critical unspecified intents and enhancing clarification efficiency by an average of 10.46% while maintaining high accuracy in tool invocation. Our framework exhibits robust performance across different model architectures and successfully generalizes to entirely unseen APIs without additional training, achieving performance comparable to GPT-4o with substantially fewer computational resources.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。