Google's WikiSkill gives AI agents a persistent memory of past mistakes to sharpen future performance
Researchers at Google Research have introduced WikiSkill, a framework that pairs AI agents with a persistent knowledge base.
Instead of throwing away what the agent learned after each run, the system collects knowledge about failures and successes in a wiki-like structure and uses it to improve the agent's abilities over time. That knowledge gets packaged into "Agent Skills," reusable modules that guide an agent's behavior without changing what it learned during training.
So the agent, aka the model, doesn't truly learn in a continuous sense, which remains an unsolved problem. But it writes better instructions for itself after each run and can pull them up the next time around. It's not elegant, and it's probably more error-prone than real learning, but the study shows it's an effective workaround.
The work draws on a perspective from Andrej Karpathy about the idea of an "LLM Wiki," which argues for compiling experience into persistent, cumulative knowledge. WikiSkill applies that thinking to automatic skill development for AI agents.
Three layers separate experience, knowledge, and action
WikiSkill organizes an AI agent's workspace into three tiers. The "Raw Layer" stores complete execution traces, from tool calls to results. This data is immutable and serves as raw material.
Above it sits the "Wiki Layer," where raw data gets distilled into structured insights like documented failure patterns and successful strategies. This knowledge layer never resets and only grows with each iteration, according to the researchers.
The top tier, the "Skill Layer," holds the active procedural instructions the agent follows when executing tasks. Unlike the wiki, skills can be rolled back if an update hurts performance.
First, an inference agent executes tasks using the current skills and generates execution traces. A "Wiki Maintainer" then analyzes those traces, spots failure patterns and successful strategies, and writes the findings into the wiki.
A "Skill Proposer" uses the updated wiki and execution data to suggest targeted skill changes. Finally, a gating mechanism tests the proposed change on a separate validation set to confirm it actually helps. If it doesn't, the skill gets rolled back, but the wiki stays intact. Even failed proposals aren't lost because the wiki documents what was tried and why it failed, so the Skill Proposer can build on that knowledge in later iterations.

Bigger models gain more, but smaller ones close the gap
The researchers tested WikiSkill across five benchmarks covering math reasoning, web search, spreadsheet manipulation, document question-answering, and interactive tasks in a virtual environment. The models they used were Qwen (4B, 9B, 27B), Gemma-4-31B, and Gemini-3.5-Flash.

WikiSkill consistently outperforms all previous skill evolution methods in the study. On average, the framework boosts Gemini-3.5-Flash from 49.5 percent to 68.1 percent and Qwen-3.6-27B from 39.4 percent to 63.3 percent. On individual benchmarks, the jumps can be bigger: Gemini-3.5-Flash climbs from 33.0 percent to 72.6 percent on LiveMath and from 50.5 percent to 76.6 percent on SpreadSheet.
The gains vary a lot by task type. Math problems and spreadsheet manipulation see the biggest improvements, while tasks with long document contexts (OfficeQA) show much smaller gains. The researchers say smaller models like Qwen-3.5-4B struggle to reliably execute evolved multi-step search strategies across long contexts and fall back to their default behavior.
Larger models tend to benefit more from evolved skills. But smaller models running WikiSkill can match the performance of larger models that don't use the framework. Skills developed by one model often transfer to another and sometimes even work better than skills the receiving model built on its own. Since that's not always the case, transferability should probably be checked case by case.
| Model | Method | LiveMath | SealQA | SpreadSheet | OfficeQA | ALFWorld | Avg. |
|---|---|---|---|---|---|---|---|
| Qwen-3.5-4B | No skill | 29.1 | 32.5 | 14.6 | 30.2 | 24.4 | 26.2 |
| Trace2Skill | 31.5 | 37.6 | 17.5 | 31.0 | 42.8 | 32.1 | |
| EvoSkill | 41.7 | 37.3 | 18.6 | 29.5 | 41.5 | 33.7 | |
| SkillOpt | 48.7 | 33.3 | 14.0 | 34.5 | 45.3 | 35.2 | |
| WikiSkill | 49.7 | 39.4 | 21.1 | 28.5 | 53.7 | 38.5 | |
| Qwen-3.5-9B | No skill | 28.2 | 26.3 | 24.3 | 35.9 | 34.7 | 29.9 |
| Trace2Skill | 33.1 | 36.9 | 26.5 | 38.4 | 48.8 | 36.7 | |
| EvoSkill | 58.1 | 34.5 | 35.4 | 34.9 | 48.5 | 42.3 | |
| SkillOpt | 48.7 | 29.4 | 29.0 | 38.0 | 55.7 | 40.2 | |
| WikiSkill | 56.3 | 43.1 | 33.6 | 40.5 | 63.4 | 47.4 | |
| Qwen-3.6-27B | No skill | 33.9 | 27.5 | 40.8 | 42.1 | 52.8 | 39.4 |
| Trace2Skill | 36.3 | 37.3 | 53.3 | 54.3 | 55.5 | 47.3 | |
| EvoSkill | 57.3 | 32.9 | 59.5 | 52.5 | 64.2 | 53.3 | |
| SkillOpt | 51.9 | 34.5 | 53.2 | 54.8 | 59.2 | 50.7 | |
| WikiSkill | 61.9 | 41.6 | 81.7 | 53.7 | 77.6 | 63.3 | |
| Gemma-4-31B | No skill | 33.9 | 30.6 | 48.3 | 43.3 | 50.4 | 41.3 |
| Trace2Skill | 32.3 | 37.7 | 58.5 | 43.2 | 57.2 | 45.8 | |
| EvoSkill | 29.8 | 38.4 | 56.4 | 39.9 | 52.6 | 43.4 | |
| SkillOpt | 40.1 | 36.1 | 63.1 | 44.4 | 61.9 | 49.1 | |
| WikiSkill | 56.7 | 41.2 | 68.0 | 44.2 | 64.4 | 54.9 | |
| Gemini 3.5 Flash | No skill | 33.0 | 29.4 | 50.5 | 48.6 | 85.9 | 49.5 |
| Trace2Skill | 41.9 | 44.3 | 56.0 | 50.0 | 85.9 | 55.6 | |
| EvoSkill | 44.6 | 43.6 | 55.4 | 51.2 | 85.9 | 56.1 | |
| SkillOpt | 49.7 | 28.2 | 66.1 | 49.8 | 85.9 | 55.9 | |
| WikiSkill | 72.6 | 44.7 | 76.6 | 60.7 | 85.9 | 68.1 |
Table: WikiSkill (highlighted) achieves the best or statistically equivalent performance across most model-benchmark combinations. Bold values indicate top scores; multiple bold values in the same column are not statistically different from each other. All values are averages across three independent runs.
AI News Without the Hype – Curated by Humans
Subscribe to THE DECODER for ad-free reading, a weekly AI newsletter, our exclusive "AI Radar" frontier report six times a year, full archive access, and access to our comment section.
Subscribe nowRead on for the full picture.
Subscribe for hype-free coverage.
- Full access to every article on THE DECODER
- No ads
- Join the comments and community discussions
- A weekly AI news recap via mail
- 6x/year: "AI Radar" — deep dives on the AI topics that matter most
- Daily AI news, always up to date
- Our full ten-year archive
- Covered by a team with 10+ years in AI