TOUMAII: A 4.5M-Pair Tool-Calling Preference Dataset and Its Source-Agnostic Generator
Organizations: Technical University of Munich TUM.ai · Zuse School ELIZA · IBM Research
Abstract
To autonomously execute multi-step tasks, enterprise agents must reliably interact with tools, call APIs, or query databases, making tool-calling a fundamental capability of AI models. Supervised fine-tuning (SFT) optimises for producing the correct call, but never contrasts it with a plausible incorrect one. In an environment where even a minor formatting error can invalidate a call and an incorrect decision can derail the interaction, direct preference optimisation (DPO) targets exactly this contrast. DPO, therefore, requires preference pairs rather than plain demonstrations. For tool-calling, such data, especially in realistic multi-turn settings, remains extremely scarce. To address this scarcity, we introduce TOUMAII, a large-scale tool-calling preference dataset containing ~4.5M validated preference pairs, derived from Agent-Ark/Toucan-1.5M (apache-2.0) conversations. The dataset consists of multi- and single-turn interactions and includes parallel and sequential function calls. Additionally, we release TOUMAII-Gen, a synthetic data generation pipeline that consumes tool-calling SFT datasets and generates a preference dataset with naturally occurring model-generated tool-calling failure modes. To validate the effectiveness of our DPO data, we fine-tune a 3-billion-parameter model, achieving performance parity with other high-quality tool-calling preference datasets. Furthermore, we release a second small preference dataset derived from ToolACE (apache-2.0), showcasing the source-agnostic nature of our pipeline. We release the complete code and datasets: https://github.com/tum-ai/toumaii-gen and https://huggingface.co/collections/tum-ai/toumaii-generated-datasets
Figures & tables
| Overall | Non-live AST | Live | Multi-turn | Memory | |
|---|---|---|---|---|---|
| Base model | 37.76 | 87.04 | 76.54 | 23.00 | 33.55 |
| + ToolRM | |||||
| + TOUMAII |
Appendix figures & tables17 assets
Supplementary material from the paper’s appendix.
Appendix
| Partition | Generator model | MT–MC | MT–SC | ST–MC | ST–SC | Total |
|---|---|---|---|---|---|---|
| Kimi-K2 | Qwen3-0.6B | 102,209 | 131,131 | 34,914 | 44,312 | 312,566 |
| Qwen3-1.7B | 61,930 | 86,979 | 21,721 | 30,929 | 201,559 | |
| Gemma-4-E2B-it | 62,592 | 96,091 | 21,207 | 32,575 | 212,465 | |
| Granite-4.0-350M | 94,081 | 132,927 | 26,229 | 30,522 | 283,759 | |
| Granite-4.0-1B | 62,949 | 78,669 | 23,480 | 25,221 | 190,319 | |
| Granite-4.1-3B | 57,809 | 68,687 | 20,807 | 21,261 | 168,564 |
| Kimi-K2 | OSS | Qwen | Total | |
| Generated candidate pairs | 3,265,902 | 3,276,094 | 3,106,708 | 9,648,704 |
| reference-identical pair (zero reward difference) | 1,131,835 | 841,087 | 822,975 | 2,795,897 |
| long free-text value in chosen response ( words) | 531,759 | 486,280 | 634,153 | 1,652,192 |
| rejected response equals a later chosen turn | 29,973 | 25,569 | 25,776 | 81,318 |
| Rows removed as invalid tool errors | 1,670,873 | 1,338,784 | 1,461,683 | 4,471,340 |
| Cross-subset duplicates (multi-turn vs. single-turn) | 225,797 | 203,253 | 232,811 | 661,861 |
| Generator model | MT–MC | MT–SC | ST–MC | ST–SC | Total |
|---|---|---|---|---|---|
| Qwen3-0.6B | 50 | 405 | 3,097 | 13,965 | 17,517 |
| Qwen3-1.7B | 44 | 416 | 2,815 | 14,039 | 17,314 |
| Gemma-4-E2B-it | 34 | 346 | 2,731 | 13,927 | 17,038 |
| Granite-4.0-350M | 40 | 327 | 2,751 | 13,781 | 16,899 |
| Granite-4.0-1B | 38 | 245 | 2,393 | 13,178 | 15,854 |
| Granite-4.1-3B | 32 | 274 | 2,382 | 13,536 | 16,224 |
| ToolACE | |
| Generated candidate pairs | 130,782 |
| reference-identical pair (zero reward difference) | 29,605 |
| long free-text value in chosen response ( words) | 264 |
| rejected response equals a later chosen turn | 288 |
| Rows removed as invalid tool errors | 29,880 |
| Cross-subset duplicates (multi-turn vs. single-turn) | 56 |
| Base model | ibm-granite/granite-4.1-3b |
|---|---|
| LoRA rank / / dropout | 64 / 64 / 0.0 |
| LoRA target modules | Attention and MLP projections ( q/k/v/o , gate/up/down ) |
| DPO | 0.1 |
| Optimiser / learning rate / schedule | AdamW (fused) / / linear with 5% warmup |
| Effective batch size | 64 ( ) |
| Epochs per slice | 1 |
| Base | ToolRM slice | TOUMAII slice | |||||||
| Metric | – | 000 | 001 | 002 | 003 | 000 | 001 | 002 | 003 |
| Overall | |||||||||
| Overall accuracy | 37.76 | 36.57 | 35.78 | 36.20 | 35.63 | 37.58 | 37.26 | 36.62 | 36.58 |
| Non-live | |||||||||
| Non-live AST | 87.04 | 86.38 | 86.48 | 86.10 | 86.25 | 86.85 | 86.81 | 86.58 | 86.98 |
| Simple AST | 75.67 | 74.50 | 73.42 | 74.42 | 74.50 | 74.42 | 74.75 | 73.83 | 74.42 |
LLM Tool Use
Large language model tool use studies how models select, call, and coordinate external tools to extend their reasoning and take actions.
See all 317 papers