DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environments

Yuxiang Zheng, Dayuan Fu, Xiangkun Hu, Xiaojie Cai, Lyumanshan Ye, Pengrui Lu, Pengfei Liu

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.
Figure 3: The trajectory of a single sample from a batch of questions processed in parallel by a distributed cluster. Each question undergoes multiple independent rollouts with distinct memory. Upper-left: Displays the batch of questions and their concurrent rollout paths. Upper-right: Shows the browsing agent retrieving web pages via URLs, processing them sequentially to incrementally extract relevant information. Bottom: Details the iterative decision-making steps, from initial query formulation and search to snippet retrieval, further reasoning, browsing, information extraction, and answer generation.

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.
Figure 2: Planning and Cross Validation Behaviors. Left: DeepResearcher is capable of making plans and dynamically adjusting it throughout the reasoning process. Notably, the model can merge steps when appropriate. Right: DeepResearcher identifies the correct answer during its first tool call. However, rather than immediately committing to this result, it proceeds to verify its accuracy through subsequent steps. This rigorous behavior enhances the reliability of the model’s responses, ensuring greater robustness in its final answers. Note: In the actual model, the tool call and tool response format is a JSON string, rather than a tag. However, for clarity and ease of presentation, we have used tags in the figure to represent the output.

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.
Figure 1: DeepResearcher performs the best on all 7 datasets measured by reliable model-based evaluation.

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

Abstract

Large Language Models (LLMs) equipped with web search capabilities have demonstrated impressive potential for deep research tasks. However, current approaches predominantly rely on either manually engineered prompts (prompt engineering-based) with brittle performance or reinforcement learning within controlled Retrieval-Augmented Generation (RAG) environments (RAG-based) that fail to capture the complexities of real-world interaction. In this paper, we introduce DeepResearcher, the first comprehensive framework for end-to-end training of LLM-based deep research agents through scaling reinforcement learning (RL) in real-world environments with authentic web search interactions. Unlike RAG-based approaches that assume all necessary information exists within a fixed corpus, our method trains agents to navigate the noisy, unstructured, and dynamic nature of the open web. We implement a specialized multi-agent architecture where browsing agents extract relevant information from various webpage structures and overcoming significant technical challenges. Extensive experiments on open-domain research tasks demonstrate that DeepResearcher achieves substantial improvements of up to 28.9 points over prompt engineering-based baselines and up to 7.2 points over RAG-based RL agents. Our qualitative analysis reveals emergent cognitive behaviors from end-to-end RL training, including the ability to formulate plans, cross-validate information from multiple sources, engage in self-reflection to redirect research, and maintain honesty when unable to find definitive answers. Our results highlight that end-to-end training in real-world web environments is not merely an implementation detail but a fundamental requirement for developing robust research capabilities aligned with real-world applications. We release DeepResearcher at https://github.com/GAIR-NLP/DeepResearcher.
BibTeX
@inproceedings{zheng2025deepresearcher,
  author = {Yuxiang Zheng and Dayuan Fu and Xiangkun Hu and Xiaojie Cai and Lyumanshan Ye and Pengrui Lu and Pengfei Liu},
  title = {{DeepResearcher: Scaling Deep Research via Reinforcement Learning in Real-world Environments}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=40CVH5taEc},
}
Figure