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

ToolBridge:一个为 LLMs 装备外部工具能力的开源数据集

ToolBridge: An Open-Source Dataset to Equip LLMs with External Tool Capabilities

The University of Hong Kong(香港大学);Microsoft(微软公司)

Zhenchao Jin, Mengchen Liu, Dongdong Chen, Lingting Zhu, Yunsheng Li, Lequan Yu

AI总结:

本文提出开源数据集 ToolBridge,通过从开放数据池中识别并插入外部工具 API 的数据进行监督微调,显著提升了 LLMs 在数据处理、数值计算和事实检索等任务上的预测准确性。

摘要:

通过集成外部工具,诸如 GPT-4o 和 Llama 3.1 这样的大型语言模型(LLMs)显著扩展了其功能,从基础的对话智能体演变为通用助手。我们认为,这些进步的主要驱动力是训练数据的质量和多样性。然而,现有的集成了外部工具的 LLMs 在其数据集和数据收集方法方面仅提供有限的透明度,这促使了本研究的开展。具体而言,在本文中,我们的目标是阐明构建数据集的详细过程,这些数据集使 LLMs 能够有效地学习如何利用外部工具,并通过引入 ToolBridge 将此信息公开给公众。ToolBridge 提议采用一组通用的开放访问数据集作为其原始数据池,并应用一系列策略从该池中识别适合插入外部工具 API 的数据条目。通过对这些精选数据条目进行监督微调,LLMs 可以在适当的上下文中调用外部工具以提高其预测准确性,特别是对于包括数据处理、数值计算和事实检索在内的基本功能。我们的实验严格隔离了模型架构和训练配置,仅关注数据的作用。实验结果表明,在 ToolBridge 上训练的 LLMs 在标准基准和自定义评估数据集上均表现出一致的性能提升。所有相关代码和数据将在 https://github.com/CharlesPikachu/ToolBridge 开源,以促进透明度并协助更广泛的社区探索为 LLMs 装备外部工具能力的方法。

英文摘要:

Through the integration of external tools, large language models (LLMs) such as GPT-4o and Llama 3.1 significantly expand their functional capabilities, evolving from elementary conversational agents to general-purpose assistants. We argue that the primary drivers of these advancements are the quality and diversity of the training data. However, the existing LLMs with external tool integration provide only limited transparency regarding their datasets and data collection methods, which has led to the initiation of this research. Specifically, in this paper, our objective is to elucidate the detailed process involved in constructing datasets that empower LLMs to effectively learn how to utilize external tools and make this information available to the public through the introduction of ToolBridge. ToolBridge proposes to employ a collection of general open-access datasets as its raw dataset pool and applies a series of strategies to identify appropriate data entries from the pool for external tool API insertions. By supervised fine-tuning on these curated data entries, LLMs can invoke external tools in appropriate contexts to boost their predictive accuracy, particularly for basic functions including data processing, numerical computation, and factual retrieval. Our experiments rigorously isolates model architectures and training configurations, focusing exclusively on the role of data. The experimental results indicate that LLMs trained on ToolBridge demonstrate consistent performance improvements on both standard benchmarks and custom evaluation datasets. All the associated code and data will be open-source at https://github.com/CharlesPikachu/ToolBridge, promoting transparency and facilitating the broader community to explore approaches for equipping LLMs with external tools capabilities.

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

↑