arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.16779cs.CLcs.AI
收藏

Chain-of-Tools:在冻结语言模型的思维链(CoT)推理中利用大量未见过的工具

Chain-of-Tools: Utilizing Massive Unseen Tools in the CoT Reasoning of Frozen Language Models

Soochow University(苏州大学)

Mengsong Wu, Tong Zhu, Han Han, Xiang Zhang, Wenbiao Shao, Wenliang Chen

AI总结:

针对现有大语言模型工具学习需微调或提示效率低的问题,提出Chain-of-Tools方法,利用冻结LLM的语义能力在含未见过工具的大工具池中完成CoT工具调用,在多基准上优于基线并提升了可解释性。

摘要:

工具学习能够进一步拓展大语言模型(LLM)的应用场景。然而现有方法大多要么需要微调,导致模型只能使用训练数据中见过的工具;要么将工具演示加入提示词,效率较低。本文提出一种新的工具学习方法Chain-of-Tools,它充分利用冻结LLM强大的语义表征能力,在包含大量未见过工具的灵活工具池中完成思维链(CoT)推理过程中的工具调用。特别地,为验证该方法在大量未见过工具场景下的有效性,我们构建了新数据集SimpleToolQuestions。我们在两个数值推理基准(GSM8K-XL和FuncQA)以及两个知识问答基准(KAMEL和SimpleToolQuestions)上开展实验。实验结果表明,该方法性能优于基线模型。我们还识别出模型输出中对工具选择至关重要的维度,提升了模型可解释性。我们的代码和数据可在以下链接获取:https://github.com/fairyshine/Chain-of-Tools 。

英文摘要:

Tool learning can further broaden the usage scenarios of large language models (LLMs). However most of the existing methods either need to finetune that the model can only use tools seen in the training data, or add tool demonstrations into the prompt with lower efficiency. In this paper, we present a new Tool Learning method Chain-of-Tools. It makes full use of the powerful semantic representation capability of frozen LLMs to finish tool calling in CoT reasoning with a huge and flexible tool pool which may contain unseen tools. Especially, to validate the effectiveness of our approach in the massive unseen tool scenario, we construct a new dataset SimpleToolQuestions. We conduct experiments on two numerical reasoning benchmarks (GSM8K-XL and FuncQA) and two knowledge-based question answering benchmarks (KAMEL and SimpleToolQuestions). Experimental results show that our approach performs better than the baseline. We also identify dimensions of the model output that are critical in tool selection, enhancing the model interpretability. Our code and data are available at: https://github.com/fairyshine/Chain-of-Tools .

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

↑