arXiv(opens in a new tab)cs.AISep 2026Cited by 2 papers on PaperVantage

Manuscript Offprint

arXiv:2609.05824

Beyond Top-kk Skill Retrieval: Diversity-Aware Skill Routing for LLM Agents

Wang Wei, Tiankai Yang, Samyadeep Basu, Hongjie Chen, Yue Zhao, Zhengzhong Tu, Xiyang Hu, Franck Dernoncourt, Ryan A. Rossi, Hoda Eldardiry

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Large language model (LLM) agents increasingly rely on external skills, but routing user requests over large skill registries is difficult because many skills are functionally redundant while complex tasks often require complementary skill sets. Existing skill routers typically rank candidates independently by query relevance, which can waste context budget on redundant skills. We propose Diverse Skill Routing (DSR), a diversity-aware reranking framework that uses a Determinantal Point Process to balance relevance and non-redundancy. DSR introduces a query-residual diversity kernel that penalizes redundant skill overlap while reducing penalties caused only by shared query relevance. On the SkillRouter benchmark, DSR improves recall and full coverage over a strong pointwise reranking baseline, with larger gains on multi-skill queries. These results suggest that skill routing should be treated not only as relevance ranking, but also as complementary set selection.

1 Introduction

Large language model (LLM) agents increasingly rely on external tools and skills to solve tasks that require capabilities beyond direct text generation. Early tool-use systems showed that language models can learn when and how to call external APIs (Schick et al., 2023), while subsequent agent frameworks use LLMs to decompose user requests, select external models or tools, and aggregate their outputs (Shen et al., 2023; Qin et al., 2023). More recently, skill-based agents organize procedural knowledge into reusable modules, such as instructions, scripts, examples, and reference documents, that can be loaded into context at inference time (Wang et al., 2023; Xu and Yan, 2026). This design makes agents more extensible, since new capabilities can be added through external skill libraries rather than model retraining.

However, the growth of skill libraries creates a new routing bottleneck. When thousands or tens of thousands of skills are available, it is infeasible to expose all of them to the agent because the context window is limited, and irrelevant skills may distract execution. Recent work on skill routing studies this problem directly by retrieving task-relevant skills from large registries. SkillRouter, for example, evaluates skill selection over an approximately 80K-skill pool and shows that full skill implementations contain important routing signals beyond names and descriptions (Zheng et al., 2026). SkillsBench further highlights that curated skills can improve agent performance, but their benefit depends strongly on task and skill quality (Li et al., 2026). These findings suggest that skill selection is becoming a central component of practical LLM-agent systems.

Existing skill routers typically formulate selection as a pointwise retrieval or reranking problem: each candidate skill is scored independently against the query, and the top-ranked skills are returned. This is natural for single-skill tasks, where success depends on finding one correct skill. However, many realistic agent tasks are compositional. A user request may require several complementary skills, such as document parsing, information extraction, data transformation, and visualization. In such cases, independent top-kk retrieval can return redundant shortlists: several skills may have similar descriptions or implementations and therefore receive high relevance scores, while other necessary but different skills are omitted. This wastes limited context budget and weakens the agent's ability to cover all parts of a multi-step workflow.

We argue that large-scale skill routing should be treated not only as relevance ranking, but also as complementary set selection. This perspective is related to diversity-aware retrieval, where the goal is to select items that are both individually useful and mutually non-redundant. Determinantal

∗^{*}Corresponding author.

Point Processes (DPPs) provide a principled probabilistic model for such subset selection problems by favoring sets with high item quality and high diversity (Kulesza and Taskar, 2012). DPPs have been widely used for selecting diverse high-quality subsets, but applying them directly to skill routing is non-trivial. In skill routing, two skills may be similar because they are redundant, but they may also be similar because both are relevant to the same query while still covering different steps of the task. Penalizing all similarity uniformly can therefore remove useful complementary skills.

To address this issue, we propose Diverse Skill Routing (DSR), a diversity-aware reranking framework for large-scale skill selection. DSR builds on a standard retrieve-and-rerank pipeline: a retriever first produces candidate skills, and a quality model assigns query-dependent relevance scores. DSR then applies DPP-based selection to construct a skill set that balances relevance and non-redundancy. The key component is a query-residual diversity kernel, which measures inter-skill redundancy after removing the component of each skill representation aligned with the query. This design reduces the penalty on skills that are jointly relevant to the query, while still discouraging near-duplicate candidates. The selected skills are finally ordered by their quality scores to produce the ranked shortlist.

We evaluate DSR on the SkillRouter benchmark (Zheng et al., 2026), which contains approximately 80K candidate skills and includes both single-skill and multi-skill queries. Compared with a strong pointwise SkillRouter baseline, DSR improves recall and full coverage, with larger gains on multi-skill queries and at larger cutoffs. Ablations show that the query-residual kernel is critical: replacing it with a standard inter-skill similarity kernel substantially reduces multi-skill full coverage. These results suggest that, as skill registries continue to grow, effective routing should account for both relevance to the user request and diversity across the selected skill set.

Our contributions are as follows:

  • We formulate large-scale skill routing as a diversity-aware subset selection problem, motivated by redundancy in large skill registries and the compositional structure of multi-skill agent tasks.

  • We propose DSR, a DPP-based reranking framework that balances query-dependent skill relevance with inter-skill non-redundancy.

  • We introduce a query-residual diversity kernel that distinguishes redundant overlap from similarity induced by shared query relevance.

  • We show that DSR improves recall and full coverage over a strong pointwise SkillRouter baseline, with larger gains on multi-skill queries.