TL;DR
HiSkill introduces a hierarchical skill graph framework that bridges the gap between abstract, high-level strategies and concrete executable actions for LLM agents. By structuring past experiences into a directed graph of skills, atomic operations, and typed relationship edges, it enables more robust, flexible, and token-efficient task execution in long-horizon environments.
What Problem Does This Paper Address?
Large Language Model (LLM) agents excel at short tasks but frequently stumble when facing long-horizon, multi-step interactive problems. To help agents reuse past experiences, recent methods automatically distill interaction trajectories into "skills."
However, existing approaches typically generate flat collections of text-based skills that are stored and retrieved independently. This creates two major limitations:
- The Execution Gap: High-level textual guidance (e.g., "clean the object") doesn't inherently tell the agent how to ground that skill into concrete actions with precise arguments and timing.
- Underutilized Relations: Flat structures ignore how skills relate to one another—such as which skills share action patterns, what prerequisites are required, or how to recover when a specific action fails.
Methods
HiSkill addresses these gaps by building a Hierarchical Skill Graph from historical trajectories and executing tasks using a three-step pipeline:
- Hierarchical Skill Graph Construction:
- AtomicOp Extraction: Raw actions are canonicalized into generalized, environment-agnostic action templates (
AtomicOpnodes), creating an executable vocabulary. - Skill Discovery: Frequent action patterns are mined from successful trajectories to form
Skillnodes, complete with structured metadata (pre-states, post-states, and failure hints). - Typed Edge Induction: The framework connects these nodes using five distinct edge types:
decomposes_to(linking skills to their composite atomic operations),can_follow(temporal transitions),compatible_with(unordered compositions),supports(prerequisites), andrecovers_with(recovery pathways derived from failed trajectories). - Task-Relevant Skill Subgraph Retrieval: Instead of feeding the entire graph to the LLM, HiSkill uses a hybrid dense-sparse retrieval strategy (combining semantic embeddings and BM25 lexical matching) to find relevant seed nodes. It then performs a one-hop "graph hydration" expansion to extract a compact, task-specific subgraph.
- Subgraph-Guided Task Execution: At runtime, the system maintains a symbolic task state and tracks an "active skill." Guided by the retrieved subgraph, the LLM dynamically decides whether to maintain or switch the active skill, select the next
AtomicOp, or execute a direct fallback action.
Datasets
The authors evaluated HiSkill across three diverse interactive benchmarks:
- ALFWorld: A text-based embodied environment requiring household manipulation tasks (e.g., clean and place objects).
- WebShop: A web-based online shopping environment where agents must navigate, filter, and purchase items matching complex user constraints.
- ScienceWorld: A complex scientific experimentation environment testing grounded reasoning and long-horizon procedural control under partial observations.
Key Insights and Ideas
- Failure is a Feature: Unlike many frameworks that only learn from success, HiSkill explicitly leverages failed trajectories to induce
recovers_withedges. This gives the agent a structured safety net, allowing it to gracefully pivot when an action stalls or fails. - Structure Beats Context Size: Flooding an LLM's context window with raw trajectory histories or massive text prompts introduces decision noise. Providing a structured, highly localized subgraph allows the agent to reason more accurately with substantially less information.
- Explicit Grounding: By explicitly mapping abstract skills to parameterized
AtomicOptemplates, the framework eliminates the ambiguity that often causes LLMs to hallucinate incorrect action arguments during execution.
Key Results
Evaluated using backbone models like Gemini-2.5-Pro and GPT-5.2-Codex, HiSkill consistently outperformed state-of-the-art prompt-, memory-, and skill-based baselines:
- Performance Boost: Compared to the strongest baseline across all datasets, HiSkill achieved an average relative improvement of 17.33% in success rate and 22.95% in overall score.
- Massive Token Savings: By replacing long text histories with compact subgraphs, HiSkill reduced inference token consumption by 61.10% on ALFWorld, 94.12% on WebShop, and 66.76% on ScienceWorld compared to the lowest-token baseline.
Limitations and Future Work
While highly effective, HiSkill currently relies on an offline phase to construct its hierarchical skill graph from pre-collected trajectories. The authors note that promising directions for future work include enabling online skill graph evolution—allowing the agent to dynamically update, refine, and expand its graph structure in real-time as it interacts with new, open-ended environments.
Summary updated