arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2503.00564cs.CL
收藏

ToolDial:面向工具增强语言模型的多轮对话生成方法

ToolDial: Multi-turn Dialogue Generation Method for Tool-Augmented Language Models

Graduate School of Data Science, Seoul National University(首尔国立大学数据科学研究生院);Korea University(高丽大学)

Jeonghoon Shim, Gyuhyeon Seo, Cheongsu Lim, Yohan Jo

AI总结:

本文提出ToolDial数据集,包含11,111个多轮对话,通过模拟真实场景中的API调用和用户交互,评估语言模型在预测动作和提取参数方面的能力,发现现有模型准确率低于70%。

摘要:

工具增强语言模型(TALMs)利用外部API来回答跨多个领域的用户查询。然而,现有的TALM研究基准数据集通常包含过于简单的对话,无法反映真实场景,例如在缺失关键信息时,模型需要提出澄清问题或主动调用额外API。为解决这些局限,我们构建并发布了ToolDial数据集,该数据集基于RapidAPI的API构建,包含11,111个多轮对话,平均每个对话有8.95轮。ToolDial有两个关键特征。首先,对话包含16种用户和系统动作(例如“请求”、“澄清”、“失败通知”),以捕捉真实交互的丰富动态。其次,我们模拟了系统基于API文档向用户请求必要信息,并在用户未能提供所需信息时寻找额外API的对话。为促进这一过程,我们提出了一种生成API图的方法,用于表示API之间的输入和输出兼容性。使用ToolDial,我们评估了一系列语言模型在从对话历史中预测正确动作和提取API调用输入参数值方面的能力。现代语言模型的准确率低于70%,表明仍有很大改进空间。我们在https://github.com/holi-lab/ToolDial发布了数据集和代码。

英文摘要:

Tool-Augmented Language Models (TALMs) leverage external APIs to answer user queries across various domains. However, existing benchmark datasets for TALM research often feature simplistic dialogues that do not reflect real-world scenarios, such as the need for models to ask clarifying questions or proactively call additional APIs when essential information is missing. To address these limitations, we construct and release ToolDial, a dataset comprising 11,111 multi-turn dialogues, with an average of 8.95 turns per dialogue, based on APIs from RapidAPI. ToolDial has two key characteristics. First, the dialogues incorporate 16 user and system actions (e.g., "Request", "Clarify", "Fail inform") to capture the rich dynamics of real-world interactions. Second, we simulate dialogues where the system requests necessary information from the user based on API documentation and seeks additional APIs if the user fails to provide the required information. To facilitate this process, we introduce a method for generating an API graph that represents input and output compatibility between APIs. Using ToolDial, we evaluate a suite of language models on their ability to predict correct actions and extract input parameter values for API calls from the dialogue history. Modern language models achieve accuracy scores below 70%, indicating substantial room for improvement. We release our dataset and code at https://github.com/holi-lab/ToolDial.

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

↑