Skip to content
KoishiAI
ไทย
← Back to all articles

TOUMAII: A 4.5M-Pair Tool-Calling Dataset and Its Synthetic Generator

Researchers have released TOUMAII, a 4.5 million preference pair dataset for improving AI agent tool-calling behavior, along with TOUMAII-Gen—a synthetic data pipeline that turns existing training data into high-quality preference signals for Direct Preference Optimization.

AI-drafted from cited sources, fact-checked against them by an automated pipeline, and read by a human editor for clarity. How we work · Standards · Report an error
Close-up of colorful coding text on a dark computer screen, representing software development.
Photo by Markus Spiske on Pexels

TL;DR: Researchers released TOUMAII, a 4.5 million-pair dataset that trains AI agents to recognize plausible errors in tool-calling via Direct Preference Optimization. This synthetic approach allows developers to build robust models without expensive human annotation, proving data quality outweighs raw scale.

Key facts

  • TOUMAII is a dataset containing approximately 4.5 million validated preference pairs designed to improve AI agent tool-calling behavior by contrasting correct calls with realistic failures.
  • The dataset builds upon the foundational Toucan dataset, originally developed by IBM and the University of Washington in 2021, which contained around 1.5 million tool-calling trajectories.
  • TOUMAII-Gen is a synthetic data pipeline that converts existing SFT datasets into high-quality preference signals for Direct Preference Optimization (DPO), supporting formats like Parquet files.
  • The system is source-agnostic and can process various tool-calling datasets, including Toucan and ToolACE, by simulating common model errors such as timing or formatting issues.
  • Fine-tuning a 3-billion-parameter model on TOUMAII demonstrated performance parity with other high-quality tool-calling datasets, proving the effectiveness of synthetic preference data.
  • All TOUMAII data and generator code are publicly available via GitHub (tum-ai/toumaii-gen) and Hugging Face collections for researchers and enterprise teams.

The Rise of Preference Data in AI Tool-Calling

AI agents are increasingly expected to perform complex, multi-step tasks by interacting with external tools—like APIs, databases, or web services. But simply teaching them the right call isn’t enough. What matters more is training them to recognize when a call is wrong, even if it looks plausible. This is where preference optimization comes in.

Enter TOUMAII: a new dataset containing approximately 4.5 million validated preference pairs—each comparing a correct tool call against a realistic alternative that failed due to timing, formatting, or logic errors [1]. Unlike earlier approaches that relied on supervised fine-tuning (SFT), which only teaches models what the right answer is, TOUMAII gives them contrast: it shows what happens when things go wrong. This shift is critical for building agents that don’t just follow instructions blindly but reason through real-world uncertainty.

From Toucan to TOUMAII: A Legacy Reimagined

TOUMAII builds on the foundational Toucan dataset, originally developed by IBM and the University of Washington in 2021 [8]. Toucan collected around 1.5 million tool-calling trajectories—sequences where models interacted with web services to complete tasks like analyzing sales reports or scheduling meetings [8]. However, those interactions were primarily used for SFT, meaning models learned to produce correct outputs but not how to avoid plausible mistakes.

The new TOUMAII dataset reprocesses these conversations into preference pairs. It captures both single-turn and multi-turn interactions, including cases where tools are called in sequence or parallel [1]. These pairs help train models to distinguish between a well-formatted API request and one that fails due to minor syntax issues—exactly the kind of failure that derails real-world agent workflows.

The Real Innovation: TOUMAII-Gen

What makes TOUMAII truly scalable is its synthetic generator, TOUMAII-Gen. This pipeline takes any existing SFT dataset—including Toucan or ToolACE—and automatically generates preference data by simulating common model errors [4]. It doesn’t just copy real failures; it learns from how models typically misbehave and creates plausible incorrect alternatives to contrast with correct ones.

The system supports multiple output formats, including Parquet files for DPO (Direct Preference Optimization) training and canonical SFT data. This source-agnostic design means researchers can use TOUMAII-Gen with any tool-calling dataset, not just Toucan [4]. A smaller preference dataset derived from ToolACE was released to demonstrate this flexibility [1].

Performance and Practical Impact

The team tested TOUMAII by fine-tuning a 3-billion-parameter model. The results showed performance parity with other high-quality tool-calling datasets, proving that synthetic preference data can match real-world signals in effectiveness [1]. This is a major win for the field: it means developers no longer need millions of hand-annotated comparisons to train robust agents.

Interestingly, earlier small open-source models trained on Toucan outperformed larger frontier models on benchmarks like BFCLv3 and MCP-Universe—suggesting that high-quality data can compensate for model size [8]. TOUMAII extends this insight: better training signals matter more than raw scale.

The Bigger Picture

TOUMAII arrives alongside other efforts to refine agent behavior. When2Call evaluates when models should or should not invoke tools, focusing on decision-making rather than execution [5]. Meanwhile, MPT (Multi-Session Personalized Tool Calling) explores how user preferences evolve across sessions, enabling agents to adapt over time [7].

Together, these advances show that tool-calling is no longer just about API accuracy. It’s about timing, context, failure recovery, and long-term user alignment—complexities that only preference-based training can address.

Availability and Access

All TOUMAII data—including the full 4.5 million pairs and the generator code—is publicly available via GitHub (tum-ai/toumaii-gen) and Hugging Face collections [2][4]. Researchers, startups, and enterprise teams can now bootstrap agent training without relying on scarce human annotations.

The release marks a turning point: from teaching AI what to do, to teaching it how to avoid doing the wrong thing—even when it looks right.

Sources

  1. TOUMAII: A 4.5M-Pair Tool-Calling Preference Dataset and Its Source-Agnostic Generator (arxiv.org) — 2026-11-19
  2. Toucan takes tool-calling to a whole new scale (research.ibm.com) — 2021-02-09
  3. GitHub - tum-ai/toumaii-gen: TOUMAII Data Generator Repo (github.com) — 2026-08-23
  4. When2Call: When (not) to Call Tools (arxiv.org) — 2026-01-31
  5. Latent Preference Modeling for Multi-Session Personalized Tool Calling (arxiv.org) — 2026-04-20
  6. TOUMAII: A 4.5M-Pair Tool-Calling Preference Dataset and Its Source-Agnostic Generator (arxiv.org) — 2026-08-27

Frequently asked questions

What is the TOUMAII dataset and how many preference pairs does it contain? ▼
TOUMAII is a dataset containing approximately 4.5 million validated preference pairs designed to improve AI agent tool-calling behavior. Each pair compares a correct tool call against a realistic alternative that failed due to timing, formatting, or logic errors.
How does the TOUMAII-Gen synthetic generator work? ▼
TOUMAII-Gen is a synthetic data pipeline that converts existing supervised fine-tuning (SFT) datasets into high-quality preference signals for Direct Preference Optimization. It works by simulating common model errors to create plausible incorrect alternatives that contrast with correct outputs.
What is the relationship between the Toucan dataset and TOUMAII? ▼
The dataset builds upon the foundational Toucan dataset, which originally collected around 1.5 million tool-calling trajectories for supervised fine-tuning. Unlike its predecessor, TOUMAII reprocesses these interactions into preference pairs to teach models how to avoid plausible mistakes rather than just producing correct outputs.
How effective is the TOUMAII dataset for training AI agents? ▼
Researchers tested TOUMAII by fine-tuning a 3-billion-parameter model, achieving performance parity with other high-quality tool-calling datasets. This demonstrates that synthetic preference data can match real-world signals in effectiveness without requiring millions of hand-annotated comparisons.
Where can I download the TOUMAII dataset and source code? ▼
The full 4.5 million pairs and the generator code are publicly available via GitHub (tum-ai/toumaii-gen) and Hugging Face collections. This open access allows researchers, startups, and enterprise teams to bootstrap agent training without relying on scarce human annotations.