Skip to content

WebThinker: Empowering Large Reasoning Models with Deep Research Capability

optionalcorefrontierpaperrubric 9/122025 · NeurIPS 2025 · ~30 min

Xiaoxi Li, Jiajie Jin, Guanting Dong, Hongjin Qian, Yongkang Wu, Ji-Rong Wen, Yutao Zhu, Zhicheng Dou

Read first: Direct Preference Optimization: Your Language Model is Secretly a Reward Model · STORM and Co-STORM: researching and writing Wikipedia-like articles

Status

TL;DR. WebThinker (from the RUC-NLPIR group; NeurIPS 2025) puts web research inside a large reasoning model’s (LRM’s) chain of thought. The model, QwQ-32B in the main experiments, thinks in one long generation. When it hits a knowledge gap it emits a search tag. A Deep Web Explorer, which is the same model under its own instruction, then searches, clicks through pages and returns a short summary to the main chain. In report mode the model also emits draft, check and edit tags. An assistant model writes the report sections from a memory of every page read so far, so writing is interleaved with searching. Training is two rounds of iterative online DPO on self-sampled trajectories ranked by correctness, then by fewer tool calls, then by shorter output.

Why it matters now. WebThinker is the clearest open example of the “reasoning model plus tools in the thinking stream” design that followed OpenAI deep research. It sits between two other pages:

  • STORM is a fixed pipeline: research perspectives, outline first, then write. Nothing is trained.
  • Search-o1 (same first author) lets an LRM issue search queries while reasoning. A Reason-in-Documents step condenses the retrieved documents before insertion. It is prompt-only, and it cannot follow links.

WebThinker adds depth (a navigating sub-agent), a writing workflow (drafting during research) and training (DPO on tool-use preferences). For an IR researcher, two parts are familiar: the Explorer is query-focused summarisation of a ranked list plus link-following, and the drafting step is plain RAG over a session-level document memory.

Smallest mechanism first. One delegation, in order: the main chain reasons until it emits a search tag; an assistant writes a search intent; the Explorer (the same model under another instruction) searches, clicks and reads pages in its own context; it returns a short Final Information block; only that block is inserted into the main chain, which resumes. Training then prefers, among correct trajectories, the ones with fewer tool calls and shorter thinking (see the worked example under point 4 of the key idea below). The implementation settings and benchmark grids are reproduction details.

WebThinker architecture and training loop Top: the main large reasoning model, QwQ-32B, reasons in one long generation and pauses whenever it emits a tool tag. A search tag sends a query to the Deep Web Explorer, which is the same model under its own instruction. The Explorer receives the query, a search intent and the top-10 fetched pages, then loops: it can search Bing for top-10 snippets or click a link, whose page is fetched and summarised by an assistant model for the click intent. It ends with a Final Information block, a concise output returned into the main reasoning chain. Middle: in report generation mode the main model also emits write-section, check-article and edit-article tags. An assistant model (Qwen2.5-Instruct) receives the instruction, the current report and the top-k documents retrieved from a document memory holding every page the Explorer read, and writes the new report text. Checking returns only the report outline to the main model. Bottom: training is iterative online DPO for two rounds: sample n trajectories per question with the current policy; build preference pairs by priority (correct or better report wins, then fewer tool calls, then shorter output if the length ratio exceeds a threshold gamma); run a DPO update, set the reference policy to the new policy, and sample again. WebThinker: one reasoning model, a nested explorer, and drafting tools Main LRM (QwQ-32B): one generation pauses whenever it emits a tool tag <search> query </search> calls the Explorer findings return inside <search_result> report mode adds three tags: write_section, check_article, edit_article stops at EOS: answer or finished report Deep Web Explorer (same LRM) input: query, search intent, top-10 pages loop: search → Bing top-10 snippets or click a link → page fetched, summarised by an assistant LLM for the click intent stops with a Final Information block = concise output O_exp query O_exp Report r write_section: add a section check_article: outline only edit_article: revise r Assistant LLM (Qwen2.5) reads instruction e, report r and top-k docs from M, writes the new text r_new Document memory M every page the Explorer read in this session; top-k retrieved per edit instruction e outline (check) pages read Middle row is used only in Report Generation mode (the paper's Think-Search-and-Draft strategy). Training: iterative online DPO (2 rounds) 1 · Sample current policy runs n full trajectories per training question (both modes) 2 · Build pairs (in priority) a. correct or better report b. tie: fewer tool calls c. tie: shorter, if ratio > γ 3 · DPO update chosen vs rejected trajectory; then π_ref ← new policy and resample next round: sample again with the updated policy
Original sketch of WebThinker's two loops (top and middle) and its training loop (bottom), summarised from §3 and App. A.

Key idea: one reasoning chain that delegates searching and writing

Section titled “Key idea: one reasoning chain that delegates searching and writing”

1. The main reasoning chain (§3.2, App. A.2.1). The LRM receives an instruction II and a question qq and generates freely. Generation pauses whenever it closes a tool tag. For search, an assistant model first writes a search intent from the query and the preceding reasoning. The top-10 Bing results are fetched, and everything goes to the Explorer. The Explorer’s output Oexp\mathcal{O}_{\text{exp}} is inserted into the chain, and generation resumes. The whole run is one sequence (Eq. 5):

P(R,yend∣I,q)=∏t=1TrP(Rt∣R<t, I, q, {Oexp(j)}j<i(t))⋅P(yend∣R,M).P(\mathcal{R}, y_{\text{end}} \mid I, q) = \prod_{t=1}^{T_r} P\big(\mathcal{R}_t \mid \mathcal{R}_{<t},\, I,\, q,\, \{\mathcal{O}^{(j)}_{\text{exp}}\}_{j<i(t)}\big)\cdot P(y_{\text{end}} \mid \mathcal{R}, \mathcal{M}).

The chain conditions only on earlier Explorer outputs, not on the raw pages.

2. The Deep Web Explorer (§3.3, App. A.2.2). The Explorer is the same LRM under an explorer instruction IeI_e, and it has two tools:

  • search: a new Bing query that returns the top-10 titles, URLs and snippets (not full pages);
  • click: fetches a page with Crawl4AI. An assistant model summarises it for a generated click intent, so long pages do not flood the Explorer’s context.

The Explorer reasons over a changing set of web content Dt\mathcal{D}_t and stops with a Final Information block (Eq. 3):

P(Re,Oexp∣qs,D,Ie)=∏t=1TeP(Re,t∣Re,<t,qs,Dt,Ie)⋅P(Oexp∣Re,qs,D,Ie).P(\mathcal{R}_e, \mathcal{O}_{\text{exp}} \mid q_s, \mathcal{D}, I_e) = \prod_{t=1}^{T_e} P(\mathcal{R}_{e,t} \mid \mathcal{R}_{e,<t}, q_s, \mathcal{D}_t, I_e)\cdot P(\mathcal{O}_{\text{exp}} \mid \mathcal{R}_e, q_s, \mathcal{D}, I_e).

This is hierarchical delegation: the Explorer’s long context of pages is thrown away once it returns, and the main chain receives only the concise Oexp\mathcal{O}_{\text{exp}}. Search-o1’s Reason-in-Documents also condenses documents. The difference is that the Explorer can re-query and navigate, which is where the extra depth comes from.

3. Think-Search-and-Draft (§3.4, App. A.1). In report mode the main chain has three more tags:

tagexecuted bywhat returns to the main chain
write_section (name and guidance)assistant model writes the sectionnothing
check_articlesystem extracts section titlesthe current outline only
edit_article (instruction)assistant model revises the reportnothing

Every page the Explorer visits is added to a document memory M\mathcal{M}. For a write or edit instruction ee, the assistant model sees ee, the current report rr and the top-kk documents retrieved from M\mathcal{M}, and writes new text (Eq. 4):

P(rnew∣e,Dtop-k,r)=∏t=1TrnewP(rnew,t∣rnew,<t,e,Dtop-k,r).P(r_{\text{new}} \mid e, \mathcal{D}_{\text{top-}k}, r) = \prod_{t=1}^{T_{r_{\text{new}}}} P(r_{\text{new},t} \mid r_{\text{new},<t}, e, \mathcal{D}_{\text{top-}k}, r).

The main chain never holds the full report; it plans, searches and gives writing instructions. The final report is whatever the assistant has written and edited by the end. Unlike STORM, there is no fixed outline-then-write order. The model decides when to search and when to draft, and it can return to a section after learning something new.

4. Training with iterative online DPO (§3.5). Training questions come from SuperGPQA, WebWalkerQA (silver), OpenThoughts, NaturalReasoning, NuminaMath and Glaive. The data is built in four steps (App. B):

  1. Sample about 3K reasoning questions (plus 1.5K Glaive questions per iteration for report pairs).
  2. Keep only the reasoning questions QwQ-32B gets wrong without search.
  3. Generate trajectories per question; App. B says three, from WebThinker-32B-Base, for the first round.
  4. Compare every pair of trajectories (Ri,Rj)(\mathcal{R}_i, \mathcal{R}_j) for the same question with three rules, applied in priority order:
  • Correctness or report quality. A correct answer (or a better report) beats an incorrect one (or a worse report). This overrides everything else.
  • Tool efficiency. If both are correct, fewer total tool calls wins.
  • Thinking conciseness. If both are correct with the same number of calls, the shorter one wins, but only if the length ratio exceeds a threshold γ>1\gamma > 1.

If no rule fires, for example when both trajectories are wrong, the pair is dropped. The paper gives no value for γ\gamma or β\beta. It also does not say how report quality is judged when building report pairs. The standard DPO loss is applied to whole trajectories (Eq. 6):

LDPO=−E(Rw,Rl)[log⁡σ ⁣(βlog⁡πθ(Rw∣I,q)πref(Rw∣I,q)−βlog⁡πθ(Rl∣I,q)πref(Rl∣I,q))].\mathcal{L}_{\text{DPO}} = -\mathbb{E}_{(\mathcal{R}_w, \mathcal{R}_l)}\left[\log\sigma\!\left(\beta \log\frac{\pi_\theta(\mathcal{R}_w \mid I, q)}{\pi_{\text{ref}}(\mathcal{R}_w \mid I, q)} - \beta\log\frac{\pi_\theta(\mathcal{R}_l \mid I, q)}{\pi_{\text{ref}}(\mathcal{R}_l \mid I, q)}\right)\right].

The iterative online part is a loop. Train on the current pairs, sample new trajectories with the updated policy, rebuild the pairs, set πref←πθ\pi_{\text{ref}} \leftarrow \pi_\theta, and repeat. The paper runs two iterations with a maximum sequence length of 32,768 tokens. It calls this RL. More precisely, it is on-policy preference optimisation: there is no reward model and no policy-gradient step, only DPO on pairs that are re-sampled each round.

Worked example. A hypothetical question with four sampled trajectories (App. B mentions three per question, but four shows every rule), γ=1.5\gamma = 1.5. Trajectory A is correct with 3 tool calls and 9K tokens. B is correct with 3 calls and 5K tokens. C is correct with 5 calls and 4K tokens. D is wrong.

  • Rule 1 gives A ≻ D, B ≻ D and C ≻ D.
  • Rule 2 gives A ≻ C and B ≻ C. C loses even though it is the shortest, because tool calls are checked before length.
  • Rule 3 gives B ≻ A, since 9/5 = 1.8 > 1.5.

Six pairs come from one question. Correctness is never traded for efficiency, but among correct answers the policy learns to do less.

Implementation (§4.3; reproduction details). Backbone QwQ-32B; assistant models are Qwen2.5-Instruct of the same size. Up to 81,920 generated tokens, temperature 0.7, top-p 0.8. Bing Web Search (US-EN, k = 10) with pages fetched by Crawl4AI. For other backbones (DeepSeek-R1-distilled 7B, 14B and 32B), a cold-start SFT on 7.8K QwQ-32B WebThinker trajectories precedes the DPO rounds, to make tool use stable.

Problem solving (Tables 1 and 2, Pass@1, judged by Qwen2.5-72B-Instruct). The test sets are GPQA diamond (198), GAIA text-only validation (103), WebWalkerQA (680) and a 500-question random text-only sample of HLE.

system (32B unless noted)GPQAGAIAWebWalkerQAHLE (500)
QwQ-32B, no retrieval64.122.34.39.6
RAG-QwQ-32B with iterative RAG65.235.031.59.6
Search-o1-32B67.239.834.110.8
WebThinker-32B-Base (no training)68.744.741.913.0
WebThinker-32B-RL70.748.546.515.8
OpenAI Deep Research †–67.4–26.6
o3-mini (high) †–––14.0

† Numbers copied from official releases, on other question sets.

  • The prompt-only WebThinker-Base already beats Search-o1 everywhere (WebWalkerQA +23% relative, HLE +20%). Most of the gain comes from the Explorer, not from training.
  • DPO adds another 2–5 points per benchmark (GAIA +8.5% relative, HLE +21.5%).
  • The paper notes that on its HLE subset WebThinker-RL beats o3-mini (high)‘s official number. The sets differ.
  • OpenAI Deep Research is still far ahead on GAIA.

Report generation (Fig. 4, Glaive, 30 test questions). DeepSeek-R1 and GPT-4o score five systems’ reports listwise in one prompt, in random order, from 1 to 10 on completeness, thoroughness, factuality and coherence (about 5 means satisfactory). The two judges’ scores are averaged. Results: WebThinker-32B-Base 8.0, WebThinker-32B-RL 8.1, Gemini 2.0 Deep Research 7.9, Grok3 DeeperSearch 6.5, RAG with DeepSeek-R1 6.8. The paper did not use human evaluation, arguing that annotators could recognise each system’s style.

Ablations (Table 3).

problem solving (average of 4)avg
WebThinker-32B-RL45.4
with offline DPO43.2
no training (Base)42.1
no link clicking42.6
no Deep Web Explorer38.3
reports (Glaive)avgcoherence
Base8.07.8
no Deep Web Explorer7.77.6
no check and edit7.76.9
no autonomous drafting6.67.0

Without the Explorer, the system falls to roughly Search-o1’s level (Search-o1 averages 38.0 on the same four benchmarks). Online sampling beats offline DPO. For reports, drafting during research matters most. Training barely changes report scores.

Other backbones (Fig. 5). With DeepSeek-R1-distilled 7B, 14B and 32B models, WebThinker beats both direct generation and standard RAG at every size. For example, WebThinker-R1-7B gains 174% (GAIA) and 423% (WebWalkerQA) relative to direct generation. These ratios are large mostly because the baselines are very low.

  • Small, LLM-judged tests. There are 103 GAIA questions, 500 HLE questions and 30 report questions. No seeds or confidence intervals are given, and a single question moves GAIA accuracy by about 1 point.
  • Mismatched comparisons. Proprietary baselines come from official releases on other question sets and harnesses. On HLE, OpenAI Deep Research’s 26.6 and o3-mini’s 14.0 were not measured on WebThinker’s 500-question sample.
  • Inconsistent numbers in the paper. The introduction claims +36.2% over Search-o1 on HLE, while Table 2 implies +46%. The ablation text says 44.9 for the RL average, while Table 3 shows 45.4. The conclusions do not change, but read the tables rather than the prose.
  • Report evaluation. Glaive questions are synthetic, drawn from the same source as the training data, and judged listwise by two LLMs. The t-SNE plot shows that reports are spread out, not that they are correct. No citations are produced or scored. Later, DR Tulu’s independent evaluation gave WebThinker report mode a 50.2 average on four long-form benchmarks, against 65.6 for the 8B DR Tulu (DR Tulu, Table 1). WebSailor reports 2.8 on BrowseComp for WebThinker-RL (WebSailor, Table 1).
  • Training details are thin. The paper gives no γ or β. It does not say whether inserted search results are masked from the DPO log-probabilities, or how report pairs are ranked. Preferring fewer calls and shorter outputs could, in principle, shift the policy towards early stopping on questions where more search would help.
  • Cost. One question can trigger many Explorer runs, each with its own long context and assistant-model summaries. The paper does not report tokens or tool calls per question, so efficiency claims cannot be checked.
  • Scope. The authors list text-only input, a small fixed tool set and no GUI-based browsing as limitations.

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

    WebThinker samples several trajectories per training question and turns them into DPO pairs with three ordered rules. For one question you get five trajectories: A correct, 3 tool calls, 9K output tokens; B correct, 3 calls, 5K tokens; C correct, 5 calls, 4K tokens; D wrong, 1 call, 2K tokens; E wrong, 0 calls, 1K tokens. With γ = 1.5, list every unordered pair, say which rule decides it and who wins, and count the pairs. How does the count change with γ = 2? What does the resulting set teach the policy about the trade-off between search effort and brevity?

    What a strong answer covers
    • There are 10 unordered pairs. Rule 1 (correctness first): A, B and C each beat D and each beat E, giving 6 pairs. D vs E are both wrong, and no rule applies, so there is no pair.
    • Rule 2 (both correct: fewer tool calls wins): A beats C (3 < 5 calls) and B beats C. C loses both even though it is the shortest, because tool efficiency outranks length.
    • Rule 3 (both correct and the same number of calls: shorter wins only if the length ratio exceeds γ): A vs B has ratio 9/5 = 1.8 > 1.5, so B beats A. Total: 6 + 2 + 1 = 9 pairs.
    • With γ = 2, the ratio 1.8 is below the threshold, so A vs B gives no pair and the set has 8 pairs.
    • Lessons: correctness dominates, so D (cheap but wrong) always loses. Among correct trajectories the policy is pushed towards fewer calls first, then shorter reasoning. Under-searching is only rewarded if the answer stays correct. Training questions were filtered to ones QwQ-32B gets wrong without search, so correct zero-search trajectories should be rare and the pairs rarely reward skipping search entirely.
  2. Derive / compute

    Take one WebThinker preference pair with β = 0.1. Summed over its tokens, the chosen trajectory has log πθ − log π_ref = −5 and the rejected trajectory has −30. Compute the DPO margin, the loss, and the weight σ(−margin) that scales this pair's gradient. Repeat with a rejected log-ratio of −8. Then explain two trajectory-specific issues the paper leaves open: which tokens should count in these sums, and what changes when π_ref is reset to the new policy after each round.

    What a strong answer covers
    • Margin = β·(−5 − (−30)) = 0.1 · 25 = 2.5. Loss = −log σ(2.5) ≈ 0.079. Gradient weight σ(−2.5) ≈ 0.076, so this pair is already well separated and contributes little.
    • With −8: margin = 0.1 · 3 = 0.3, loss = −log σ(0.3) ≈ 0.554, weight σ(−0.3) ≈ 0.43. Pairs the policy has not yet separated dominate the update.
    • Tokens: a trajectory contains the model's own reasoning and tool tags plus inserted search results and Explorer outputs. Those inserted tokens are not actions; including them would train the model to predict web text and add noise of very different size across pairs. They should be masked from the log-probabilities. The paper does not say how it handles this.
    • Length: log-ratios are sums over tokens, so long trajectories can produce large margins mechanically. Rule 3 explicitly prefers shorter outputs, which interacts with this known DPO length bias.
    • Reference reset: setting π_ref ← πθ each round means the KL-style anchor moves with the policy. Each round is a fresh, small step from the current model on its own samples (on-policy data), rather than a long drift from the original QwQ-32B. Two rounds are used.
  3. Mechanism

    Explain how the Deep Web Explorer works and why the paper says it helps. Compare it with Search-o1's Reason-in-Documents step: what can the Explorer do that Reason-in-Documents cannot, what does the main reasoning chain actually see in each case, and which Table 3 row isolates the difference?

    What a strong answer covers
    • When the main LRM closes a search tag, generation pauses. An assistant model writes a search intent from the query and the preceding reasoning, and the top-10 Bing results are fetched. The Explorer, which is the same LRM under its own instruction, receives the query, the intent and the pages.
    • Inside the Explorer the model can issue new searches (top-10 titles, URLs and snippets) or click links. A clicked page is fetched with Crawl4AI and summarised by an assistant model for a generated click intent. It stops with a Final Information block, and only that concise output is inserted into the main chain.
    • Search-o1's Reason-in-Documents also condenses retrieved documents before insertion, but it only analyses the documents from one retrieval. It cannot follow links or issue follow-up queries. The Explorer is a recursive sub-agent: depth comes from navigation and re-querying.
    • The main chain sees a short, query-focused result in both cases, so its context stays clean. The Explorer's own long context of pages is discarded after it returns. This is hierarchical delegation and context isolation.
    • Table 3: removing the Explorer drops the problem-solving average from 45.4 to 38.3, close to Search-o1's 38.0 on the same four benchmarks. Removing only link clicking gives 42.6, so re-querying helps and navigation adds more.
  4. What if…

    Read Table 3 as an experimental design. For problem solving it compares WebThinker-32B-RL (45.4 average) with offline DPO (43.2), no training (42.1), no link clicking (42.6) and no Explorer (38.3). For reports it compares the base system (8.0) with no Explorer (7.7), no check-and-edit (7.7) and no autonomous drafting (6.6). What does each row isolate, what explains RL's near-zero effect on reports, and which comparisons are confounded or under-specified?

    What a strong answer covers
    • Online vs offline DPO (45.4 vs 43.2) isolates whether pairs are re-sampled from the updated policy. Base vs RL (42.1 vs 45.4) is the total training effect. The text quotes 44.9 for the RL average, which does not match the table's 45.4; the gap is a reading-care point, not a different conclusion.
    • No Explorer (38.3) removes the sub-agent; no link clicking (42.6) keeps re-querying but removes navigation. The paper does not say whether these ablated variants are re-trained or are the RL model run with a tool disabled, which matters because the policy was trained to use those tools.
    • Reports: removing autonomous drafting (writing everything at the end) costs most (6.6), and removing check-and-edit hurts coherence most (6.9 vs 7.8 in the table; the text says 7.9). Drafting while searching is the main gain.
    • RL barely moves reports (8.0 to 8.1). Possible reasons: the base system is already near the judge's ceiling on a 10-point listwise scale; report-quality pairs need a quality judgement the paper does not specify; and the test set has only 30 questions, so small differences are within noise.
    • No variance, seeds or confidence intervals are reported. With 103 GAIA questions, one question is about 1 point of accuracy.
  5. Critique

    The abstract says WebThinker significantly outperforms existing methods and strong proprietary systems. Using Tables 1 and 2, Fig. 4 and the appendices, give the strongest reasons to qualify that claim, and say what independent evaluations later found.

    What a strong answer covers
    • Proprietary numbers are copied from official releases (marked †), on different subsets: WebThinker's HLE uses 500 random text-only questions, while o3-mini and OpenAI Deep Research (26.6) report other sets. On GAIA, OpenAI Deep Research still leads (67.4 vs 48.5).
    • Answers are judged by Qwen2.5-72B-Instruct. The GAIA set is 103 text-only validation questions; Level-3 cells move in steps of about 8.3 points, consistent with about 12 questions.
    • Reports: 30 Glaive test questions, synthetic questions from the same source used for training, scored listwise 1–10 by DeepSeek-R1 and GPT-4o, with no human evaluation. 8.0 vs Gemini Deep Research's 7.9 is not a meaningful gap at this size, and the t-SNE spread shows diversity, not quality or factuality. Reports carry no citations, so attribution is not measured.
    • Internal inconsistency: the introduction says +36.2% over Search-o1 on HLE, but Table 2 gives 10.8 → 15.8, which is +46%.
    • Later independent evaluations are less flattering: DR Tulu's Table 1 gives WebThinker report mode a 50.2 average on four long-form benchmarks (DR Tulu-8B: 65.6), and WebSailor's Table 1 reports 2.8 on BrowseComp for WebThinker-RL.
  6. Design

    WebThinker's reports are written by an assistant model from the top-k documents in a document memory, but they carry no citations and the paper never measures attribution. Design a version of the memory-and-drafting loop that produces attributed reports, and an evaluation that would show whether the change helps.

    What a strong answer covers
    • Memory: store every page the Explorer read as chunks with stable IDs, URL and fetch time, deduplicated. Keep the raw text, not only the Explorer's summary, so citations can point at original evidence.
    • Retrieval for drafting: use the write or edit instruction plus the section title as the query, retrieve with a hybrid of BM25 and dense retrieval, and rerank. Log retrieval recall against the evidence the Explorer marked as useful.
    • Writing: the assistant must cite chunk IDs for each claim; a checker drops or flags uncited or unsupported sentences. The check tool could return a list of unsupported claims as well as the outline.
    • Training signal: add citation precision and recall to the report preference rule, or move to outcome RL with citation rewards as DR Tulu does, rather than only listwise quality judgements.
    • Evaluation: citation precision and recall with an NLI or LLM judge plus human spot checks; long-form benchmarks such as DeepResearch Bench or ScholarQA-CSv2; a fixed or cached corpus for reproducibility; and ablations of memory size k and chunking.

Done with this page?

Status