HiSkill: Empowering LLM Agents with Hierarchical Skill Graphs

Yu Hao, Jinxuan Cai, Qi Zhang, Yawen Li, Zhiqiang Zhang, Chuan Shi, Cheng YangarXiv 2026

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:

  1. 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.
  2. 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.
Figure 1: Existing methods distill trajectories into coarse-grained textual rules in a flat organization, while HiSkill builds a hierarchical graph to assist task execution, including high-level skill nodes, executable AtomicOp nodes and typed edges between them.

Methods

HiSkill addresses these gaps by building a Hierarchical Skill Graph from historical trajectories and executing tasks using a three-step pipeline:

  1. Hierarchical Skill Graph Construction:
  2. AtomicOp Extraction: Raw actions are canonicalized into generalized, environment-agnostic action templates (AtomicOp nodes), creating an executable vocabulary.
  3. Skill Discovery: Frequent action patterns are mined from successful trajectories to form Skill nodes, complete with structured metadata (pre-states, post-states, and failure hints).
  4. 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), and recovers_with (recovery pathways derived from failed trajectories).
  5. 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.
  6. 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.
Figure 2: The overall framework of our proposed HiSkill.

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_with edges. 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 AtomicOp templates, 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

BibTeX
@misc{hao2026hiskill,
  author = {Yu Hao and Jinxuan Cai and Qi Zhang and Yawen Li and Zhiqiang Zhang and Chuan Shi and Cheng Yang},
  title = {{HiSkill: Empowering LLM Agents with Hierarchical Skill Graphs}},
  year = {2026},
  eprint = {2607.25853},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.25853},
}
Figure