WWW2026

LoSemB: Logic-Guided Semantic Bridging for Inductive Tool Retrieval

Luyao Zhuang, Qinggang Zhang, Huachi Zhou, Yujing Zhang, Xiao Huang

2 citations

Abstract

Equipping large language models (LLMs) with external tools has emerged as a promising paradigm for addressing real-world tasks. Nonetheless, with the web-based tool ecosystems rapidly expanding, it is impractical to include all tools within the limited input length of LLMs. To alleviate these issues, researchers have explored incorporating a tool retrieval module to select the most relevant tools or represent tools as unique tokens within LLM parameters. However, most state-of-the-art methods are under transductive settings, assuming all tools have been observed during training. Such a setting deviates from reality as tools on the web are constantly updated and new tools are frequently added to the online ecosystem. When dealing with these unseen tools, which refer to tools not encountered during the training phase, these methods are limited by two key issues, including the large distribution shift and the sensitivity of semantic-only retrieval. To this end, inspired by human cognitive processes of mastering unseen tools through discovering and applying the logical information from prior experience, we introduce a novel Logic-Guided Semantic Bridging framework for inductive tool retrieval, namely, LoSemB, which aims to mine and transfer latent logical information for inductive tool retrieval without costly retraining. Specifically, LoSemB contains a logic-based embedding alignment module to mitigate distribution shifts and a relational augmented retrieval mechanism to overcome the limitations of semantic-only similarity methods. Extensive experiments demonstrate that LoSemB achieves advanced performance in both the inductive and transductive settings.