arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2305.13068cs.CLcs.AIcs.HCcs.IRcs.LG
收藏

利用执行反馈使语言模型成为更好的工具学习者

Making Language Models Better Tool Learners with Execution Feedback

College of Computer Science and Technology, Zhejiang University(浙江大学计算机科学与技术学院);ZJU-Ant Group Joint Research Center for Knowledge Graphs, Zhejiang University(浙江大学-蚂蚁集团知识图谱联合研究中心);ZJU-Hangzhou Global Scientific and Technological Innovation Center, Zhejiang University(浙江大学杭州国际科技创新中心);Alibaba Group(阿里巴巴集团)

Shuofei Qiao, Honghao Gui, Chengfei Lv, Qianghuai Jia, Huajun Chen, Ningyu Zhang

AI总结:

本文提出TRICE框架,通过工具执行反馈进行两阶段端到端训练,教会语言模型何时及如何使用工具,提升使用准确性并减少过度依赖。

摘要:

工具作为关键接口,使人类能够理解和重塑环境。随着基础模型的出现,人工智能系统可以利用工具来扩展其能力并与现实世界互动。现有的工具学习方法,包括监督微调和提示工程方法,常常诱导大型语言模型不加区分地使用工具,因为复杂任务往往超出其自身能力。然而,对于模型本身能够轻松解决的简单任务,引入工具可能会无意中传播错误,而非提升性能。这引出了研究问题:我们能否教会语言模型何时以及如何使用工具?为满足这一需求,我们提出了工具学习与执行反馈(TRICE),一个两阶段的端到端框架,使模型能够通过从工具执行中获得的反馈持续学习,从而学会何时以及如何有效使用工具。实验结果及进一步分析表明,TRICE能够通过提高工具使用的准确性,同时增强不足的工具学习并缓解对工具的过度依赖,使大型语言模型选择性地使用工具。代码可在 https://github.com/zjunlp/TRICE 获取。

英文摘要:

Tools serve as pivotal interfaces that enable humans to understand and reshape the environment. With the advent of foundation models, AI systems can utilize tools to expand their capabilities and interact with the real world. Existing tool learning methodologies, encompassing supervised fine-tuning and prompt engineering approaches, often induce large language models to utilize tools indiscriminately, as complex tasks often exceed their own competencies. However, introducing tools for simple tasks, which the models themselves can readily resolve, can inadvertently propagate errors rather than enhance performance. This leads to the research question: can we teach language models when and how to use tools? To meet this need, we propose Tool leaRning wIth exeCution fEedback (TRICE), a two-stage end-to-end framework that enables the model to continually learn through feedback derived from tool execution, thereby learning when and how to use tools effectively. Experimental results, backed by further analysis, show that TRICE can make the large language model selectively use tools by improving the accuracy of tool usage while enhancing insufficient tool learning and mitigating excessive reliance on tools. Code is available at https://github.com/zjunlp/TRICE.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑