Datasets:
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# ToolMesh: Synthesizing Complex Tool-Use Trajectories via Graph Sampling and Multi-Agent Simulation
|
| 2 |
|
| 3 |
ToolMesh 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.
|
|
@@ -6,7 +38,7 @@ ToolMesh is a large open-source tool-use dataset with reasoning traces, designed
|
|
| 6 |
|
| 7 |
# Synthesis pipeline
|
| 8 |
|
| 9 |
-
<img src="./figures/
|
| 10 |
|
| 11 |
* Data collection and augmentation
|
| 12 |
* 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).
|
|
@@ -29,10 +61,10 @@ ToolMesh is a large open-source tool-use dataset with reasoning traces, designed
|
|
| 29 |
| | Tau2-airline | Tau2-retail | Tau2-telecom | BFCL-v4 | BFCL-v4-agentic |
|
| 30 |
|--------------------------|--------------|-------------|--------------|---------|-----------------|
|
| 31 |
| qwen3-8b (FC) | 32.0 | 43.9 | 28.1 | 42.21 | 14.35 |
|
| 32 |
-
| qwen3-8b (FC) w
|
| 33 |
| | | | | | |
|
| 34 |
| qwen3-14b (FC) | 36.0 | 52.6 | **33.3** | 45.14 | 16.90 |
|
| 35 |
-
| qwen3-14b (FC) w
|
| 36 |
|
| 37 |
# Ablation
|
| 38 |
|
|
@@ -41,7 +73,7 @@ ToolMesh is a large open-source tool-use dataset with reasoning traces, designed
|
|
| 41 |
| qwen3-8b (FC) | 32.0 | 43.9 | 28.1 | 42.21 | 14.35 |
|
| 42 |
| qwen3-8b (FC) w Augmented Open-Source Data (20w) | <u>44.0</u> | <u>57.9</u> | 24.6 | 45.88 | 20.22 |
|
| 43 |
| qwen3-8b (FC) w Synthesized Data(16w) | 42.0 | 43.0 | <u>31.6</u> | <u>46.87</u> | **24.37** |
|
| 44 |
-
| qwen3-8b (FC) w
|
| 45 |
|
| 46 |
# Dataset Statistic
|
| 47 |
|
|
@@ -66,4 +98,4 @@ The following shows the statistics of the length of the synthetic data, includin
|
|
| 66 |
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.
|
| 67 |
|
| 68 |
# Other Information
|
| 69 |
-
If you find our dataset useful or want to use it in your projects, please kindly cite this Huggingface project.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
configs:
|
| 4 |
+
- config_name: test
|
| 5 |
+
data_files:
|
| 6 |
+
- split: graph-based-synthetic-data
|
| 7 |
+
path: data/graphsyn.jsonl
|
| 8 |
+
- split: xlam-function-calling-60k
|
| 9 |
+
path: data/xlam-function-calling-60k-query.jsonl
|
| 10 |
+
- split: When2Call
|
| 11 |
+
path: data/When2Call-query.jsonl
|
| 12 |
+
- split: glaive-function-calling-v2
|
| 13 |
+
path: data/glaive-function-calling-v2-query.jsonl
|
| 14 |
+
- split: ToolACE
|
| 15 |
+
path: data/ToolACE-query.jsonl
|
| 16 |
+
- split: BUTTONInstruct
|
| 17 |
+
path: data/BUTTONInstruct-query.jsonl
|
| 18 |
+
- split: APIGen-MT-5k
|
| 19 |
+
path: data/APIGen-MT-5k-query.jsonl
|
| 20 |
+
- split: Tau-bench training set
|
| 21 |
+
path: data/tau-train-query.jsonl
|
| 22 |
+
task_categories:
|
| 23 |
+
- text-generation
|
| 24 |
+
language:
|
| 25 |
+
- en
|
| 26 |
+
tags:
|
| 27 |
+
- function-calling
|
| 28 |
+
- tool-calling
|
| 29 |
+
- synthetic
|
| 30 |
+
pretty_name: ToolMesh
|
| 31 |
+
---
|
| 32 |
+
|
| 33 |
# ToolMesh: Synthesizing Complex Tool-Use Trajectories via Graph Sampling and Multi-Agent Simulation
|
| 34 |
|
| 35 |
ToolMesh 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.
|
|
|
|
| 38 |
|
| 39 |
# Synthesis pipeline
|
| 40 |
|
| 41 |
+
<img src="./figures/ToolMesh.png" width="800"/>
|
| 42 |
|
| 43 |
* Data collection and augmentation
|
| 44 |
* 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).
|
|
|
|
| 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 |
+
| qwen3-8b (FC) w ToolMesh(36w)| **48.0** | **59.6** | **31.6** | **46.92** | **20.97** |
|
| 65 |
| | | | | | |
|
| 66 |
| qwen3-14b (FC) | 36.0 | 52.6 | **33.3** | 45.14 | 16.90 |
|
| 67 |
+
| qwen3-14b (FC) w ToolMesh(36w)| **56.0** | **59.6** | 31.6 | **50.54** | **26.67** |
|
| 68 |
|
| 69 |
# Ablation
|
| 70 |
|
|
|
|
| 73 |
| qwen3-8b (FC) | 32.0 | 43.9 | 28.1 | 42.21 | 14.35 |
|
| 74 |
| qwen3-8b (FC) w Augmented Open-Source Data (20w) | <u>44.0</u> | <u>57.9</u> | 24.6 | 45.88 | 20.22 |
|
| 75 |
| qwen3-8b (FC) w Synthesized Data(16w) | 42.0 | 43.0 | <u>31.6</u> | <u>46.87</u> | **24.37** |
|
| 76 |
+
| qwen3-8b (FC) w ToolMesh (36w) | **48.0** | **59.6** | **31.6** | **46.92** | <u>20.97</u> |
|
| 77 |
|
| 78 |
# Dataset Statistic
|
| 79 |
|
|
|
|
| 98 |
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.
|
| 99 |
|
| 100 |
# Other Information
|
| 101 |
+
If you find our dataset useful or want to use it in your projects, please kindly cite this Huggingface project.
|