Task Decomposition-Guided Reranking for Adaptive Agent Skill Retrieval
Summary
Proposes SkillReranker, an inference-time reranking framework that decomposes tasks and skills to build a directed acyclic execution graph and uses a cross-encoder for scoring, improving task performance and efficiency in agent skill selection.
View Cached Full Text
Cached at: 07/08/26, 04:39 AM
# Task Decomposition-Guided Reranking for Adaptive Agent Skill Retrieval
Source: [https://arxiv.org/html/2607.06283](https://arxiv.org/html/2607.06283)
###### Abstract
Skill usage can significantly enhance the ability of modern agent systems to complete complex tasks\. However, the growing scale of skill libraries makes accurate skill selection increasingly challenging\. In real\-world scenarios, ambiguous semantic matching often arises between a specific task requirement and multiple generic yet semantically similar candidate skills\. Moreover, existing methods tend to overlook the dynamic influence of task difficulty and skill applicability when selecting the optimal target skill set\. To address these issues, we propose SkillReranker, an inference\-time reranking framework for adaptive skill selection\. Specifically, we first perform semantic decomposition on both the task and skill sides, yielding informative subtask and execution\-state descriptions as well as transition\-state descriptions that characterize each skill’s functionality\. These descriptions are then used to construct a directed acyclic execution graph, where intermediate task states are modeled as nodes and candidate skills as edges, thereby establishing a structured task–skill correspondence\. On this basis, SkillReranker determines whether each state node satisfies the split condition to identify subtask intervals\. For each task interval, we employ a cross\-encoder to perform comprehensive scoring over candidate skills and select the most suitable ones to form the final target skill set\. Experiments on ALFWorld and ScienceWorld with three backbone LLMs show that SkillReranker effectively improves task performance, reduces environment interaction steps, and lowers token consumption compared with existing skill selection baselines\.
## 1Introduction
Skills have emerged as an effective mechanism for enhancing the ability of large language model \(LLM\) agents to solve complex tasks\(Liuet al\.[2025](https://arxiv.org/html/2607.06283#bib.bib28); Wanget al\.[2026b](https://arxiv.org/html/2607.06283#bib.bib29); Liet al\.[2026c](https://arxiv.org/html/2607.06283#bib.bib13)\)\. Rather than requiring agents to rely entirely on the implicit reasoning and action generation of the underlying LLM, skill libraries explicitly organize both domain knowledge and procedural guidance, thereby providing more stable execution support\(Xu and Yan[2026](https://arxiv.org/html/2607.06283#bib.bib30); Jianget al\.[2026](https://arxiv.org/html/2607.06283#bib.bib22)\)\. However, as skill libraries continue to grow in scale\(Liet al\.[2026b](https://arxiv.org/html/2607.06283#bib.bib27)\), the functional boundaries among skills become increasingly blurred\. Accurately selecting the skills that best match the requirements of a given task from a large candidate pool remains a key challenge for LLM\-based agents\(Suet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib18); Choet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib34)\)\.
This challenge first arises from a granularity gap between task requirements and skill descriptions\. In real\-world scenarios, task requirements are typically concrete and concise, whereas skill descriptions tend to be more general, often targeting a class of similar tasks or a reusable operational pattern\(Lianget al\.[2026a](https://arxiv.org/html/2607.06283#bib.bib24); Zhenget al\.[2026](https://arxiv.org/html/2607.06283#bib.bib17)\)\. As a result, a specific task can be matched to multiple candidate skills that appear semantically similar but differ substantially in their actual utility, as shown in Figure[1](https://arxiv.org/html/2607.06283#S1.F1), where two heating\-related skills exhibit different prerequisites and execution workflows\. Selection methods that rely solely on overall textual similarity are prone to semantic ambiguity, mistaking surface\-level semantic relevance for genuine functional applicability and thereby undermining the accuracy of skill selection\.
Figure 1:Task\-matching difficulty caused by semantic similarity between skills\. The task is selected from the ALFWorld dataset\.Meanwhile, tasks vary in execution difficulty and complexity, which in turn leads to different requirements for the number of skills needed and their scope of applicability\(Qianet al\.[2025](https://arxiv.org/html/2607.06283#bib.bib33)\)\. Selecting too few skills may be insufficient to support the completion of complex tasks, while selecting too many may introduce redundant information, increase the agent’s decision\-making burden, and even interfere with subsequent execution\(Liuet al\.[2024](https://arxiv.org/html/2607.06283#bib.bib32); Hanet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib31)\)\. Therefore, skill selection should not be treated merely as a process of ranking a fixed number of candidate skills\. Instead, the final target skill set should be determined dynamically based on task requirements and the functional differences among candidate skills\.
To address these issues, we propose SkillReranker, an inference\-time reranking framework for adaptive skill selection\. Specifically, semantic decomposition is first performed on task descriptions and skill texts\. On the task side, each task is represented as an execution process composed of subtasks and intermediate states; on the skill side, state descriptions are extracted to characterize each skill’s applicable conditions and expected effects\. Building on these state representations, SkillReranker constructs a directed acyclic execution graph in which intermediate task states serve as nodes and skills serve as edges, enabling fine\-grained modeling of task–skill relationships\. The framework then determines whether each state node can define a local boundary for skill selection, dynamically partitions the task into subtask intervals, and employs a cross\-encoder to perform comprehensive scoring over candidate skills within each interval, thereby selecting the final target skill set\. Through this two\-stage design of structural modeling followed by interval\-wise reranking, SkillReranker improves the discriminability of skill matching while adaptively determining the number and composition of selected skills based on task difficulty and skill applicability\.
We conduct experiments on two benchmark datasets, ALFWorld and ScienceWorld, across three different model configurations, and analyze the impact of our method on both skill selection quality and task completion performance\. The results show that SkillReranker can more effectively identify skills that match different stages of task execution and dynamically adjust the target skill set according to task complexity, thereby improving the agent’s ability to solve complex tasks\.
Our main contributions are as follows:
- •We propose SkillReranker, an inference\-time adaptive skill reranking framework that dynamically selects the target skill set based on task requirements, overcoming the limitations of fixed Top\-k retrieval\.
- •We design a structured alignment mechanism between task execution processes and skill state information, enabling fine\-grained modeling and selection of candidate skills through a directed execution graph\.
- •We conduct systematic experiments on ALFWorld and ScienceWorld, demonstrating the effectiveness of SkillReranker in terms of both skill selection quality and task completion performance\.
## 2Related Work
Skill retrieval and selection\.Skill libraries give agents reusable procedural knowledge\(Wanget al\.[2023](https://arxiv.org/html/2607.06283#bib.bib12)\)\. Yet benchmarks show more skills is not better: an oversized context dilutes attention, and agents struggle to judge which skills are worth loading\(Liet al\.[2026c](https://arxiv.org/html/2607.06283#bib.bib13); Liuet al\.[2026b](https://arxiv.org/html/2607.06283#bib.bib14); Wanget al\.[2026c](https://arxiv.org/html/2607.06283#bib.bib15)\)\. To address this, retrieve\-then\-rerank pipelines narrow candidates via dense retrieval and cross\-encoder scoring\(Liet al\.[2026a](https://arxiv.org/html/2607.06283#bib.bib16); Zhenget al\.[2026](https://arxiv.org/html/2607.06283#bib.bib17)\), the latter finding the skill body decisive over its metadata; others cast it as on\-demand augmentation whose bottleneck is deciding whether and which skill to load\(Suet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib18)\)\. On presentation and budgeting, work adapts the budget per task\(Liet al\.[2026d](https://arxiv.org/html/2607.06283#bib.bib19)\), trims redundancy through compression and progressive disclosure\(Gaoet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib20)\), or infers skill demands under a performance–cost trade\-off\(Wanget al\.[2026a](https://arxiv.org/html/2607.06283#bib.bib21)\)\. These methods score a flat candidate set as one matching target; we instead align selection with the task’s intermediate execution states\.
Structured skill modeling\.Unlike conventional tool calls, skills are self\-contained packages of procedural knowledge, so managing and using them requires reasoning over interfaces, execution structure, and action evidence\(Jianget al\.[2026](https://arxiv.org/html/2607.06283#bib.bib22)\)\. To curb the ambiguity of text\-only representations, one line disentangles these signals into relational ontologies or layered schemas\(Lianget al\.[2026b](https://arxiv.org/html/2607.06283#bib.bib23),[a](https://arxiv.org/html/2607.06283#bib.bib24)\), while another builds executable skill graphs or capability trees for dependency\-aware retrieval and DAG\-based orchestration\(Liuet al\.[2026a](https://arxiv.org/html/2607.06283#bib.bib25); Xiaet al\.[2026](https://arxiv.org/html/2607.06283#bib.bib26); Liet al\.[2026b](https://arxiv.org/html/2607.06283#bib.bib27)\)\. These graphs, however, place skills at the nodes and capture skill\-side dependencies without aligning to the task’s own execution\. We instead construct a directed acyclic execution graph whose nodes are task intermediate states and whose edges are skills, aligning each skill’s preconditions and effects to task states and reranking within dynamically partitioned subtask intervals\.
Figure 2:Overview of the proposed framework\.\(1\) Structural Parsingdecomposes the task into sub\-tasks and states \(online\) and parses each skill into precondition/completion states \(offline\)\.\(2\) Execution Graph Constructionrecalls top\-KKcandidate skills and matches their precondition/completion states to task states, turning each skill into an edge of a state\-matching graph\.\(3\) Adaptive Skill Selectiondetects split points that partition the task into segments, reranks skills within each segment by a global and a local score, and deduplicates the per\-segment winners into a final skill set of adaptive size\.
## 3Problem Formulation
Given a taskqqdescribed in natural language, our goal is to select a set of skills that can support the agent in completing the task\. Let𝒮=s1,…,sN\\mathcal\{S\}=\{s\_\{1\},\\dots,s\_\{N\}\}denote the skill library collected from the open\-source platform skillsmp\.com, which containsN=67,884N=67\{,\}884skills\. Each skillsis\_\{i\}has metadatamim\_\{i\}, including its name and short description, and a complete skill textcic\_\{i\}\. Since this work focuses on adaptive skill selection in the reranking stage, we first retrieve a candidate set of sizeKKfor each task\. We encode the taskqqand each skill metadatamim\_\{i\}with an embedding modelE\(⋅\)E\(\\cdot\), instantiated as Qwen3\-Embedding\-0\.6B\(Zhanget al\.[2025](https://arxiv.org/html/2607.06283#bib.bib35)\), and select theKKskills with the largest cosine similarity:
𝒞K\(q\)=Top\-Ksi∈𝒮\[cos\(E\(q\),E\(mi\)\)\]\.\\mathcal\{C\}\_\{K\}\(q\)=\\operatorname\*\{Top\\text\{\-\}K\}\_\{s\_\{i\}\\in\\mathcal\{S\}\}\\left\[\\cos\\bigl\(E\(q\),E\(m\_\{i\}\)\\bigr\)\\right\]\.\(1\)whereK=30K=30in our experiments\. This step defines a compact candidate space for reranking, but it does not constrain the final selected set to contain exactlyKKskills\.
Given the candidate set𝒞K\(q\)\\mathcal\{C\}\_\{K\}\(q\), adaptive skill selection is formulated as selecting a subset of candidates according to the task description and the complete text of each candidate skill:
𝒮⋆\(q\)=f\(q,\{si∣si∈𝒞K\(q\)\}\)⊆𝒞K\(q\)\.\\mathcal\{S\}^\{\\star\}\(q\)=f\\bigl\(q,\\,\\\{s\_\{i\}\\mid s\_\{i\}\\in\\mathcal\{C\}\_\{K\}\(q\)\\\}\\bigr\)\\subseteq\\mathcal\{C\}\_\{K\}\(q\)\.\(2\)Here,ffdenotes the reranking and selection function implemented by SkillReranker\. The members and size of𝒮⋆\(q\)\\mathcal\{S\}^\{\\star\}\(q\)are determined adaptively according to the task requirements and the functional differences among candidate skills\.
## 4Method
This section presents the concrete implementation of the proposed framework\. The framework is organized into three main components, as shown in Figure[2](https://arxiv.org/html/2607.06283#S2.F2)\. First, we perform structured parsing of the task and the skills separately\. Based on the parsed representations, an execution graph is then constructed, where task sub\-states are represented as nodes and skills are modeled as edges\. Finally, guided by the graph structure, the framework adaptively determines the stage partition and selects skills for each stage\.
### 4\.1Structured Parsing of Task and Skills
We first transform the free\-form task instruction and skill documents into structured representations endowed with state semantics, so that subsequent alignment can be carried out in a unified state space\.
#### Task parsing\.
Given a task instruction, we use an expert LLM to first decompose it into an ordered sequence of high\-level sub\-tasksT=\(t0,…,tm−1\)T=\(t\_\{0\},\\dots,t\_\{m\-1\}\)in logical execution order\. Based on these sub\-tasks, the LLM further derives a sequence of key sub\-statesS=\(s0,…,sm\)S=\(s\_\{0\},\\dots,s\_\{m\}\), wheres0s\_\{0\}denotes the initial task state and each subsequent statesi\+1s\_\{i\+1\}describes the task progress after completing sub\-tasktit\_\{i\}\. In this way, each sub\-task naturally corresponds to a transition between two consecutive sub\-states\. The prompt template used for task parsing is provided in Appendix B\.1\. To make the parsed representation more concrete, we show an example of the extracted task fields below\.
Example of parsed task fields
#### Skill parsing\.
For each skillkkin the skill library, we also employ an expert LLM to parse its skill document into two state descriptions: a precondition statepkp\_\{k\}and a completion stateeke\_\{k\}\. The precondition state specifies the task or environmental condition required before the skill can be invoked, while the completion state describes the expected state after the skill is successfully executed\. If a skill does not require any specific prerequisite, its precondition state is set toNone\. This parsing process characterizes each skill as a state transition frompkp\_\{k\}toeke\_\{k\}\. Skill parsing is performed offline during preprocessing, and the parsed results are cached together with the original skill metadata\. The prompt template used for skill parsing is provided in Appendix B\.2\. The following example illustrates how a skill document is converted into its structured precondition and completion states\.
Example of parsed skill fields
### 4\.2Execution Graph Construction
For a given task, we first perform coarse recall over the skill library with a sentence encoder, taking the Top\-KKskills by similarity to obtain the candidate skill set𝒞\\mathcal\{C\}\. We then take the task sub\-states as nodes and map each candidate skill to a directed edge in the graph, yielding the execution graph of the task, whose node set is\{s0,…,sn−1\}\\\{s\_\{0\},\\dots,s\_\{n\-1\}\\\}\.
Specifically, we use a cross\-encoder rerankerr\(⋅,⋅\)r\(\\cdot,\\cdot\)to measure the relevance between two pieces of text\. For each candidate skillkk, we first align its precondition state with each sub\-state and take the one with the highest relevance as the source node of the skill edge; if the skill has no precondition dependency, the source node is set to the initial state:
srck=\{0,pk=Noneargmax0≤i≤n−2r\(si,pk\),otherwise\.\\mathrm\{src\}\_\{k\}=\\begin\{cases\}0,&p\_\{k\}=\\texttt\{None\}\\\\\[4\.0pt\] \\displaystyle\\arg\\max\_\{0\\leq i\\leq n\-2\}\\;r\(s\_\{i\},\\,p\_\{k\}\),&\\text\{otherwise\.\}\\end\{cases\}\(3\)Among the sub\-states after the source node, we then align the completion state and take the best match as the target node:
tgtk=srck\+1\+argmax0≤j≤n−srck−2r\(ssrck\+1\+j,ek\)\.\\mathrm\{tgt\}\_\{k\}=\\mathrm\{src\}\_\{k\}\+1\+\\arg\\max\_\{0\\leq j\\leq n\-\\mathrm\{src\}\_\{k\}\-2\}\\;r\\big\(s\_\{\\mathrm\{src\}\_\{k\}\+1\+j\},\\,e\_\{k\}\\big\)\.\(4\)If the source node is already at the end of the sequence and no landing point can be found after it \(i\.e\.,srck\+1≥n\\mathrm\{src\}\_\{k\}\+1\\geq n\), the skill cannot advance the task within this task sequence and is discarded\. In this way, each candidate skill is represented as a directed edge from its source node to its target node, with the semantics that the skill can advance the task from the source sub\-state to the target sub\-state\. In addition, we compute the relevanceρk=r\(q,ck\)\\rho\_\{k\}=r\(q,c\_\{k\}\)between the skill document and the entire task instructionqq, which serves as the basis for the subsequent edge weights and scoring\. All candidate skills together constitute the execution graph that covers the task’s state sequence\.
### 4\.3Adaptive Skill Selection
The execution graph characterizes the active interval of each skill along the task timeline\. An ideal skill combination should make these intervals connect end to end, jointly spanning the entire path from the initial state to the goal state\. Accordingly, we first identify the natural stage boundaries of the task and then select skills stage by stage\.
#### Identifying stage split points\.
We assign each edge a weightwk=σ\(ρk\)w\_\{k\}=\\sigma\(\\rho\_\{k\}\)\(whereσ\\sigmais the sigmoid function\), and for each nodeiiwe compute three quantities:
In\(i\)\\displaystyle\\mathrm\{In\}\(i\)=∑k:tgtk≤iwk1\+\(i−tgtk\)/\(n−1\),\\displaystyle=\\sum\_\{k:\\,\\mathrm\{tgt\}\_\{k\}\\leq i\}\\frac\{w\_\{k\}\}\{1\+\(i\-\\mathrm\{tgt\}\_\{k\}\)/\(n\-1\)\},\(5\)Out\(i\)\\displaystyle\\mathrm\{Out\}\(i\)=∑k:srck≥iwk1\+\(srck−i\)/\(n−1\),\\displaystyle=\\sum\_\{k:\\,\\mathrm\{src\}\_\{k\}\\geq i\}\\frac\{w\_\{k\}\}\{1\+\(\\mathrm\{src\}\_\{k\}\-i\)/\(n\-1\)\},Cross\(i\)\\displaystyle\\mathrm\{Cross\}\(i\)=∑k:srck<i<tgtkwk\.\\displaystyle=\\sum\_\{k:\\,\\mathrm\{src\}\_\{k\}<i<\\mathrm\{tgt\}\_\{k\}\}w\_\{k\}\.
HereIn\(i\)\\mathrm\{In\}\(i\)measures the strength of skills that complete at or before nodeii,Out\(i\)\\mathrm\{Out\}\(i\)measures the strength of skills that start at or after nodeii\(both decaying with distance\), andCross\(i\)\\mathrm\{Cross\}\(i\)measures the strength of skills that pass directly across nodeiiwithout stopping at it\. Intuitively, if at a certain node many skills finish while many others depart, yet almost no skill straddles it, then this node is an indispensable bottleneck in task execution and a natural boundary for stage transition\. Accordingly, an intermediate nodeii\(with1≤i≤n−21\\leq i\\leq n\-2\) is taken as a split point if and only if
In\(i\)\>Cross\(i\)andOut\(i\)\>Cross\(i\)\.\\mathrm\{In\}\(i\)\>\\mathrm\{Cross\}\(i\)\\quad\\text\{and\}\\quad\\mathrm\{Out\}\(i\)\>\\mathrm\{Cross\}\(i\)\.\(6\)Denoting the resulting split points together with the two boundaries asP=\{0\}∪\{i∣iis a split point\}∪\{n−1\}P=\\\{0\\\}\\cup\\\{\\,i\\mid i\\text\{ is a split point\}\\,\\\}\\cup\\\{n\-1\\\}, sortingPPin ascending order divides the task into several contiguous stages\. Note that the number of stages is entirely determined by the task’s own structure and the coverage of the candidate skills, rather than by a predefined fixed value\.
#### Stage\-wise skill selection\.
For each stage, we concatenate its internal sub\-tasks in order into an overall task description of the stage, and then compute a stage\-fit score for each candidate skill\. This score combines the task\-level relevance and the stage\-level sub\-task relevance in log space:
ϕk=logσ\(ρk\)\+logσ\(r\(τ,ck\)\),\\phi\_\{k\}=\\log\\sigma\(\\rho\_\{k\}\)\+\\log\\sigma\\big\(r\(\\tau,\\,c\_\{k\}\)\\big\),\(7\)whereτ\\tauis the concatenated sub\-task text of the current stage\. The skill with the highest score is taken as the selected skill of that stage\. The log\-summation is equivalent to taking the geometric mean of the two relevance probabilities, requiring the selected skill to both fit the task overall and precisely cover the sub\-tasks of the current stage, thereby suppressing skills that excel at only one of the two while being weak on the other\.
Table 1:Main results across two interactive benchmarks\. R = average reward/score \(↑\\uparrow\), S = average environment steps \(↓\\downarrow\)\. Best inbold, second\-bestunderlined\. For ALFWorld, R is average reward \(0–100\)\. For ScienceWorld, R is average score \(0–100\)\.
#### Deduplication and output\.
We arrange the selected skills of all stages in stage order and deduplicate them to obtain the final skill set\. Since adjacent stages may hit the same skill, the final number of skills does not exceed the number of stages\. The entire procedure does not rely on a fixed Top\-kkcutoff: when the task structure is simple it returns only a few skills, and when the task spans multiple execution stages it automatically returns more complementary skills, achieving an adaptive variation of both the number and the combination of skills according to the task\.
## 5Experiment
### 5\.1Experimental Setup
#### Benchmarks\.
Our framework is evaluated on two interactive benchmarks: ALFWorld\(Shridharet al\.[2020](https://arxiv.org/html/2607.06283#bib.bib36)\)and ScienceWorld\(Wanget al\.[2022](https://arxiv.org/html/2607.06283#bib.bib37)\)\. ALFWorld targets household manipulation tasks and is divided into seen and unseen test splits, with the seen split containing 140 tasks and the unseen split containing 134 tasks\. ScienceWorld is a text\-based interactive environment centered on scientific experimental tasks, covering 30 task types\. To maintain consistency with ALFWorld, we refer to its original validation and test splits as the seen and unseen splits, which contain 194 and 211 task instances, respectively\.
#### Implementation\.
The LLM agent system with skill usage is built using the open\-source LangChain framework\. Experiments are conducted with representative LLMs from three different model families: DeepSeek\-v4\-Flash, GPT\-5\.4\-Mini, and Qwen3\.6\-27B\(Qwen Team[2026](https://arxiv.org/html/2607.06283#bib.bib39)\)\. DeepSeek\-v4\-Flash and GPT\-5\.4\-Mini are accessed through their official APIs with temperature set to 0, while Qwen3\.6\-27B is locally deployed using vLLM under the same decoding temperature\. In our method, DeepSeek\-v4\-Flash is used as the LLM for semantic decomposition during the structured parsing stage, while Qwen3\-Reranker\-0\.6B\(Zhanget al\.[2025](https://arxiv.org/html/2607.06283#bib.bib35)\)is adopted as the cross\-encoder scorer for execution graph construction and skill selection\. All skills are collected from skillsmp\.com, and the candidate pool size is set toK=30K=30for each task\. For evaluation on both benchmarks, the maximum number of environment steps is set to 30\.
#### Baselines\.
We compare SkillReranker against three baselines: LLM\-as\-selector, SkillRouter\(Zhenget al\.[2026](https://arxiv.org/html/2607.06283#bib.bib17)\), and Graph of Skills\(Liuet al\.[2026a](https://arxiv.org/html/2607.06283#bib.bib25)\)\. LLM\-as\-selector is a generative skill selector that prompts an LLM to rerank candidate skills\. Given the task description and the full text ofKKcandidate skills as input, it outputs a reranked skill list\. In our experiments, Mimo\-v2\.5\-Pro\(Xiaomi MiMo Team[2026](https://arxiv.org/html/2607.06283#bib.bib40)\)is used for this baseline\. SkillRouter fine\-tunes a bi\-encoder retriever and a cross\-encoder reranker to select relevant skills from large\-scale skill libraries\. Graph of Skills constructs a dependency\-aware skill graph and retrieves structurally connected skill bundles through graph\-based inference\-time retrieval\. All baselines share the same frozen agent and skill pool\.
#### Evaluation\.
We report three metrics for each experimental setting: average reward, average number of steps, and average number of tokens\. Average reward denotes the average task success rate or reward score across all tasks, ranging from 0 to 100, where higher values indicate better performance\. The average number of steps measures the mean number of environment steps taken until task completion or failure, ranging from 0 to 30, where lower values are preferred\. The average number of tokens measures the mean token consumption during task execution across all tasks, where lower values indicate better efficiency\. As the average number of skills adaptively selected by our method falls between 1 and 2, the reported baseline results are averaged over two settings, where the top\-1 and top\-2 selected skills are used, respectively\.
Alf\-seenAlf\-unseenSci\-seenSci\-unseen40,00040,00050,00050,00060,00060,00070,00070,00080,00080,000Average TokensDeepSeek\-v4\-FlashAlf\-seenAlf\-unseenSci\-seenSci\-unseen40,00040,00060,00060,00080,00080,000100,000100,000Average TokensGPT\-5\.4\-Mini[3](https://arxiv.org/html/2607.06283#S5.F3)Figure 3:Average token consumption of different methods on Alfworld and ScienceWorld \(lower is better\)\. Each group along the horizontal axis corresponds to a “dataset–split” combination \(seen/unseen\), and the vertical axis denotes the average number of consumed tokens\.Table 2:Ablation results in terms of average reward \(RR\) on ALFWorld and ScienceWorld under different model configurations\.
### 5\.2Main Results
#### Overall Performance\.
We present the main results in Table[1](https://arxiv.org/html/2607.06283#S4.T1)and Figure[3](https://arxiv.org/html/2607.06283#S5.F3)\. As shown in Table[1](https://arxiv.org/html/2607.06283#S4.T1), SkillReranker exhibits clear advantages across the two interactive benchmarks, both test splits, and all three backbone LLMs\.Overall, our method ranks first in 11 out of 12 reward/score settings and 11 out of 12 average\-step settings\.Compared with SkillRouter, the strongest baseline in most cases, SkillReranker shows particularly pronounced gains with DeepSeek\-v4\-Flash and GPT\-5\.4\-Mini\. For example, on ALFWorld\-unseen, it improves the average reward from 73\.14 to 78\.73 and from 67\.91 to 70\.90, respectively\. These results suggest that SkillReranker is not tied to a specific backbone model, but consistently improves skill selection quality across models with different capabilities\.
#### Execution Efficiency\.
Beyond task performance, SkillReranker also reduces environment interaction steps in nearly all settings\. With DeepSeek\-v4\-Flash, for example, it lowers the average steps from 16\.31 to 15\.48 on ALFWorld\-seen and from 18\.14 to 16\.84 on ScienceWorld\-unseen, showing that better skill selection leads to more efficient execution\. Although SkillReranker is slightly below the best baseline on the Qwen3\.6\-27B ScienceWorld\-seen reward and ScienceWorld\-unseen step metrics, it remains competitive, and the overall results demonstrate its effectiveness in both skill selection quality and execution efficiency\.
#### Token Consumption\.
We also report the average token consumption during task execution in Figure[3](https://arxiv.org/html/2607.06283#S5.F3)\. On average, SkillReranker selects 1\.3 skills per task on ALFWorld\-seen and 1\.291 skills on ALFWorld\-unseen\. On the seen and unseen splits of ScienceWorld, it selects 1\.299 and 1\.275 skills, respectively, with detailed results provided in Appendix A\. This adaptive skill selection mechanism enables our method to consume fewer tokens\. As shown in Figure[3](https://arxiv.org/html/2607.06283#S5.F3), SkillReranker achieves the lowest average token consumption across all settings of the two models \(see Appendix A for more results\)\.These results indicate that SkillReranker can further reduce context length and token cost\.
### 5\.3Ablation Study
To evaluate the contribution of each component, we conduct ablation experiments with two LLM backbones: DeepSeek\-v4\-Flash and Qwen3\.6\-27B\. The full version of our method is denoted as Ours\.\(1\) The w/o Parsingvariant removes structured task and skill decomposition, and directly applies the reranker to the original task description and candidate skills\.\(2\) The w/o Graph Edgevariant removes the execution graph structure and performs joint reranking only based on the decomposed subtask descriptions\.\(3\) The w/o Splitvariant disables adaptive skill selection and instead selects one skill independently for each subtask\.
As shown in Table[2](https://arxiv.org/html/2607.06283#S5.T2), the full method achieves the best performance in most settings across the two LLM backbones, with the only exception being ScienceWorld\-unseen under Qwen3\.6\-27B, where removing split detection yields a slightly higher reward\. Among the ablated variants, w/o Parsing generally causes the largest performance degradation, especially under Qwen3\.6\-27B, indicating that explicit task and skill state descriptions are crucial for reliable skill matching\. Removing graph edges also consistently weakens performance, showing that modeling skills as transitions between task states provides useful structural information beyond independent subtask\-level matching\. The w/o Split variant performs competitively in some cases but is generally inferior to the full method, suggesting that adaptive skill selection granularity is beneficial overall, although its effect may vary across models and dataset splits\. These results demonstrate the importance of structural parsing, graph\-based alignment, and adaptive skill selection in the proposed framework\.
\(a\)
\(b\)
Figure 4:Two examples of skill retrieval by our method on the ALFWorld dataset\.
### 5\.4Case Study
Figure[4](https://arxiv.org/html/2607.06283#S5.F4)presents two representative examples from ALFWorld to illustrate how our method performs structure\-aware skill selection\. In Figure[4\(a\)](https://arxiv.org/html/2607.06283#S5.F4.sf1), the task “Put a watch on a sidetable” has a relatively simple execution structure\. The valuewwdenotes the matching score between the original task description and each skill text, which provides a global relevance estimate\. Although several candidate skills are retrieved, the detected task interval contains only one major subtask: obtaining the watch and placing it on a suitable surface\. By further incorporating the matching between the local subtask and candidate skills, the method selects alfworld\-object\-locator, which directly supports locating and acquiring the target object\. This example shows that our method can avoid selecting redundant skills when the task can be handled by a single functional skill\.
Figure[4\(b\)](https://arxiv.org/html/2607.06283#S5.F4.sf2)shows a more complex task, “Put a hot mug in coffeemachine,” which requires multiple functional operations\. The global task\-skill scoreswwindicate that both alfworld\-object\-locator and alfworld\-heat\-object\-with\-appliance are highly relevant to the original task\. More importantly, after the task is divided into finer intervals, the local subtasks further distinguish the required operations: obtaining the mug and heating it with an appliance\. By combining the global task\-level matching scores with the local subtask\-level matching scores, the method selects both skills\. This example demonstrates that our method can adaptively increase the number of selected skills when the task involves multiple execution stages\.
## 6Conclusion
In this paper, we propose SkillReranker, an inference\-time adaptive skill reranking framework for LLM\-based agents\. Unlike fixed Top\-kkskill selection methods, SkillReranker explicitly models the alignment between task execution states and skill functionality\. By decomposing tasks and skills into structured state representations, constructing a directed execution graph, and performing stage\-wise reranking over dynamically identified task intervals, our method selects skills according to both task requirements and skill applicability\. Experiments on ALFWorld and ScienceWorld across multiple backbone LLMs show that SkillReranker consistently improves task performance, reduces environment interaction steps, and lowers token consumption\. These results demonstrate the effectiveness of structure\-aware and adaptive skill selection for improving the reliability and efficiency of skill\-augmented LLM agents\.
## 7Limitations
Although SkillReranker improves adaptive skill selection across different interactive benchmarks, it still has several limitations\. First, the framework relies on LLM\-based task decomposition and skill\-state parsing, so inaccurate intermediate states or incomplete skill descriptions may affect the quality of graph construction and subsequent selection\. Second, the current implementation depends on cross\-encoder scoring over recalled candidates, which introduces additional inference overhead compared with simple embedding\-based retrieval\. Finally, our experiments focus on text\-based interactive environments, and extending the framework to broader embodied, multimodal, or real\-world agent settings remains an important direction for future work\.
## References
- H\. Cho, R\. Kang, and Y\. Kim \(2026\)SkillRet: a large\-scale benchmark for skill retrieval in llm agents\.arXiv preprint arXiv:2605\.05726\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1)\.
- Y\. Gao, Z\. Li, Z\. Ji, P\. Ma, S\. Wang,et al\.\(2026\)Skillreducer: optimizing llm agent skills for token efficiency\.arXiv preprint arXiv:2603\.29919\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- T\. Han, Y\. Zhang, W\. Song, C\. Fang, Z\. Chen, Y\. Sun, and L\. Hu \(2026\)SWE\-skills\-bench: do agent skills actually help in real\-world software engineering?\.arXiv preprint arXiv:2603\.15401\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p3.1)\.
- Y\. Jiang, D\. Li, H\. Deng, B\. Ma, X\. Wang, Q\. Wang, and G\. Yu \(2026\)SoK: agentic skills–beyond tool use in llm agents\.arXiv preprint arXiv:2602\.20867\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1),[§2](https://arxiv.org/html/2607.06283#S2.p2.1)\.
- F\. Li, P\. Tagkopoulos, and I\. Tagkopoulos \(2026a\)SkillFlow: scalable and efficient agent skill retrieval system\.External Links:2504\.06188,[Link](https://arxiv.org/abs/2504.06188)Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- H\. Li, C\. Mu, J\. Chen, S\. Ren, Z\. Cui, Y\. Zhang, L\. Bai, and S\. Hu \(2026b\)Organizing, orchestrating, and benchmarking agent skills at ecosystem scale\.arXiv preprint arXiv:2603\.02176\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1),[§2](https://arxiv.org/html/2607.06283#S2.p2.1)\.
- X\. Li, W\. Chen, Y\. Liu, S\. Zheng, X\. Chen, Y\. He, Y\. Li, B\. You, H\. Shen, J\. Sun,et al\.\(2026c\)SkillsBench: benchmarking how well agent skills work across diverse tasks\.arXiv preprint arXiv:2602\.12670\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1),[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- Y\. Li, W\. Liu, B\. Gao, J\. Xie, Z\. Ai, N\. Zou, Y\. Li, and T\. Fu \(2026d\)SkillsInjector: dynamic skill context construction for llm agents\.arXiv preprint arXiv:2605\.29794\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- Q\. Liang, H\. Wang, Z\. Liang, and Y\. Liu \(2026a\)From skill text to skill structure: the scheduling\-structural\-logical representation for agent skills\.arXiv preprint arXiv:2604\.24026\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p2.1),[§2](https://arxiv.org/html/2607.06283#S2.p2.1)\.
- Y\. Liang, R\. Zhong, H\. Xu, C\. Jiang, Y\. Zhong, R\. Fang, J\. Gu, S\. Deng, Y\. Yao, M\. Wang,et al\.\(2026b\)Skillnet: create, evaluate, and connect ai skills\.arXiv preprint arXiv:2603\.04448\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p2.1)\.
- D\. Liu, Z\. Li, H\. Du, X\. Wu, S\. Gui, Y\. Kuang, and L\. Sun \(2026a\)Graph of skills: dependency\-aware structural retrieval for massive agent skills\.arXiv preprint arXiv:2604\.05333\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p2.1),[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px3.p1.1)\.
- N\. F\. Liu, K\. Lin, J\. Hewitt, A\. Paranjape, M\. Bevilacqua, F\. Petroni, and P\. Liang \(2024\)Lost in the middle: how language models use long contexts\.Transactions of the association for computational linguistics12,pp\. 157–173\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p3.1)\.
- S\. Liu, Y\. Shu, C\. Guo, and B\. Yang \(2025\)Learning generalizable skills from offline multi\-task data for multi\-agent cooperation\.arXiv preprint arXiv:2503\.21200\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1)\.
- Y\. Liu, J\. Ji, L\. An, T\. Jaakkola, Y\. Zhang, and S\. Chang \(2026b\)How well do agentic skills work in the wild: benchmarking llm skill usage in realistic settings\.arXiv preprint arXiv:2604\.04323\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- C\. Qian, E\. C\. Acikgoz, H\. Wang, X\. Chen, A\. Sil, D\. Hakkani\-Tur, G\. Tur, and H\. Ji \(2025\)SMART: self\-aware agent for tool overuse mitigation\.InFindings of the Association for Computational Linguistics: ACL 2025,pp\. 4604–4621\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p3.1)\.
- Qwen Team \(2026\)Qwen3\.6\-27B: flagship\-level coding in a 27B dense model\.External Links:[Link](https://qwen.ai/blog?id=qwen3.6-27b)Cited by:[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px2.p1.1)\.
- M\. Shridhar, X\. Yuan, M\. Côté, Y\. Bisk, A\. Trischler, and M\. Hausknecht \(2020\)Alfworld: aligning text and embodied environments for interactive learning\.arXiv preprint arXiv:2010\.03768\.Cited by:[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px1.p1.1)\.
- W\. Su, J\. Long, Q\. Ai, Q\. He, Y\. Tang, C\. Wang, Y\. Tu, Y\. Wang, and Y\. Liu \(2026\)Skill retrieval augmentation for agentic ai\.arXiv preprint arXiv:2604\.24594\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1),[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- G\. Wang, Y\. Xie, Y\. Jiang, A\. Mandlekar, C\. Xiao, Y\. Zhu, L\. Fan, and A\. Anandkumar \(2023\)Voyager: an open\-ended embodied agent with large language models\.arXiv preprint arXiv:2305\.16291\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- J\. Wang, Y\. Ming, Z\. Ke, S\. Joty, A\. Albarghouthi, and F\. Sala \(2026a\)Skillorchestra: learning to route agents via skill transfer\.arXiv preprint arXiv:2602\.19672\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- J\. Wang, Q\. Yan, Y\. Wang, Y\. Tian, S\. S\. Mishra, Z\. Xu, M\. Gandhi, P\. Xu, and L\. L\. Cheong \(2026b\)Reinforcement learning for self\-improving agent with skill library\.InProceedings of the 64th Annual Meeting of the Association for Computational Linguistics \(Volume 1: Long Papers\),pp\. 1529–1550\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1)\.
- L\. Wang, Z\. Wang, and A\. Xu \(2026c\)Skilltester: benchmarking utility and security of agent skills\.arXiv preprint arXiv:2603\.28815\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p1.1)\.
- R\. Wang, P\. Jansen, M\. Côté, and P\. Ammanabrolu \(2022\)Scienceworld: is your agent smarter than a 5th grader?\.InProceedings of the 2022 Conference on Empirical Methods in Natural Language Processing,pp\. 11279–11298\.Cited by:[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px1.p1.1)\.
- T\. Xia, L\. Hu, Y\. Sun, M\. Xu, L\. Xu, S\. Wang, W\. Xu, and J\. Jiang \(2026\)GraSP: graph\-structured skill compositions for llm agents\.arXiv preprint arXiv:2604\.17870\.Cited by:[§2](https://arxiv.org/html/2607.06283#S2.p2.1)\.
- Xiaomi MiMo Team \(2026\)MiMo\-v2\.5\-pro\.Note:https://huggingface\.co/collections/XiaomiMiMo/mimo\-v25Cited by:[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px3.p1.1)\.
- R\. Xu and Y\. Yan \(2026\)Agent skills for large language models: architecture, acquisition, security, and the path forward\.arXiv preprint arXiv:2602\.12430\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p1.1)\.
- Y\. Zhang, M\. Li, D\. Long, X\. Zhang, H\. Lin, B\. Yang, P\. Xie, A\. Yang, D\. Liu, J\. Lin, F\. Huang, and J\. Zhou \(2025\)Qwen3 embedding: advancing text embedding and reranking through foundation models\.arXiv preprint arXiv:2506\.05176\.Cited by:[§3](https://arxiv.org/html/2607.06283#S3.p1.11),[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px2.p1.1)\.
- Y\. Zheng, Z\. Zhang, C\. Ma, Y\. Yu, J\. Zhu, Y\. Wu, T\. Xu, B\. Dong, H\. Zhu, R\. Huang,et al\.\(2026\)Skillrouter: skill routing for llm agents at scale\.arXiv preprint arXiv:2603\.22455\.Cited by:[§1](https://arxiv.org/html/2607.06283#S1.p2.1),[§2](https://arxiv.org/html/2607.06283#S2.p1.1),[§5\.1](https://arxiv.org/html/2607.06283#S5.SS1.SSS0.Px3.p1.1)\.
## Appendix AAdditional Token Consumption Results
Table 3:Detailed token consumption results on ALFWorld and ScienceWorld\. “Num\.” denotes the average number of selected skills, and “Tokens” denotes the average token consumption during task execution\. Lower token consumption is better\.
## Appendix BPrompt Templates
This appendix provides the prompt templates used for structured task parsing and skill parsing\. Appendix[B\.1](https://arxiv.org/html/2607.06283#A2.SS1)shows the prompt used to decompose a task into high\-level subtasks and key sub\-states, while Appendix[B\.2](https://arxiv.org/html/2607.06283#A2.SS2)shows the prompt used to extract the precondition and completion states from each skill document\.
### B\.1Task Parsing Prompt
The following prompt is used to parse each task instruction into an ordered sequence of high\-level subtasks and the corresponding key task states\.
`Task parsing prompt`
`B\.2 Skill Parsing Prompt The following prompt is used to parse each skill document into two structured state descriptions, namely the precondition state and the completion state\. Skill parsing prompt`Similar Articles
Skill-RM: Unifying Heterogeneous Evaluation Criteria via Agent Skill
Skill-RM proposes a unified reward modeling framework that treats reward computation as a structured agentic task, enabling dynamic evidence aggregation and consistent evaluation across diverse applications, outperforming traditional judge baselines.
RESOURCE2SKILL: Distilling Executable Agent Skills from Human-Created Multimodal Resources
RESOURCE2SKILL is a framework that distills executable agent skills from multimodal resources like tutorial videos, code repositories, articles, and artifacts into a hierarchical SkillWiki, improving agent performance by 11.9 percentage points over no-skill agents.
SkillRet: A Large-Scale Benchmark for Skill Retrieval in LLM Agents
This paper introduces SkillRet, a large-scale benchmark for evaluating skill retrieval in LLM agents, addressing the challenge of selecting relevant skills from large libraries. It provides a dataset of over 17,000 skills and demonstrates that task-specific fine-tuning significantly improves retrieval performance.
Recursive Self-Improvement for Skills (Skill RSI)
Skill RSI is a free tool that recursively evaluates and improves AI skills via procedural evaluations and a research agent, supporting standalone or Codex plugin usage.
SkillGraph: Skill-Augmented Reinforcement Learning for Agents via Evolving Skill Graphs
SkillGraph is a framework that represents reusable skills as nodes in a directed graph to enable large language model agents to handle compositional tasks more effectively through structured skill retrieval and continuous evolution.