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

面向大语言模型高效工具调用的对齐方法

Alignment for Efficient Tool Calling of Large Language Models

Shanghai Jiao Tong University(上海交通大学);AISpeech Co., Ltd.(思必驰科技有限公司)

Hongshen Xu, Zihan Wang, Zichen Zhu, Lei Pan, Xingyu Chen, Lu Chen, Kai Yu

AI总结:

本文提出一种多目标对齐框架,通过概率性知识边界估计与动态决策减少大语言模型不必要的工具调用,从而在保持性能的同时提升工具使用效率。

摘要:

工具学习的最新进展使大语言模型(LLMs)能够集成外部工具,通过扩展其知识边界来提升任务性能。然而,依赖工具往往会在性能、速度和成本之间引入权衡,LLMs有时会表现出对工具使用的过度依赖和过度自信。本文致力于解决将LLMs与其知识边界对齐的挑战,以便在工具调用方面做出更智能的决策。我们提出了一个多目标对齐框架,该框架将概率性知识边界估计与动态决策相结合,使LLMs能够根据其置信度更好地评估何时调用工具。我们的框架包括两种知识边界估计方法,即基于一致性的估计和绝对估计,以及两种将这些估计集成到模型决策过程中的训练策略。在多种工具调用场景上的实验结果表明了我们框架的有效性,通过减少不必要的工具使用,显著提升了工具使用效率。

英文摘要:

Recent advancements in tool learning have enabled large language models (LLMs) to integrate external tools, enhancing their task performance by expanding their knowledge boundaries. However, relying on tools often introduces tradeoffs between performance, speed, and cost, with LLMs sometimes exhibiting overreliance and overconfidence in tool usage. This paper addresses the challenge of aligning LLMs with their knowledge boundaries to make more intelligent decisions about tool invocation. We propose a multi objective alignment framework that combines probabilistic knowledge boundary estimation with dynamic decision making, allowing LLMs to better assess when to invoke tools based on their confidence. Our framework includes two methods for knowledge boundary estimation, consistency based and absolute estimation, and two training strategies for integrating these estimates into the model decision making process. Experimental results on various tool invocation scenarios demonstrate the effectiveness of our framework, showing significant improvements in tool efficiency by reducing unnecessary tool usage.

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

↑