FunReason-MT Technical Report: Advanced Data Synthesis Solution for Real-world Multi-Turn Tool-use

Zengzhuang Xu, Bingguang Hao, Zechuan Wang, Yuntao Wen, Xinyi Xu, Yang Liu, Long Chen, Dong Wang, Maolin Wang, Tong Zhao, Yicheng Chen, Cunyin Peng, Jinjie Gu, Leilei Gan, Xiangyu Zhao, Chenyi Zhuang, Shi Gu · DOI

Abstract

Function calling (FC) empowers large language models (LLMs) and autonomous agents to interface with external tools, a critical capability for solving complex, real-world problems. As this ability becomes increasingly central to advanced AI systems, the need for high-quality, multi-turn training data to develop and refine it cannot be overstated. Existing data synthesis methods, such as random environment sampling or multi-agent role-playing, are not powerful enough to generate high-quality data in real-world environments. Practical challenges come in three folds: targeted data synthesis, hard query construction, and multi-turn logical dependency. To address these structural deficiencies, we present FunReason-MT, a novel data synthesis framework for real-world multi-turn tool use. FunReason-MT resolves the complexity barrier in multi-turn FC data by employing 1) Environment-API Graph Interactions to gather varied high-quality trajectories with targeted tool, 2) Advanced Tool-Query Synthesis to simplify hard query construction, and 3) Guided Iterative Chain for sophisticated CoT generation. Evaluations on Berkeley Function-Calling Leaderboard (BFCLv3) demonstrate the power of our framework: a 4B model built upon FunReason-MT generated data achieves state-of-the-art performance among comparable-sized models. Further performance improvements on BFCLv4 confirm that FunReason-MT provides a reliable and robust source for agentic learning.

Introduction

For Large Language Models (LLMs) to act as autonomous agents, they must master Function Calling (FC)—the ability to interface with external tools and APIs. While single-turn tool use is becoming standard, multi-turn tool use, where the output of one tool dictates the input of the next, remains a major bottleneck in agentic development. Current "bottom-up" data synthesis approaches, like random environment sampling, often produce simplistic scenarios and struggle with targeted synthesis, hard query construction, and maintaining logical consistency across multiple turns.

The FunReason-MT Framework

To overcome these limitations, we propose FunReason-MT, a "top-down" framework that reverse-engineers complex tool-use trajectories. The framework operates in three distinct phases:

  1. Environment-API Graph Interactions: Instead of random sampling, the system utilizes an API Relation Graph to define tool dependencies. A "Directed Sampler" then generates execution traces that specifically target complex, deep-workflow tools.
  2. Advanced Tool-Query Synthesis: To ensure query difficulty, the system abstracts multi-step execution traces into a single "Advanced Tool." A Querying Agent then generates a prompt for this meta-tool without seeing the underlying sub-tools, forcing the model to perform implicit logical reasoning to decompose the task.
  3. Guided Iterative Chain: To eliminate reasoning errors in hard queries, a feedback loop involving a Reasoning Agent and a Critiquing Agent is employed. The system iteratively refines the Chain-of-Thought (CoT) trajectory until it matches the ground truth execution trace.

Experimental Setup and Results

We synthesized 17,000 multi-turn samples using the FunReason-MT pipeline, co-trained with single-turn data from APIGen. We evaluated our approach using the Berkeley Function-Calling Leaderboard (BFCL), specifically BFCLv3 for standard performance and BFCLv4 for out-of-distribution (OOD) agentic capabilities.

Training a 4B parameter base model (Qwen3-4B-Instruct-2507) on FunReason-MT data yielded significant performance gains. On BFCLv3 Multi-Turn, accuracy surged from 15.75% (base) to 57.75% after Reinforcement Learning (RL).

Performance of FunReason-MT-4B across BFCL Single-Turn, Multi-Turn, and Agentic Evaluation benchmarks.

As shown in the results, the 4B model achieves state-of-the-art performance for its size, outperforming much larger closed-source models like GPT-4o (42.50%) and Claude-Sonnet-4 (54.75%) in multi-turn tasks. Furthermore, the model demonstrated robust generalization on OOD tasks in BFCLv4, indicating that procedural tool-reasoning skills are highly transferable.

Conclusion

FunReason-MT demonstrates that top-down engineering of synthetic data is superior to bottom-up emergence for complex agentic tasks. By abstracting tool sequences and employing iterative feedback loops, we can train small models to rival the performance of industry-leading large models in sophisticated multi-turn function calling. This paradigm provides a scalable foundation for future environment-feedback-based agentic reinforcement learning.

Summary updated

BibTeX
@misc{xu2025funreason,
  author = {Zengzhuang Xu and Bingguang Hao and Zechuan Wang and Yuntao Wen and Xinyi Xu and Yang Liu and Long Chen and Dong Wang and Maolin Wang and Tong Zhao and Yicheng Chen and Cunyin Peng and Jinjie Gu and Leilei Gan and Xiangyu Zhao and Chenyi Zhuang and Shi Gu},
  title = {{FunReason-MT Technical Report: Advanced Data Synthesis Solution for Real-world Multi-Turn Tool-use}},
  year = {2025},
  eprint = {2510.24645},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2510.24645},
}
Figure