Tools Are Not Islands: Set-Level Tool Retrieval for LLM Agents via Query-Conditioned Hyperedge Prediction

Xinyi Hong, Pinjun Dong, Xinyang Yu, Binyan Jiang
7/28/2026
cs.LGcs.AIcs.IR

No official code found. Best implementation: stormwther18/HYSET (1 star, MIT, last commit 2026-07-25). 1 more below.

Abstract

Large language model (LLM) agents increasingly rely on invoking external tools to complete real-world tasks. Tool retrieval, which selects a small task-relevant subset from a library of thousands of tools before the agent acts, has therefore become a critical component of LLM agent pipelines. However, existing retrievers either score each tool in isolation or assemble the tool set sequentially, so the joint utility of a candidate set is never evaluated as a whole. In this paper, we propose HYSET, short for HYperedge-based SEt-level Tool retrieval. Our contributions are threefold: (i) we formulate tool retrieval as query-conditioned hyperedge prediction on a tool co-invocation hypergraph, under which the tool set itself becomes the unit of scoring and most existing retrieval paradigms reduce to restricted instances; (ii) we capture size-dependent tool compatibility through cardinality-specific interactions; and (iii) we design HYSET as a pre-selection module requiring no modification to the downstream agent. Experiments on ToolBench demonstrate that HYSET consistently outperforms state-of-the-art baselines in both tool retrieval performance and end-to-end task success. Beyond the in-domain setting, HYSET further supports zero-shot/few-shot transfer, generalizing to held-out tools/categories and unseen domains with minimal supervision.

View on arXivView PDF

Code Implementations(2)

Santanu72159/HYSETCommunity72%
MIT

Retrieve sets of tools for LLM agents using query-conditioned hyperedge prediction.

00Jul 29, 20262 months agoMIT
daymetfunction-callinghydrologyhypergraphinformation-retrieval+10 more
stormwther18/HYSETCommunity70%
MIT

Tools Are Not Islands: Set-Level Tool Retrieval for LLM Agents via Query-Conditioned Hyperedge Prediction

10Jul 25, 20262 months agoMIT
ai-agentsfunction-callinghypergraphhypergraph-learninginformation-retrieval+9 more

Similar Papers

Cite this paper

@article{hong2026tools,
  title  = {Tools Are Not Islands: Set-Level Tool Retrieval for LLM Agents via Query-Conditioned Hyperedge Prediction},
  author = {Xinyi Hong and Pinjun Dong and Xinyang Yu and Binyan Jiang},
  year   = {2026},
  eprint = {2607.25718},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.25718v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2607.25718.svg)](https://codeofpaper.com/paper/2607.25718)

Discussion