Beyond Domains: Reusing Web Skills via Transferable Interaction Patterns

Shiqi He, Yue Cui, Feijie Wu, Xinyu Ma, Jiaheng Lu, Yaliang Li, Bolin Ding, Mosharaf ChowdhuryNeurIPS 2026

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.

Figure 2: Motivating comparison of ASI, SkillWeaver, and PolySkill on a cumulative Mind2Web- style setup: cross-task (same website), cross-website (same domain, new sites), and cross-domain (new domains). Subfigure a reports per-phase skill reuse and b shows successful-step cost.

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.

Different domains—e-commerce, developer tools, and online forums—often share identical form-filling structures.

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, and summary play 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.
Two-stage grounding maps prompt values to abstract slots, then binds slots to live page controls.

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

Abstract

Large language model (LLM) web agents are usually deployed as tool callers: each turn, the model reads a fresh page observation and emits one structured tool action. When every action is a low-level primitive, horizons grow quickly and so do policy-facing LLM completions, dominating latency and cost on benchmarks such as Mind2Web and WebArena. Recent systems therefore wrap repeated interaction fragments as web skills: callable tools built from successful trajectories or induced programs, so one call can replace several primitives. However, prior skill libraries are still triggered mainly by instruction similarity or coarse site metadata, which yields low skill reuse on held-out sites and leaves much of the potential step and token reduction on the table. We present SKILLMIGRATOR, an agent that learns reusable web skills and transfers them across sites by matching layout structure rather than specific element references. Each induced skill is stored as a transferable interaction pattern (TIP): the skill paired with a structural sketch of the snapshot at induction time. At test time, SKILLMIGRATOR retrieves TIPs by layout similarity and grounds their references on the live page. The rest of the stack is standard: accessibility-snapshot observations with stable references, and fixed tool calling over primitives plus skill invocations. Compared with the state-of-the-art approaches, SKILLMIGRATOR reduces the average LLM-action count on successful trajectories by 8–10% across both WebArena and Mind2Web.
BibTeX
@inproceedings{he2026beyond,
  author = {Shiqi He and Yue Cui and Feijie Wu and Xinyu Ma and Jiaheng Lu and Yaliang Li and Bolin Ding and Mosharaf Chowdhury},
  title = {{Beyond Domains: Reusing Web Skills via Transferable Interaction Patterns}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Q7POeVFd8V},
}
Figure