HyperSkill: Self-Evolving LLM Agents via Hypergraph-Structured Skill Memory

Ruiyao Xu, Tiankai Yang, Wei-Chieh HuangarXiv 2026

TL;DR

HyperSkill introduces a hypergraph-structured memory framework for LLM agents that captures the complex, multi-node relationships between subtasks, execution skills, and outcomes within past trajectories. By utilizing dual-path retrieval and structure-informed memory maintenance (pruning and merging), it allows agents to continuously self-evolve, significantly outperforming flat-vector memory baselines on complex tasks without inflating execution overhead.

What Problem Does This Paper Address?

For LLM agents to tackle long-horizon, complex tasks, they need experiential memory—a way to distill past experiences into reusable knowledge. However, existing memory designs suffer from three major limitations:

  1. Isolated Storage: They store trajectories, insights, or workflows as flat, isolated entries, completely discarding the compositional relationships between subtasks and the skills required to solve them.
  2. Flat Retrieval: They retrieve memory using simple embedding similarity, ignoring the relational signals that indicate whether a skill has repeatedly succeeded in similar subtask patterns.
  3. Uncurated Evolution: Most systems either accumulate memory unconditionally (leading to noise and performance degradation) or use lightweight, independent node pruning that ignores the underlying graph topology.
Figure 1: Three design dimensions of experiential agent memory. HYPERSKILL unifies what to store, how mem- ory is structured and retrieved, and how memory evolves via hyperedges over subtasks and skills, dual-path re- trieval, and structure-informed maintenance.

HyperSkill addresses these gaps by framing agent memory as a hypergraph, natively preserving the n-ary associations of an agent's experience.

Methods

HyperSkill organizes experiential memory as a hypergraph $G = (V, E)$ consisting of two node types: subtask nodes (encoding compositional workflow structure) and skill nodes (encoding reusable execution strategies).

The core framework operates across three main stages:

  • Hypergraph Architecture: Instead of standard graph edges that connect only two nodes, HyperSkill uses hyperedges. Each hyperedge corresponds to a single past trajectory, binding together all the subtasks and skills utilized in that episode along with a distilled lesson and an empirical utility score.
  • Dual-Path Hyperedge Retrieval: When given a new task, the agent queries the hypergraph through two complementary paths:
  • Subtask Path: Decomposes the current task into subtasks and matches them against stored subtask nodes to find structurally similar workflows.
  • Trajectory Path: Matches the full task description against hyperedge representations to capture high-level task semantics.
  • Co-occurrence Skill Ranking: Once relevant trajectories (hyperedges) are retrieved, candidate skills are ranked based on their co-occurrence frequency across those trajectories. This ensures that skills frequently associated with success are prioritized over those that merely match the task description semantically.
  • Structure-Informed Memory Evolution: To prevent the memory from growing stale or redundant, HyperSkill periodically runs two maintenance operations:
  • Quality-Driven Pruning: Explicitly removes nodes that are frequently retrieved but consistently fail to improve agent outcomes.
  • Structure-Informed Merging: Uses quality-weighted graph propagation to identify semantically similar and structurally redundant skills, consolidating them into higher-order skills.
Figure 2: Overview of HYPERSKILL. Given a new task, the agent decomposes it into subtasks, retrieves relevant trajectories via dual-path hyperedge retrieval, ranks skills by co-occurrence, and executes with the retrieved context. After task completion, new nodes and a hyperedge are added to the memory, which periodically undergoes pruning and merging.

Datasets

The authors evaluated HyperSkill across three diverse agentic benchmarks using both proprietary (GPT-4o) and open-source (Qwen3-30B-A3B) model backbones:

  • xBench: Evaluates agentic planning, tool use, and multi-step reasoning across real-world scenarios.
  • GAIA: Focuses on complex, multi-hop reasoning, multimodal handling, web browsing, and tool proficiency.
  • WebWalkerQA: Tests complex, multi-turn web navigation across thousands of real-world webpages.

Key Insights and Ideas

  • Trajectories are inherently $n$-ary: A single episode isn't just a flat text string or a pair of connected concepts; it is a complex web linking multiple subtasks, execution strategies, and an outcome. Hypergraphs prevent the lossy decomposition seen in standard pairwise graphs.
  • Structure beats pure semantics: Semantic similarity only tells you if a skill looks relevant to a task description. Structural co-occurrence frequency across successful past trajectories tells you if it actually works.
  • Uncurated memory is toxic: The experiments show that naive memory accumulation eventually introduces noise that actively harms agent performance. Active, structure-aware pruning and merging are essential to sustain self-evolution.

Key Results

HyperSkill significantly outperformed ten competitive memory baselines (including Voyager, ExpeL, and DILU) across nearly every benchmark-backbone combination.

  • Substantial Success Rate Gains: Under the Qwen3 backbone, HyperSkill achieved absolute success rate improvements of up to +11.51% on GAIA and +11.18% on WebWalkerQA compared to the "No Memory" baseline.
  • Efficiency Gains: Unlike baselines like ReasoningBank or Voyager—which often inflate execution costs by forcing the agent through excessive steps or tool calls—HyperSkill achieved the highest success rates while maintaining a compact step count and competitive tool call rates.
  • Token Efficiency: Cost analysis revealed that HyperSkill maintains an optimal performance-to-token ratio, occupying the high-performance, moderate-token-cost sweet spot compared to heavy graph-based alternatives like PlugMem.

Limitations and Future Work

  • Inference Overhead during Maintenance: HyperSkill relies on additional LLM calls for task decomposition, skill extraction, and node-merging decisions, which introduces extra computational costs during memory updates.
  • Cold-Start Sparsity: The hypergraph-based retrieval and structural propagation mechanisms require a baseline density of accumulated trajectories to be fully effective; performance gains may be limited in extremely low-data regimes.
  • Domain Generalization: While highly effective for web navigation and multi-step reasoning, validating HyperSkill on other agent modalities (e.g., robotic manipulation or code generation) remains future work.

Summary updated

BibTeX
@misc{xu2026hyperskill,
  author = {Ruiyao Xu and Tiankai Yang and Wei-Chieh Huang},
  title = {{HyperSkill: Self-Evolving LLM Agents via Hypergraph-Structured Skill Memory}},
  year = {2026},
  eprint = {2608.16114},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.16114},
}
Figure