Introduction
Autonomous web agents represent a significant frontier in artificial intelligence, requiring models to navigate complex, multi-step environments to fulfill user requests. While proprietary Large Language Models (LLMs) like GPT-4o have set initial benchmarks, their high cost and lack of transparency limit widespread adoption. Furthermore, open-source models often struggle with the intricate reasoning needed for web navigation. This paper introduces WebRL, a self-evolving reinforcement learning framework designed to elevate open-source LLMs to state-of-the-art performance in web browsing tasks.
Challenges in Web Agent Training
The development of robust web agents faces three primary "deal-breaker" challenges:
- Task Scarcity: Standard benchmarks like WebArena offer limited training data (approximately 1,000 tasks), which is insufficient for comprehensive reinforcement learning.
- Sparse Feedback: Success in web browsing is typically binary and only determined at the end of a long sequence of actions. The lack of intermediate rewards makes it difficult for agents to learn from partial progress.
- Policy Drift: Online learning often leads to "forgetting" previously mastered skills while attempting to learn new ones, resulting in unstable performance over time.
The WebRL Framework
To address these issues, WebRL employs a three-pronged strategy:
Self-Evolving Online Curriculum
Rather than relying on static datasets, WebRL dynamically generates a curriculum. When an agent fails a task, a "teacher" model (e.g., GPT-4o) generates analogous but slightly varied tasks. This allows the agent to build foundational sub-skills before re-attempting more complex objectives.
Outcome-Supervised Reward Model (ORM)
To overcome sparse feedback, the researchers trained a specialized 8B parameter LLM to serve as a judge. This ORM analyzes the agent's action history and the final HTML state to provide a reliable binary success/failure signal, facilitating more effective reinforcement learning.
Adaptive Reinforcement Learning
WebRL mitigates policy drift using a KL-divergence constraint to keep the model's updates stable. Additionally, it utilizes an Experience Replay Buffer with Actor Confidence Filtering. This mechanism prioritizes replaying successful trajectories that fall within a "moderate" difficulty range (measured by perplexity), avoiding the pitfalls of training on tasks that are either too simple or excessively difficult.
Experimental Results
The effectiveness of WebRL was evaluated on the WebArena-Lite benchmark. The results demonstrate that WebRL-trained open-source models significantly outperform their proprietary counterparts.
As shown in the figure above, GLM-4+WebRL achieved a success rate of approximately 43%, a dramatic improvement over the base GLM-4-Chat (6.1%) and far exceeding GPT-4o (13.9%). Similarly, Llama-3.1-8B saw its success rate climb from 4.8% to 42.4%, while Llama-3.1-70B reached a peak of 49.1%.
Performance Across Web Domains
WebRL's performance is consistent across various web environments, including Gitlab, Reddit, OpenStreetMap (Map), CMS, and online stores (OSS).
The radar chart highlights that the WebRL framework provides a balanced performance boost across all tested domains, effectively reducing common errors such as infinite loops or premature stopping.
Conclusion
WebRL demonstrates that with a sophisticated curriculum and robust reward modeling, open-source LLMs can surpass the performance of much larger proprietary models in specialized domains like web navigation. Future work will focus on reducing dependency on proprietary "teacher" models for task generation and expanding the framework to multi-modal environments.
Summary updated