Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Models

Zhengliang Shi, Yuhan Wang, Lingyong Yan, Pengjie Ren, Shuaiqiang Wang, Dawei Yin, Zhaochun Ren

Introduction

Large Language Models (LLMs) are increasingly deployed as autonomous agents capable of invoking external tools via APIs. However, real-world applications often involve thousands of potential tools, far exceeding the context window of even the most advanced models. To bridge this gap, Information Retrieval (IR) models are used to select a relevant subset of tools. This paper identifies a critical "retrieval bottleneck": current IR models struggle to distinguish between tools with similar descriptions but distinct functionalities, leading to significant performance degradation in agentic tasks.

The Retrieval Bottleneck

In many research settings, LLMs are evaluated using hand-picked, small sets of relevant tools. In practice, the reliance on an IR gatekeeper introduces errors. As shown in Figure 1, when a "perfect" pre-annotated toolset (oracle) is replaced by tools retrieved by standard IR models, the pass rate for agents like GPT-3.5-turbo drops significantly—by as much as 10.1%.

Figure 1: The impact of retrieval quality on agent pass rates, illustrating the performance gap between oracle toolsets and standard IR models.

The TOOLRET Benchmark and Dataset

To address this, the authors introduce TOOLRET, a massive benchmark comprising 7.6k tasks and a corpus of 43k tools across three categories: Web APIs, Code Functions, and Customized Apps. Unlike standard IR tasks, tool retrieval exhibits low lexical overlap between queries and documentation, requiring models to understand functional intent rather than just matching keywords.

To support model improvement, the authors also released TOOLRET-train, a dataset of 200k instances designed for contrastive learning. This dataset helps models learn the nuances of tool documentation and distinguish "hard negatives"—tools that appear relevant but are functionally incorrect.

The "Strong IR" Paradox

A key finding of this work is that high performance on general text retrieval benchmarks, such as MTEB, does not guarantee success in tool retrieval. Figure 6 demonstrates the correlation between MTEB scores and the TOOLRET benchmark. The "task shift" is evident: retrieving a functional tool requires more intensive reasoning than standard document retrieval.

Figure 6: Correlation between evaluation scores on MTEB and the TOOLRET benchmark, highlighting the performance gap for top-tier IR models.

Methods and Key Results

The authors utilized Target-Aware Instructions generated by GPT-4o to bridge the gap between vague user queries and technical tool documentation. This instruction tuning provided the most significant boost in retrieval accuracy.

Key results include:

  • Baseline Limitations: Top-tier models like NV-Embed-v1 achieved an nDCG@10 of only 33.83 on TOOLRET, confirming the benchmark's difficulty.
  • Training Efficacy: Models fine-tuned on TOOLRET-train showed dramatic improvements, with some models nearly doubling their performance on specific subsets.
  • End-to-End Impact: Optimized retrievers improved the final task pass rate for agents by 10% to 20% in real-world scenarios.

Conclusion

The TOOLRET ecosystem reveals that current IR models are "tool-blind." By providing a standardized benchmark and a large-scale training set, this work paves the way for more robust tool-augmented LLMs. Future work will expand into multilingual support and explore the complexities of multi-step, interleaved tool retrieval.

Summary updated

BibTeX
@inproceedings{shi2025retrieval,
  author = {Zhengliang Shi and Yuhan Wang and Lingyong Yan and Pengjie Ren and Shuaiqiang Wang and Dawei Yin and Zhaochun Ren},
  title = {{Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure