arXiv:2610.05489cs.AIOct 2026

Manuscript Offprint

arXiv:2610.05489

SkillGATE: Gate-Aware Monte Carlo Tree Search for Skill Retrieval

Rongchen Zhao, Yu Chen, Yanming Yang, Shijia Xu, Juyuan Wang, Jin Xu, Zibin Zheng, Jingping Liu

ABSTRACT

Skill Retrieval (SR) aims to identify the most relevant skills from external skill libraries, and becomes increasingly challenging as libraries grow in scale and diversity. Existing methods either rank skills independently or rely on predefined graph propagation and hierarchical routing, making them vulnerable to semantic distractors, local trapping, and early routing errors. We formulate SR as an adaptive information-foraging process that coordinates region-level navigation with skill-level selection according to the utility and uncertainty observed during search. Based on this formulation, we propose SkillGATE, a graph-guided hierarchical retrieval framework with Gate-Aware Monte Carlo Tree Search (MCTS). SkillGATE constructs a graph-preserving hierarchical index and performs adaptive retrieval through selection, expansion, simulation, and backpropagation. G-PUCT guides action selection, expansion explores new regions, simulation evaluates candidate skills, and backpropagation updates search statistics. Experiments on six SR benchmarks show that SkillGATE consistently improves diverse retrieval and reranking backbones, achieving a 16.3% improvement in overall R@1 over the strongest retriever-based baseline. Our code is available at here.

1 INTRODUCTION

Skill Retrieval aims to identify the most relevant skill from an external skill library for a given query. As skill libraries grow to tens of thousands of entries, directly including all skills in the agent prompt becomes impractical and introduces irrelevant information. Effective SR is therefore essential for accurately retrieving the skill that best matches the query.

Existing approaches broadly fall into two paradigms: Vanilla SR and Structured SR. Vanilla SR treats skills as independent retrieval units and ranks them by query relevance using lexical matching or learned representations. Representative approaches include lexical retrievers (Sparck Jones, 1972; Robertson & Zaragoza, 2009), general-purpose dense retrievers (Karpukhin et al., 2020; Xiao et al., 2024), and embedding models adapted to skill retrieval through task-specific training (Zheng et al., 2026; Cho et al., 2026; Wang et al., 2026b). Structured SR organizes the library into an explicit index structure that guides retrieval through relations or groups of skills. Two common forms are graph indexing (Liu et al., 2026; Zeng et al., 2026), which represents inter-skill relations as edges and propagates relevance over the resulting graph, and hierarchical indexing (Zeng et al., 2026; Li et al., 2026), which organizes skills into groups and retrieves them through progressively finer routing decisions. Figure 1 provides an intuitive comparison of these retrieval paradigms and their characteristic search behaviors.

However, these approaches exhibit distinct limitations in navigating the skill space. Vanilla SR relies on independent relevance scores, making it susceptible to semantically similar distractors in a

∗^{*}Intern. †^{\dagger}Equal contribution. ‡^{\ddagger}Corresponding author.

Figure

Figure 1: Comparison between different skill retrieval paradigms.

large flat search space. Graph-based SR exploits inter-skill relations, but propagation can become confined to local neighborhoods around the initial seeds. Hierarchy-based SR progressively narrows the search space, yet an early routing error may exclude relevant skills with limited opportunities for recovery. These limitations share a common cause: each paradigm operates within a largely fixed search regime and offers limited flexibility to revise its search scope based on evidence gathered during retrieval. Effective SR therefore requires an adaptive search policy that coordinates exploitation of promising neighborhoods, exploration of alternative regions, and pruning of unproductive branches. This motivates viewing SR as adaptive information foraging, with the utility and uncertainty of observed returns guiding dynamic adjustments to search scope and strategy.

Motivated by Optimal Foraging Theory (Charnov, 1976; Pyke et al., 1977), we formulate skill retrieval as an adaptive search process over a structured skill space. In this view, different regions of the skill space are treated as patches, with individual skills as resources within them. Retrieval uses the observed utility and uncertainty of the current region to guide whether the search should continue locally or move to alternative regions, while prioritizing promising skills within the explored region. This perspective directly addresses the rigidity of existing SR paradigms: rather than committing to a vanilla ranking, local propagation process, or hierarchical routing path, retrieval can dynamically adjust its search scope according to the utility and uncertainty of regions. This enables coordination between region-level navigation and skill-level selection as retrieval evidence accumulates.

Based on this formulation, we propose SKILLGATE, a graph-guided hierarchical retrieval framework with gate-aware Monte Carlo Tree Search. During offline indexing, SKILLGATE constructs a weighted skill graph by integrating semantic, lexical, and structured-label relations, and recursively partitions it into a hierarchical index while preserving skill-level graph connections. This structure supports both progressive region-level navigation and cross-region transitions. During online retrieval, we develop a gate-aware MCTS algorithm that coordinates region-level navigation with skill-level selection through node-aware descent, skill-aware descent, horizontal search, and pruning. Its G-PUCT policy jointly considers historical return, normalized return entropy, query-relevance priors, and visit statistics to adapt the search strategy as retrieval evidence accumulates. Expansion explores promising unvisited regions, simulation evaluates their contained skills and collects relevant candidates, and backpropagation separately updates search visitation and hierarchical reward statistics. Overall, these components enable SKILLGATE to adaptively navigate the structured skill space while maintaining fine-grained relevance to the query.

Our primary contributions are summarized as follows. 1) We formulate skill retrieval as an adaptive information-foraging process that coordinates region-level navigation with skill-level selection. 2) We propose SKILLGATE, a graph-guided hierarchical retrieval framework with gate-aware MCTS for adaptive search and cross-region exploration. 3) Extensive experiments on six SR benchmarks show that SKILLGATE consistently improves diverse retrieval and reranking backbones, achieving a 16.3% improvement in overall R@1 over the strongest retriever-based baseline.

References (42)