TL;DR
Adding a product on Shopify, opening an issue on GitLab, and creating a forum on Reddit might look like completely different jobs, right? Beneath the hood, though, they are structurally identical: fill out a few labeled boxes and hit submit. This paper introduces SkillMigrator, a web agent that spots these shared structural patterns across wildly different websites, allowing it to reuse learned "skills" across entirely unrelated domains and cut down on expensive LLM queries by 8–10%.
What Problem Does This Paper Address?
When we deploy Large Language Models (LLMs) as web agents, they typically operate step-by-step: look at the page, decide to click a box, query the LLM again, type some text, query the LLM again, click a button. On long tasks, this loop gets painfully slow and expensive.
To speed things up, researchers recently started giving agents skill libraries—essentially macro-actions bundled from past successes, so one skill call replaces five or six primitive steps. However, existing methods retrieve these skills based on website metadata or how similar the user's text prompt sounds. Consequently, skills get trapped on the specific website—or at best, the specific domain (like e-commerce)—where they were learned.
When an agent visits a brand-new domain, surface wording changes ("Write a review" vs. "Create a post"), causing semantic retrieval to fail. Even though the underlying web mechanics are identical, the agent falls back to querying the LLM for every tiny mouse click.
Methods
SkillMigrator keeps the standard web-agent foundation—reading text-based Playwright accessibility trees (YAML-like page snapshots) and calling primitive browser tools—but overhauls how skills are stored, retrieved, and executed.
- Transferable Interaction Patterns (TIPs): Instead of saving brittle page element IDs, each learned skill is stored as a TIP. A TIP bundles four things: a one-sentence intent, a generic operation template (e.g., fill-and-submit), an abstract "slot schema" with mined pools of synonyms (knowing that
title,headline, andsummaryplay the same role), and a cleaned skeleton of the source webpage's accessibility tree. - Layout + Text Retrieval: When facing a subtask on a live page, SkillMigrator scores its library by mixing standard text-embedding similarity with layout similarity—calculated via Tree Edit Distance (APTED) between the stored tree skeleton and the live page's structure. If the top match clears a confidence gate ($\beta$), it enters "skill mode"; otherwise, it safely falls back to standard step-by-step LLM reasoning (ReAct).
- Two-Stage Hungarian Grounding: Once a skill is chosen, it executes without calling the LLM, using the classic Hungarian assignment algorithm twice:
- Stage A (Value Parse): Matches values from the user's prompt to the skill's abstract slots.
- Stage B (Control Binding): Matches those filled slots to actual interactive elements (
ref=e16, etc.) on the live webpage.
Datasets
No new benchmarks were introduced. The authors evaluate SkillMigrator on two established benchmarks:
- Mind2Web: Spans 137 websites across 31 domains, explicitly partitioned to test generalization across tasks (same site), across websites (same domain), and across domains (unseen domains).
- WebArena: A realistic, self-hosted environment featuring 812 executable tasks across shopping, admin portals, forums (Postmill/Reddit), GitLab, maps, and multi-site workflows.
Key Insights and Ideas
- Structure beats semantics across domains: Relying on instruction wording alone causes agents to miss obvious structural twins or trigger broken skills on differently structured pages. Removing the layout signal caused WebArena success rates to plummet from 45.7% to 39.2%—nearly reverting to a no-skill agent (38.5%).
- Graceful handling of variable-length forms: Because Stage B binds slots dynamically to whatever controls actually exist on the live page, a single fill-and-submit skill learned on a two-field GitLab issue form seamlessly scales up to fill three fields on a five-field forum creation page, leaving unused optional fields untouched.
- Plug-and-play orthogonality: SkillMigrator doesn't have to replace existing domain-specific skill libraries; it can sit right on top of them. When SkillMigrator's confidence gate fails, routing fallback control to a secondary library (like PolySkill) yielded the lowest LLM-call count of any tested configuration.
Key Results
- Fewer LLM Calls: Across successful trajectories on both WebArena and Mind2Web, SkillMigrator reduces the average number of LLM actions by 8–10% compared to state-of-the-art skill libraries (dropping from 5.84 to 5.37 steps on WebArena, and 6.9 to 6.2 on Mind2Web cross-domain with online updates).
- Higher Cross-Domain Reuse, Smaller Footprint: On Mind2Web's cross-domain split, skill reuse climbs to 35.4% (compared to PolySkill's 31.0%), even while maintaining a smaller, more compact skill library (49 skills vs. 56).
- Success Rate Trade-off: Pushing for aggressive cross-domain skill reuse introduces a slight accuracy trade-off: aggregate success rate is 45.7% on WebArena (vs. PolySkill's 49.3%) and 63.0% on Mind2Web cross-domain (vs. PolySkill's 63.4%). Swapping the GPT-4.1 backbone for Claude-4 boosted WebArena success by +9 points (to 54.7%) while trimming LLM actions further to 5.1.
Limitations and Future Work
The authors explicitly scope their system to text-only accessibility snapshots; screenshot-grounded or pixel-space visual web agents are outside the current design. Furthermore, as seen in the main results, triggering cross-domain skills carries a slight dip in overall task success rate compared to more conservative, domain-bound baselines—though the authors note that the gate threshold ($\beta$) acts as a tunable knob depending on whether a deployment prioritizes maximum token savings or peak task accuracy. Future research directions are not explicitly discussed in the main text.
Summary updated