Abstract
Retrieval-augmented generation (RAG) demonstrates remarkable performance across tasks in open-domain question-answering. However, traditional search engines may retrieve shallow content, limiting the ability of LLMs to handle complex, multi-layered information. To address it, we introduce WebWalkerQA, a benchmark designed to assess the ability of LLMs to perform web traversal. It evaluates the capacity of LLMs to traverse a website's subpages to extract high-quality data systematically. We propose WebWalker, which is a multi-agent framework that mimics human-like web navigation through an explore-critic paradigm. Extensive experimental results show that WebWalkerQA is challenging and demonstrates the effectiveness of RAG combined with WebWalker, through the horizontal and vertical integration in real-world scenarios.
Introduction
While Retrieval-Augmented Generation (RAG) has revolutionized how Large Language Models (LLMs) access external data, it often encounters limitations when required information is buried deep within a website's hierarchy. Standard RAG systems typically rely on "horizontal" searches—using general search engines to find relevant snippets across the broad web. However, many real-world queries require "vertical" exploration: clicking through multiple layers of a specific domain (e.g., a university department or a conference site) to find specific details like submission deadlines or venue addresses.
We define this task as Web Traversal. Current LLMs struggle with this due to shallow indexing by search engines, context window limitations when processing entire HTML structures, and the multi-step reasoning required to synthesize information across several subpages.
The WebWalker Framework
To address these challenges, we introduce WebWalker, a multi-agent framework designed to mimic human-like web navigation. It utilizes an explore-critic paradigm consisting of two specialized agents:
- The Explorer Agent: Built on the ReAct (Reason + Act) framework, this agent interacts with the web page by selecting "click" actions on HTML elements. It follows a thought-action-observation loop to determine which subpage to visit next.
- The Critic Agent: Acting as the system's "memory" and "judge," the Critic analyzes each new observation from the Explorer. It builds an incremental memory buffer and decides when sufficient information has been gathered to terminate the search and provide a final answer.
This dual-agent approach prevents the model from getting lost in long-context noise and allows for more strategic, multi-step navigation.
WebWalkerQA Benchmark
We introduce WebWalkerQA, a bilingual (English and Chinese) benchmark specifically designed to evaluate web traversal capabilities. The dataset consists of 680 high-quality QA pairs derived from 1,373 webpages across four domains: Conference, Organization, Education, and Games.
The benchmark is categorized by complexity metrics:
- Depth: Questions require information buried 2 to 4 levels deep within a site.
- Width (Multi-source): Certain tasks require synthesizing information from multiple distinct subpages.
Unlike previous benchmarks focused on UI automation, WebWalkerQA prioritizes deep information retrieval and text-based reasoning.
Experimental Results and Insights
Extensive testing reveals that deep web navigation remains a significant hurdle for current AI. Even the top-performing model, GPT-4o, achieved an overall accuracy of only 37.50%, highlighting a "difficulty wall" in complex traversal tasks. Key findings include:
- Scaling Laws for Exploration: Increasing the "Action Count" ($K$)—allowing the agent more steps to explore—directly correlates with improved performance, suggesting a scaling law for inference-time exploration in RAG systems.
- The "Impatience" Factor: Smaller LLMs tend to prematurely refuse to answer or hallucinate failures. Increasing model parameters and employing a Critic agent significantly reduces this behavior.
- Performance Decay with Depth: Accuracy drops sharply as task complexity increases. For instance, GPT-4o's accuracy fell from 55% on "Easy" tasks to just 15.83% on "Hard" multi-source tasks.
Conclusion
WebWalker demonstrates the potential of combining RAG with systematic web traversal. By acting as a "plug-in" module, WebWalker allows systems to "go deep" on specific domains to uncover information that standard search engines miss. Future work will focus on incorporating visual modalities (screenshots) and fine-tuning agents on successful navigation trajectories to further bridge the performance gap in complex web environments.
Summary updated