Verify a skill before you trust it — that's an 11% jump in success rate
Notes on Inducing Programmatic Skills for Agentic Tasks (arXiv:2504.06821) — Z. Wang, Apurva Gandhi, Graham Neubig, Daniel Fried · April 2025
Note published · written by SkillFed’s research pipeline from the paper above · how these notes are made
AI-assisted notes · reviewed by SkillFed Skill evolution Bridge: evolution × securityAgent skill induction (ASI) lets a web-browsing agent mine its own successful task runs for reusable Python functions, instead of jotting down prose notes. Once a task finishes, the agent drafts candidate skill functions — say, a search_product(name) that chains together clicks and form fills — then rewrites the original trajectory to call those functions as a prefix and lets itself finish the task from there. A skill only earns a permanent slot in the agent's action space once that run clears three checks against the live environment: an LLM evaluator confirms the task was actually solved, the run actually invoked the new skill, and the skill's calls actually changed something on the page, not just executed without error. The setup is tested on WebArena (812 tasks spanning shopping, forums, dev tooling, content management, and travel/maps), with Claude 3.5 Sonnet running the agent, the evaluator, and the induction step itself, against a static non-adaptive baseline and against AWM, a prior method that induces the same kind of workflow knowledge but keeps it as free-text notes in memory instead of executable code.
ASI reaches 40.4% success on WebArena — a 23.5% relative gain over the 32.7% static baseline and an 11.3% relative gain over AWM's 36.3% — and does it in fewer steps, cutting step counts 10.7-15.3%. An ablation on the shopping subset pulls the gain apart: re-inducing AWM's unverified text skills with execution-based verification, turning them into verified programs but still only keeping them in memory for reference rather than as callable actions, recovers 4.2 points of success rate by itself; moving those same verified programs out of memory and into the callable action space, as ASI does, adds a further 3.7 points. Neither verification nor callability alone gets you the full gain — you need both. The gap widens on longer, multi-step "scaled-up" tasks, like updating billing and shipping address together: success improves 20.7-38.9 points over baselines, and one worked example that takes AWM 27 steps takes ASI 4. Transplanted onto real sites (Target, Reddit, Google Maps) after training on WebArena's sandboxed equivalents, skills like product search reuse cleanly; skills tied to a specific UI, like a dropdown-based sort, quietly stop applying once the real site uses a different pattern, like a sidebar — though the agent mostly catches the mismatch and skips the stale skill instead of misfiring.
Key numbers
| Success rate vs. static baseline | 40.4% vs. 32.7% (23.5% relative gain) |
| Success rate vs. text-memory baseline (AWM) | 40.4% vs. 36.3% (11.3% relative gain) |
| Step-count reduction | 10.7-15.3% fewer steps |
| Candidate skills that pass verification | 15.6% of induction attempts |
| Success-rate gain on long-horizon tasks | +20.7 to +38.9 pts vs. baselines |
Skills related to this research
Related notes
- Self-written APIs make web agents 32-40% better — weaker models gain even more from them →
- 40,285 Skills Later, Supply Still Doesn't Match Demand →
- Same skill, +22 points for Claude Sonnet, +5.5 for Nemotron Nano →
- Agent-skill catalogs already top 700,000 entries — curation hasn't caught up →
- Splitting skill-writing into create, merge, and improve lifts a 27B agent up to 4.5 points -- merge drives generalization, improve drives specification, and neither alone gets you there →
- Skills Trained Into the Model Beat Runtime-Loaded Skills by Up to 10.1 Points →
- Pre-simulated skill libraries beat live code generation 44.7% to 28.7% -- at zero runtime cost →
- A three-tier skill hierarchy — not a bigger skill library — drives a 79.6% jump on long-horizon GUI tasks →
References
- Wang, Gandhi, Neubig & Fried, "Inducing Programmatic Skills for Agentic Tasks" (arXiv:2504.06821, 2025)
- Wang, Mao, Fried & Neubig, "Agent Workflow Memory" (arXiv:2409.07429, 2024)
- Zhou et al., "WebArena: A Realistic Web Environment for Building Autonomous Agents" (ICLR 2024)
- Ellis et al., "DreamCoder: Growing Generalizable, Interpretable Knowledge with Wake-Sleep Bayesian Program Learning" (Phil. Trans. Royal Society A, 2023)
- de Chezelles et al., "The BrowserGym Ecosystem for Web Agent Research" (arXiv:2412.05467, 2024)