Compositional Skill Routing for LLM Agents: Decompose, Retrieve, and Compose

📅 2026-06-16
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
Existing large language model agents struggle to effectively decompose complex tasks, retrieve appropriate skills, and generate executable multi-skill composition plans. This work proposes SkillWeaver, a framework comprising a three-stage pipeline—task decomposition, skill retrieval, and dependency-aware DAG planning—and introduces the first iterative Skill-Aware Decomposition (SAD) mechanism, which leverages a retrieval feedback loop to enhance alignment between subtasks and the skill repository. The study also constructs CompSkillBench, the first benchmark dedicated to compositional skills. Experimental results demonstrate that a single SAD iteration improves decomposition accuracy from 51.0% to 67.7% while reducing context consumption by over 99%, and achieves a 35.6% relative planning gain on unseen skill categories.
📝 Abstract
LLM agents increasingly rely on external skills -- reusable tool specifications -- but real-world tasks often require composing multiple skills, not just selecting one. We formalize this as the Compositional Skill Routing problem: given a complex user query and a large skill library, decompose the query into atomic sub-tasks, retrieve the appropriate skill for each sub-task, and compose an executable plan. We present SkillWeaver, a decompose-retrieve-compose framework combining an LLM task decomposer, a bi-encoder skill retriever with FAISS indexing, and a dependency-aware DAG planner. To support evaluation, we introduce CompSkillBench, a benchmark of 300 compositional queries over 2,209 real MCP server skills spanning 24 functional categories, sourced from the public MCP ecosystem. Our experiments reveal that task decomposition quality is the primary bottleneck: standard LLM decomposition reaches only 34.2% category recall at the step level. To address this, we propose Iterative Skill-Aware Decomposition (SAD), a retrieval-augmented feedback loop that iteratively aligns decomposition with available skills. SAD improves decomposition accuracy from 51.0% to 67.7% (+32.7%, Wilcoxon p < 10^-6) in a single iteration; DA-conditioned analysis confirms that correct granularity is the prerequisite for effective retrieval (CatR@1 rises from 34% to 41% when DA=1). SkillWeaver reduces context window consumption by over 99%, and transfer experiments confirm generalization (+35.6% relative DA gain even when target categories are absent from the retrieval pool).
Problem

Research questions and friction points this paper is trying to address.

Compositional Skill Routing
LLM Agents
Task Decomposition
Skill Retrieval
Executable Planning
Innovation

Methods, ideas, or system contributions that make the work stand out.

Compositional Skill Routing
SkillWeaver
Iterative Skill-Aware Decomposition
Task Decomposition
Skill Retrieval
🔎 Similar Papers
No similar papers found.
💼 Related Jobs
No related jobs found.
X
Xueping Gao
Alibaba Cloud