Skim: Speculative Execution for Fast and Efficient Web Agents

Mike Wong, Kevin Hsieh, Suman Nath, Ravi NetravaliarXiv 2026

TL;DR

Current LLM-based web agents are slow and expensive because they treat every simple navigational click with the same heavyweight reasoning as complex data synthesis. Skim introduces a speculative execution framework that pre-computes website structures offline, allowing agents to bypass full browser rendering and frontier LLMs via direct URL synthesis and cheap local models. By validating these fast-path shortcuts with a lightweight verifier and gracefully cascading to full agents on failure, Skim cuts median per-task costs by 1.9x and latency by 33.4% with zero loss in accuracy.

What Problem Does This Paper Address?

Web agents (like WebVoyager or BrowserUse) automate multi-step online tasks by mimicking human browsing. Typically, they operate in a continuous ReAct (Reasoning and Acting) loop: loading a page in a headless browser, extracting a massive DOM tree or screenshot, passing it to a frontier LLM (like GPT-4o) to decide the next action, and executing that action.

The standard ReAct loop used by web agents, which repeatedly renders, observes, and invokes heavy LLM calls.

While highly capable, this uniform approach is incredibly inefficient. Simple mechanical steps—like clicking "next page" or typing a keyword into a search bar—incur the same massive latency and API costs as complex reasoning steps. A typical task takes 4 to 7+ steps, resulting in latencies of up to two minutes and costs of $0.20–$0.50 per task.

The core challenge is finding a way to safely use cheaper components (like raw HTTP fetches and smaller local models) without tanking accuracy. Naively swapping them into the loop drops task success by 60% because small models easily get lost in noisy web pages, and errors compound rapidly across a trajectory.

Methods

Skim solves this by treating web navigation as a speculative execution problem, breaking the architecture into an offline profiling phase and an online speculative cascade:

  1. Offline Profiling: An automated prober analyzes target websites once to map out their predictable "scaffolding." It records typed URL templates (e.g., how search queries map to URL parameters), pagination behaviors, expected answer schemas, and metadata (like whether a page strictly requires JavaScript rendering).
  2. Runtime Speculation (The Fast Path): When a user query arrives, Skim bypasses the browser entirely. It uses the offline profile to directly synthesize the destination URL, executes a plain HTTP fetch, cleans the raw HTML down to the essential answer-bearing region, and extracts the answer using a cheap, local model (Qwen2.5-14B).
  3. Two-Stage Verification: To prevent hallucinated or incorrect answers from reaching the user, a fast gating mechanism checks the output. Stage 1 is a near-zero-cost schema check (ensuring data types and ranges match expectations). Stage 2 uses a small semantic judge to confirm the answer actually satisfies the user's prompt.
  4. Warm-Start Cascade: If the verifier rejects the fast-path result, Skim falls back to the full ReAct agent. Crucially, it doesn't restart from scratch; it warm-starts the heavy agent at the final URL reached by the fast path, preserving the navigational progress already made.

Datasets

The authors evaluated Skim across 300+ tasks randomly sampled from two prominent web-agent benchmarks:

  • WebVoyager: A multimodal benchmark spanning 15 real-world websites (e.g., Amazon, arXiv, GitHub, BBC News) featuring open-ended navigation and information retrieval.
  • WebShop: A simulated e-commerce environment focused on multi-step product search, filtering, and item selection.

Skim was tested as a drop-in layer atop three distinct agent backends: WebVoyager, AgentOccam, and BrowserUse.

Key Insights and Ideas

  • Most steps are just navigation: The authors found that 66.7% of all agent steps are purely navigational (moving between pages) rather than load-bearing reasoning. Websites are purpose-built, meaning these paths are highly predictable and parameterizable.
  • Browsers are often overkill: For 55.8% of tasks, the necessary content is server-rendered and fully accessible via a raw HTTP fetch, meaning agents waste massive overhead running full browser engines.
  • Small models excel on "denoised" text: While small models fail on raw web pages due to clutter (ads, sidebars), they perform on par with frontier models if the HTML is stripped down to the specific region containing the answer.
  • Failed speculations are still useful: Because web trajectories share predictable prefixes (e.g., searching and filtering look the same regardless of the final item), a failed fast-path attempt still lands the agent close to the target, making the "warm-start" fallback highly effective.

Key Results

Skim was evaluated in two deployment modes: Accelerate Mode (prioritizing speed/savings) and Aggregate Mode (reinvesting savings into multiple trials to boost accuracy).

  • Cost & Latency Reductions: In accelerate mode, Skim achieved a 1.9x median cost reduction and a 33.4% median latency reduction across all benchmarks.
  • Accuracy Preservation: Skim maintained or slightly improved baseline accuracy across all three agent architectures (e.g., boosting WebVoyager's base accuracy from 37.6% to 40.6% due to the verifier filtering out bad trajectories).
  • Accuracy Gains: In aggregate mode, running multiple speculative trials within the original budget of a single standard ReAct run boosted end-to-end accuracy by up to 16.7 percentage points (using an oracle selection) and 4.2 percentage points using a simple majority vote.

Limitations and Future Work

Skim is explicitly designed for read-dominant workloads (searching, comparing, extracting data). It intentionally bypasses speculative execution for state-mutating actions—such as making purchases, submitting forms, or modifying accounts—due to the strict safety and transactional requirements of those tasks.

The authors note that extending Skim to stateful, interactive workflows will require building out robust infrastructure for transactional safety, side-effect validation, and automated authentication management.

Summary updated

BibTeX
@misc{wong2026skim,
  author = {Mike Wong and Kevin Hsieh and Suman Nath and Ravi Netravali},
  title = {{Skim: Speculative Execution for Fast and Efficient Web Agents}},
  year = {2026},
  eprint = {2605.16565},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.16565},
}
Figure