flust commited on
Commit
242da87
·
verified ·
1 Parent(s): 9e27eb2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +58 -42
README.md CHANGED
@@ -16,6 +16,8 @@ tags:
16
  - function-calling
17
  - tool-calling
18
  - synthetic
 
 
19
  pretty_name: ToolMind
20
  ---
21
 
@@ -23,65 +25,79 @@ pretty_name: ToolMind
23
  # ToolMind: Synthesizing Complex Tool-Use Trajectories via Graph Sampling and Multi-Agent Simulation
24
 
25
  ToolMind is a large open-source tool-use dataset with reasoning traces, designed to advance reasoning and tool-calling capabilities in agentic LLMs. It comprises over 160k turns synthesized from over 20k tools. By organizing functions as nodes in a graph structure and sampling paths on the graph, we construct complex and high-quality user intents. Then, trajectory is synthesized by a multi-agent way with user and tool are simulted with a LM. Moreover, we perform inference answering and correctness filtering for each round in the trajectory through thinking model, only keeping the correct and valuable turns. Models fine-tuned on ToolMesh achieves promising improvements against baselines on Tau-bench, Tau2-bench and BFCL-v4 agentic.
26
- * Technical Report - comming soon
 
 
27
 
28
  # Synthesis pipeline
29
 
30
- <img src="./figures/ToolMind.png" width="700"/>
 
 
31
 
32
- * Data collection and augmentation
33
- * We collect a wide variety of functions from open-source datasets, including [xlam-function-calling-60k](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k), [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2), and [ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE). Each function is expected to have defined inputs and outputs; however, the original definitions are often incomplete — for instance, some functions do not explicitly specify the output parameter types. To unify them within a common representation space, we use powful LMs to complete the descriptions and types of all input and output parameters, and then vectorize them using the embedding model [Conan-embedding-v1](https://huggingface.co/TencentBAC/Conan-embedding-v1).
34
 
35
- * Graph construction
36
- * Based on the unified vector representations of functions, we further construct a function graph to capture their potential relationships. We regard each function as a node and construct edges based on the vector similarity between output and input parameters. Specifically, an edge is established when an output parameter of one function is semantically similar to an input parameter of another function. In this way, we build a function graph where edges represent transitive relationships between functions. In addition, to increase the diversity of edges and the overall topology, we introduce a certain degree of random edge construction.
37
 
38
- * Random walk sampling
39
- * After constructing the graph, function chains are sampled using a random walk of length 5–20. Meanwhile, to avoid oversampling specific functions, we restrict the number of visits to each node.
40
 
41
- * Multi-agent trajectory synthesis
42
- * Following the sampling of function chains, we synthesize the user intention without enforcing task completion in chain order. The trajectory is then generated through a multi-agent simulation, where three models simulate a user, an assistant, and a function: the user poses questions according to the synthesized intention, the assistant responds, and the function provides simulated tool responses.
43
- * To construct correct procedural steps under various scenarios (including front-wheel error correction) and to retain only valid rounds from multi-turn interactions, we leverage a thinking model to generate and perform quality filtering for each turn within the synthesized traces.
44
 
45
  * Hybrid Training with Augmented Open-Source Data
46
  * In addition to the synthesized trajectories, we also incorporated a large amount of processed open-source data, including [xlam-function-calling-60k](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k), [When2Call](https://huggingface.co/datasets/nvidia/When2Call), [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2), [ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE), [BUTTONInstruct](https://github.com/PKU-Baichuan-MLSystemLab/BUTTON), [APIGen-MT-5k](https://huggingface.co/datasets/Salesforce/APIGen-MT-5k), [Tau-bench training set](https://github.com/sierra-research/tau-bench/tree/main). The processing steps involved quality filtering and response reconstruction. Experimental results demonstrate that both our synthesized data and the post-processed open-source data significantly contribute to performance improvements.
47
  * It should be noted that our data is segmented based on the messages of the assistant, so the loss is only calculated for the last assistant message for each sample during training.
48
 
 
 
 
 
 
 
 
 
 
 
49
  # Overall Performance
50
 
51
- *For tau2-bench evaluation, we use gpt-4o to act as the user*
52
- | | Tau2-airline | Tau2-retail | Tau2-telecom | BFCL-v4 | BFCL-v4-agentic |
53
- |--------------------------|--------------|-------------|--------------|---------|-----------------|
54
- | qwen3-8b (FC) | 32.0 | 43.9 | 28.1 | 42.21 | 14.35 |
55
- | with ToolMind(36w)| **48.0** | **59.6** | **31.6** | **46.92** | **20.97** |
56
- | | | | | | |
57
- | qwen3-14b (FC) | 36.0 | 52.6 | **33.3** | 45.14 | 16.90 |
58
- | with ToolMind(36w)| **56.0** | **59.6** | 31.6 | **50.54** | **26.67** |
59
 
60
- # Ablation Study
61
- | | Tau2-airline | Tau2-retail | Tau2-telecom | BFCL-v4 | BFCL-v4-agentic |
62
- |-------------------------------------------------|--------------|-------------|--------------|---------|-----------------|
63
- | qwen3-8b (FC) | 32.0 | 43.9 | 28.1 | 42.21 | 14.35 |
64
- | with Augmented Open-Source Data (20w) | <u>44.0</u> | <u>57.9</u> | 24.6 | 45.88 | 20.22 |
65
- | with Synthesized Data(16w) | 42.0 | 43.0 | <u>31.6</u> | <u>46.87</u> | **24.37** |
66
- | with ToolMind (36w) | **48.0** | **59.6** | **31.6** | **46.92** | <u>20.97</u> |
 
 
 
 
 
 
 
67
 
68
- # Dataset Statistic
69
 
70
- <!-- <p float="left">
71
- <img src="./figures/dialog_len.png" width="30%" />
72
- <img src="./figures/num_user_mes.png" width="30%" />
73
- <img src="./figures/token_length.png" width="30%" />
74
- </p> -->
75
-
76
- The following shows the statistics of the length of the synthetic data, including conversation length, the number of user turns in the conversations, and token length.
77
-
78
- <table>
79
- <tr>
80
- <td><img src="./figures/dialog_len.png" width="350"/></td>
81
- <td><img src="./figures/num_user_mes.png" width="350"/></td>
82
- <td><img src="./figures/token_length.png" width="350"/></td>
83
- </tr>
84
- </table>
 
 
 
 
85
 
86
  # Limitations
87
 
 
16
  - function-calling
17
  - tool-calling
18
  - synthetic
19
+ arxiv: 2511.15718
20
+ paper: https://arxiv.org/abs/2511.15718
21
  pretty_name: ToolMind
22
  ---
23
 
 
25
  # ToolMind: Synthesizing Complex Tool-Use Trajectories via Graph Sampling and Multi-Agent Simulation
26
 
27
  ToolMind is a large open-source tool-use dataset with reasoning traces, designed to advance reasoning and tool-calling capabilities in agentic LLMs. It comprises over 160k turns synthesized from over 20k tools. By organizing functions as nodes in a graph structure and sampling paths on the graph, we construct complex and high-quality user intents. Then, trajectory is synthesized by a multi-agent way with user and tool are simulted with a LM. Moreover, we perform inference answering and correctness filtering for each round in the trajectory through thinking model, only keeping the correct and valuable turns. Models fine-tuned on ToolMesh achieves promising improvements against baselines on Tau-bench, Tau2-bench and BFCL-v4 agentic.
28
+ * Technical Report - https://arxiv.org/abs/2511.15718
29
+
30
+ <img src="./figures/toolmind_performance.png" width="800"/>
31
 
32
  # Synthesis pipeline
33
 
34
+ <img src="./figures/ToolMind.pdf" width="700"/>
35
+
36
+ * Graph Construction and Function Chain Sampling
37
 
38
+ * We construct a directed graph over the collected functions to model their input–output compatibility, and then sample function chains via random walks for trajectory synthesis.
 
39
 
40
+ * Multi-Agent Multi-Turn Trajectory Synthesis
 
41
 
42
+ * We synthesize user intents to represent realistic user goals. And then the trajectories are created through a multi-agent simulation that involves three distinct agents.
 
43
 
44
+ * Quality Filtering
45
+
46
+ * To ensure that the synthesized interactions provide reliable learning signals, we apply a two-stage quality filtering process: trajectory-level filtering that maintains goal alignment and coherence, followed by turn-level filtering that removes erroneous or misaligned steps.
47
 
48
  * Hybrid Training with Augmented Open-Source Data
49
  * In addition to the synthesized trajectories, we also incorporated a large amount of processed open-source data, including [xlam-function-calling-60k](https://huggingface.co/datasets/Salesforce/xlam-function-calling-60k), [When2Call](https://huggingface.co/datasets/nvidia/When2Call), [glaive-function-calling-v2](https://huggingface.co/datasets/glaiveai/glaive-function-calling-v2), [ToolACE](https://huggingface.co/datasets/Team-ACE/ToolACE), [BUTTONInstruct](https://github.com/PKU-Baichuan-MLSystemLab/BUTTON), [APIGen-MT-5k](https://huggingface.co/datasets/Salesforce/APIGen-MT-5k), [Tau-bench training set](https://github.com/sierra-research/tau-bench/tree/main). The processing steps involved quality filtering and response reconstruction. Experimental results demonstrate that both our synthesized data and the post-processed open-source data significantly contribute to performance improvements.
50
  * It should be noted that our data is segmented based on the messages of the assistant, so the loss is only calculated for the last assistant message for each sample during training.
51
 
52
+ # Dataset Statistic
53
+
54
+ * We split each trajectory into multiple samples using the turns that passed the turn-level quality filter and analyze both \emph{trajectories} (orange) and \emph{post-split samples} (blue).
55
+
56
+ <img src="./figures/combined_analysis.png" width="800"/>
57
+
58
+ * Domain Statistics
59
+
60
+ <img src="./figures/domain_pie.png" width="700"/>
61
+
62
  # Overall Performance
63
 
64
+ * BFCL
 
 
 
 
 
 
 
65
 
66
+ | Model | Overall | Single Turn (Non-live AST) | Single Turn (Live AST) | Multi Turn | Agentic (Search) | Agentic (Memory) |
67
+ |-------------------------------|---------|-----------------------------|------------------------|------------|------------------|------------------|
68
+ | DeepSeek-v3 (FC) | 45.20 | 88.77 | 79.94 | 33.00 | 32.50 | 22.37 |
69
+ | DeepSeek-R1-0528 (FC) | 48.97 | 75.73 | 80.90 | 44.50 | 63.00 | 0.00 |
70
+ | Qwen3-235-instruct (FC) | 54.37 | 88.10 | **82.61** | 44.50 | 49.00 | 29.25 |
71
+ | Kimi-K2-Instruct (FC) | 56.07 | 84.02 | 77.57 | **48.75** | 59.00 | 25.16 |
72
+ | GPT-4o-2024-11-20 (FC) | 50.27 | 83.88 | 70.54 | 42.50 | 40.50 | 28.82 |
73
+ | GPT5-2025-0807 (FC) | **59.22** | 72.92 | 58.25 | 28.50 | **84.50** | **57.63** |
74
+ | Gemini2.5-Pro (Prompt) | 54.14 | **89.54** | 76.83 | 30.62 | 66.50 | 31.61 |
75
+ | | | | | | | |
76
+ | Qwen3-8b (FC) | 42.21 | **88.27** | 80.83 | 38.88 | 10.00 | 18.71 |
77
+ | ↳ with ToolMind | **46.92** (+4.69%) | 88.06 | **81.42** | **46.62** | **21.50** | **20.43** |
78
+ | Qwen3-14b (FC) | 45.14 | **90.10** | **80.90** | 44.12 | 12.50 | **21.29** |
79
+ | ↳ with ToolMind | **50.54** (+5.40%) | 89.00 | 80.83 | **51.00** | **35.50** | 17.85 |
80
 
 
81
 
82
+ * τ-bench and τ²-bench (*For tau2-bench evaluation, we use gpt-4o to act as the user*)
83
+
84
+ | Model | τ-bench Avg | τ-bench retail | τ-bench airline | τ²-bench Avg | τ²-bench retail | τ²-bench airline | τ²-bench telecom |
85
+ |--------------------|-------------|----------------|-----------------|--------------|------------------|------------------|------------------|
86
+ | qwen3-8b (FC) | 35.83 | 35.65 | 36.00 | 34.67 | 32.0 | 43.9 | 28.1 |
87
+ | ↳ with ToolMind | **46.70** (+10.87%) | **57.39** | **36.00** | **46.40** (+11.73%) | **48.0** | **59.6** | **31.6** |
88
+ | qwen3-14b (FC) | 38.78 | 49.56 | 28.00 | 40.63 | 36.0 | 52.6 | **33.3** |
89
+ | ↳ with ToolMind | **53.00** (+14.22%) | **60.00** | **46.00** | **49.07** (+8.44%) | **56.0** | **59.6** | 31.6 |
90
+
91
+
92
+ # Ablation Study
93
+ | Model | τ-bench Avg | τ-bench retail | τ-bench airline | τ²-bench Avg | τ²-bench retail | τ²-bench airline | τ²-bench telecom | BFCL-v4 overall |
94
+ |--------------------------------------------|-------------|----------------|-----------------|--------------|------------------|------------------|------------------|-----------------|
95
+ | Qwen3-8B (FC) | 35.83 | 35.65 | 36.00 | 34.67 | 43.9 | 32.0 | 28.1 | 42.21 |
96
+ | ↳ with (a) synthesized data | 42.31 | 42.61 | 42.00 | 38.87 | 43.0 | 42.0 | **31.6** | 46.87 |
97
+ | ↳ with (b) no turn-level filtering | 35.31 | 42.61 | 28.00 | 41.87 | 47.4 | 48.0 | 29.8 | 44.11 |
98
+ | ↳ with (c) augmented open-source data | **48.65** | 51.30 | **46.00** | 42.17 | 57.9 | 44.0 | 24.6 | 45.88 |
99
+ | ↳ with ToolMind | 46.70 | **57.39** | 36.00 | **46.40** | **59.6** | **48.0** | **31.6** | **46.92** |
100
+
101
 
102
  # Limitations
103