G-Skill

G-Skill: Graph-Grounded Skill Evolution
for Agentic Reinforcement Learning

Replacing isolated, LLM-distilled trajectory summaries with persistent task-specific state-transition graphs that construct and continually evolve dual-granularity skills in place.

Jue Hou1,2,*, Chengyi Yang1,2,*, Renxu Bao1,2, Zhishang Xiang1,2,
Junnan Zhu4, Delai Qiu3, Yining Wang3, Shengping Liu3, Jinsong Su1,2,†
1Xiamen University 2Key Lab of Digital Protection and Intelligent Processing of
Intangible Cultural Heritage of Fujian-Taiwan (XMU), Ministry of Culture and Tourism
3Unisound 4Institute of Automation, Chinese Academy of Sciences
*Equal Contributions †Corresponding Author
WebShop · GRPO
89.4%
+26.6% Success vs. GRPO
Qwen2.5-3B rises from 62.8% to 89.4%, reaching 92.8% with GraphGPO.
ALFWorld · GraphGPO
91.9%
All-Family Success (Qwen3-4B)
Reaches 100% on Look and 95.0% on Pick2 across 5 evaluation seeds.
Zero-LLM Overhead
0 calls
Algorithmic Reverse BFS
Linear-time graph extraction runs in 0.030–0.071 ms/graph on CPU.
In-Place Refinement
57.9%
Local Step-Only Updates
Step Skills refine local action rankings even with unchanged Task Skills.
01 · Motivation

From Isolated LLM Distillation to Graph-Grounded Skill Evolution

Existing skill-learning methods treat each rollout as an isolated text summary generated by an LLM and evolve the skill bank only by adding or evicting whole entries. G-Skill changes all three axes (representation, construction, and evolution) by grounding skills directly in persistent task graphs.

Interactive Figure 1: Three Paradigm Shifts
Representation: Fragmented → Aggregated VS Traj. → Skill Traj. → Graph → Skill Construction: Heavyweight → Lightweight VS LLM-generated Algorithmic Evolution: Coarse-grained → Fine-grained Bank-level Update Content-level Update VS
1. Representation: Fragmented → Aggregated Graph

Instead of compressing each rollout into a separate text note, G-Skill merges repeated visits across rollouts into one persistent state-transition graph per task, exposing shared subgoals and cross-trajectory shortcuts.

2. Construction: Heavyweight → Lightweight 0 LLM calls

Replaces expensive teacher API calls and extra on-policy decoding with linear-time reverse BFS O(|S|+|E|) and lightweight templates, running in 0.030–0.071 ms per graph on CPU.

3. Evolution: Coarse-grained → Fine-grained In-Place

Rather than adding or evicting whole skill documents at the bank level, expanding the underlying graph shortens Task Skill paths and re-ranks Step Skill helpfulness scores in place without losing task coverage.

Figure 1 (Animated): Unlike prior skill-learning methods that keep isolated trajectories, invoke costly LLMs, and add or remove whole skills, G-Skill aggregates trajectories into one persistent task graph, applies linear-time reverse BFS, and revises skill procedures and action rankings in place.

02 · Framework

Interactive Five-Stage G-Skill Architecture

Watch how rollout trajectories flow continuously through all five stages of G-Skill. Click any stage below to isolate its internal mechanics, or step through the live closed-loop co-evolution between persistent task graphs and the RL policy.

Interactive Figure 2: G-Skill Closed-Loop Pipeline
Swipe horizontally to explore full architecture →
State Action Data flow Stage Colors Agentic RL Loop 5 New Trajectory Environment Policy action observation retrieve rollout Skill Bank Task Skill Step Skill Trajectory Trajectory Aggregation 1 Graph aggregate Task Skill Extraction 2 Task Skill Shortest path Step Skill Construction 3 Step Skill a1 a2 a3 Helpfulness Skill Evolution 4 Update Task Skill Before After (shorter) Update Step Skill a1 a2 a3 Before a1 a2 a3 After (expanded) a4 Update Graph Old Updated New Traj.
Closed Loop Rollout trajectories merge into per-task graphs (Stage 1), derive shortest-path Task Skills (Stage 2) and helpfulness-ranked Step Skills (Stage 3), evolve in place as new rollouts arrive (Stage 4), and guide RL training via BM25 retrieval (Stage 5).
03 · Concrete Case Study

Watch One Persistent Graph Evolve In Place

In a real ALFWorld task ("Clean a butter knife and put it on the dining table"), a single shorter rollout in Round 2 triggers reverse BFS, lowers d(s1) from 8 to 6, flips the helpfulness of the older cabinet branch from +1 to −1, and updates both Task and Step Skills without a single LLM call.

Interactive Figure 3: Graph-Grounded Skill Evolution (ALFWorld)
Clean a butter knife and put it on the dining table Start (s₁) d = 8 → 6 Cabinet d = 7 Countertop d = 5 H(s₁, a) = d(s₁) − d(s′) go to cabinet H: +1 → −1 go to countertop New · H: +1 7 actions (old) 5 actions (new) Goal (s*) d = 0 Task Skill: 8 → 6 actions (cabinet → countertop) Step Skill (s₁): countertop (+1) > cabinet (−1)
Round 1: Initial Persistent Graph d(s₁) = 8
The agent first succeeds via go to cabinet (8 total actions). Reverse BFS assigns d(cabinet) = 7 and d(s1) = 8, giving go to cabinet helpfulness H = 8 − 7 = +1.
Round 2: New Shortcut Merged In Place d(s₁): 8 → 6
A later rollout reaches the goal in 6 actions through countertop (d = 5). Merging that single trajectory updates d(s1) from 8 to 6 via reverse BFS, automatically demoting the old cabinet action from +1 to 6 − 7 = −1.
Zero-Cost Co-Evolution of Both Skill Views 0 LLM calls
Both views stay synchronized automatically: the Task Skill shortens from 8 to 6 actions, while the Step Skill at s1 promotes go to countertop (+1) above go to cabinet (−1) without deleting or rewriting any bank entry.
04 · Experiments

Main Results & Component Ablations

Across ALFWorld (140 valid_seen games) and WebShop (64 benchmark slots) on both Qwen2.5-3B-Instruct and Qwen3-4B-Instruct-2507, G-Skill consistently achieves the highest mean performance in both GRPO and GraphGPO groups (five evaluation sampling seeds, mean ± SD).

Table 1 (Interactive): Bars display 5-seed means with exact ± SD whiskers. G-Skill outperforms LLM-generated skill baselines (SkillRL, D2Skill, Skill1) and complements both GRPO and GraphGPO.

05 · Coverage & Transfer

Broader Unique Coverage & Closer Stored References

Because G-Skill avoids teacher eviction churn and on-policy distillation collapse, its skill bank retains far more distinct source task descriptions, giving unseen test tasks significantly closer semantic references across every quantile.

Interactive Figure 4: Shared-PCA Reference Task Distributions
Reference description Test description Nearest stored reference
Shared PCA axes: PC1 17.3%, PC2 8.1%
D2Skill
(310 skills from 305 tasks)
Skill1
(49 skills from 48 tasks)
G-Skill
(1,528 skills from 1,528 tasks)
◇ Active Test Task
Hover or click any test diamond above to inspect its nearest stored reference in each bank.

Figure 4 (Interactive, Real PCA Embeddings): All three panels share identical PCA axes and unseen test diamonds (◇). Hover to preview or click any diamond to pin its closest stored reference task by 2D PCA distance across D2Skill, Skill1, and G-Skill simultaneously (smaller distance = closer). The 140 ALFWorld evaluation games span 130 unique task descriptions.

Interactive Figure 5: Nearest-Reference Similarity & Coverage
p50
Distinct Source Tasks Retained (WebShop) 1,528 tasks
Typical WebShop T-Shirt Request (Table 3) Nearest to bank medians
Source Color Size Price
Test task Pink XXL < $40
D2Skill Heather Grey XS < $50
Skill1 Fish XXL Big Tall < $50
G-Skill Baby Blue XXL ✓ < $40 ✓

G-Skill retrieves a reference matching both size (XXL) and price cap (< $40), whereas both LLM-generated banks miss all three attributes.

06 · Efficiency & Dynamics

Millisecond Construction & Horizon-Adaptive Evolution

Graph-based construction eliminates LLM calls completely, running reverse BFS across all 1,674 ALFWorld graphs in just 118.6 ms and 2,083 WebShop graphs in 63.4 ms. Meanwhile, it adapts naturally to long-horizon path recombination on ALFWorld and fine-grained local edits on WebShop.

Table 4: Skill Construction Overhead (Qwen2.5-3B Training)
1,674 ALFWorld graphs: 118.6 ms  ·  2,083 WebShop graphs: 63.4 ms
Swipe horizontally to inspect latency bars →
SkillRL / D2Skill Teacher API (s/round) API wait + eviction churn Skill1 On-policy decoding Extra policy LLM turns G-Skill (Ours) CPU reverse BFS 0.030–0.071 ms/graph (0 LLM)
Method Construction Mechanism LLM Dependency Main Operation ALFWorld Bank WebShop Bank
SkillRL Teacher LLM distillation Teacher (24 / 9 rounds) API latency 127 principles 93 principles
D2Skill Teacher reflection + pruning Teacher (502 / 950 evicted) API latency 309 T + 309 S 310 T + 311 S
Skill1 On-policy LLM distillation Extra policy turns Policy decoding 5,000 T 49 T
G-Skill Reverse BFS + templates None (0 calls) O(|S|+|E|) (0.071 / 0.030 ms) 1,351 T + 44,982 S 1,528 T + 25,652 S
Interactive Figure 6 (Table 5): Graph Aggregation & Evolution Breakdown

Table 5 (Interactive): On long-horizon ALFWorld, persistent graphs recombine trajectories into shorter Task Skills (30.3% shorter than any rollout, saving up to 8 actions). On shorter 3–4 step WebShop episodes, evolution acts primarily via newly linked states (1,308 / 25,652 = 5.1% of Step Skills) and local Step Skill revisions (48.8% with unchanged Task Skill text).

07 · Citation

BibTeX

If you find G-Skill helpful in your research, please consider citing our paper:

BibTeX
@misc{hou2026gskillgraphgroundedskillevolution,
      title={G-Skill: Graph-Grounded Skill Evolution for Agentic Reinforcement Learning},
      author={Jue Hou and Chengyi Yang and Renxu Bao and Zhishang Xiang and Junnan Zhu and Delai Qiu and Yining Wang and Shengping Liu and Jinsong Su},
      year={2026},
      eprint={2611.36935},
      archivePrefix={arXiv},
      primaryClass={cs.AI},
      url={https://arxiv.org/abs/2611.36935},
}