TOUMAII

A 4.5M-Pair Tool-Calling Preference Dataset
and Its Source-Agnostic Generator

Moritz Pötzsch1,2,†Andrea Gentilini1,2,3,†Lisa Rossgoderer1,†Tom Osterfeld1,2,†Kesava Prasad Sanjivi Arul1,2,†Swanand Ravindra Kadhe4

1TUM.ai2Technical University of Munich3Zuse School ELIZA4IBM Research

† Equal contribution

Accepted to the NeurIPS 2026 AABA4ET Workshop

Converting tool-use demonstrations into reference-annotated preference pairs,
with naturally occurring model-generated deviations.

TOUMAII-Gen overview: source adapters map demonstrations to a canonical format; a model pool generates alternatives; post-processing assesses and filters pairs for canonical, DPO and SFT export.
TOUMAII-Gen. A source-agnostic pipeline converts tool-calling demonstrations into preference pairs. The same core supports Toucan, ToolACE and new sources through lightweight adapters.

Abstract

Reliable tool use is a fundamental capability of autonomous agents, but supervised demonstrations alone do not explicitly contrast a reference call with a plausible alternative. Tool-calling preference data, particularly for multi-turn interactions, remains scarce. We introduce TOUMAII, a dataset of 4,515,503 retained preference pairs derived from quality-filtered Toucan conversations, covering single- and multi-turn interactions with sequential and parallel function calls. We also release TOUMAII-Gen, a source-agnostic pipeline that pairs source references with naturally occurring model-generated responses and annotates their agreement with the reference. Applying the same pipeline to ToolACE produces TOUMAII-ACE, with an additional 100,846 pairs. A controlled fine-tuning comparison on Granite-4.1-3B demonstrates competitive downstream performance against ToolRM training data on BFCL v4.

QUALITATIVE ANALYSIS

Reference–candidate comparisons

Four appendix examples illustrate argument-value deviations, incomplete call coverage, failure to incorporate feedback and failure to invoke an available tool.

✓ Chosen responseREFERENCE
ToolRL reward
1.00
↘ Rejected response
ToolRL reward
OBSERVATION

Examples are abridged from the paper; function-name prefixes are omitted in the weather examples. Rewards measure agreement with the reference, not execution success.

Contributions

01

Large-scale preference data

4.52M pairs across four interaction categories, retaining conversation context, tool catalogues and reward annotations.

02

A source-agnostic generator

A shared canonical representation separates dataset-specific adapters from generation, annotation and export.

03

Transparent validation

Original distribution figures, explicit filtering rules and a fixed-protocol downstream comparison.

4.5M

retained preference pairs

6

generator models, 3 families

4

interaction categories

2

source datasets demonstrated

METHOD

Source-agnostic preference generation

A shared response-level representation preserves source references while making generation and annotation independent of dataset formatting.

For a target assistant turn t, a source adapter provides the conversation identifier, preceding history ht−1, tool catalogue T and reference response C. A generator samples an alternative response R from the same history and catalogue; non-identical candidates are assessed and post-processed.

{ id, ht−1, T, C } ⟶ { id, ht−1, T, C, R }

Generation

The released Toucan-derived dataset uses six generators from three model families: Granite-4.0-350M, Granite-4.0-1B, Granite-4.1-3B, Qwen3-0.6B, Qwen3-1.7B and Gemma-4-E2B-it. Thinking is disabled throughout generation.

Reference-based assessment

Following ToolRL, format and correctness terms score function names and argument key–value pairs against the reference. Their sum is min–max normalised from [−3, 4] to [0, 1]. A separate weighted score exposes format, soft/strict name and argument components.

score = wf Rformat + wns Rname-soft + wnst Rname-strict + wa Rargswf + wns + wnst + wa

Interpretation. These annotations quantify reference agreement; they do not establish execution success or semantic invalidity. A chosen call can be an intermediate step that is corrected later in a successful trajectory.

Post-processing and reproducibility

The paper removes reference-equivalent pairs, chosen responses with long free-text argument values (>30 words), rejected calls that match a later chosen turn, and cross-subset duplicates. This retains 46.8% of 9,648,704 candidates. The code exports canonical, DPO and SFT Parquet views alongside a run manifest; the documented cleaning stage is run separately.

Source-agnostic by design. Add a lightweight adapter to bring your own tool-calling SFT dataset.

Original pipeline figure ↗
DATASET CHARACTERISATION

Composition and reward distributions

4,515,503 preference pairs derived from quality-filtered Toucan trajectories. Sequential and parallel calls, across single- and multi-turn interactions.

TOUMAII / SOURCE PARTITIONS
Kimi-K21,369,232
OSS1,734,057
Qwen1,412,214
9.65M candidates → 4.52M retained46.8%

After reference-agreement filtering and de-duplication. Counts from the paper.

FOUR WAYS TO INTERACT
ST–SCSingle turn
Single call
● → ◇
ST–MCSingle turn
Multiple calls
● → ◇ ◇
MT–SCMultiple turns
Single call
● ● → ◇
MT–MCMultiple turns
Multiple calls
● ● → ◇ ◇
Open full figure ↗
Original paper figure: preference pair composition across source partitions, six generator models and four interaction categories
From the paper: composition across generator models and interaction categories for Kimi-K2, OSS and Qwen.
↗

Transfer to a second source: TOUMAII-ACE

Applying the same pipeline to ToolACE yields 100,846 additional preference pairs, demonstrating source transfer beyond Toucan.

Explore the collection ↗
EXPERIMENTS

Controlled downstream evaluation

Granite-4.1-3B fine-tuned with equally weighted DPO and SFT losses. BFCL v4 results summarise four non-overlapping data slices at a fixed training seed.

Experimental protocol

TOUMAII and ToolRM are converted to the same prompt–chosen–rejected format with the Granite chat template. Examples exceeding 2,048 tokens are dropped rather than truncated. Each corpus is shuffled with seed 42 and divided into four non-overlapping slices of at most 50,000 pairs. Each run starts a new LoRA adapter from the same base checkpoint and trains for one epoch; architecture, optimisation, training budget, checkpoint schedule and evaluation are held constant.

LoRA rank / α
64 / 64
DPO β
0.1
Learning rate
1 × 10−6
Effective batch
64
Precision / hardware
BF16 / 1× MI300X
Overall accuracy
37.01%± 0.49 pp
Live accuracy
77.55%± 0.17 pp
BFCL v4 accuracy (%)
MetricBase+ ToolRM+ TOUMAII
Overall37.7636.05 ± 0.4337.01 ± 0.49
Live76.5475.20 ± 0.1077.55 ± 0.17
Non-live AST87.0486.30 ± 0.1686.81 ± 0.17
Multi-turn23.0021.03 ± 0.7021.19 ± 0.56
Memory33.5528.33 ± 1.3334.68 ± 1.12

TOUMAII improves live and memory accuracy over the base model; overall and multi-turn accuracy remain below the base. Reported ± values are sample standard deviations across data slices.

Limitations and interpretation

Reward annotations measure agreement with reference tool calls, rather than execution-level or semantic correctness. Some alternatives may be valid, and references can contain intermediate errors corrected later in the trajectory. TOUMAII currently contains no irrelevance samples, and thinking was disabled during generation. Source and generator limitations carry into the released data.

REPRODUCIBILITY

Data access and generation

Use the released data, generate preference pairs from a supported source, or adapt the pipeline to your own tool-use demonstrations.

Citation

If you use TOUMAII or TOUMAII-Gen in your research, please cite the accompanying paper.

TOUMAII.bib
@misc{poetzsch2026toumaii,
  title = {{TOUMAII}: A 4.5M-Pair Tool-Calling Preference Dataset
           and Its Source-Agnostic Generator},
  author = {Moritz Pötzsch and Andrea Gentilini and Lisa Rossgoderer and
            Tom Osterfeld and Kesava Prasad Sanjivi Arul and Swanand Ravindra Kadhe},
  year = {2026},
  eprint = {2611.26722},
  archivePrefix = {arXiv},
  primaryClass = {cs.AI},
  url = {https://arxiv.org/abs/2611.26722}
}

Selected references

Background and source datasets cited in the manuscript.

  1. Xu et al. TOUCAN: Synthesizing 1.5M Tool-Agentic Data from Real-World MCP Environments. 2025.
  2. Liu et al. ToolACE: Winning the Points of LLM Function Calling. 2025.
  3. Qian et al. ToolRL: Reward is All Tool Learning Needs. 2025.
  4. Agarwal et al. ToolRM: Outcome Reward Models for Tool-Calling Large Language Models. 2025.
  5. Rafailov et al. Direct Preference Optimization: Your Language Model is Secretly a Reward Model.