arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.18157cs.AIcs.CLcs.CV
收藏

从总结到行动:利用开放世界 API 增强大型语言模型以处理复杂任务

From Summary to Action: Enhancing Large Language Models for Complex Tasks with Open World APIs

National Key Laboratory of Human-Machine Hybrid Augmented Intelligence(人机混合增强智能全国重点实验室);School of Data Science, Fudan University(复旦大学数据科学学院)

Yulong Liu, Yunlong Yuan, Chunwei Wang, Jianhua Han, Yongqiang Ma, Li Zhang, Nanning Zheng, Hang Xu

AI总结:

本文提出模拟人类解题过程的 Sum2Act 工具调用流水线,通过逐步总结结果并决定后续行动来控制开放世界 API,在 ToolBench 上显著优于 ReAct 和 DFSDT。

摘要:

人类与动物的区别在于人类拥有使用和创造工具的独特能力。工具使人类能够克服生理局限,促进了辉煌文明的创造。同样,让大型语言模型(LLM)等基础模型具备学习使用外部工具的能力,可能是迈向实现人工通用智能的关键一步。此前该领域的研究主要采用两种不同方法来增强 LLM 的工具调用能力。第一种方法强调构建相关数据集以进行模型微调;相比之下,第二种方法旨在通过上下文学习策略充分利用 LLM 的内在推理能力。在本研究中,我们提出了一种新颖的工具调用流水线,用于控制海量真实世界 API。该流水线模拟人类解决任务的过程,以处理复杂的真实用户查询。在每一步中,我们引导 LLM 总结已取得的结果,并决定下一步行动。我们将该流水线命名为“from Summary to action”,简称 Sum2Act。在 ToolBench 基准上对 Sum2Act 流水线进行的实证评估显示,其性能显著提升,优于 ReAct 和 DFSDT 等成熟方法。这凸显了 Sum2Act 在增强 LLM 处理复杂真实世界任务方面的有效性。

英文摘要:

The distinction between humans and animals lies in the unique ability of humans to use and create tools. Tools empower humans to overcome physiological limitations, fostering the creation of magnificent civilizations. Similarly, enabling foundational models like Large Language Models (LLMs) with the capacity to learn external tool usage may serve as a pivotal step toward realizing artificial general intelligence. Previous studies in this field have predominantly pursued two distinct approaches to augment the tool invocation capabilities of LLMs. The first approach emphasizes the construction of relevant datasets for model fine-tuning. The second approach, in contrast, aims to fully exploit the inherent reasoning abilities of LLMs through in-context learning strategies. In this work, we introduce a novel tool invocation pipeline designed to control massive real-world APIs. This pipeline mirrors the human task-solving process, addressing complicated real-life user queries. At each step, we guide LLMs to summarize the achieved results and determine the next course of action. We term this pipeline `from Summary to action', Sum2Act for short. Empirical evaluations of our Sum2Act pipeline on the ToolBench benchmark show significant performance improvements, outperforming established methods like ReAct and DFSDT. This highlights Sum2Act's effectiveness in enhancing LLMs for complex real-world tasks.

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

↑