arXiv:2511.14650cs.AI2025-11AAAI被引 8

通过分析工具调用的规律性,减少大模型代理的推理开销。

AutoTool: Efficient Tool Selection for Large Language Model Agents

  • 构建工具调用图谱,利用历史轨迹预测下一步该用哪个工具。
  • 实验显示推理成本降低30%,任务完成率仍保持竞争力。
  • 适合追求高效部署的大模型代理系统开发者使用。

大型语言模型(LLM)代理通过利用模型的推理与决策能力,成为自动化复杂任务的强大工具。然而,当前代理框架的主要瓶颈在于工具选择的高推理成本,尤其在ReAct等方法中需反复调用LLM以决定每一步的工具使用。本文提出AutoTool,一种基于图结构的新框架,通过利用一个关键经验观察——工具使用惯性,即工具调用存在可预测的序列模式,避免重复调用LLM。AutoTool从历史代理轨迹中构建有向图,节点代表工具,边表示转移概率,有效建模工具选择的惯性,并融合参数级信息优化输入生成。通过遍历该结构化表示,AutoTool能高效选择工具及其参数,极大减少对LLM推理的依赖。在多种代理任务上的大量实验表明,AutoTool将推理成本最高降低30%,同时保持具有竞争力的任务完成率,为高推理开销框架提供了实用且可扩展的优化方案。本工作展示了将统计结构融入LLM代理设计以提升效率的潜力,且不牺牲性能。

原文摘要 · Abstract (English)

Large Language Model (LLM) agents have emerged as powerful tools for automating complex tasks by leveraging the reasoning and decision-making abilities of LLMs. However, a major bottleneck in current agent frameworks lies in the high inference cost of tool selection, especially in approaches like ReAct that repeatedly invoke the LLM to determine which tool to use at each step. In this work, we propose AutoTool, a novel graph-based framework that bypasses repeated LLM inference by exploiting a key empirical observation: tool usage inertia - the tendency of tool invocations to follow predictable sequential patterns. AutoTool constructs a directed graph from historical agent trajectories, where nodes represent tools and edges capture transition probabilities, effectively modeling the inertia in tool selection. It further integrates parameter-level information to refine tool input generation. By traversing this structured representation, AutoTool efficiently selects tools and their parameters with minimal reliance on LLM inference. Extensive experiments across diverse agent tasks demonstrate that AutoTool reduces inference costs by up to 30% while maintaining competitive task completion rates, offering a practical and scalable enhancement for inference-heavy frameworks. Our work highlights the promise of integrating statistical structure into LLM agent design for greater efficiency without sacrificing performance.

大模型代理工具选择推理优化图神经网络

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。