GenesisFunc: Multi-Agent Data Generation for Accurate and Generalizable Function-Calling
Organizations: Tongyi Fun Team, Alibaba Group
Abstract
Large Language Models (LLMs) extend their capabilities through function-calling (FC), which relies on training data with high quality, diversity, and broad coverage of scenario. However, obtaining and annotating real function-calling data is challenging, while synthetic data from existing pipelines often suffers from unreliable APIs, limited tool scalability, insufficient diversity, and weak quality control. To address these, we present GenesisFunc, an automated pipeline for generating FC training data. Starting from reliable tools in widely used public benchmarks, our GenesisFunc employs a multi-agent framework to support a dialogue generation system that produces conversations spanning diverse scenarios, while maintaining both diversity and quality throughout the process. The accuracy of the data is further reinforced through a multi-stage evaluation system. We fine-tune an 8B LLM on the synthetic dataset and show through extensive experiments that it outperforms similarly sized open-source models in in-domain FC performance and out-of-domain generalization, while reaching FC capabilities comparable to some of the latest API-based models. In addition, our method demonstrates strong potential to scale effectively across downstream tools, underscoring its real-world applicability.
Figures & tables
| Non-Live | Live | |||||||||
| Models | Simple | Multiple | Parallel | Parallel | Overall | Simple | Multiple | Parallel | Parallel | Overall |
| Multiple | Multiple | |||||||||
| GPT-4o | 76.50 | 91.00 | 90.00 | 78.00 | 83.88 | 70.54 | 70.75 | 62.50 | 66.67 | 70.54 |
| GPT-4o-mini | 80.33 | 92.00 | 89.50 | 90.50 | 88.08 | 79.46 | 76.26 | 87.50 | 70.83 | 76.91 |
| Gemini-2.5-Pro | 78.67 | 94.00 | 93.50 | 92.00 | 89.54 | 85.66 | 74.36 | 87.50 | 83.33 | 76.83 |
| LLaMA-3.1-8B-Instruct | 71.00 | 95.00 | 87.50 | 82.50 | 84.00 | 72.87 | 71.13 | 50.00 | 45.83 | 59.96 |
| API-Bank | ACEBench | |||||||||||
| Normal | Special | |||||||||||
| Models | Level-1 | Level-2 | Level-3 | Overall | Atom | Single-Turn | Multi-Turn | Similar API | Preference | Overall | Overall | |
| GPT-4o | 76.19 | 42.96 | 35.21 | 51.45 | 90.00 | 78.00 | 77.00 | 85.00 | 83.00 | 82.60 | 87.60 | |
| GPT-4o-mini | 74.69 | 45.93 | 40.77 | 53.80 | 84.33 | 73.50 | 66.50 | 77.00 | 78.00 | 75.87 | 79.90 | |
| Gemini-1.5-Pro | 75.43 | 43.26 | 41.51 | 53.40 | 84.50 | 76.80 | 64.50 | 80.00 | 78.00 | 76.76 | 79.00 | |
| Qwen3-8B | 71.68 | 52.24 | 42.75 | 55.56 | 80.00 | 65.50 | 51.00 | 68.00 | 60.00 | 64.90 | 76.67 | |
| Normal | Special | ||||||
|---|---|---|---|---|---|---|---|
| Models | Atom | Single-Turn | Multi-Turn | Similar API | Preference | Overall | Overall |
| Qwen3-8B | 80.00 | 65.50 | 51.00 | 68.00 | 60.00 | 64.90 | 76.67 |
| GenesisFunc -8B | 88.00 | 77.00 | 65.00 | 74.00 | 64.00 | 73.60 | 83.67 |
| GenesisFunc -8B-RL(all) | 87.00 | 78.00 | 66.00 | 72.00 | 62.00 | 73.00 | 82.45 |
| GenesisFunc -8B-RL(part) | 88.00 | 79.00 | 70.00 | 75.00 | 64.00 | 75.20 | 82.88 |
| Models | BFCL | API-Bank | ACEBench |
|---|---|---|---|
| Qwen3-8B | 83.20 | 55.56 | 70.79 |
| ToolACE-8B | 85.89 | 56.21 | 35.65 |
| GenesisFunc | 88.55 | 64.79 | 78.64 |
| + ACEBench | 87.89 | 65.11 | 81.87 |
Appendix figures & tables15 assets
Supplementary material from the paper’s appendix.
Appendix
| Aspect | Rules |
|---|---|
| Tool Definition Completeness | Check that the tool schema parses and includes required fields (name, description, parameters). |
| Verify that parameter specs declare type or format and required or optional flags. | |
| Ensure the tool name is unique within the tools pool. | |
| Call Format & Parameter Compliance | Confirm the called tools exist in the tools pool and use the correct name. |
| Ensure all required parameters appear exactly once and no unknown keys exist. | |
| Validate that values satisfy declared type/regex/range constraints (e.g., ISO date, enum). |
| Dataset | Single-Single | Single-Multi | Multi-Single | Multi-Multi | Special-Case |
|---|---|---|---|---|---|
| Gorilla Patil et al. (2024) | ✓ | ||||
| ToolAlpaca Tang et al. (2023) | ✓ | ✓ | |||
| ToolLLM Qin et al. (2024) | ✓ | ✓ | |||
| xLAM Liu et al. (2024) | ✓ | ✓ | ✓ | ||
| ToolACE Liu et al. (2025a) | ✓ | ✓ | ✓ | ✓ | |
| GenesisFunc | ✓ | ✓ | ✓ | ✓ | ✓ |
| Learning Rate | Warmup Ratio | LR Scheduler | Batch Size | Epochs | LoRA Rank | LoRA Alpha |
|---|---|---|---|---|---|---|
| 0.1 | cosine | 48 | 3 | 16 | 32 |
| Non-Live | Live | |||||||||
| Models | Simple | Multiple | Parallel | Parallel | Overall | Simple | Multiple | Parallel | Parallel | Overall |
| Multiple | Multiple | |||||||||
| Qwen3-8B | 78.92 | 95.00 | 91.50 | 89.00 | 88.60 | 80.23 | 77.21 | 81.25 | 75.00 | 77.79 |
| ToolACE-8B | 81.17 | 96.00 | 94.00 | 93.00 | 91.04 | 82.95 | 79.58 | 75.25 | 85.12 | 80.73 |
| GenesisFunc -8B(dynamic) | 86.85 | 97.25 | 96.15 | 93.00 | 93.31 | 88.25 | 80.50 | 81.50 | 84.88 | 83.78 |
| GenesisFunc -8B(max) | 86.00 | 96.85 | 95.50 | 92.25 | 92.65 | 86.80 | 80.00 | 81.25 | 83.86 | 82.98 |
| Non-Live | Live | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Models | Simple | Multiple | Parallel | Parallel | Overall | Simple | Multiple | Parallel | Parallel | Overall |
| Multiple | Multiple | |||||||||
| Qwen3-8B | 78.92 | 95.00 | 91.50 | 89.00 | 88.60 | 80.23 | 77.21 | 81.25 | 75.00 | 77.79 |
| ToolACE-8B | 81.17 | 96.00 | 94.00 | 93.00 | 91.04 | 82.95 | 79.58 | 75.25 | 85.12 | 80.73 |
| GenesisFunc -8B | 86.85 | 97.25 | 96.15 | 93.00 | 93.31 | 88.25 | 80.50 | 81.50 | 84.88 | 83.78 |
| - multi-stage evaluation module | 85.17 | 97.00 | 96.00 | 92.50 | 92.68 | 87.00 | 80.00 | 81.25 | 84.05 | 83.08 |