BrowserAgent: Building Web Agents with Human-Inspired Web Browsing Actions

Tao Yu, Zhengbo Zhang, Zhiheng Lyu, Junhao Gong, Hongzhu Yi, Xinming Wang, Yuxuan Zhou, Jiabing Yang, Ping Nie, Yan Huang, Wenhu Chen · Submission to ICLR 2026 · Withdrawn

TL;DR

BrowserAgent is an end-to-end web agent framework that bypasses static HTML parsers and summarizer models by executing human-like browser actions (scrolling, clicking, tab management) directly on raw web pages. By pairing an explicit memory mechanism with a two-stage training strategy (SFT followed by Rejection Fine-Tuning), BrowserAgent-7B outperforms reinforced search baselines like Search-R1 on multi-hop question answering while using only 5.3K training samples.

What Problem Does This Paper Address?

Current deep research and agentic web-search systems (e.g., Search-R1, WebDancer) typically convert interactive web pages into static textual snippets using intermediate summarizers (e.g., prompting GPT-4o) or third-party web scrapers. This approach is computationally expensive and strips away the fine-grained interactivity inherent to web browsing.

Conversely, direct browser-driven agents using frameworks like Playwright suffer from severe execution bottlenecks (~1–2 episodes/minute), historically relegating them to evaluation-only benchmarks (such as WebArena) rather than training environments. Furthermore, appending full interaction trajectories into the context window causes agents to quickly hit context length limits during long-horizon reasoning tasks.

Methods

BrowserAgent addresses these challenges with three architectural and training innovations:

  1. Ray-Parallelized Browser Environment: The authors built a high-throughput backend using Ray and FastAPI to orchestrate 64 concurrent Playwright instances on a single 32-core server. This scales throughput to 50+ episodes/minute, enabling large-scale trajectory collection and training. Observations are represented as simplified accessibility trees.
  2. Human-Inspired Atomic Action Space: The agent uses four intuitive action classes:
  3. Page Operations: click, hover, press, scroll, type
  4. Tab Management: new_tab, tab_focus, close_tab
  5. URL Navigation: goto, go_back, go_forward
  6. Completion: stop
  7. Structured Working Memory: Instead of appending full observations into an expanding multi-turn context, BrowserAgent maintains a single-turn window augmented with an explicit <memory> module. In each step, the model extracts intermediate conclusions enclosed in <conclusion> tags, mitigating context explosion and preventing circular reasoning loops.
  8. Two-Stage Training Pipeline (SFT + RFT):
  9. Stage 1 (SFT): Fine-tunes Qwen2.5-7B-Instruct on 5.3K high-quality interactive trajectories generated using GPT-4.1.
  10. Stage 2 (RFT with Reasoning Path Selection): Samples four candidate trajectories per question from the SFT model. It filters instances containing both correct and incorrect responses, selecting the correct trajectory with the highest number of reasoning steps to reward deep thinking. The final RFT dataset combines these filtered trajectories (1,073 samples) with an 80% replay split of SFT data to prevent catastrophic forgetting.
[Observation (Accessibility Tree) + Previous Action + Working Memory]
                    │
                    ▼
     [BrowserAgent (Qwen2.5-7B)]
                    │
      ┌─────────────┴─────────────┐
      ▼                           ▼
<think> Reasoning           Action Command
& <conclusion> (Updates Memory)  (e.g., click, scroll, stop)

Datasets

  • Training Data Synthesis: 5.3K synthesized trajectories generated using GPT-4.1 interacting with a local, offline 2022 Kiwix Wikipedia dump. 4K trajectories cover basic QA, while 1.3K focus on multi-hop questions drawn from NQ (Natural Questions) and HotpotQA.
  • Evaluation Benchmarks:
  • General Open-Domain QA: NQ (In-Distribution), PopQA (Out-of-Distribution).
  • Multi-Hop QA: HotpotQA (ID), 2WikiMultiHopQA (OOD), Musique (OOD), and Bamboogle (OOD).
  • Additional Evaluation: TriviaQA (reported in appendix).

Key Insights and Ideas

  • Interactive exploration replaces heavy summarizers: Native scrolling and clicking allow the model to locate and read relevant content dynamically, matching human navigation without external summarization LLMs.
  • Single-turn context + explicit memory beats raw history: Trimming redundant intermediate DOM snapshots while storing structured key facts in memory resolved context length bottlenecks, allowing the agent to execute up to 30 reasoning turns effectively without degradation.
  • RFT with longer reasoning paths incentives deeper search: Selecting correct rollouts with higher step counts successfully guides the agent to perform multi-step verification rather than relying on shallow factual recall.
  • Exact Match (EM) under-reports agent capabilities: Web agents frequently return semantically rich, correct responses (e.g., answering "Skin Yard was from the U.S... Ostava was from Bulgaria" instead of a bare "no"), causing severe EM penalties. A panel LLM-judge (GPT-4.1, Gemini 2.5 Flash, Claude 3.7 Sonnet) provides a more realistic measure of factual correctness.

Key Results

  • Comparison to Baselines (Table 2):
  • On multi-hop QA tasks, BrowserAgent-RFT (7B) reached an average Exact Match (EM) of 0.407 and an LLM-judge score of 0.484, significantly outperforming Search-R1-Instruct (0.348 EM), despite Search-R1 relying on complex RL algorithms and substantially more training data.
  • On specific multi-hop tasks like HotpotQA (0.458 vs 0.370 EM), 2Wiki (0.498 vs 0.414 EM), and Bamboogle (0.504 vs 0.368 EM), BrowserAgent showed roughly 20% relative gains over Search-R1.
  • Ablation Findings (Table 3):
  • Retaining intermediate memory conclusions improved 7B multi-hop average performance from 0.348 EM to 0.392 EM (at 30 max steps).
  • Scaling model size from 3B to 7B provided a large boost across the board (0.284 → 0.342 average EM at 6 steps).
  • Test-Step Scaling (Table 4 & 5):
  • Performance improved steadily as the maximum allowed step limit increased from 6 to 30 (0.343 → 0.407 EM on BrowserAgent-RFT), while the actual average step count remained stable (~4.3 steps), demonstrating that the model does not waste action budgets unnecessarily.

Limitations and Future Work

  • Static Knowledge Boundary: Experiments rely primarily on an offline 2022 Kiwix Wikipedia snapshot; performance on live, modern websites with complex JavaScript, captchas, and dynamic ads remains unverified.
  • Text-Only Perceptual Modality: BrowserAgent processes text accessibility trees rather than raw visual viewport pixels, limiting its ability to handle canvas elements, visual maps, or complex graphical layouts.
  • Future Directions: The authors intend to investigate cross-website generalization, more sophisticated memory/reflection architectures, multi-agent cooperative browsing, and continuous online learning from interaction traces.

Summary updated

BibTeX
@article{yu2026browseragent,
  author = {Tao Yu and Zhengbo Zhang and Zhiheng Lyu and Junhao Gong and Hongzhu Yi and Xinming Wang and Yuxuan Zhou and Jiabing Yang and Ping Nie and Yan Huang and Wenhu Chen},
  title = {{BrowserAgent: Building Web Agents with Human-Inspired Web Browsing Actions}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}

Loading related content...

Figure