TL;DR
WikiSkill is a new framework that enables AI agents to evolve by compiling their raw experiences into a persistent, structured knowledge base—a "Wiki." By separating raw execution traces from high-level insights and executable skills, WikiSkill allows agents to systematically accumulate knowledge over time, consistently outperforming existing skill-evolution methods across diverse benchmarks.
What Problem Does This Paper Address?
General-purpose AI agents often struggle with specialized, real-world tasks that require domain-specific workflows. While researchers have developed ways to "evolve" agent skills—packaging instructions and scripts into reusable modules—these methods typically suffer from a lack of long-term memory.
Current approaches like EvoSkill or SkillOpt analyze successful and failed trajectories to update skills, but the underlying insights often remain scattered across optimization histories. If a skill update is rejected because it didn't improve performance, the valuable lesson learned from that failure is often lost. The authors argue that agents need a way to compile experience into persistent, compounding knowledge that supports long-term evolution, much like how humans use wikis or documentation to store collective wisdom.
Methods
The core of WikiSkill is a Three-Layer Knowledge Architecture that organizes the agent's workspace:
- Raw Layer (
raw/): Stores immutable execution traces (reasoning steps, tool calls, and outputs). - Wiki Layer (
wiki/): A persistent, structured knowledge base containing pattern catalogs, evolution logs, and skill impact trackers. Crucially, this layer is never reset, even if a specific skill update is rolled back. - Skill Layer (
skills/): Contains the actual executable procedural knowledge (markdown files with instructions) that the agent reads during a task.
The framework operates in an evolutionary loop:
- Step 1 (Inference Agent): Executes tasks using current skills.
- Step 2 (Wiki Maintainer): Performs root-cause analysis on traces and updates the Wiki with new patterns and evidence.
- Step 3 (Skill Proposer): An autonomous agent that reads the Wiki and proposes atomic skill updates.
- Step 4 (Gating & Rollback): Validates the new skill. If it improves performance, it's kept; if not, the skill is rolled back, but the Wiki persists the knowledge of why it failed.
Datasets
The authors evaluated WikiSkill across five diverse benchmarks:
- LiveMath: Complex mathematical reasoning.
- SealQA: Factual question-answering requiring web search.
- SpreadSheet: Python-based spreadsheet manipulation.
- OfficeQA: Long-context document retrieval and reasoning.
- ALFWorld: Interactive, multi-step embodied household tasks.
They tested these using models from the Qwen, Gemma, and Gemini families, ranging from 4B to 31B+ parameters.
Key Insights and Ideas
- Compounding Knowledge is Key: Ablation studies showed that giving the Skill Proposer access to the persistent Wiki increased average performance by 15%. Without it, the agent struggled to resolve intricate, recurring failure modes.
- Skills Complement Scaling: Skill evolution isn't just for small models. While larger models benefit more from evolved skills (showing a steeper improvement curve), smaller models with skills can actually outperform much larger models that lack them. For example, a Qwen-9B model with WikiSkill outperformed a Qwen-27B model without skills.
- Discovery vs. Execution: The paper suggests these are distinct capabilities. A stronger model (like Gemini) might be better at discovering a skill, but once that skill is written down in the Wiki, a smaller model can often execute it effectively.
- Effective Skill Transfer: Skills evolved by one model family often transfer successfully to others. Interestingly, skills evolved by a larger model can sometimes help a smaller model reach performance levels it couldn't achieve through its own "self-evolution."
Key Results
WikiSkill consistently achieved the highest average performance across all five models tested.
Specific highlights include:
- Gemini-3.5-Flash: Improved from 33.0% to 72.6% on LiveMath and from 50.5% to 76.6% on SpreadSheet.
- Qwen-3.6-27B: Saw a massive jump from 52.8% to 77.6% on the embodied ALFWorld tasks.
- Reliability: Unlike prior methods (EvoSkill, SkillOpt), which occasionally caused performance degradation on certain benchmarks, WikiSkill provided more stable and consistent improvements across the board.
Limitations and Future Work
While powerful, WikiSkill has a few areas for future exploration:
- Wiki Pruning: Currently, the Wiki grows indefinitely. As agents run for thousands of iterations, the authors note the need for an automated mechanism to prune or summarize old, redundant, or less useful patterns.
- Strict Gating: The current "improve-or-rollback" criteria is strict. It might reject "neutral" updates that don't help immediately but could serve as necessary stepping stones for future breakthroughs.
- Skill Retrieval: The study injected all skills directly into the prompt. As the library of evolved skills grows, agents will need better ways to retrieve only the most relevant skills for a given task to save context space.
- Long-Horizon Tasks: The benchmarks used, while complex, don't cover tasks spanning hundreds of actions or multiple hours, which remains a frontier for agentic research.
Summary updated