STUN-Bench: Truly Unseen Tools for Evaluating Shared Tool Experience
Organizations: Arizona State University
Abstract
A tool router retrieves a few candidate tools per request and lets a language model choose. Methods that share experience across organizations add past requests about each tool to what the router retrieves. StableToolBench calls some of its test groups tests on "unseen" tools, yet the ToolBench instruction pool, which retrievers and experience-sharing methods learn from, contains every test query and labels every gold tool of the two single-tool groups among them. We release STUN-Bench (StableToolBench, Truly UNseen), a split whose experience pool has no item that labels or names 172 held-out tools. Unseen here means absent from shared experience and retriever training data, not from pretraining. On the split we find crowding: experience pooled from five simulated clients, added to an index of tool descriptions, outranks the descriptions of tools no client has used, which then often drop out of the candidate list. Under the Jina-v2 retriever, routing accuracy on held-out tools falls from 0.534 to 0.278. Retrievers trained for tool retrieval lose much less, and keeping experience in a separate index recovers most of the loss under Jina-v2. The split also reverses a conclusion: with every test tool labeled in the pool and our default leak filter applied, shared experience beats descriptions alone; on STUN-Bench it falls below them. The split, leak filter and evaluation harness are available at https://github.com/<org>/STUN-Bench.
Figures & tables
| Term | Meaning | § |
|---|---|---|
| Leak-filtered pool | ToolBench pool without exact or near-duplicate test queries | 3 |
| STUN-Bench | our split: no experience item labels or names 172 held-out tools | 4 |
| Held-out, labeled queries | test queries whose gold tools are all held out (309), and the rest (420) | 4 |
| Clean, label-kept, raw models | BGE-base trained on the STUN-Bench pool, a same-size sample of the leak-filtered pool, and the raw pool | 4 |
| Compendium | one client’s experience: per tool, usage scenarios written as requests, precautions and API names | 5 |
| Description index ( Docs-only ) | tool descriptions only | 5 |
| held-out (309) | labeled (420) | |||
| Arm | acc | R@5 | acc | R@5 |
| Jina-v2 | ||||
| Docs-only | 0.534 | 0.689 | 0.524 | 0.660 |
| Shared index, Spur | 0.278 .006 | 0.333 .006 | 0.528 .009 | 0.659 .009 |
| Two-index router | 0.520 .002 | 0.614 .002 | 0.553 .015 | 0.724 .009 |
| Centralized | 0.284 .007 | 0.335 .007 | 0.523 .019 | 0.658 .015 |
| STUN-Bench | ToolBench G1 | Independent | ||||
|---|---|---|---|---|---|---|
| Retriever | docs | shared | docs | shared | docs | shared |
| Jina-v2 | .689 | .335 .007 | .763 .003 | .263 .005 | .169 .027 | .112 .020 |
| BGE-base | .764 | .502 .012 | .847 | .360 .009 | .181 .030 | .112 .031 |
| BM25 | .689 | .421 .003 | .713 .007 | .530 .008 | .136 .011 | .058 .013 |
| Qwen3-Emb-8B | .790 | .454 .008 | – | – | .117 .022 | .102 .021 |
| ToolBench-IR § | .974 | .924 .007 | – | – | .005 .001 | .000 |
| Leak-filtered | STUN-Bench | ||
|---|---|---|---|
| Arm | all (729) | all (729) | held-out (309) |
| Docs-only | .528 | .528 | .534 |
| Shared index, Spur | .587 | .422 .003 | .278 .006 |
| Query classifier | .817 | – | .000 |
Appendix figures & tables27 assets
Supplementary material from the paper’s appendix.
Appendix
| Arm | subset, 0% | subset, 60% | full 729 | R@5 |
|---|---|---|---|---|
| Spur | .599 .010 | .581 .029 | .587 | .728 |
| Concat | .593 .007 | .593 .010 | .585 .007 | .724 |
| G1 | G2 | G3 | |||||
| Arm | instr. | tool † | cat. † | instr. | cat. † | instr. | all |
| (153) | (152) | (134) | (105) | (124) | (61) | (729) | |
| Local-only | .501 | .479 | .496 | .322 | .306 | .283 | .418 |
| Docs-only | .562 | .546 | .537 | .533 | .460 | .508 | .528 |
| Spur | .619 | .627 | .649 | .571 | .479 | .514 | .587 |
| Centralized | .614 | .616 | .652 | .562 | .489 | .525 | .585 |
| Llama-3.1-8B | Qwen2.5-7B | ||||
|---|---|---|---|---|---|
| Merge | Rendered as | 0% | 60% | 0% | 60% |
| typed | typed fields | .583 .018 | .575 .026 | .588 .030 | .581 .014 |
| typed | one JSON string | .581 .014 | .559 .016 | .580 .022 | .558 .021 |
| flat | decoded fields | .497 .026 | .501 .018 | .522 .011 | .539 .015 |
| flat | one JSON string | .534 .023 | .539 .012 | .549 .014 | .555 .009 |
| R@5 of frozen lists, typed / flat | .764 / .811 | .769 / .822 | same lists | ||
| Arm | retr. top-1 | routed | gold ins. |
|---|---|---|---|
| Spur | .476 | .587 | .612 .012 |
| Centralized | .478 | .585 | .613 .010 |
| Docs-only | .422 | .528 | .658 |
| Query classifier | – | .817 | (no retrieval) |
| Paradigm (examples) | Exchanged unit | Frozen, heterog. | Privacy unit | Conflict |
|---|---|---|---|---|
| Weight / adapter FL Ye et al. (2024) ; Wu et al. (2024a) | parameters | no | gradient / adapter | averaged away |
| Distillation FL Li and Wang (2019) ; Lin et al. (2020) | logits on a shared set | yes, with shared data | prediction vector | averaged away |
| Federated RAG Zhao (2024) ; Addison et al. (2024) | passages / embeddings | yes | passage | none (both retrieved) |
| Federated prompts Chen et al. (2025) ; Wang et al. (2025b) | prompt text / examples | yes | whole text | none or overwritten |
| Concat. compendium (FICAL Wu et al. (2024b) ; Concat ) | named parts, concatenated | yes | whole text | none (both kept) |
| Typed compendium ( Spur ) | schema-validated fields | yes | per field | field majority + dissent log |
| Source | Exclusion rule | Exact overlap with StableToolBench test queries |
|---|---|---|
| Raw ToolBench instruction pool | none | 765/765 raw test queries (783 pool rows) |
| Official ToolBench retriever example | single-tool query file minus the single-tool instruction test ids only | 314/765 remain (3 G1-instruction duplicates, 158 G1-tool, 153 G1-category) |
| ToolLLaMA fine-tuning preprocessing | no test-id exclusion; released train file is pre-split | not auditable from the script alone |
| Our post-junk experience pool | junk-tool filter only | 729/729 post-junk queries; 196,023 items |
| Our leak-filtered pool | all six evaluation groups removed: exact matches and Jina cosine | 745 exact and 1,171 near-duplicate rows removed; 194,107 items |
| Our label-held-out pool | leak-filtered pool minus held-out-tool labels and mentions | 90,704 items; no held-out labels |
| Training data | G1-tool † | G1-cat. † | G1-instr. |
|---|---|---|---|
| A: released training set | .696 .034 | .777 .019 | .721 .011 |
| B: held-out tools removed | .330 .041 | .307 .043 | .739 .026 |
| C: size-matched raw sample | .705 .023 | .827 .026 | .695 .021 |
| Released checkpoint | .953 | .982 | .981 |
| Method | Venue | Learns | Draws from | Q-excl. | T-excl. |
|---|---|---|---|---|---|
| ToolLLaMA ‡ Qin et al. (2024) | ICLR’24 | agent + retriever | official G123 train | one id list (retriever) | not stated |
| ToolGen Wang et al. (2025a) | ICLR’25 | memorize + retrieve + agent | full pools; all 47k APIs | not stated | not stated |
| COLT Qu et al. (2024) | CIKM’24 | tool retriever | raw I2/I3, own 90/10 split | own | not stated |
| Re-Invoke baseline Chen et al. (2024b) | EMNLP-F’24 | ToolLLM retriever | full pools (eval on pools) | n.a. | n.a. |
| ProTIP Anantha et al. (2023) | arXiv’23 | retriever + planner | ToolBench train/test (cleaned) | existing split | not stated |
| ToolRet-train Shi et al. (2025b) | ACL-F’25 | tool retrievers | ToolBench training sets | not stated | not stated |
| held-out (309) | labeled (420) | |||
|---|---|---|---|---|
| Arm | acc | R@5 | acc | R@5 |
| Separate index a | 0.531 | 0.686 | – | – |
| Two-index, RRF | 0.234 .018 | 0.331 .009 | 0.511 .027 | 0.673 .010 |
| Docs-only , gold ins. | 0.644 | ins. 0.343 | – | – |
| Spur , gold ins. b | 0.526 .002 | ins. 0.699 .006 | – | – |
| Run | Departure from the default protocol |
|---|---|
| Local-only , split | seeds 42/456; seed 123 stopped on an underfilled list |
| Held-out gold insertion | persisted retriever-comparison compendium of the same split |
| Separate-index row | 309 held-out and an 80-query labeled subset; held-out cells only |
| Contradiction grid, Flat-majority | fixed-depth candidate lists; Flat-majority rendered as 200 characters |
| Contradiction seeds | 7/42/456/1234; round-delayed policy and 20% column use three |
| 0.90 filter, Spur , Centralized | seed 42 only |
| Retriever | Arm | held-out | labeled | all |
|---|---|---|---|---|
| Jina-v2 | Docs-only | .534 | .524 | .528 |
| Jina-v2 | shared index | .278 .006 | .528 .009 | .422 .003 |
| Jina-v2 | two-index router | .520 .002 | .553 .015 | .539 .008 |
| Jina-v2 | two-index, RRF | .234 .018 | .511 .027 | .394 .014 |
| BM25 | Docs-only | .576 | .550 | .561 |
| BM25 | two-index router | .538 .007 | .618 .012 | .584 .010 |
| held-out | labeled | mixed | ||||
| Arm | Acc | R@5 | Acc | R@5 | Acc | R@5 |
| 5+0 ( Docs-only ) | .534 | .689 | .512 | .641 | .575 | .738 |
| 4+1 | .521 .003 | .650 | .556 .012 | .723 .010 | .588 .013 | .721 .014 |
| 3+2 (router) | .519 .004 | .612 | .552 .012 | .730 .012 | .562 .012 | .696 .014 |
| 2+3 | .490 .004 | .560 | .547 .003 | .726 .010 | .512 .025 | .621 .019 |
| 1+4 | .428 .005 | .447 | .547 .016 | .714 .006 | .492 .007 | .583 .007 |
| cos | cos | |||
|---|---|---|---|---|
| Arm | acc | R@5 | acc | R@5 |
| Docs-only | .528 | – | .528 | .672 |
| Spur | .587 | – | .480 | .649 |
| Centralized | .585 | – | .479 | .647 |
| Concat | .585 .007 | .724 | .532 .010 | .687 .005 |
| Query classifier | .817 | – | .774 .032 | – |
| Retriever | gold desc. | nearest exp. | exp. gold | exp. gold | loss |
|---|---|---|---|---|---|
| Jina-v2 | 0.798 | 0.839 | 0.041 | .784 | 35.4 |
| Qwen3-Emb-8B | 0.823 | 0.861 | 0.038 | .710 | 33.6 |
| BM25 † | 43.46 | 51.99 | 8.52 | .666 | 26.8 |
| BGE-base | 0.692 | 0.709 | 0.018 | .586 | 26.2 |
| BGE, clean | 0.665 | 0.602 | 0.063 | .360 | 7.1 |
| ToolRet-e5 | 0.709 | 0.649 | 0.060 | .222 | 1.7 |
| no held-out gold (340) | mixed (80) | |||
|---|---|---|---|---|
| Arm | acc | R@5 | acc | R@5 |
| Docs-only | .707 .007 | .937 .006 | .700 .025 | .900 .022 |
| Shared index | .724 .013 | .940 .007 | .629 .007 | .854 .031 |
| Two-index router | .679 .025 | .948 .007 | .663 .038 | .854 .029 |
| Filter | Arm | accuracy | held-out | ||
|---|---|---|---|---|---|
| held-out | labeled | all | R@5 | ||
| 0.95 | Docs-only | .687 .010 | .706 .006 | .698 .006 | .878 |
| 0.95 | shared index | .665 .019 | .706 .011 | .688 .013 | .807 |
| 0.95 | two-index router | .723 .005 | .676 .013 | .696 .007 | .821 |
| 0.90 | Docs-only | .676 .015 | – | .692 .013 | .873 |
| 0.90 | shared index | .654 .010 | – | .682 .002 | .805 |
| descriptions | shared index | two-index router | |||||
|---|---|---|---|---|---|---|---|
| Training filter | Pool | held-out | labeled | held-out | labeled | held-out | labeled |
| cos | Split | .878 .004 | .930 .005 | .807 .002 | .924 .009 | .821 .002 | .930 .005 |
| cos | Indep. | .219 .039 | .237 .022 | .216 .038 | .298 .030 | .174 .039 | .296 .028 |
| cos | Split | .873 .013 | .917 .004 | .805 .011 | .924 .010 | .808 .005 | .927 .010 |
| cos | Indep. | .219 .037 | .240 .023 | .215 .035 | .299 .032 | .180 .035 | .296 .031 |
| Label-kept, 0.90 | Split | .929 .012 | – | .879 .013 | – | .875 .008 | – |
| Pool | items | pairs | train | updates |
|---|---|---|---|---|
| Clean (0.95) | 90,704 | 137,392 | 134,645 | 1,051 |
| Label-kept | 90,704 | 147,640–147,924 | 144,688–144,966 | 1,130–1,132 |
| Size-m. raw | 90,704 | 147,302 | 144,356 | 1,127 |
| Full raw | 196,023 | 318,412 | 312,044 | 2,437 |
| Clean (0.90) | 87,599 | 133,068 | 130,407 | 1,051 f |
| Label-kept (0.90) | 87,599 | 143,430–143,658 | 140,562–140,785 | 1,051 f |
| held-out (310) | labeled (358) | |||
| Retriever | docs | shared | docs | shared |
| Jina-v2 | .639 | .352 .009 | .707 | .676 .007 |
| BGE-base | .732 | .539 .006 | .788 | .755 .004 |
| BM25 | .677 | .566 .007 | .715 | .809 .006 |
| Jina routing accuracy | ||||
| Docs-only | .506 | .550 | ||
| one owner ( ) | held-out ( ) | other labeled | ||||
|---|---|---|---|---|---|---|
| Arm | acc | R@5 | acc | R@5 | acc | R@5 |
| Docs-only | .544 | .684 | .534 | .689 | .529 | .673 |
| Local-only | .425 .005 | .520 .003 | .411 | .494 | .354 | .438 |
| Spur | .605 .028 | .745 .024 | .293 | .345 | .496 | .615 |
| Concat | .600 .011 | .745 .019 | .294 | .345 | .498 | .611 |
| Two-index router | .566 .013 | .750 .007 | .505 | .612 | .572 | .738 |
| held-out R@5 | labeled R@5 | ||||||
| Expansion | Retriever | synth. | +exp. | capped | synth. | +exp. | capped |
| Template | Jina-v2 | .706 | .357 .005 | .387 .005 | .667 | .653 .010 | .613 .028 |
| Template | BGE-base | .728 | .553 .006 | .565 .008 | .733 | .737 .006 | .720 .008 |
| Template | BM25 | .699 | .358 .007 | .376 .005 | .757 | .784 .010 | .763 .014 |
| Generated | Jina-v2 | .602 | .462 .002 | .547 .009 | .543 | .685 .007 | .633 .010 |
| Generated | BGE-base | .615 | .608 .003 | .696 .006 | .600 | .670 .006 | .655 .013 |
| all 729 | held-out | labeled | ||||
|---|---|---|---|---|---|---|
| Candidate index | acc | R@5 | acc | R@5 | acc | R@5 |
| Descriptions | .667 | .967 | .650 | .961 | .679 | .971 |
| Shared | .523 .009 | .725 .007 | .400 .010 | .558 .008 | .613 .009 | .848 .006 |
| held-out | labeled | |||
|---|---|---|---|---|
| Candidates from | docs | comp. | docs | comp. |
| description index | .540 | .534 | .531 | .524 |
| shared index | .296 | .289 | .524 | .517 |
| Difference (held-out) | pts | tool-clustered 95% CI |
|---|---|---|
| Spur Docs-only , accuracy | ||
| Jina, shared docs, R@5 | ||
| Qwen3, shared docs, R@5 | ||
| ToolRet-e5, shared docs, R@5 | ||
| BGE raw clean, R@5 | ||
| BGE size-matched clean, R@5 |
| Pool | Retriever | pairs | docs | shared | d/s | |
|---|---|---|---|---|---|---|
| Split | Jina-v2 | 927 | .689 | .335 | 328/0 | |
| Split | BGE-base | 927 | .764 | .502 | 243/0 | |
| Split | BM25 | 927 | .689 | .421 | 253/4 | |
| Split | Qwen3-Emb-8B | 927 | .790 | .454 | 311/0 | |
| Split | ToolRet-e5 | 927 | .845 | .827 | 16/0 | |
| Split | BGE, clean | 927 | .878 | .807 | 66/0 |
| Arm | step acc. | task succ. | steps |
|---|---|---|---|
| Plain | .596 .036 | .297 .046 | 264 |
| Docs-only | .679 .012 | .364 .048 | 264 |
| Spur | .663 .025 | .370 .010 | 264 |
| Centralized | .672 .019 | .358 .038 | 264 |