Trace2Tower: Transition-Aware EigenTrace Induction of Multi-Level Skills for LLM Agents
Organizations: College of Computer Science and Artificial Intelligence, Fudan University Shanghai 200433, China
Abstract
Large language model agents increasingly rely on execution traces to master complex interactive tasks. However, current paradigms are bottlenecked by shallow trajectory retrieval and flat skill summarization, fundamentally ignoring the temporal dependencies and outcome-conditioned topology of agent behavior. We introduce Trace2Tower, a transition-aware EigenTrace framework that distills raw trajectories into a robust skill hierarchy. Trace2Tower abstracts step-level interactions into canonical events, constructing a unified graph governed by semantic compatibility, transition dynamics, and outcome evidence. Through a novel contrastive spectral decomposition, it isolates stable, success-aligned behavioral modes while rigorously suppressing failure-prone shortcuts. These modes organically populate a dynamic skill tower of action templates, procedural routines, and overarching task strategies, continuously refined via verifier-guided feedback. On ALFWorld, Trace2Tower achieves 87.31% success requiring only 10.35 steps and 0.26 invalid actions; on WebShop, it reaches 50.67% exact success. Across both benchmarks, Trace2Tower significantly outperforms existing baselines in task mastery and context-efficient experience reuse.
Figures & tables
| Method | ALFWorld | WebShop | ||||||
| Success % | Steps | Invalid | Input Tokens | Skill Context Chars | Exact Success % | Reward | Invalid | |
| No-Skill | 15.58 | 0.58 | 49,052 | 0 | ||||
| Expert-Crafted | 12.01 | 0.38 | 41,502 | 3,286 | ||||
| Trace2Skill +Combined | 13.91 | 0.28 | 67,186 | 9,508 | ||||
| Trace2Skill +Error | 14.19 | 0.37 | 73,447 | 11,447 | ||||
| SkillX | 12.06 | 0.40 | 64,229 | 10,039 | ||||
| Experience | Skill User | |
|---|---|---|
| DeepSeek-V4 Flash | DeepSeek-V4 Pro | |
| No-Skill | 52.99 | 66.42 |
| GPT-5.4 Tower | 88.06 | 85.82 |
| DeepSeek-V4 Flash Tower | 65.67 | 79.10 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Stage | Input | Main operation | Output |
|---|---|---|---|
| Event abstraction | Raw trajectory | Segment and canonicalize | |
| Graph induction | Canonical events | Semantic + transition + outcome evidence | |
| Contrastive graph | Failure-aware transformation | ||
| Procedure induction | Component-wise spectral clustering | ||
| Strategy induction | Procedure sequences | Directed graph + SCC paths | |
| Deployment | Skill tower | High plan + optional Mid support | Retrieved context |
| Stage | Time | Working memory |
|---|---|---|
| Event abstraction | ||
| Embedding / quotienting | ||
| Graph statistics | ||
| Component eigensystems | ||
| Procedure clustering | ||
| Strategy graph / SCCs |
| Benchmark | Train tasks | Rollouts/task | Trajectories | Test tasks |
|---|---|---|---|---|
| ALFWorld | 310 | 4 | 1,240 | 134 |
| WebShop | 100 | 4 | 400 | 100 |
| Setting | Value |
|---|---|
| Outcome pseudo-counts | success + failure |
| Minimum nontrivial component | 3 nodes |
| Zero-degree tolerance | |
| -means initializations | 20 |
| -means maximum iterations | 300 |
| Random seed | 42 |
| Variant | Retained signals | Mid/High | Success |
|---|---|---|---|
| Full | S+T+O+C | 39/118 | |
| No Transition | S+O+C | 19/76 | 70.15 |
| No Outcome | S+T+C | 39/106 | 73.88 |
| No Contrastive | S+T+O | 10/44 | 73.88 |
| Edit | Target | Structural effect |
|---|---|---|
| Split | Heterogeneous procedure | Creates evidence-specific children while retaining the parent |
| Merge | Compatible procedures | Contracts evidence and supported relations into one procedure |
| Promote | Supported Mid path | Adds a reusable strategy motif |
| Downweight | Harmful High skill | Adds a reversible retrieval penalty without deleting the skill |
LLM Agent Skill Learning
Large language model agent skill learning studies how agents acquire, represent, reuse, and refine procedures for multi-step tasks.
See all 398 papers