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

推进与基准测试面向大语言模型的个性化工具调用

Advancing and Benchmarking Personalized Tool Invocation for LLMs

University of Science and Technology of China(中国科学技术大学);Shanghai Jiao Tong University(上海交通大学);Huawei Noah’s Ark Lab(华为诺亚实验室)

Xu Huang, Yuefeng Huang, Weiwen Liu, Xingshan Zeng, Yasheng Wang, Ruiming Tang, Hong Xie, Defu Lian

AI总结:

本文提出个性化工具调用概念,定义工具偏好和依赖用户画像的查询两项任务,设计PTool数据合成框架并构建首个基准PTBench,通过微调开源模型验证了框架有效性。

摘要:

工具调用是扩展大语言模型(LLMs)能力的关键机制,近年来受到了广泛关注。它使LLMs能够通过工具调用来解决复杂问题,同时获取最新的世界知识。然而,现有工作主要关注LLMs调用工具进行问题求解的基础能力,而未考虑工具调用中的个性化约束。在本工作中,我们引入个性化工具调用的概念,并定义两项关键任务:工具偏好和依赖用户画像的查询。工具偏好处理用户在功能相似的工具之间进行选择时的偏好问题,而依赖用户画像的查询则考虑用户查询缺少某些工具参数、需要模型从用户画像中推断这些参数的情况。为应对这些挑战,我们提出PTool,一个专为个性化工具调用设计的数据合成框架。此外,我们构建了PTBench,这是首个用于评估个性化工具调用的基准。随后,我们对多个开源模型进行微调,证明了所提框架的有效性,并提供了有价值的见解。我们的基准已在 https://github.com/hyfshadow/PTBench 公开。

英文摘要:

Tool invocation is a crucial mechanism for extending the capabilities of Large Language Models (LLMs) and has recently garnered significant attention. It enables LLMs to solve complex problems through tool calls while accessing up-to-date world knowledge. However, existing work primarily focuses on the fundamental ability of LLMs to invoke tools for problem-solving, without considering personalized constraints in tool invocation. In this work, we introduce the concept of Personalized Tool Invocation and define two key tasks: Tool Preference and Profile-dependent Query. Tool Preference addresses user preferences when selecting among functionally similar tools, while Profile-dependent Query considers cases where a user query lacks certain tool parameters, requiring the model to infer them from the user profile. To tackle these challenges, we propose PTool, a data synthesis framework designed for personalized tool invocation. Additionally, we construct \textbf{PTBench}, the first benchmark for evaluating personalized tool invocation. We then fine-tune various open-source models, demonstrating the effectiveness of our framework and providing valuable insights. Our benchmark is public at https://github.com/hyfshadow/PTBench.

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

↑