# Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation

Source: [Magnet: Multi-turn Tool-use Data Synthesis and Distillation via Graph Translation](<https://www.sota2.com/research/paper/68fa775a1e209131cea729d1>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-02T09:01:47.733Z

Authors: Fan Yin, Zifeng Wang, I-Hung Hsu, Jun Yan, Ke Jiang, Yanfei Chen, Jindong Gu, Long T. Le, Kai-Wei Chang, Chen-Yu Lee, Hamid Palangi, Tomas Pfister

Published: 2025-03-10T20:13:07.000Z

## Abstract

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.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Tool-use on ToolQuery](<https://www.sota2.com/research/sota/tool-use-on-toolquery.md>): Tool Use; ToolQuery; Success Rate: 73.3.

- [Tool-augmented reasoning on BFCL Multi-Turn v3](<https://www.sota2.com/research/sota/tool-augmented-reasoning-on-bfcl-multi-turn-v3.md>): Tool-augmented Reasoning; BFCL Multi-Turn v3; Overall Score: 26.5.

- [Function Calling on BFCL V3](<https://www.sota2.com/research/sota/function-calling-on-bfcl-v3.md>): Function Calling; BFCL V3; Overall Accuracy: 68.01.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2503.07826>)

[PDF](<https://arxiv.org/pdf/2503.07826.pdf>)
