Seedlabs
Source research

Trace2Skill: Distill Trajectory-Local Lessons into Transferable Agent Skills

Jingwei Ni, Yihao Liu, Xinpeng Liu, Yutao Sun, Mengyu Zhou, Pengyu Cheng et al. · 2026 · 279 citationsRead the paper

All 10 authors

Dexin Wang, Erchao Zhao, Xiaoxi Jiang, Guanjun Jiang

Large Language Model (LLM) agents increasingly rely on domain-specific skills, yet manually authoring such skills does not scale, and skills generated purely from parametric knowledge often miss critical operational pitfalls. We introduce Trace2Skill, a framework that consolidates broad execution trajectories in parallel into a unified skill directory through inductive reasoning over agent experience. Trace2Skill supports both deepening existing human-written skills and creating useful skills from weak LLM-generated drafts. Experiments demonstrate the effectiveness of Trace2Skill across diverse domains, including office workflows, math reasoning, and vision QA. Importantly, the evolved skills are not merely memorized artifacts of the trajectories used to create them: they often transfer across model scales, across model families, and to out-of-distribution settings. For example, skills evolved from Qwen3.5-35B trajectories improve a Qwen3.5-122B agent by up to 57.65 percentage points on WikiTableQuestions. Further analyses show that Trace2Skill outperforms sequential skill editing and ReasoningBank-style retrieval memories, compresses recurring failures and workarounds into standard operating procedures (SoPs), and yields portable skills that can be reused without parameter updates or test-time retrieval.

What the full text shows

Working prototype
  • Skills evolved from Qwen3.5-35B trajectories improved a Qwen3.5-122B agent on WikiTableQuestions. — up to 57.65 percentage points (Cross-model transfer (35B author to 122B user))
  • Parallel consolidation of skills is more efficient than sequential editing. — ~3 min vs. 15-60 min (SpreadsheetBench-Vrf, +Error condition)
  • Trace2Skill outperformed ReasoningBank-style retrieval on SpreadsheetBench. — 69.83% vs 56.00% (Vrf, 122B user) (Human-Written +Combined vs ReasoningBank)
  • Trajectory-distilled skills improved DocVQA performance over No Skill. — +22.25% Acc (122B user) (Creation (init: No Skill), +Combined condition)
  • Trajectory-distilled skills improved math reasoning on held-out DAPO and OOD AIME. — +4.0% D-Test, +2.9% AIME (122B user) (Creation (init: No Skill), +Error condition)
Setup
Evaluated using Qwen3.5 (122B and 35B), Gemma-4-31B-it, and GPT-5.5-high across SpreadsheetBench-Verified, DAPO, AIME 2026, and DocVQA datasets.
How
The framework uses parallel analyst sub-agents to propose targeted patches from disjoint trajectory batches, which are then merged into a single declarative skill directory. It supports both 'Deepening' (refining human-written skills) and 'Creation' (building skills from parametric drafts).
Limitations
High computational cost for Bayesian optimization when selecting high-quality patch subsets. · Small validation set (32 questions) used for patch selection due to cost constraints.

Summarized by Gemma 4 from the open-access full text · 28 Nov 2026. Read it