PORTS: Preference-Optimized Retrievers for Tool Selection with Large Language Models
On the map: LLM agents and tool use → Tool learning and function calling
Abstract (arXiv)
Integrating external tools with Large Language Models (LLMs) has emerged as a promising paradigm for accomplishing complex tasks. Since LLMs still struggle to effectively manage large tool collections, researchers have begun exploring retrieval-based methods to pre-select the most relevant options, addressing input length and latency constraints. However, existing retrievers are often misaligned with tool-calling LLMs due to their separate training processes. This paper presents PORTS, a novel odds ratio preference optimization method for training retrievers aimed at tool selection. Using a perplexity-inspired preference signal from a frozen LLM, our approach fine-tunes a retriever to find helpful tools by optimizing the correlation between the selection probabilities and the downstream performances while jointly enforcing a contrastive semantic loss between documentation strings. The versatility of PORTS and its ability to significantly improve tool selection accuracy are demonstrated through extensive experiments on six datasets, two encoder models, and three LLMs with diverse prior knowledge. With low computational demands, our alignment process facilitates generalization to new queries and tools, proving valuable for practical applications with evolving toolsets.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Placed in Tool learning and function calling, one of 16 directions in LLM agents and tool use. Builds on 37 of its 53 references that are in the map. First posted on arXiv 3 Jul 2026.
Builds on
37 of 53 references.
Closest ancestors · 10
Same direction, newest first
- 2024Granite-Function Calling Model: Introducing Function Calling Abilities via Multi-task Learning of Granular Tasks27 Jun
- 2024Octopus v2: On-device language model for super agent2 Apr
- 2023MetaTool Benchmark for Large Language Models: Deciding Whether to Use Tools and Which to Use4 Oct
- 2023Confucius: Iterative Tool Learning from Introspection Feedback by Easy-to-Difficult Curriculum27 Aug
- 2023ToolLLM: Facilitating Large Language Models to Master 16000+ Real-world APIs31 Jul
- 2023GPT4Tools: Teaching Large Language Model to Use Tools via Self-instruction30 May
- 2023Making Language Models Better Tool Learners with Execution Feedback22 May
- 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddings19 May
- 2023API-Bank: A Comprehensive Benchmark for Tool-Augmented LLMs14 Apr
- 2023Toolformer: Language Models Can Teach Themselves to Use Tools9 Feb
Other references · 27
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2017Deep reinforcement learning from human preferencescited by 3,846
- 2018HotpotQA: A Dataset for Diverse, Explainable Multi-hop Question Answeringcited by 3,686
- 2023Lost in the Middle: How Language Models Use Long Contextscited by 3,383
- 2020REALM: Retrieval-Augmented Language Model Pre-Trainingcited by 2,126
- 2016MS MARCO: A Human Generated MAchine Reading COmprehension Datasetcited by 1,591
- 2021Improving language models by retrieving from trillions of tokenscited by 1,278
- 2019PubMedQA: A Dataset for Biomedical Research Question Answeringcited by 1,271
- 2020Leveraging Passage Retrieval with Generative Models for Open Domain Question Answeringcited by 1,203
15 more
- 2022WebShop: Towards Scalable Real-World Web Interaction with Grounded Language Agentscited by 1,197
- 2023HuggingGPT: Solving AI Tasks with ChatGPT and its Friends in Hugging Facecited by 1,173
- 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
- 2023C-Pack: Packed Resources For General Chinese Embeddingscited by 556
- 2024ORPO: Monolithic Preference Optimization without Reference Modelcited by 556
- 2025Perception Encoder: The best visual embeddings are not at the output of the networkcited by 315
- 2023RA-DIT: Retrieval-Augmented Dual Instruction Tuningcited by 194
- 2023Chain-of-Note: Enhancing Robustness in Retrieval-Augmented Language Modelscited by 180
- 2023CRAFT: Customizing LLMs by Creating and Retrieving from Specialized Toolsetscited by 122
- 2023Lift Yourself Up: Retrieval-augmented Text Generation with Self Memorycited by 103
- 2025A Survey of LLM-based Agents in Medicine: How far are we from Baymax?cited by 84
- 2024ToolRerank: Adaptive and Hierarchy-Aware Reranking for Tool Retrievalcited by 40
- 2023TPTU-v2: Boosting Task Planning and Tool Usage of Large Language Model-based Agents in Real-world Systemscited by 39
- 2021Revisiting, Benchmarking and Exploring API Recommendation: How Far Are We?cited by 21
- 2023ProTIP: Progressive Tool Retrieval Improves Planningcited by 12
Built on by
Citing papers per year: 2026: 4.
4 papers.
- 2026Skill2Query: Exploiting Skill Structure to Generate Pseudo-Queries for Agent Skill Retrievalcited by 2
- 2026Don't Offer What Can't Be Done: Deterministic Executability Gating for LLM Skill Selection at Scalecited by 1
- 2026Sycophants in the Courtroom: Are LLMs Fragile to Juridical Authority and Evolving Legal Standards?cited by 0
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing Itcited by 0
- 2026Toolcompass: Guiding Tool Trialing, Not Suppressing It22 Sep 2026
- 2026Skill2Query: Exploiting Skill Structure to Generate Pseudo-Queries for Agent Skill Retrieval17 Aug 2026
- 2026Sycophants in the Courtroom: Are LLMs Fragile to Juridical Authority and Evolving Legal Standards?10 Aug 2026
- 2026Don't Offer What Can't Be Done: Deterministic Executability Gating for LLM Skill Selection at Scale2 Aug 2026
Similar, not cited
Close in wording, no citation either way
- 2024Data-Efficient Massive Tool Retrieval: A Reinforcement Learning Approach for Query-Tool Alignment with Language Models
- 2025ToolDreamer: Instilling LLM Reasoning Into Tool Retrievers
- 2024Task-Aligned Tool Recommendation for Large Language Models
- 2026RaTA-Tool: Retrieval-based Tool Selection with Multimodal Large Language Models
- 2025RAG-MCP: Mitigating Prompt Bloat in LLM Tool Selection via Retrieval-Augmented Generation
- 2024Towards Completeness-Oriented Tool Retrieval for Large Language Models
- 2024Enhancing Tool Retrieval with Iterative Feedback from Large Language Models
- 2026Semantic Tool Discovery for Large Language Models: A Vector-Based Approach to MCP Tool Selection