TLDR: FunReason-MT is a novel data synthesis framework designed to create high-quality, multi-turn training data for large language models (LLMs) to improve their function calling capabilities. It addresses limitations of existing data generation methods by employing Environment-API Graph Interactions, Advanced Tool-Query Synthesis, and a Guided Iterative Chain. Models trained with FunReason-MT data achieved state-of-the-art performance on function calling benchmarks and demonstrated enhanced agentic capabilities, paving the way for more robust and stable AI systems capable of complex reasoning and environment exploration.
Large Language Models (LLMs) are becoming increasingly powerful, especially when they can interact with external tools through a capability known as function calling. This allows AI systems to solve complex, real-world problems by leveraging specialized functions. However, developing and refining this ability, particularly for multi-turn interactions where an AI needs to use tools over several steps, has been a significant challenge due to the lack of high-quality training data.
Existing methods for generating this training data often fall short. Techniques like random environment sampling or multi-agent role-playing tend to produce data that is either too simplistic, missing complex scenarios, or lacks true diversity. This leads to a ‘complexity barrier’ that limits how well LLMs can learn to use tools effectively in real-world, multi-step situations.
The Core Challenges
The researchers behind FunReason-MT identified three key issues hindering the creation of effective multi-turn function calling data:
-
Targeted Model Training: Current sampling methods struggle to create specific training scenarios where a complex tool needs to be used collaboratively with others across diverse, multi-turn conversations.
-
Isolation of Tool Architecture: Because tools are often treated as separate modules rather than integrated holistically, it’s difficult to generate challenging queries that require logical jumps between different tools.
-
Multi-Turn Logical Dependency: In complex dialogues, each step of an AI’s thought process (Chain-of-Thought or CoT) builds on previous logic. Existing reasoning models often fail to generate accurate CoT in new environments, leading to incomplete or incorrect multi-turn interactions.
Introducing FunReason-MT: A Novel Solution
To overcome these structural limitations, a new data synthesis framework called FunReason-MT has been introduced. This framework focuses on robustness and efficiency, incorporating three core components:
-
Environment-API Graph Interactions: This component creates a map of how different tools and environments depend on each other. By using this map, the system can collect varied multi-turn interactions that focus on a specific complex tool, helping models master its use in collaboration with others.
-
Advanced Tool-Query Synthesis: FunReason-MT takes a successful sequence of tool executions and reverses the process to create a single, advanced tool abstraction. It then generates a challenging ‘hard query’ that explicitly requires the use of this advanced tool, simplifying the construction of complex queries.
-
Guided Iterative Chain: To ensure the AI’s reasoning is sound, this component uses a feedback-driven process. If an AI’s initial attempt to solve a hard query fails, a ‘Critiquing Agent’ analyzes the error and provides targeted feedback. This feedback is then used to refine the AI’s reasoning in an iterative loop until a correct solution is found or a maximum number of attempts is reached.
Also Read:
- Orchestrating LLM Tools: A New Approach to Multi-Turn Interactions with Plan DAGs
- PIPS: Enhancing LLM Reasoning Through Dynamic Program Synthesis
Impressive Results and Future Implications
The FunReason-MT framework was rigorously tested on the Berkeley Function-Calling Leaderboard (BFCLv3), which includes both single-turn and multi-turn tasks. The results were remarkable: a 4-billion-parameter model trained with FunReason-MT generated data achieved state-of-the-art performance among models of comparable size, even outperforming many larger, closed-source models. This demonstrates that FunReason-MT effectively breaks through the complexity barrier in multi-turn function calling data generation.
Furthermore, the models were evaluated on BFCLv4, an out-of-distribution benchmark designed to assess agentic capabilities like web search and memory. Even though the training data was not specifically related to these tasks, the FunReason-MT models showed significant improvements, particularly after reinforcement learning. This indicates that the data generated by FunReason-MT enhances a model’s overall agentic abilities.
In conclusion, FunReason-MT represents a significant step forward in training LLMs for complex tool use. By providing a robust and reliable source of high-quality, multi-turn function calling data, this research lays a strong foundation for the future progression of agentic learning and more capable AI systems. You can read the full technical report for more details here: FunReason-MT Technical Report.


