Skip to content

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

optionalcorefrontierpaperrubric 9/122025 · ~40 min

Yuxiang Zheng, Dayuan Fu, Xiangkun Hu, … Pengfei Liu

Read first: DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models

Status

TL;DR. DeepResearcher trains a Qwen2.5-7B-Instruct search agent with GRPO while it talks to the real web: a search API returns top-10 title/URL/snippet results and a separate browsing agent reads chosen pages. The training questions are ordinary open-domain QA (NQ, TriviaQA, HotpotQA, 2Wiki), filtered so the model cannot answer them from memory. The paper’s main contribution is the engineering needed to make live-web RL run at scale.

Why it matters now. Most early RL search agents (Search-R1, R1-Searcher, ReSearch) were trained against a fixed Wikipedia index with a dense retriever. That is a clean IR setup, but the agent never meets ranking noise, dead links, long pages or rate limits. DeepResearcher asks what changes when the retrieval environment is the open web. The paper calls this “deep research”, but its tasks are short-answer QA scored by F1 and an LLM judge, not long reports. Keep that distinction in mind when comparing it with report-writing systems such as DR Tulu or STORM.

DeepResearcher: GRPO rollouts against the live web A policy model, Qwen2.5-7B-Instruct, writes a think block and then either a tool call or a final answer. The web_search tool queries a search API and returns the top ten results as title, URL and snippet. The web_browse tool sends a URL to a separate browsing agent that reads the page segment by segment, keeps a short-term memory and stops when it has enough, returning only an extract. Both tools reach the live web through a 50-node CPU cluster with retries and a 7-day search cache, handling about 4,096 requests per rollout step. Below, a token strip shows that think, query and answer tokens are trained while returned web text is masked from the loss. The reward is minus one for a format error and otherwise word-level F1 against the gold answer; GRPO samples 16 rollouts per question and normalises rewards within the group. Training data: 80K NQ, TriviaQA, HotpotQA and 2Wiki questions in a 1:1:3:3 ratio, after removing questions the base model answers without search in any of 10 samples. Policy Qwen2.5-7B-Instruct <think> plan, reflect then a tool call or <answer> (≤ 10 calls) web_search search API → top-10 results title · URL · snippet web_browse browsing agent reads the page segment by segment, keeps a short memory, stops when done; returns only an extract Live web 50-node CPU cluster ~4,096 calls / step retries on failures 7-day search cache rate limits, dead links, long pages observations go back into the policy context each turn What one rollout trains on think: trained query: trained snippets / extract: masked think: trained answer: trained Reward and update R = −1 if the format is broken, otherwise word-level F1(answer, gold) GRPO: 16 rollouts per question, Â = (R − group mean) / group std Data: 80K NQ / TQ / HotpotQA / 2Wiki (1:1:3:3), minus questions the base model answers without search in any of 10 samples
Original sketch: the DeepResearcher rollout loop, its two tools, the reward and the masked tokens.

The agent alternates <think> blocks with tool calls. Two tools exist:

  • web_search returns the top-10 results (title, URL, snippet) from a search API.
  • web_browse hands a URL to a separate browsing agent. That agent reads the page segment by segment, keeps a short-term memory of what is relevant to the question, and decides after each segment whether to keep reading. Only its extract goes back to the policy.

Training is GRPO with the standard group baseline. For a question, G=16G = 16 rollouts are sampled, each gets a scalar reward, and every generated token of rollout ii gets the advantage

A^i=Ri−mean⁡(R1,…,RG)std⁡(R1,…,RG),Ri={−1format errorF1(y^i,y)otherwise.\hat A_i = \frac{R_i - \operatorname{mean}(R_1,\dots,R_G)}{\operatorname{std}(R_1,\dots,R_G)}, \qquad R_i = \begin{cases} -1 & \text{format error} \\ \mathrm{F1}(\hat y_i, y) & \text{otherwise.} \end{cases}

Tool outputs (snippets and browse extracts) are masked from the loss, so only tokens the policy wrote receive gradient. The F1 reward is word-level, so partially right answers get partial credit.

Data. The authors start from NQ, TriviaQA, HotpotQA and 2Wiki. Low-quality questions are removed with DeepSeek-R1, and a contamination filter drops a question if any of 10 samples from the base model without search contains the answer. The final set has 80K questions in a 1:1:3:3 ratio, so 75% are multi-hop.

Engineering for the live web. Each rollout step can trigger about 4,096 concurrent requests. These are spread over a 50-node CPU cluster, with retries for failed fetches and a 7-day cache of search results to stay under API rate limits. Training used verl with 256 prompts × 16 rollouts per step and at most 10 tool calls per episode.

Evaluation uses 512 sampled development examples per dataset (all 125 for Bamboogle), scored by F1 and by MBE, an LLM-judge accuracy with GPT-4o-mini. All numbers below are paper-reported.

  • In-domain (Table 1, F1/MBE). DeepResearcher: NQ 39.6/61.9, TQ 78.4/85.0, HotpotQA 52.8/64.3, 2Wiki 59.7/66.6. Search-r1-base: 45.4/60.0, 71.9/76.2, 55.9/63.0, 44.6/47.9. So Search-r1-base still has higher F1 on NQ and HotpotQA, while DeepResearcher has the higher MBE on all four. The paper notes that Search-r1-base was trained and tested on a local Wikipedia index, the same source the answers come from.
  • Out-of-domain (Table 2, F1/MBE). MuSiQue 27.1/29.3, Bamboogle 71.0/72.8, PopQA 48.5/52.7, against Search-r1-base at 26.7/27.5, 56.5/57.6 and 43.2/47.0, and R1-Searcher at 22.8/25.6, 64.8/65.6 and 42.7/43.4.
  • The abstract summarises the gains as up to 28.9 points over prompt-engineered baselines and up to 7.2 points over RAG-based RL agents.
  • Training dynamics. Training F1 rises from about 0.375 to about 0.55. The number of tool calls and the response length grow during training.
  • Behaviours. Planning, cross-checking across sources, reflection and saying when an answer cannot be found are shown in case studies only; the paper gives no rate for them.
  • Environment is confounded with everything else. The base model, data mix, reward, turn budget and browsing agent all differ from the baselines. There is no run with the same recipe on a local index, so the paper does not isolate the effect of the live web.
  • Reproducibility. Results depend on a commercial search API and on pages that change. Re-running the evaluation later will give different numbers; see live-web reproducibility.
  • Reward is lexical. F1 rewards token overlap, so near-miss entities can earn credit. The F1 and MBE columns disagree in places, which shows how much the metric matters.
  • Short answers only. Report quality, citation accuracy and coverage, the things DeepResearch Bench measures, are not tested.
  • Cost. A 50-node crawler cluster is out of reach for most academic labs. Simulated or frozen environments (ZeroSearch; BrowseComp-Plus) are the cheaper alternatives.

Questions to think through

These questions have no single right answer. Write or say your answer before you open the hints. Mark a question once you could defend your answer in a reading group.

  1. Derive / compute

    DeepResearcher's reward is −1 for a format error and word-level F1 otherwise. One GRPO group of 4 rollouts for the gold answer "Barack Obama" ends with: (1) a malformed tool call, (2) answer "Michelle Obama", (3) answer "Obama", (4) answer "Barack Obama". Compute each reward, the group-normalised advantages (population std), and say which rollout drives most of the negative signal.

    What a strong answer covers
    • F1 over word tokens: (2) "Michelle Obama" shares 1 of 2 tokens, P = 0.5, R = 0.5, F1 = 0.5. (3) "Obama": P = 1, R = 0.5, F1 = 0.667. (4) exact, F1 = 1. (1) gets −1.
    • Mean = (−1 + 0.5 + 0.667 + 1)/4 ≈ 0.292. Deviations ≈ −1.292, 0.208, 0.375, 0.708; population std ≈ 0.77.
    • Advantages ≈ −1.68, +0.27, +0.49, +0.92. The format failure takes almost all of the negative mass; the wrong-person answer "Michelle Obama" is actually reinforced because it beats the group mean.
    • Lesson: with partial-credit F1, a group that contains a format failure can push up wrong answers. The −1 penalty is useful early (format learning) but distorts the correctness signal once some rollouts in the group are malformed.
  2. Derive / compute

    DeepResearcher drops a training question if any of 10 no-search samples from the base model contains the gold answer. If the base model answers a question correctly with independent probability p per sample, what fraction of such questions survive the filter for p = 0.02, 0.1 and 0.3? What does this imply about which questions remain?

    What a strong answer covers
    • Survival probability = (1 − p)^10. p = 0.02 gives ≈ 0.82; p = 0.1 gives ≈ 0.35; p = 0.3 gives ≈ 0.03.
    • Questions the model knows even weakly are mostly removed, so the surviving set leans toward questions the model cannot answer from parametric memory, which forces search use during RL.
    • Side effect: "contains the answer" is a substring test, so short or common answers (years, yes/no, common names) are removed more often than their true difficulty warrants.
    • The filter is tied to one base model; a different or larger policy would need its own pass to keep the same guarantee.
  3. Mechanism

    In DeepResearcher, retrieved web text enters the policy's context but is masked from the GRPO loss. Explain what gradient the policy would receive on observation tokens without the mask, and why that signal is harmful for a live-web environment in particular.

    What a strong answer covers
    • Without the mask, the clipped surrogate would raise or lower the log-probability of the snippet and page text in proportion to the trajectory's advantage, as if the policy had written it.
    • That teaches the model to predict (memorise) web text tied to rewarded trajectories, not to choose better queries or URLs: the policy does not control those tokens.
    • On the live web, the same query returns different text over time, so the observation tokens are a moving, noisy target that would add variance without useful credit assignment.
    • With the mask, gradients flow only through the thought, query, URL choice and answer tokens, the actions the policy actually takes.
  4. Critique

    DeepResearcher reports higher MBE than Search-r1-base on TQ and 2Wiki and attributes the gains to training in the real web environment. Name the confounds in this comparison and design the smallest experiment that would isolate the effect of the environment.

    What a strong answer covers
    • Confounds: different base model and size (Qwen2.5-7B-Instruct), different training data mix and size (80K, 1:1:3:3, contamination-filtered), different reward (F1 with format penalty), more tool calls (≤ 10) and a browsing sub-agent that reads full pages.
    • Search-r1-base used a local Wikipedia index for both training and testing; DeepResearcher uses the open web at test time, so the test-time tool also differs.
    • Minimal experiment: same base model, data, reward and turn budget; train once with a local Wikipedia index and once with the live web; evaluate both with both tools (a 2×2 grid).
    • Report variance across seeds and across evaluation days, since live-web results drift.
  5. Design

    You have one 8×H100 node and no budget for a paid search API, and you want to replicate the DeepResearcher result that live-web training helps. Which parts of its environment would you keep, cache or replace, and what would you measure to know the replica is faithful?

    What a strong answer covers
    • The paper's setup assumed about 4096 concurrent requests per rollout step, a 50-node CPU cluster for crawling and a 7-day search cache; a single node cannot match that, so batch size and rollout count must shrink.
    • Options: a free metasearch library (as ORBIT does with DDGS), a frozen web snapshot or crawl (as in BrowseComp-Plus), or an aggressive query-result cache shared across rollouts.
    • A cache lowers cost and variance but makes the environment partly static, which weakens the "real web" claim; state how many calls hit the cache.
    • Measure: training reward curves against the paper, tool calls per episode, fraction of failed fetches, and test accuracy on the same 512-example subsets with both F1 and an LLM judge.
  6. Research idea

    DeepResearcher reports planning, cross-validation, reflection and "honesty" as emergent behaviours, but only through case studies. Propose a measurement study that tests whether these behaviours increase with RL steps and whether they cause accuracy gains.

    What a strong answer covers
    • Operationalise each behaviour: e.g. cross-validation = the final answer is supported by two or more distinct domains; honesty = answering "cannot find" when no page contains the answer.
    • Tag behaviours automatically (LLM tagger validated against a hand-labelled sample) on checkpoints across training.
    • Causal test: intervene at inference (force or forbid a second confirming search) and measure the change in F1/MBE, rather than relying on correlation.
    • Falsifier: behaviour rates rise but forcing them gives no accuracy gain, or the rates track response length rather than RL step.

Done with this page?

Status