Data-Efficient Massive Tool Retrieval: A Reinforcement Learning Approach for Query-Tool Alignment with Language Models
Not on the map. Why?
Abstract (arXiv)
Recent advancements in large language models (LLMs) integrated with external tools and APIs have successfully addressed complex tasks by using in-context learning or fine-tuning. Despite this progress, the vast scale of tool retrieval remains challenging due to stringent input length constraints. In response, we propose a pre-retrieval strategy from an extensive repository, effectively framing the problem as the massive tool retrieval (MTR) task. We introduce the MTRB (massive tool retrieval benchmark) to evaluate real-world tool-augmented LLM scenarios with a large number of tools. This benchmark is designed for low-resource scenarios and includes a diverse collection of tools with descriptions refined for consistency and clarity. It consists of three subsets, each containing 90 test samples and 10 training samples. To handle the low-resource MTR task, we raise a new query-tool alignment (QTA) framework leverages LLMs to enhance query-tool alignment by rewriting user queries through ranking functions and the direct preference optimization (DPO) method. This approach consistently outperforms existing state-of-the-art models in top-5 and top-10 retrieval tasks across the MTRB benchmark, with improvements up to 93.28% based on the metric Sufficiency@k, which measures the adequacy of tool retrieval within the first k results. Furthermore, ablation studies validate the efficacy of our framework, highlighting its capacity to optimize performance even with limited annotated samples. Specifically, our framework achieves up to 78.53% performance improvement in Sufficiency@k with just a single annotated sample. Additionally, QTA exhibits strong cross-dataset generalizability, emphasizing its potential for real-world applications.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 Oct 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applicationscited by 17
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commitcited by 13
- 2025MassTool: A Multi-Task Search-Based Tool Retrieval Framework for Large Language Modelscited by 3
- 2025LoSemB: Logic-Guided Semantic Bridging for Inductive Tool Retrievalcited by 3
- 2026A Comprehensive Survey on Agent Skills: Taxonomy, Techniques, and Applications8 May 2026
- 2026VIGIL: Defending LLM Agents Against Tool Stream Injection via Verify-Before-Commit9 Jan 2026
- 2025LoSemB: Logic-Guided Semantic Bridging for Inductive Tool Retrieval11 Aug 2025
- 2025MassTool: A Multi-Task Search-Based Tool Retrieval Framework for Large Language Models1 Jul 2025
Similar, not cited
Close in wording, no citation either way
- 2024Enhancing Tool Retrieval with Iterative Feedback from Large Language Models
- 2024ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrieval
- 2025Retrieval Models Aren't Tool-Savvy: Benchmarking Tool Retrieval for Large Language Models
- 2024Towards Completeness-Oriented Tool Retrieval for Large Language Models
- 2026Semantic Tool Discovery for Large Language Models: A Vector-Based Approach to MCP Tool Selection
- 2026PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Models
- 2024Efficient and Scalable Estimation of Tool Representations in Vector Space
- 2026ToolSearcher: Optimizing Tool Selection at Scale via Reinforcement Learning