Mgmgrand420 flust commited on
Commit
c8bcfd7
·
verified ·
0 Parent(s):

Duplicate from Nanbeige/ToolMind

Browse files

Co-authored-by: Chen Yang <flust@users.noreply.huggingface.co>

.gitattributes ADDED
@@ -0,0 +1,86 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
5
+ *.ckpt filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.lz4 filter=lfs diff=lfs merge=lfs -text
12
+ *.mds filter=lfs diff=lfs merge=lfs -text
13
+ *.mlmodel filter=lfs diff=lfs merge=lfs -text
14
+ *.model filter=lfs diff=lfs merge=lfs -text
15
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
16
+ *.npy filter=lfs diff=lfs merge=lfs -text
17
+ *.npz filter=lfs diff=lfs merge=lfs -text
18
+ *.onnx filter=lfs diff=lfs merge=lfs -text
19
+ *.ot filter=lfs diff=lfs merge=lfs -text
20
+ *.parquet filter=lfs diff=lfs merge=lfs -text
21
+ *.pb filter=lfs diff=lfs merge=lfs -text
22
+ *.pickle filter=lfs diff=lfs merge=lfs -text
23
+ *.pkl filter=lfs diff=lfs merge=lfs -text
24
+ *.pt filter=lfs diff=lfs merge=lfs -text
25
+ *.pth filter=lfs diff=lfs merge=lfs -text
26
+ *.rar filter=lfs diff=lfs merge=lfs -text
27
+ *.safetensors filter=lfs diff=lfs merge=lfs -text
28
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
29
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
30
+ *.tar filter=lfs diff=lfs merge=lfs -text
31
+ *.tflite filter=lfs diff=lfs merge=lfs -text
32
+ *.tgz filter=lfs diff=lfs merge=lfs -text
33
+ *.wasm filter=lfs diff=lfs merge=lfs -text
34
+ *.xz filter=lfs diff=lfs merge=lfs -text
35
+ *.zip filter=lfs diff=lfs merge=lfs -text
36
+ *.zst filter=lfs diff=lfs merge=lfs -text
37
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
38
+ # Audio files - uncompressed
39
+ *.pcm filter=lfs diff=lfs merge=lfs -text
40
+ *.sam filter=lfs diff=lfs merge=lfs -text
41
+ *.raw filter=lfs diff=lfs merge=lfs -text
42
+ # Audio files - compressed
43
+ *.aac filter=lfs diff=lfs merge=lfs -text
44
+ *.flac filter=lfs diff=lfs merge=lfs -text
45
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
46
+ *.ogg filter=lfs diff=lfs merge=lfs -text
47
+ *.wav filter=lfs diff=lfs merge=lfs -text
48
+ # Image files - uncompressed
49
+ *.bmp filter=lfs diff=lfs merge=lfs -text
50
+ *.gif filter=lfs diff=lfs merge=lfs -text
51
+ *.png filter=lfs diff=lfs merge=lfs -text
52
+ *.tiff filter=lfs diff=lfs merge=lfs -text
53
+ # Image files - compressed
54
+ *.jpg filter=lfs diff=lfs merge=lfs -text
55
+ *.jpeg filter=lfs diff=lfs merge=lfs -text
56
+ *.webp filter=lfs diff=lfs merge=lfs -text
57
+ # Video files - compressed
58
+ *.mp4 filter=lfs diff=lfs merge=lfs -text
59
+ *.webm filter=lfs diff=lfs merge=lfs -text
60
+ ToolMind.pdf filter=lfs diff=lfs merge=lfs -text
61
+ data/taubenchtrain_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
62
+ data/toolace_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
63
+ data/when2call_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
64
+ data/xlam_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
65
+ data/apigen_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
66
+ data/button_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
67
+ data/glaive_query-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
68
+ data/xlam-function-calling-60k-query.jsonl filter=lfs diff=lfs merge=lfs -text
69
+ data/glaive-function-calling-v2-query.jsonl filter=lfs diff=lfs merge=lfs -text
70
+ data/BUTTONInstruct-query.jsonl filter=lfs diff=lfs merge=lfs -text
71
+ data/APIGen-MT-5k-query.jsonl filter=lfs diff=lfs merge=lfs -text
72
+ data/ToolACE-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
73
+ data/When2Call-query.jsonl filter=lfs diff=lfs merge=lfs -text
74
+ data/tau-train-query.jsonl filter=lfs diff=lfs merge=lfs -text
75
+ data/ToolACE-query.jsonl filter=lfs diff=lfs merge=lfs -text
76
+ data/graphsyn-reformat.jsonl filter=lfs diff=lfs merge=lfs -text
77
+ data/graphsyn.jsonl filter=lfs diff=lfs merge=lfs -text
78
+ open_datasets/APIGen-MT-5k-query.jsonl filter=lfs diff=lfs merge=lfs -text
79
+ open_datasets/BUTTONInstruct-query.jsonl filter=lfs diff=lfs merge=lfs -text
80
+ open_datasets/ToolACE-query.jsonl filter=lfs diff=lfs merge=lfs -text
81
+ open_datasets/When2Call-query.jsonl filter=lfs diff=lfs merge=lfs -text
82
+ open_datasets/glaive-function-calling-v2-query.jsonl filter=lfs diff=lfs merge=lfs -text
83
+ open_datasets/tau-train-query.jsonl filter=lfs diff=lfs merge=lfs -text
84
+ open_datasets/xlam-function-calling-60k-query.jsonl filter=lfs diff=lfs merge=lfs -text
85
+ graph_syn_datasets/graphsyn.jsonl filter=lfs diff=lfs merge=lfs -text
86
+ figures/ToolMind.pdf filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ configs:
4
+ - config_name: test
5
+ data_files:
6
+ - split: graph_syn_datasets
7
+ path: graph_syn_datasets/*
8
+ - split: open_datasets
9
+ path: open_datasets/*
10
+
11
+ task_categories:
12
+ - text-generation
13
+ language:
14
+ - en
15
+ tags:
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
+
24
+
25
+ # ToolMind: A Large-Scale, Reasoning-Enhanced Tool-Use Dataset
26
+
27
+ ToolMind is a large-scale, high-quality tool-agentic dataset with 160k synthetic data instances generated using over 20k tools and 200k augmented open-source data instances.
28
+ Our data synthesis pipeline first constructs a function graph based on parameter correlations and then uses a multi-agent framework to simulate realistic user–assistant–tool interactions.
29
+ Beyond trajectory-level validation, we employ fine-grained turn-level filtering to remove erroneous or suboptimal steps, ensuring that only high-quality reasoning traces are retained.
30
+ * Technical Report - https://arxiv.org/abs/2511.15718
31
+
32
+ <img src="./figures/toolmind_performance.png" width="800"/>
33
+
34
+ # Synthesis pipeline
35
+
36
+ <img src="./figures/ToolMind.png" width="600"/>
37
+
38
+ * Graph Construction and Function Chain Sampling
39
+
40
+ * 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.
41
+
42
+ * Multi-Agent Multi-Turn Trajectory Synthesis
43
+
44
+ * 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.
45
+
46
+ * Quality Filtering
47
+
48
+ * 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.
49
+
50
+ * Hybrid Training with Augmented Open-Source Data
51
+ * We also incorporat 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.
52
+ * All open-source multi-turn datasets are subjected to the same split and quality-filtering procedures as the synthesised data.
53
+
54
+
55
+ # Dataset Statistic
56
+
57
+ * We split each trajectory into multiple samples using the turns that passed the turn-level quality filter and analyze both trajectories (orange) and post-split samples (blue).
58
+
59
+ <img src="./figures/combined_analysis.png" width="800"/>
60
+
61
+ * Domain Statistics
62
+
63
+ <img src="./figures/domain_pie.png" width="500"/>
64
+
65
+ # Overall Performance
66
+
67
+ * BFCL-v4 2510
68
+
69
+ | Model | Overall | Single Turn (Non-live AST) | Single Turn (Live AST) | Multi Turn | Agentic (Search) | Agentic (Memory) |
70
+ |-------------------------------|---------|-----------------------------|------------------------|------------|------------------|------------------|
71
+ | DeepSeek-v3 (FC) | 45.20 | 88.77 | 79.94 | 33.00 | 32.50 | 22.37 |
72
+ | DeepSeek-R1-0528 (FC) | 48.97 | 75.73 | 80.90 | 44.50 | 63.00 | 0.00 |
73
+ | Qwen3-235-instruct (FC) | 54.37 | 88.10 | **82.61** | 44.50 | 49.00 | 29.25 |
74
+ | Kimi-K2-Instruct (FC) | 56.07 | 84.02 | 77.57 | **48.75** | 59.00 | 25.16 |
75
+ | GPT-4o-2024-11-20 (FC) | 50.27 | 83.88 | 70.54 | 42.50 | 40.50 | 28.82 |
76
+ | GPT5-2025-0807 (FC) | **59.22** | 72.92 | 58.25 | 28.50 | **84.50** | **57.63** |
77
+ | Gemini2.5-Pro (Prompt) | 54.14 | **89.54** | 76.83 | 30.62 | 66.50 | 31.61 |
78
+ | | | | | | | |
79
+ | Qwen3-8b (FC) | 42.21 | **88.27** | 80.83 | 38.88 | 10.00 | 18.71 |
80
+ | ↳ with ToolMind | **46.92** (+4.69%) | 88.06 | **81.42** | **46.62** | **21.50** | **20.43** |
81
+ | Qwen3-14b (FC) | 45.14 | **90.10** | **80.90** | 44.12 | 12.50 | **21.29** |
82
+ | ↳ with ToolMind | **50.54** (+5.40%) | 89.00 | 80.83 | **51.00** | **35.50** | 17.85 |
83
+
84
+
85
+ * τ-bench and τ²-bench (*For τ²-bench evaluation, we use gpt-4o to act as the user*)
86
+
87
+ | Model | τ-bench Avg | τ-bench retail | τ-bench airline | τ²-bench Avg | τ²-bench retail | τ²-bench airline | τ²-bench telecom |
88
+ |--------------------|-------------|----------------|-----------------|--------------|------------------|------------------|------------------|
89
+ | qwen3-8b (FC) | 35.83 | 35.65 | 36.00 | 34.67 | 43.86 | 32.00 | 28.07 |
90
+ | ↳ with ToolMind | **46.70** (+10.87%) | **57.39** | **36.00** | **46.40** (+11.77%) | **59.65** | **48.0** | **31.6** |
91
+ | qwen3-14b (FC) | 38.78 | 49.56 | 28.00 | 40.63 | 52.63 | 36.00 | **33.33** |
92
+ | ↳ with ToolMind | **53.00** (+14.22%) | **60.00** | **46.00** | **49.07** (+8.43%) | **59.65** | **56.00** | 31.58 |
93
+
94
+
95
+ # Ablation Study
96
+ | Model | τ-bench Avg | τ-bench retail | τ-bench airline | τ²-bench Avg | τ²-bench retail | τ²-bench airline | τ²-bench telecom | BFCL-v4 overall |
97
+ |--------------------------------------------|-------------|----------------|-----------------|--------------|------------------|------------------|------------------|-----------------|
98
+ | Qwen3-8B (FC) | 35.83 | 35.65 | 36.00 | 34.64 | 43.86 | 32.00 | 28.07 | 42.21 |
99
+ | ↳ with (a) synthesized data | 42.31 | 42.61 | 42.00 | 38.85 | 42.98 | 42.00 | **31.58** | 46.87 |
100
+ | ↳ with (b) no turn-level filtering | 35.31 | 42.61 | 28.00 | 41.73 | 47.37 | 48.00 | 29.82 | 44.11 |
101
+ | ↳ with (c) augmented open-source data | **48.65** | 51.30 | **46.00** | 42.16 | 57.89 | 44.00 | 24.56 | 45.88 |
102
+ | ↳ with ToolMind | 46.70 | **57.39** | 36.00 | **46.41** | **59.65** | **48.00** | **31.58** | **46.92** |
103
+
104
+
105
+ # Limitations
106
+
107
+ While we place great emphasis on the safety of the model during the training process, striving to ensure that its outputs align with ethical and legal requirements, it may not completely avoid generating unexpected outputs due to the model's size and probabilistic nature. These outputs may include harmful content such as bias or discrimination. Please don't propagate such content. We do not assume any responsibility for the consequences resulting from the dissemination of inappropriate information.
108
+
109
+ # Citation
110
+ If you find our verifiers useful or want to use it in your projects, please kindly cite this Huggingface project.
111
+
112
+ <pre><code>
113
+ @misc{yang2025toolmindtechnicalreportlargescale,
114
+ title={ToolMind Technical Report: A Large-Scale, Reasoning-Enhanced Tool-Use Dataset},
115
+ author={Chen Yang and Ran Le and Yun Xing and Zhenwei An and Zongchao Chen and Wayne Xin Zhao and Yang Song and Tao Zhang},
116
+ year={2025},
117
+ eprint={2511.15718},
118
+ archivePrefix={arXiv},
119
+ primaryClass={cs.AI},
120
+ url={https://arxiv.org/abs/2511.15718},
121
+ }
122
+ </code></pre>
123
+
124
+
125
+ # Other Information
126
+ If you have any questions, please raise an issue or contact us at nanbeige@126.com.
figures/ToolMind.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9250c984602ebd58e170fe11cf26ae61fc58d23773e8a5f30f4b26c9fcae6065
3
+ size 939935
figures/ToolMind.png ADDED

Git LFS Details

  • SHA256: 5f925f2d751449b77266575042d2b8aa8dd84747fb5b6e64136754100c3f5d9d
  • Pointer size: 132 Bytes
  • Size of remote file: 1.36 MB
figures/combined_analysis.png ADDED

Git LFS Details

  • SHA256: 5b7300f47c0c6010291e31a97c6b2b61c16a9a5a8e3e2be317a424d6cc3f28f1
  • Pointer size: 131 Bytes
  • Size of remote file: 392 kB
figures/domain_pie.png ADDED

Git LFS Details

  • SHA256: 9981c3623efec25137c5410986757b918de01d96264201f848d0dbbc21e6b076
  • Pointer size: 131 Bytes
  • Size of remote file: 209 kB
figures/toolmind_performance.png ADDED

Git LFS Details

  • SHA256: 3cb6fd686dd40e7a4a90c015d68b3c2bdad534191c017682dfbd3018956d2411
  • Pointer size: 130 Bytes
  • Size of remote file: 96.3 kB
graph_syn_datasets/graphsyn.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc47d31b81c9ef7e3da736851568a19a24e5dd52278483244129d6d72522c2a9
3
+ size 2324022800
open_datasets/APIGen-MT-5k-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:abd04e60586fd8c2969885fb8c2162bd2ffc3d86247acf5a9a1d37e81d92b488
3
+ size 596073757
open_datasets/BUTTONInstruct-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1b4f803355293c7bce42f56c3a1df548c1285aa696dafdaf1ccc8ce319fac225
3
+ size 167208256
open_datasets/ToolACE-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3db3af24e7d7ce54b8d4477dd1fe572cfabf87e867d5d5756f8cb414ff6186f7
3
+ size 35731177
open_datasets/When2Call-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:84adbd7b034cbee27be764f9ef60538d87a90349bbc0dc701b044b6808e650c9
3
+ size 76794951
open_datasets/glaive-function-calling-v2-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6b49bcd107466a05657b52201c20ef2f178fcd6e276211c75c94c4a6b6bf1a34
3
+ size 48291179
open_datasets/tau-train-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:119c238df266f8033d10575a42b6844a516a707ba57167e7d3dca0fbe1ac7c9a
3
+ size 233733479
open_datasets/xlam-function-calling-60k-query.jsonl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4ce42b841f3951b9b60bf279ecd943fcb3ecf4283b5ddc5796976847f12b3c17
3
+ size 476059990