Skill Is Not Document: Query-Conditioned Compatibility for LLM Agent Skill Routing
Anonymous authors
ICLR 2027
TL;DR. Skill retrieval isn't document retrieval—R3 reuses discarded LLM rejections as compatibility supervision to retrieve skills that actually work together under a query.
Abstract. Large language model agents increasingly rely on reusable skills, making skill retrieval a critical front-end component of agent systems. Skill retrieval, however, is not ordinary document retrieval: a useful top- result must contain individually relevant skills that also form an executable set for the current query. Existing benchmarks and training pipelines largely supervise pairwise relevance and discard the rejection decisions produced when a language model judges a sampled skill combination to be implausible. We introduce R3-Skill, a Chinese--English benchmark that retains these rejections as query-conditioned compatibility supervision. R3-Skill contains 10,246 deduplicated skills, 41,592 accepted queries, and 32,828 rejected annotations across four language directions; all multi-skill test labels were independently reviewed by nine experts, and 15,962 parseable rejections are organized into an eight-class taxonomy. We further propose a two-stage system composed of R3-Embedding, a multi-positive bi-encoder for large-pool recall, and R3-Reranker, a cross-encoder trained with graded ListNet supervision. Our analysis shows that this signal is stage-dependent, helping cross-encoder reranking while providing no benefit for the tested bi-encoder objective. On R3-Skill, the complete pipeline achieves Hit@1, NDCG@10, and Set-Compat, a relative gain over the strongest reranking baseline. It also obtains NDCG@10 on SkillRet, demonstrating transfer beyond R3-Skill.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
ICLR 2027
Under review · 3 reviews · OpenReview
Updated 24 Nov 2026, 16:52 UTC.
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 3/3
- Informativeness
- 2/3
Read review
Summary
Strengths
The main strength is the benchmark resource. R3-Skill keeps the WRITE and SKIP decisions made during query synthesis, samples combinations from nearby skills so that rejections are not trivial, separates training and test skills, uses different LLM families to generate training and test queries, and covers Chinese-English directions that other skill benchmarks lack. Multi-skill test labels were reviewed by nine experts, with initial disagreement below 5%. A reusable benchmark with explicit negative set-level signals, together with the full prompts and audit results, is a concrete contribution that other work can build on.
The second strength is the controlled analysis of where rejection supervision should enter the system. Using SKIP partners as negatives in the bi-encoder lowers Hit@1 from 72.07% to 69.93% and Set-Compat from 28.12% to 21.58%. Using them as graded labels in the cross-encoder raises Set-Compat. The shuffled-label control separates the effect of extra hard candidates from the effect of correct query-SKIP pairing. This is a useful negative result for anyone who would simply add such signals as hard negatives, and the paper gives a clear explanation of why a shared embedding struggles with query-specific rejections.
Weaknesses
The main weakness is that the gain attributable to the paper's central idea, rejection supervision, is small and not statistically supported. In the stage-wise ablation, correctly paired SKIP labels improve Set-Compat by 3.57 points over shuffled labels, and Hit@1 by 0.28 points, from a single training run with no confidence intervals or seeds. The headline numbers come mostly from other sources. The 36.6% relative Set-Compat gain is measured against generic rerankers that perform below the embedding stage alone. Against R3-Embedding the gain is 18.3%, and it comes with lower Recall@10 and Comp@10. The large margins over external retrievers mainly reflect training on the benchmark's own distribution. For a paper whose title and framing rest on query-conditioned compatibility, the evidence that this signal matters is thin.
The second weakness is external validity. All queries and rejections are generated by LLMs, the rejection taxonomy is rule-based, the naturalness review was simulated with an LLM, and there is no test of whether better Set-Compat leads to better agent behavior. On SkillRet, the full pipeline improves NDCG@10 over the SkillRet embedder with its own reranker by about 1.7 points. That is a modest margin for a new two-stage system. Without downstream evaluation or real user requests, it is unclear whether the compatibility gains on this benchmark matter in practice.
Questions for the authors
N/A
Ethics concerns
N/A
- Rating
- 2/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 2/3
Read review
Summary
The paper argues that skill routing for LLM agents differs from document retrieval: a useful top-K result must contain skills that are individually relevant and also form an executable set for the given query. The authors argue that the rejection information (SKIP) produced when an LLM judges whether a skill combination can satisfy a task can serve as a supervision signal.
Contributions:
- R3-Skill, a Chinese–English benchmark that retains these rejections as query-conditioned compatibility supervision.
- R3, a two-stage system composed of R3-Embedding (multi-positive InfoNCE with a sibling term, no SKIP) and R3-Reranker (ListNet with graded labels GT=3 / SKIP partner=1 / other=0).
Experimental results show that SKIP supervision hurts when injected as bi-encoder negatives but helps the cross-encoder.
Strengths
- A valuable perspective. Skill routing should consider not only the relevance between the task and each individual skill, but also whether a combination of multiple skills can actually solve the task. The paper further proposes using the LLM's rejection judgments as a training signal to address this problem.
- An important benchmark for related research. The skill-level train/test split prevents capability memorization; expert review helps ensure label quality; and the bilingual directions (en2zh, zh2en, zh2zh) are a useful addition to existing English-only resources.
Weaknesses
-
How the query-conditioned SKIP labels is obtained is not described clearly enough. According to Appendix G, the generator makes SKIP decisions on skill sets without any user query, and the released
skip_train.jsonlis consistent with this. Query conditioning is therefore introduced only at training time. However, neither the paper nor the submitted code specifies how a WRITE query is matched to a SKIP set or how the shuffled control D is implemented. The released evaluation script is inconsistent with the cited metric definition.The paper states that Recall@K and Comp@K follow SkillRet, which defines Completeness@K as the fraction of queries with perfect recall, i.e., 𝟙[G ⊆ T_K]. Inreproduce.py, line 55 computes Recall as |G∩T_K| / max(1,|G|) and line 56 computes Comp as |G∩T_K| / min(|G|,K). Every test query has |G| ≤ 3 and K ∈ {5,10,15}, so both denominators equal |G| and the script yields Recall@K = Comp@K for any ranking. The script's own reference dictionary (lines 14–29) indeed lists comp equal to recall. However, Table 4 reports different values. -
Part of the stated motivation is outside what the method can represent, and the benchmark does not directly test it.The R3-Reranker scores each (q, s) pair independently. It can learn query-dependent necessity but cannot represent within-query substitutability or redundancy, because when two near-duplicate skills are both relevant to q, f(q, s) cannot see whether the other is already selected, as in the redundant pair "Code Review + Systematic Code Review" showcased in Table 1. A construction that targets the title's thesis more directly would sample skills with near-identical descriptions but incompatible bodies.
Other issue (anonymity). The supplementary ZIP includes compiled Python bytecode files (pycache/*.pyc) that retain local source paths containing a personal-looking username, which may compromise double-blind anonymity. I have reported this to the AC and, following the AC's guidance, have evaluated the submission on its technical merits; this issue did not affect my rating.
Questions for the authors
- Could you provide the exact method used to pair SKIP sets with WRITE queries? Please give one complete example tracing a WRITE query and its source SKIP record to the final 3/1/0 training list.
- Could you state the exact Comp@K definition used, and explain the discrepancy between the reranker reference values in
reproduce.pyand Table 4? - Can the pointwise reranker address the compatibility between different skills under the same query, which is part of the motivation for constructing the benchmark?
- Rating
- 3/4
- Confidence
- 3/4
- Soundness
- 2/3
- Presentation
- 2/3
- Informativeness
- 3/3
Read review
Summary
The paper formalizes a framework for skill routing with relevance and trains embedding and re-ranking models for optimal skill usage. The work collects multilingual skill training and test dataset; and trains models with multi-positive recall and listwise ranking objectives. The resulting framework demonstrates strong skill retrieval performance over existing embedding and reranker models in the curated test set and a separate benchmark.
Strengths
Strong methodology: The paper proposes intuitive framework focusing on set compatibility for training skill retrieval with well curated dataset. The paper reflected data diversity and quality though the rejection taxonomy and query distribution.The framework shows strong retrieval performance (87 vs 64 of SkillRet) and Set-Compatibility (21 vs 11 of SkillRet) over strong baselines.
Bi-lingual scope: The data covers two languages which demonstrates the cross-lingual generalization of the proposed method. Covering multiple languages are important dimension to ensure SoTA LLM technologies, like skills for agents, are being adopted across different regions.
Weaknesses
Expert Review: It is unclear how the experts have reviewed the test labels, including their number, agreement and accuracy. Therefore, I am not sure how much the used Test set can be trusted. As the train and test set results from same pipeline (though different LLMs are used), this step requires transparency for better reliability of reported results.
Questions for the authors
How are the test set reviewed (protocols) and what is their agreement scores?
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
The paper argues that skill routing differs from document retrieval because the retrieved skills must not only be relevant one by one but must also form a coherent set for the query. It notes that LLM data-synthesis pipelines already make such set-level judgments: before writing a query for a sampled skill combination, the generator often rejects combinations that do not form a natural task, and these rejections are normally thrown away. The authors build R3-Skill, a Chinese-English benchmark that keeps these decisions. It has 10,246 deduplicated skills from GitHub, split 80/20 into disjoint train and test pools, 41,592 accepted (WRITE) queries across four language directions, and 32,828 rejection (SKIP) annotations, of which 15,962 parseable ones are sorted into an eight-class taxonomy. Hard combinations are sampled from KMeans clusters of nearby skills. Training queries come from DeepSeek-V4-Pro and test queries from Qwen3-235B, and multi-skill test labels are reviewed by nine experts. The paper also proposes R3, a two-stage retriever: R3-Embedding, a Qwen3-Embedding-0.6B bi-encoder trained with a multi-positive InfoNCE loss that does not treat sibling gold skills as negatives, and R3-Reranker, a Qwen3-Reranker-0.6B cross-encoder trained with graded ListNet labels in which SKIP partners get an intermediate label.
The paper claims the following contributions: (1) A formulation of skill routing as pairwise relevance plus query-conditioned set compatibility. (2) The R3-Skill benchmark, with disjoint skill pools, four language directions, retained rejection annotations and an eight-class rejection taxonomy. (3) R3-Embedding and R3-Reranker, with the finding that rejection supervision helps graded listwise reranking but not the tested bi-encoder objective. (4) Strong results on R3-Skill and transfer to SkillRet.
On the R3-Skill test set (5,696 queries), R3-Embedding reaches 72.07% Hit@1 and 81.60% NDCG@10, against 62.29% and 73.01% for Qwen3-Embedding-8B. With R3-Reranker on the top-20 pool, Hit@1 rises to 75.39% and Set-Compat to 33.27%. Set-Compat is a new metric that requires all gold skills of a multi-skill query to appear in the first |S*| ranks. The paper reports this as a 36.6% relative gain over the best reranking baseline. Transfer to SkillRet gives 81.06% NDCG@10 for R3-Embedding and 83.87% for the full pipeline. A stage-wise ablation compares hard negatives, SKIP negatives in the bi-encoder, and rerankers trained with no SKIP labels, shuffled SKIP labels or correctly paired SKIP labels. The paper also gives a breakdown by language direction (Table 5) and an InfoNCE gradient argument for why SKIP negatives conflict with a shared embedding.