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 · OpenReview

Abstract

Efficiently solving real-world problems with Large Language Models (LLMs) increasingly hinges on their ability to interact with dynamic web environments and autonomously acquire external information. While recent research like Search-R1 and WebDancer demonstrates strong performance in solving web tasks, they heavily rely on additional tools to convert the interactive web environment into static text content. This is in contrast to human browsing behaviors, which involve diverse interactions with the browser, such as scrolling, clicking, and typing. In this paper, we propose BrowserAgent, a more interactive agent that solves complex tasks through human-inspired browser actions. BrowserAgent operates directly on raw web pages via Playwright through a set of predefined browser actions. We adopt a two-stage training (Supervised Fine-Tuning (SFT) and Rejection Fine-Tuning (RFT)) to improve the model's generalization abilities. Despite using significantly less training data than Search-R1, BrowserAgent achieves more competitive results across different Open-QA tasks. Additionally, we introduce an explicit memory mechanism to store key conclusions across steps, further enhancing the model's reasoning capabilities for long-horizon tasks. Notably, BrowserAgent-7B can achieve around 20% improvement over Search-R1 on multi-hop QA tasks like HotpotQA, 2Wiki, and Bamboogle.

Introduction

Most current "web agents" do not actually browse the web in a human-like manner. Instead, they rely on external tools that parse HTML into simplified text or separate LLMs that summarize pages before the agent interacts with them. This approach suffers from significant information loss, as summarizers often strip away native context and interactive elements like menus or infinite scrolls. Furthermore, calling heavy-duty models for summarization increases cost and latency.

Comparison between traditional web agents and the proposed BrowserAgent framework.

BrowserAgent addresses these flaws by operating directly on raw web pages using atomic actions such as click, type, scroll, hover, and press. To overcome the historical bottleneck of slow browser automation, the authors developed a Ray-parallelized orchestration layer, boosting data collection efficiency by over 50x.

Methods

BrowserAgent is built upon a Qwen2.5-7B base and trained in two distinct stages:

  1. Supervised Fine-Tuning (SFT): The model is trained to follow a "ReAct" style (Think → Act → Observe) loop, learning the specific syntax of browser commands and basic navigation.
  2. Rejection Fine-Tuning (RFT): To encourage deeper exploration, the model generates multiple trajectories for a given task. The training then prioritizes correct answers that involve the most reasoning steps, rewarding thoroughness over "lucky guesses."

To manage long-horizon tasks, the framework implements an explicit memory mechanism. At each step, the agent distills key findings into a <memory> tag. This prevents context window saturation and ensures the agent maintains a coherent understanding of its progress across complex, multi-step searches.

Evaluation and Results

The model was evaluated on a diverse set of benchmarks, including General QA (NQ, PopQA) and Multi-Hop QA (HotpotQA, 2WikiMultiHopQA, Musique, and Bamboogle). Despite being trained on a relatively small dataset of 5.3K trajectories, BrowserAgent demonstrated significant performance gains.

Quantitative comparison of BrowserAgent against Search-R1 and other baselines across various QA benchmarks.

As shown in the results, BrowserAgent-RFT (7B) achieved an average Exact Match (EM) score of 0.407, outperforming Search-R1-Instruct's 0.348. When using an LLM-as-a-judge to account for minor formatting variations, the performance gap widened, with BrowserAgent reaching an average score of 0.484. The model showed particular strength in multi-hop reasoning, achieving a ~20% improvement over Search-R1 on benchmarks like HotpotQA and Bamboogle.

Conclusion

BrowserAgent demonstrates that native web interaction and explicit memory are more effective than relying on static text summaries for complex web-based reasoning. By prioritizing the quality of interaction and reasoning depth through RFT, BrowserAgent achieves state-of-the-art results with high data efficiency. Future work will focus on cross-website generalization and incorporating human interaction logs to further refine the agent's capabilities in diverse digital environments.

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