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
Figure 1: Crowding, as an illustration (not real data). The air-quality API is new and has only its description. (a) Searching descriptions puts it among the five candidates. (b) Adding stored requests about used tools (quoted, with the tool each describes) to the same index fills the five candidates, and the reranker never sees the right tool. STUN-Bench measures how often this happens (§ 6 ).
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
Table 1: Terms used throughout. Accuracy is top-1 routing accuracy; recall@5 counts a gold tool among the five candidates.
Figure 2: From the ToolBench pool to STUN-Bench. Top: the experience pools; dashed arrows lead to the BGE retriever trained on each pool (§ 4 also uses a 90,704-item raw sample and versions filtered at cosine 0.90). Bottom: the test side. The held-out tool set H defines the 103,403 removed items, 20,289 by the label rule and 83,114 by the mention rule.
Figure 3: Exposure in training raises held-out recall, and pooled experience lowers it. (a) The BGE recipe trained on four pools (§ 4 ; clean and label-kept at the 0.95 filter, raw pools unfiltered; 0.90 results in Tab. 21 ), on held-out tools and the independent corpus. (b) Held-out recall@5 on STUN-Bench from descriptions and the shared index; labels: loss in points. Right of the dashed line: tool-trained retrievers, exposed (ToolRet-e5) and clean. Three seeds.
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
Table 2: Under Jina the shared index halves held-out accuracy. Clean retriever training shrinks the loss. With the clean retriever, the two-index router trades labeled for held-out accuracy. Seeds 42/123/456. Two-index router: three description and two experience slots. Acc: top-1, correct on any gold tool. R@5: recall@5. Labeled includes 80 mixed queries (Tab. 19 ); diagnostic arms in Tab. 13 . † Seeds 42/456. a Trained on the label-held-out pool.
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
Table 3: Each general-purpose retriever loses held-out recall@5 from the shared index on each pool it was run on, and tool-trained retrievers lose less. Columns: description index (docs) and shared index on the three pools of § 5 . § Released ToolBench retriever. ¶ Clean model; not run on ToolBench G1, whose held-out tools it was trained on. ∗ ToolRet’s released E5-base tool retriever; not run on the independent pool, built from the same ToolRet benchmark. # Label-kept and ‡ raw-pool versions of the clean recipe.
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
Table 4: The split reverses the comparison of shared experience with descriptions. Routing accuracy under Jina-v2 and Llama-3.1-8B, three seeds. Leak-filtered: every test tool labeled, filter at cosine 0.95 (Tab. 6 ). STUN-Bench: Tab. 15 and Tab. 2 .
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
Appendix
Table 5: Typed merging and plain concatenation are equivalent within a 2-point margin on all 729 queries at the 0.95 filter; at 60% contradiction no difference is detected but equivalence is not shown. Concat : no clustering, majority, or conflict handling. Subset: G1+G2-instruction ( n=258 ) at 0% and 60% injected contradiction.
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
Appendix
Table 6: With every test tool labeled, the lexical classifier leads every LLM arm in every group, including the “unseen” ones. Routing accuracy on the leak-filtered pool, three seeds; K=5 clients, 5,000 items each. † Called unseen by ToolBench; the raw pool labels these tools (§ 3 ).
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
Appendix
Table 7: For the typed merge, rendering fields or one JSON string makes no detected difference. Merge crossed with rendering on frozen candidate lists (G1+G2-instruction, n=258 ; seeds 42/123/456). Both models rerank byte-identical lists, so recall@5 is a property of the merge. Qwen2.5-3B (App. F ) shows the same pattern.
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)
Appendix
Table 8: Forcing the gold tool into the candidates lifts descriptions by 13 points and the compendium by only 2.5. All 729 queries, three seeds. Retrieval top-1: highest-ranked distinct tool, no reranker. Gold ins.: the gold tool replaces the lowest-ranked non-gold candidate, then the same reranker runs.
Figure 4: Injected contradiction on G1+G2-instruction ( n=258 ). No difference among the three typed policies is detected at any rate. Flat-majority ’s candidates were rendered as their first 200 characters, so we draw no claim from it.
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
Appendix
Table 9: What each federation paradigm exchanges and what its merge can therefore check. The last row is the typed unit under test. Under controls, App. B detects no accuracy advantage over the concatenated compendium ( Concat ); the other rows were not compared experimentally.
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
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 ≥0.95
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
Appendix
Table 10: Only tool-level exclusion removes the held-out tools. The official retriever example still leaves 314 of 765 test queries in the pool. Data lineage: which exclusion each source applies and how much test-query overlap remains.
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
Appendix
Table 11: Removing the held-out tools’ items cuts recall on the unseen groups. A size-matched raw sample does not. ToolBench’s retriever retrained on three training sets, recall@5 on ToolBench’s official retrieval evaluation, three seeds. † Called unseen.
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
Appendix
Table 12: Published methods that learn from ToolBench data and evaluate on ToolBench or StableToolBench. Q-/T-excl.: whether the paper states that test queries / held-out tools were excluded (statements, not code). Own: the paper’s own split. n.a.: no held-out-tool group. ‡ Code inspected (App. E ). For ToolLLaMA, the retriever recipe was also retrained (Tab. 11 ).
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
–
–
Appendix
Table 13: Diagnostic arms on STUN-Bench under Jina, mean ± SD over seeds 42/123/456. Gold insertion lifts both arms but leaves the shared index below descriptions. Rank fusion loses held-out tools. a Separate index: candidates come from the description index only and are reranked with the compendium rendering. Experience never enters retrieval, unlike in the two-index router. RRF: reciprocal-rank fusion of the two indices. Gold ins.: the gold tool replaces the lowest-ranked non-gold candidate. Ins.: share of queries that needed it. b Separate compendium of the split.
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
Appendix
Table 14: Runs that depart from the default protocol of § 5 (three seeds, five-distinct-tool walk-down capped at 200 entries, full rendering). Each departure is explained where the run is reported.
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
Appendix
Table 15: Two-index router by retriever on the split, three seeds. Two-index router: three description and two experience slots. RRF: reciprocal-rank fusion of the two rankings.
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
Appendix
Table 16: More experience slots cost held-out accuracy without raising labeled accuracy, and mean aggregation shrinks but does not remove the shared index’s held-out loss. Jina-v2 and Llama-3.1-8B on the per-seed rebuild of Tab. 15 , seeds 42/123/456. Top: description + experience slots. Bottom: the shared index, each tool ranked by its best entry (the walk-down rule used elsewhere) or by the mean of its entries, with or without its description entry. Labeled: the 340 labeled queries with no held-out gold tool. Mixed: the 80 multi-tool queries with some gold tools held out.
cos ≥0.95
cos ≥0.90
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
–
Appendix
Table 17: Overall accuracy with the leak filter at cos ≥0.95 and ≥0.90 . At 0.90, Spur and Centralized are seed 42 only.
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
Appendix
Table 18: Experience outscores the gold description more often under general-purpose retrievers than under tool-trained ones, in the order of their crowding loss. Similarity gap on the 309 held-out queries, means over three seeds. Gold desc.: query score against its gold description; nearest exp.: against the top pooled-experience entry (cosine; † raw BM25 score). exp. > gold: share of queries where experience scores higher. Loss: recall@5 points lost under the shared index. Cosine scales differ, so rows are compared by the share.
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
Appendix
Table 19: The two-index router’s labeled loss appears on queries with no held-out gold tool too. The shared index gains there and loses on mixed queries. Clean BGE model end to end on the two parts of the labeled stratum, three seeds. Mixed: multi-tool queries with some gold tools held out.
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
Appendix
Table 20: At both filters the two-index router leads on held-out accuracy, and overall accuracy stays within one point across arms. Clean BGE model end to end on the split, three training seeds. Filter: leak-filter threshold of the training pool. Labeled accuracy is not reported separately for the 0.90 rows; R@5 from Tab. 21 .
descriptions
shared index
two-index router
Training filter
Pool
held-out
labeled
held-out
labeled
held-out
labeled
cos ≥0.95
Split
.878 ± .004
.930 ± .005
.807 ± .002
.924 ± .009
.821 ± .002
.930 ± .005
cos ≥0.95
Indep.
.219 ± .039
.237 ± .022
.216 ± .038
.298 ± .030
.174 ± .039
.296 ± .028
cos ≥0.90
Split
.873 ± .013
.917 ± .004
.805 ± .011
.924 ± .010
.808 ± .005
.927 ± .010
cos ≥0.90
Indep.
.219 ± .037
.240 ± .023
.215 ± .035
.299 ± .032
.180 ± .035
.296 ± .031
Label-kept, 0.90
Split
.929 ± .012
–
.879 ± .013
–
.875 ± .008
–
Appendix
Table 21: Pooled experience costs the clean model about 7 held-out recall points on the split and almost none on the independent pool. Label-kept and raw training raise split recall but not independent-pool recall. Clean BGE model, recall@5 under three candidate indices, retrieval only; three training seeds (independent pool: three draws). 0.95 rows: the clean model of Tab. 3 . 0.90 rows: models retrained at 1,051 updates on pools rebuilt from the 0.90-filtered pool (App. F ).
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
Appendix
Table 22: Training-pool sizes for the BGE recipe; ranges over seeds. Pairs: after multi-tool expansion and the base-model leak check. Train: after the 2% development split. Updates: at batch 128 for one epoch, or fixed ( f ) to the clean run’s.
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
Appendix
Table 23: Holding out whole categories also produces a held-out recall loss under all three retrievers, smaller than on the split. Category-level hold-out (738 tools; pool 42,648 items): recall@5 and Jina routing accuracy, seeds 42/123/456. Shared: descriptions plus pooled experience, concatenated ( Concat ).
one owner ( Tx )
held-out ( H )
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
Appendix
Table 24: On tools one other client has used, pooled experience beats each client’s own compendium. Cross-client construction, Jina routing, seeds 42/123/456. Tx : the tools whose labeled pool items are held by exactly one client (the owner). Scores are on the 136 queries whose gold tool is in Tx , evaluated at the four non-owners. Local-only is the evaluating client’s own compendium.
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
Appendix
Table 25: Under neither template nor generated expansion does an index with pooled experience reach the held-out recall of the description index. Every catalog tool is indexed with five queries written from its description alone, by template or by a frozen Llama-3.1-8B-Instruct (Generated). Synth.: descriptions plus expansion. +exp.: plus pooled experience. Capped: five non-description entries per tool. Gen., indep.: independent pool (three draws); other rows on the split.
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
Appendix
Table 26: Even at 200 distinct tools the shared index reaches far fewer held-out gold tools than descriptions. Bounded-depth gold insertion, three seeds. Each index is walked to 200 distinct tools, and the gold tool replaces the lowest-ranked non-gold candidate only if reachable there. Acc: the reranker after insertion; R@5: the perfect-selection ceiling. Not comparable cell by cell with Tab. 8 .
held-out
labeled
Candidates from
docs
comp.
docs
comp.
description index
.540
.534
.531
.524
shared index
.296
.289
.524
.517
Appendix
Table 27: Which index proposes the candidates decides held-out accuracy. What the reranker reads about them barely matters. Rows fix the candidate source and columns the rendering (descriptions only, or the compendium). Real retrieval, mean over three seeds; the difference-in-differences on all 729 queries is 0.000.
Difference (held-out)
pts
tool-clustered 95% CI
Spur − Docs-only , accuracy
−25.6
[−30.8,−20.6]
Jina, shared − docs, R@5
−35.4
[−40.9,−29.9]
Qwen3, shared − docs, R@5
−33.5
[−39.5,−27.7]
ToolRet-e5, shared − docs, R@5
−1.7
[−3.1,−0.6]
BGE raw − clean, R@5
+8.4
[+5.1,+12.0]
BGE size-matched − clean, R@5
+6.6
[+4.0,+9.4]
Appendix
Table 28: Tool-clustered intervals for the headline comparisons. Paired bootstrap that resamples the 172 held-out tools (each tool’s queries and seed rows kept together; 10,000 resamples).
Pool
Retriever
pairs
docs
shared
d/s
p
Split
Jina-v2
927
.689
.335
328/0
3.7×10−99
Split
BGE-base
927
.764
.502
243/0
1.4×10−73
Split
BM25
927
.689
.421
253/4
1.6×10−69
Split
Qwen3-Emb-8B
927
.790
.454
311/0
4.8×10−94
Split
ToolRet-e5
927
.845
.827
16/0
3.1×10−5
Split
BGE, clean
927
.878
.807
66/0
2.7×10−20
Appendix
Table 29: Paired McNemar tests for Tab. 3 on held-out queries, query × seed (or draw) pairs pooled; descriptive only (App. F ). d/s: pairs where only the description index, or only the shared index, surfaced a gold tool.
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
Appendix
Table 30: On τ -bench retail the three compendium arms are within one SD of one another. 55 held-out tasks, GPT-4o (August 2024) agent and simulator, three seeds. Plain is our own agent loop in the vendored harness and is not comparable to the leaderboard.
Large language models deployed as agents over large tool catalogs face a critical tool-retrieval bottleneck. As embedding-based retrieval approaches rely on compact encoders that may under-capture specialized tool semantics, parametric tool retrieval addresses this by encoding each tool as a virtual token appended to the LLM vocabulary, fine-tuned in two stages (memorization then retrieval SFT) to use the LLM as a retriever, achieving strong performance on standard ToolBench retrieval benchmarks. Yet these benchmarks use verbose, fully-specified queries, and their evaluation applies constrained decoding that restricts outputs to valid token paths, neither reveals whether the model actually understands its tools. We introduce ToolSense, an open-source LLM-powered diagnostic framework that takes any tool catalog as input and automatically generates three benchmarks: a Realistic Retrieval Benchmark (RRB) with queries at three ambiguity tiers, an MCQ probing benchmark, and a QA probing benchmark. Applying ToolSense to ToolBench (~47k tools) and evaluating five parametric model training configurations reveals a knowledge-retrieval dissociation: on RRB queries, several configurations collapse by ~50-64 percentage points compared to fully-specified ToolBench benchmarks, falling below the embedding-model baseline. Additionally, despite strong retrieval performance, some models score near-random on factual probes, suggesting a knowledge-retrieval dissociation. We open-source the ToolSense framework and the ToolBench diagnostic benchmarks at https://github.com/SAP/toolsense.
Ashutosh Hathidara, Sai Shruthi Sistla, Sebastian Schreiber +1
Tool calling is central to modern language model agents, but aggregate benchmark scores often hide where tool use fails. A model that never calls a needed tool and a model that calls the tool but ignores the result can look similar under final task accuracy. We introduce ToolFailBench, a diagnostic benchmark for measuring tool-use failures across 1,000 tasks in finance, medicine, law, cybersecurity, and real estate. Tool-required tasks return values the model wouldn't guess, forcing it to trust the tool while control tasks attach the same tools but should be answered directly. We label each trace with Tool-Skip, Result-Ignore, Output-Fabrication, and Unnecessary-Tool-Use, using a rule classifier and two LLM judges aggregated by majority vote. Across 19 headline models, the best reaches 86.33% Clean Tool-Use Rate, showing that faithful tool use is not saturated. More importantly, models with similar aggregate scores fail in different ways: most stay disciplined on no-tool controls, while Llama-3.1 models show an Always-Call pattern, and at the same parameter scale Llama-3.1-70B and Qwen2.5-72B differ by 89 percentage points on control-task accuracy. Tool-use evaluation should measure not only whether agents call tools, but whether they use tool outputs correctly and avoid tools when none is needed.
AI agents often find tools by searching their documentation. Agents that share a tool catalog can also pool usage examples: past requests, each tagged with the tool that handled it. We ask what pooling does to tools no agent has used yet. Adding each usage example to the search index as an extra entry for its tool (folding) helps tools that have examples, but on two of three catalogs it sharply lowers how often a needed unused tool reaches the top five results; on StableToolBench with our main embedding model, the share falls from 73 to 40 percent of queries. When the extra entries hold documentation from other tools instead of requests, the loss is much smaller, though differences in content or writing style could also explain this. We introduce ZoE (Z-scores over Evidence), a scoring rule that scores the documentation and the usage of a tool separately, so a tool without usage keeps its documentation score. On all three catalogs and with both embedding models we tested, ZoE retrieves unused tools more often than a router that reserves result slots for usage matches. With our main embedding model, the router retrieves more of the other tools on two catalogs, and in post hoc comparisons a simpler rule that adds a constant to the scores of tools with usage shows no detected difference from ZoE on unused tools. For five simulated agents on one catalog, folding lowered retrieval of unused tools for every agent; with ZoE no average drop was detected, though some agents still lost. Evaluations of pooled agent experience should report tools no agent has used separately from the average.