TL;DR
DeepResearcher is the first framework to train LLM-based deep research agents end-to-end using reinforcement learning (RL) directly within the live, un-sanitized open web. By breaking free from rigid prompt engineering and static, simulated RAG environments, it achieves up to a 28.9-point improvement over baselines and unlocks human-like cognitive behaviors such as dynamic planning, cross-validation, and self-reflection.
What Problem Does This Paper Address?
Building autonomous AI agents capable of conducting deep, multi-step web research is a major goal in LLM development. Currently, developers rely on two paradigms: brittle, human-engineered prompts with rigid workflows, or reinforcement learning confined to sanitized, static local Retrieval-Augmented Generation (RAG) environments.
However, the real web is messy. It is filled with unstructured data, broken links, anti-crawling blocks, rate limits, and constantly changing information. Models trained on static local corpora fail to generalize to the open web because they operate under the flawed assumption that all necessary information is perfectly preserved and easily retrievable. DeepResearcher addresses this gap by scaling RL training directly in the wild, forcing agents to navigate the noisy and unpredictable nature of the live internet.
Methods
DeepResearcher utilizes an end-to-end training pipeline powered by the Group Relative Policy Optimization (GRPO) algorithm, using Qwen2.5-7B-Instruct as its backbone model.
Key technical components include:
- Multi-Agent Browsing Architecture: A specialized reading agent partitions long webpages into smaller segments and processes them sequentially, extracting relevant information into a short-term memory repository while dynamically deciding whether to keep reading or stop.
- Real-World Infrastructure Engineering: To handle the massive concurrency required by RL rollouts (thousands of parallel queries) without crashing or getting blocked, the authors built a 50-node distributed CPU server cluster. They also implemented robust retry mechanisms for anti-crawling and a 7-day search result cache to manage API costs and rate limits.
- Masked Training: During the RL training process, the outputs of the web tools (the actual text snippets retrieved) are masked so that the model's loss function only backpropagates through its own generated reasoning tokens and tool calls.
Datasets
The authors constructed a training dataset of 80,000 examples from four established open-domain QA datasets:
- NaturalQuestions (NQ) & TriviaQA (TQ): Used for single-hop scenarios where answers reside in a single document.
- HotpotQA & 2WikiMultiHopQA (2Wiki): Used for complex, multi-step reasoning. The training corpus was deliberately weighted in a 1:1:3:3 ratio to ensure 75% of the data emphasized multi-hop scenarios.
For out-of-domain (OOD) evaluation, they tested generalization using MuSiQue, Bamboogle, and PopQA. Crucially, they applied strict data cleaning via DeepSeek-R1 to filter out time-sensitive or subjective queries, and used a contamination detection pass (pass@10 check) to eliminate any questions the base model could already answer purely from its parametric memory.
Key Insights and Ideas
- The Wild Teaches Better Than the Zoo: Direct interaction with live search environments is not just an implementation detail; it is a fundamental requirement. Training against real-world web noise forces the agent to learn sophisticated filtering and adaptive search strategies that static RAG environments cannot incentivize.
- Emergent Cognitive Behaviors: Without any explicit supervised fine-tuning (SFT) for step-by-step planning, several advanced human-like behaviors emerged naturally from pure RL scaling:
- Dynamic Planning: The model maps out multi-step research paths and merges steps when appropriate.
- Cross-Validation: Even after finding a correct answer on the first try, the agent continues searching to verify the fact across independent sources before committing.
- Self-Reflection: If a search query returns irrelevant results, the model catches its mistake and pivots its search direction.
- Honesty: When precise data is missing from the web, the model explicitly states its limitations and refuses to hallucinate a fake answer.
Key Results
- State-of-the-Art Performance: Measured by Model-Based Evaluation (MBE) using LLM-as-a-judge, DeepResearcher achieved the highest performance across all 7 evaluation datasets.
- Substantial Gains: It outperformed prompt-engineered baselines by up to 28.9 points and local RAG-based RL agents by up to 7.2 points.
- Superior Generalization: On Bamboogle (a dataset specifically designed to require knowledge beyond Wikipedia), DeepResearcher significantly outperformed local RAG baselines. Even when those local RAG baselines were granted web access during inference, they performed substantially worse, proving that training in a real-world environment is what builds robust retrieval capabilities.
Limitations and Future Work
- Fixed Search Parameters: The framework currently uses a fixed top-k value (e.g., 10) for search results retrieval. The authors suggest that future work should explore LLM-driven dynamic parameter optimization.
- Short-Answer Constraints: The reward function is currently optimized for short-answer QA (via F1 and MBE). Scaling this to long-form, open-ended research reports will require more sophisticated, nuanced reward mechanisms.
- Evaluation Gaps: Current QA benchmarks do not properly reward or quantify model honesty (knowing when to say "I don't know"), which is a vital trait for real-world deployment.
Summary updated