🤖 AI Summary
Existing web agents rely on instruction similarity or coarse-grained metadata for cross-site skill reuse, resulting in low reusability and high action and token overhead. This work proposes a layout-structure-based skill transfer mechanism that abstracts successful interaction trajectories into Transferable Interaction Patterns (TIPs). By representing pages as structured snapshots and retrieving layout-similar targets, the method instantiates skills on new pages without depending on specific element references. Integrating stable element referencing with a hybrid primitive-skill invocation framework, the approach significantly enhances cross-domain skill reuse. Evaluated on WebArena and Mind2Web, it reduces the average number of LLM actions per successful trajectory by 8–10% while maintaining equivalent success rates.
📝 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 at matched success rate.