TL;DR
SKILLGRAPH introduces a novel framework that organizes an LLM agent's learned skills into a structured, directed graph with typed edges (prerequisites, enhancements, and co-occurrences) rather than a flat list. By co-evolving this skill graph alongside the agent's policy using reinforcement learning, the system delivers dependency-ordered skill sequences that drastically improve performance on complex, multi-step compositional tasks.
What Problem Does This Paper Address?
While Large Language Model (LLM) agents excel at interactive tasks, they struggle to learn from past experiences across episodes. Traditional approaches maintain a "skill library" to store reusable knowledge chunks, but these libraries are typically organized as flat collections.
This flat structure introduces two major limitations:
- Non-compositional retrieval: For complex tasks requiring a strict sequence of actions (e.g., "heat and place an object" requires locating, picking, heating, and then placing), a standard top-$K$ semantic search returns relevant skills but fails to specify their execution order or dependencies.
- Unstructured maintenance: Without structural cues, it is incredibly difficult for an agent to automatically decide when to merge redundant skills, split overly broad ones, or deprecate obsolete strategies.
Methods
SKILLGRAPH addresses these challenges by modeling skills as nodes in a directed graph $G = (V, E)$. The framework operates in a closed loop across three main stages:
- Graph Construction: A powerful teacher model (OpenAI o3) distills successful and failed trajectories into general or task-specific skills. It connects them using three typed edges:
- Prerequisite: Skill A must precede Skill B.
- Enhancement: General Skill A improves task-specific Skill B.
- Co-occurrence: Skills A and B frequently appear together in successful runs.
- Graph-Aware Retrieval: Instead of flat retrieval, SKILLGRAPH selects task-relevant "seed" skills, expands backward (via BFS) to capture foundational prerequisites, and expands forward (via beam search) to find enhancements. It then topologically sorts the final subset, presenting the agent with a natural, simple-to-complex sequence of instructions.
- Graph Evolution & Progressive Unlocking: The graph dynamically adapts based on reinforcement learning feedback. Nodes are inserted, merged, split, or deprecated based on usage and success rates. Furthermore, a progressive unlocking mechanism acts as an automatic curriculum, only exposing higher-level compositional skills once the agent has mastered their prerequisites.
The base policy (Qwen2.5-7B-Instruct) is optimized using Group Relative Policy Optimization (GRPO), creating a self-reinforcing loop where a better policy generates richer trajectories to further refine the graph.
Datasets
The authors evaluated SKILLGRAPH across three distinct environment types:
- ALFWorld: A text-based embodied household manipulation environment featuring six multi-step task categories.
- WebShop: A complex web navigation and e-commerce platform requiring agents to search, browse, and purchase items based on user specifications.
- Search-Augmented QA: Seven benchmarks split into single-hop tasks (NQ, TriviaQA, PopQA) and multi-hop tasks (HotpotQA, 2Wiki, MuSiQue, Bamboogle). The model was trained on NQ and HotpotQA and evaluated zero-shot on the remaining five out-of-domain datasets.
Key Insights and Ideas
- Structure Beats Scale: A 7B open-source model equipped with SKILLGRAPH can comfortably outperform massive closed-source models like GPT-4o and Gemini-2.5-Pro on compositional tasks by leveraging structured reasoning.
- Self-Regulating Graph Dynamics: As shown in the training dynamics, while the total number of discovered skills grows, the number of active skills plateaus. The graph naturally prunes away low-quality or redundant nodes, preventing context bloat.
- Shorter Prompts, Higher Signal: Counter-intuitively, graph-guided retrieval maintains shorter average prompt lengths than flat retrieval methods. By restricting the context to topologically relevant dependencies, it filters out semantic noise and reduces inference costs.
Key Results
SKILLGRAPH achieved state-of-the-art performance across all evaluated benchmarks, showing massive improvements in multi-step tasks:
- ALFWorld & WebShop: SKILLGRAPH achieved a 90.6% overall success rate on ALFWorld (outperforming GPT-4o's 48.0% and the strong SkillRL baseline's 89.9%). On WebShop, it achieved an 84.4% success rate, beating SkillRL by 11.7 points.
- Generalization: In zero-shot out-of-domain QA evaluations, SKILLGRAPH maintained the highest average score (48.9%), proving that structured skill dependencies transfer effectively to unseen tasks without task-specific adaptation.
Limitations and Future Work
Despite its strong performance, the authors note a few key limitations:
- Teacher Dependency: The framework relies heavily on a high-tier teacher model (like OpenAI o3) for skill distillation and graph adaptation, which introduces substantial computational and financial overhead during training. Exploring self-distillation or critic-based generation is a key future direction.
- Single-Environment Evolution: Currently, the skill graph is constructed and evolved within a single environment at a time. Investigating cross-environment skill transfer—where a graph trained on one domain can bootstrap learning in an entirely different one—remains an open and promising area of research.
Summary updated