Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Large language models (LLMs) have exhibited the ability to effectively utilize external tools to address user queries. However, their performance may be limited in complex, multi-turn interactions involving users and multiple tools. To address this, we propose Magnet, a principled framework for synthesizing high-quality training trajectories to enhance the function calling capability of large language model agents in multi-turn conversations with humans. The framework is based on automatic and iterative translations from a function signature path to a sequence of queries and executable function calls. We model the complicated function interactions in multi-turn cases with graph and design novel node operations to build reliable signature paths. Motivated by context distillation, when guiding the generation of positive and negative trajectories using a teacher model, we provide reference function call sequences as positive hints in context and contrastive, incorrect function calls as negative hints. Experiments show that training with the positive trajectories with supervised fine-tuning and preference optimization against negative trajectories, our 14B model, Magnet-14B-mDPO, obtains 68.01 on BFCL-v3 and 73.30 on ToolQuery, surpassing the performance of the teacher model Gemini-1.5-pro-002 by a large margin in function calling.
Key facts. Cited by 37 papers in the map (data through 14 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 28 of its 32 references that are in the map. First posted on arXiv 10 Mar 2025.
Builds on
28 of 32 references.
Closest ancestors · 10
Same direction, newest first
- 2024Facilitating Multi-turn Function Calling for LLMs via Compositional Instruction Tuning16 Oct
- 2024Hammer: Robust Function-Calling for On-Device Language Models via Function Masking6 Oct
- 2024NESTFUL: A Benchmark for Evaluating LLMs on Nested Sequences of API Calls4 Sep
- 2024ToolACE: Winning the Points of LLM Function Calling2 Sep
- 2024Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks27 Jun
- 2024APIGen: Automated Pipeline for Generating Verifiable and Diverse Function-Calling Datasets26 Jun
- 2024StableToolBench: Towards Stable Large-Scale Benchmarking on Tool Learning of Large Language Models12 Mar
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023Gorilla: Large Language Model Connected with Massive APIs24 May
- 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
Other references · 18
- 2014Adam: A Method for Stochastic Optimizationcited by 37,240
- 2023GPT-4 Technical Reportcited by 18,396
- 2024The Llama 3 Herd of Modelscited by 14,715
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2025DeepSeek-R1: Incentivizing Reasoning Capability in LLMs via Reinforcement Learningcited by 6,330
- 2024Qwen2.5 Technical Reportcited by 4,942
- 2024Gemini 1.5: Unlocking multimodal understanding across millions of tokens of contextcited by 3,224
- 2024τ-bench: A Benchmark for Tool-Agent-User Interaction in Real-World Domainscited by 1,402
- 2024Qwen2.5-Coder Technical Reportcited by 1,203
- 2024AgentBoard: An Analytical Evaluation Board of Multi-turn LLM Agentscited by 339
- 2024ToolSandbox: A Stateful, Conversational, Interactive Evaluation Benchmark for LLM Tool Use Capabilitiescited by 295
- 2023Self-Alignment with Instruction Backtranslationcited by 151
6 more
- 2022Learning by Distilling Contextcited by 138
- 2024xLAM: A Family of Large Action Models to Empower AI Agent Systemscited by 111
- 2023Agent Lumos: Unified and Modular Training for Open-Source Language Agentscited by 72
- 2024Building Math Agents with Multi-Turn Iterative Preference Learningcited by 66
- 2024Re-Invoke: Tool Invocation Rewriting for Zero-Shot Tool Retrievalcited by 52
- 2024Better Alignment with Instruction Back-and-Forth Translationcited by 16
Built on by
Citing papers per year: 2025: 14; 2026: 23.
37 papers.
Sort:
By area:
- 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2025Nemotron-Research-Tool-N1: Exploring Tool-Using Language Models with Reinforced Reasoningcited by 68
- 2025Towards General Agentic Intelligence via Environment Scalingcited by 54
- 2026Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agentscited by 30
- 2025Don't Just Fine-tune the Agent, Tune the Environmentcited by 19
- 2025LongFuncEval: Measuring the effectiveness of long context models for function callingcited by 18
- 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Callscited by 17
- 2026EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RLcited by 14
- 2026Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Textcited by 13
- 2025GTool: Graph Enhanced Tool Planning with Large Language Modelcited by 10
- 2025TURA: Tool-Augmented Unified Retrieval Agent for AI Searchcited by 6
25 more
- 2025Experience-Evolving Multi-Turn Tool-Use Agent with Hybrid Episodic-Procedural Memorycited by 6
- 2026AgentSkiller: Scaling Generalist Agent Intelligence through Semantically Integrated Cross-Domain Data Synthesiscited by 6
- 2025DRAGON: Domain-specific Robust Automatic Data Generation for RAG Optimizationcited by 5
- 2025PARL-MT: Learning to Call Functions in Multi-Turn Conversation with Progress Awarenesscited by 4
- 2025How Can Input Reformulation Improve Tool Usage Accuracy in a Complex Dynamic Environment? A Study on τ-benchcited by 3
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environmentscited by 3
- 2026UniToolCall: Unifying Tool-Use Representation, Data, and Evaluation for LLM Agentscited by 3
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agentscited by 3
- 2026MagicAgent: Towards Generalized Agent Planningcited by 2
- 2026RODS: Reward-Driven Online Data Synthesis for Multi-Turn Tool-Use Agentscited by 2
- 2025GOAT: A Training Framework for Goal-Oriented Agent with Toolscited by 1
- 2026Linguistic and Argument Diversity in Synthetic Data for Function-Calling Agentscited by 1
- 2026Beyond Accuracy: A Cognitive Load Framework for Mapping the Capability Boundaries of Tool-use Agentscited by 1
- 2026ToolWeave: Structured Synthesis of Complex Multi-Turn Tool-Calling Dialoguescited by 1
- 2026Scaling Agentic Capabilities via Grounded Interaction Synthesiscited by 1
- 2026Synthesize and Reward -- Reinforcement Learning for Multi-Step Tool Use in Live Environmentscited by 1
- 2026WeClawArena: An Auditable Sandbox and Benchmark for Cross-User Agents Collaboration and Security in Human-Centered Agent Networkscited by 1
- 2026Towards Better Agents for Multi-Turn User Interaction: The Next User Turn Is More Than Contextcited by 1
- 2026SAP: State-Guided Data Synthesis with Argument Provenance for Multi-Turn Tool Usecited by 1
- 2026D-CORE: Incentivizing Task Decomposition in Large Reasoning Models for Complex Tool Usecited by 0
- 2026PAUSE: A User-Centric Benchmark for Personal AI Assistants in Unified Service Environmentscited by 0
- 2026Data Turnstile: A Scalable Open Framework for Function-Calling Data Generationcited by 0
- 2026PROOF-Gen: From Optimized Data to Better Distillationcited by 0
- 2026Persistent Teacher Anchoring for Tool-Using Agentscited by 0
- 2026WEFT: Scaling Tool-Use Post-Training for General-Purpose Agentscited by 0
- 2026WEFT: Scaling Tool-Use Post-Training for General-Purpose Agents29 Sep 2026
- 2026SAP: State-Guided Data Synthesis with Argument Provenance for Multi-Turn Tool Use5 Sep 2026
- 2026Persistent Teacher Anchoring for Tool-Using Agents4 Sep 2026
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agents27 Aug 2026
- 2026PROOF-Gen: From Optimized Data to Better Distillation24 Aug 2026
- 2026Towards Better Agents for Multi-Turn User Interaction: The Next User Turn Is More Than Context18 Aug 2026
- 2026WeClawArena: An Auditable Sandbox and Benchmark for Cross-User Agents Collaboration and Security in Human-Centered Agent Networks4 Aug 2026
- 2026Data Turnstile: A Scalable Open Framework for Function-Calling Data Generation31 Jul 2026
- 2026PAUSE: A User-Centric Benchmark for Personal AI Assistants in Unified Service Environments29 Jul 2026
- 2026RODS: Reward-Driven Online Data Synthesis for Multi-Turn Tool-Use Agents17 Jun 2026
- 2026Synthesize and Reward -- Reinforcement Learning for Multi-Step Tool Use in Live Environments2 Jun 2026
- 2026Scaling Agentic Capabilities via Grounded Interaction Synthesis1 Jun 2026
25 more
- 2026EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL18 May 2026
- 2026UniToolCall: Unifying Tool-Use Representation, Data, and Evaluation for LLM Agents13 Apr 2026
- 2026ToolWeave: Structured Synthesis of Complex Multi-Turn Tool-Calling Dialogues3 Apr 2026
- 2026MagicAgent: Towards Generalized Agent Planning22 Feb 2026
- 2026Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agents13 Feb 2026
- 2026AgentSkiller: Scaling Generalist Agent Intelligence through Semantically Integrated Cross-Domain Data Synthesis10 Feb 2026
- 2026D-CORE: Incentivizing Task Decomposition in Large Reasoning Models for Complex Tool Use2 Feb 2026
- 2026Beyond Accuracy: A Cognitive Load Framework for Mapping the Capability Boundaries of Tool-use Agents28 Jan 2026
- 2026Linguistic and Argument Diversity in Synthetic Data for Function-Calling Agents25 Jan 2026
- 2026Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Text15 Jan 2026
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environments6 Jan 2026
- 2025Experience-Evolving Multi-Turn Tool-Use Agent with Hybrid Episodic-Procedural Memory8 Dec 2025
- 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls12 Nov 2025
- 2025GOAT: A Training Framework for Goal-Oriented Agent with Tools14 Oct 2025
- 2025Don't Just Fine-tune the Agent, Tune the Environment11 Oct 2025
- 2025PARL-MT: Learning to Call Functions in Multi-Turn Conversation with Progress Awareness27 Sep 2025
- 2025Towards General Agentic Intelligence via Environment Scaling16 Sep 2025
- 2025How Can Input Reformulation Improve Tool Usage Accuracy in a Complex Dynamic Environment? A Study on τ-bench28 Aug 2025
- 2025GTool: Graph Enhanced Tool Planning with Large Language Model18 Aug 2025
- 2025TURA: Tool-Augmented Unified Retrieval Agent for AI Search6 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
- 2025DRAGON: Domain-specific Robust Automatic Data Generation for RAG Optimization16 May 2025
- 2025LongFuncEval: Measuring the effectiveness of long context models for function calling30 Apr 2025
- 2025Nemotron-Research-Tool-N1: Exploring Tool-Using Language Models with Reinforced Reasoning25 Apr 2025
- 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplay4 Apr 2025
- 2025APIGen-MT: Agentic Pipeline for Multi-Turn Data Generation via Simulated Agent-Human Interplaycited by 167
- 2025Towards General Agentic Intelligence via Environment Scalingcited by 54
- 2026Unsafer in Many Turns: Benchmarking and Defending Multi-Turn Safety Risks in Tool-Using Agentscited by 30
- 2025Don't Just Fine-tune the Agent, Tune the Environmentcited by 19
- 2025LongFuncEval: Measuring the effectiveness of long context models for function callingcited by 18
- 2026EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RLcited by 14
- 2026AgentSkiller: Scaling Generalist Agent Intelligence through Semantically Integrated Cross-Domain Data Synthesiscited by 6
- 2025PARL-MT: Learning to Call Functions in Multi-Turn Conversation with Progress Awarenesscited by 4
- 2025How Can Input Reformulation Improve Tool Usage Accuracy in a Complex Dynamic Environment? A Study on τ-benchcited by 3
- 2026Simulating Complex Multi-Turn Tool Calling Interactions in Stateless Execution Environmentscited by 3
- 2026UniToolCall: Unifying Tool-Use Representation, Data, and Evaluation for LLM Agentscited by 3
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agentscited by 3
12 most cited of 23 All 23 (JSON)
- 2026WEFT: Scaling Tool-Use Post-Training for General-Purpose Agents29 Sep 2026
- 2026SAP: State-Guided Data Synthesis with Argument Provenance for Multi-Turn Tool Use5 Sep 2026
- 2026Persistent Teacher Anchoring for Tool-Using Agents4 Sep 2026
- 2026What Makes Good Agentic Data? An ACE Lens on Data Generation for LLM Agents27 Aug 2026
- 2026PROOF-Gen: From Optimized Data to Better Distillation24 Aug 2026
- 2026Data Turnstile: A Scalable Open Framework for Function-Calling Data Generation31 Jul 2026
- 2026Synthesize and Reward -- Reinforcement Learning for Multi-Step Tool Use in Live Environments2 Jun 2026
- 2026Scaling Agentic Capabilities via Grounded Interaction Synthesis1 Jun 2026
- 2026EnvFactory: Scaling Tool-Use Agents via Executable Environments Synthesis and Robust RL18 May 2026
- 2026UniToolCall: Unifying Tool-Use Representation, Data, and Evaluation for LLM Agents13 Apr 2026
- 2026ToolWeave: Structured Synthesis of Complex Multi-Turn Tool-Calling Dialogues3 Apr 2026
- 2026MagicAgent: Towards Generalized Agent Planning22 Feb 2026
12 newest of 23 All 23 (JSON)
- 2025A Survey of Context Engineering for Large Language Modelscited by 126
- 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Callscited by 17
- 2026Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Textcited by 13
- 2025GTool: Graph Enhanced Tool Planning with Large Language Modelcited by 10
- 2025Experience-Evolving Multi-Turn Tool-Use Agent with Hybrid Episodic-Procedural Memorycited by 6
- 2026WeClawArena: An Auditable Sandbox and Benchmark for Cross-User Agents Collaboration and Security in Human-Centered Agent Networkscited by 1
- 2026Towards Better Agents for Multi-Turn User Interaction: The Next User Turn Is More Than Contextcited by 1
- 2026PAUSE: A User-Centric Benchmark for Personal AI Assistants in Unified Service Environmentscited by 0
- 2026Towards Better Agents for Multi-Turn User Interaction: The Next User Turn Is More Than Context18 Aug 2026
- 2026WeClawArena: An Auditable Sandbox and Benchmark for Cross-User Agents Collaboration and Security in Human-Centered Agent Networks4 Aug 2026
- 2026PAUSE: A User-Centric Benchmark for Personal AI Assistants in Unified Service Environments29 Jul 2026
- 2026Unlocking Implicit Experience: Synthesizing Tool-Use Trajectories from Text15 Jan 2026
- 2025Experience-Evolving Multi-Turn Tool-Use Agent with Hybrid Episodic-Procedural Memory8 Dec 2025
- 2025LoopTool: Closing the Data-Training Loop for Robust LLM Tool Calls12 Nov 2025
- 2025GTool: Graph Enhanced Tool Planning with Large Language Model18 Aug 2025
- 2025A Survey of Context Engineering for Large Language Models17 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2025FunReason-MT Technical Report: Advanced Data Synthesis Solution for Real-world Multi-Turn Tool-use
- 2025DICE-BENCH: Evaluating the Tool-Use Capabilities of Large Language Models in Multi-Round, Multi-Party Dialogues
- 2024Learning From Failure: Integrating Negative Examples when Fine-tuning Large Language Models as Agents
- 2025A Survey on Multi-Turn Interaction Capabilities of Large Language Models
- 2024ToolFlow: Boosting LLM Tool-Calling Through Natural and Coherent Dialogue Synthesis
- 2025ToolMind Technical Report: A Large-Scale, Reasoning-Enhanced Tool-Use Dataset
- 2024Enhancing Function-Calling Capabilities in LLMs: Strategies for Prompt Formats, Data Integration, and Multilingual Translation
- 2025T1: A Tool-Oriented Conversational Dataset for Multi-Turn Agentic Planning