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

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kadekodi, Rohan, Jin, Zhan, Kamahori, Keisuke, Gu, Yile, Khatiri, Sean, Bayindirli, Noah H., Gorbunov, Sergey, Kasikci, Baris
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915612580642816
author Kadekodi, Rohan
Jin, Zhan
Kamahori, Keisuke
Gu, Yile
Khatiri, Sean
Bayindirli, Noah H.
Gorbunov, Sergey
Kasikci, Baris
author_facet Kadekodi, Rohan
Jin, Zhan
Kamahori, Keisuke
Gu, Yile
Khatiri, Sean
Bayindirli, Noah H.
Gorbunov, Sergey
Kasikci, Baris
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2510_00229
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle AgentFlux: Decoupled Fine-Tuning & Inference for On-Device Agentic Systems
Kadekodi, Rohan
Jin, Zhan
Kamahori, Keisuke
Gu, Yile
Khatiri, Sean
Bayindirli, Noah H.
Gorbunov, Sergey
Kasikci, Baris
Artificial Intelligence
Machine Learning
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.
title AgentFlux: Decoupled Fine-Tuning & Inference for On-Device Agentic Systems
topic Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2510.00229