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

AgentFlux:面向端侧智能体系统的解耦微调与推理

AgentFlux: Decoupled Fine-Tuning & Inference for On-Device Agentic Systems

University of Washington(华盛顿大学);Peking University(北京大学);University of Waterloo(滑铁卢大学);Interop Labs(Interop实验室)

Rohan Kadekodi, Zhan Jin, Keisuke Kamahori, Yile Gu, Sean Khatiri, Noah H. Bayindirli, Sergey Gorbunov, Baris Kasikci

AI总结:

针对端侧智能体系统中本地LLM工具调用性能不足的问题,提出将工具调用分解为工具选择与参数生成的解耦微调方法及AgentFlux推理框架,在MCP-Bench上提升工具调用准确率46%,优于同类及更大规模模型。

摘要:

将大型语言模型(LLMs)部署为智能体协调器彻底变革了任务自动化,但隐私保护、成本效益解决方案的需求要求端侧推理能力。然而,在工具调用场景中,本地LLM的性能始终落后于前沿模型,既难以从大型工具集中选择工具,也难以针对复杂参数结构生成准确的参数。我们引入一种方法,将工具调用任务分解为两个不同的子任务:工具选择和参数生成。我们提出“解耦微调”,一种新颖的后训练方法,该方法采用LoRA微调为工具选择和特定工具的参数生成创建专用的LoRA适配器,对每个子任务使用单独的损失掩码。此外,我们提出AgentFlux,一种推理框架,利用通过解耦微调创建的LoRA适配器,借助端侧设备上的本地模型执行高效的智能体协调。AgentFlux将工具调用生成步骤分解为工具选择和参数生成,并动态加载相应的LoRA适配器以生成工具调用。此外,AgentFlux实现分层协调以限制工具选择所需的工具数量。我们在MCP-Bench基准上的实验表明,使用解耦微调训练的Qwen-2.5-7B模型将基础模型的工具调用准确率提高了46%,在所有情况下优于其他类似规模的本地推理、非推理和微调模型,在大多数情况下优于2倍规模的模型。

英文摘要:

The deployment of Large Language Models (LLMs) as agentic orchestrators has revolutionized task automation, but the need for privacy-preserving, cost-effective solutions demands on-device inference capabilities. However, local LLMs consistently underperform compared to frontier models in tool calling scenarios, struggling with both tool selection from large tool sets and accurate argument generation for complex parameter structures. We introduce a methodology that disaggregates a tool-calling task into two distinct subtasks: tool selection and argument generation. We propose "decoupled fine-tuning", a novel post-training approach that employs LoRA fine-tuning to create dedicated LoRA adapters for tool selection and tool-specific argument generation using separate loss masking for each of the subtasks. Furthermore, we present AgentFlux, an inference framework that leverages the LoRA adapters created using decoupled fine-tuning to perform efficient agent orchestration with the help of local models on end-user devices. AgentFlux decomposes the tool-call generation step into tool selection and argument generation, and dynamically loads the corresponding LoRA adapters to generate tool calls. Additionally, AgentFlux implements hierarchical orchestration to restrict the number of tools required for tool selection. Our experiments on the MCP-Bench benchmark demonstrate that the Qwen-2.5-7B model trained using decoupled fine-tuning improves the tool calling accuracy of the base model by 46%, and outperforms other local reasoning, non-reasoning and fine-tuned models of similar size in all cases, and models that are 2x larger, in most cases.

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

↑