Skip to content

Tongyi DeepResearch Technical Report

Skip →Search-R1 follow-ups
Agents stage 2 #7corefrontierpaperrubric 10/122025 · arXiv technical report (Alibaba Tongyi Lab) · ~35 min

Tongyi DeepResearch Team (Baixuan Li, Bo Zhang, Dingchu Zhang, …, Yong Jiang)

Read first: ReAct: Synergizing Reasoning and Acting in Language Models · DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Models

Status

TL;DR. Tongyi DeepResearch is an open web agent from Alibaba’s Tongyi Lab. It is built on Qwen3-30B-A3B-Base, a mixture-of-experts model with 30.5B total parameters and 3.3B active per token. The recipe has four stages:

  1. Agentic continual pre-training on synthetic agent data.
  2. SFT on synthetic, rejection-sampled trajectories.
  3. On-policy RL with a plain 0/1 answer-correctness reward.
  4. Model merging.

The report’s main lesson is about systems more than algorithms: data and environment stability matter most. The model reports 32.9 on HLE, 43.4 on BrowseComp and 70.9 on GAIA (Avg@3). Model weights, inference code and tool implementations are released.

Why it matters now. This is the most complete public recipe for training a search-and-browse agent at scale. It sits between the small RL-trained searchers (Search-R1, DeepResearcher) and closed products such as OpenAI deep research. For an IR researcher, three design choices stand out:

  • the retrieval environment is treated as a training artefact, built in three versions from simulated to real;
  • the Visit tool is a query-focused summariser: it reads the page and passes on only what is relevant to a stated goal;
  • the agent keeps a running report in place of its history, which is a form of memory management.

Note the paper’s own wording: “super-human” refers to synthetic questions that are hard for human annotators to write. It is not a claim about general research ability.

The learning signal in miniature (illustrative). Take one synthetic question and G=4G = 4 rollouts with rewards (1,0,0,1)(1, 0, 0, 1): two found the answer, two did not. The group mean is 0.5, so the group-mean advantages are (+0.5,−0.5,−0.5,+0.5)(+0.5, -0.5, -0.5, +0.5); every token of a successful trajectory is pushed up and every token of a failed one pushed down. The leave-one-out baseline for rollout 1 is the mean of the other three, 1/31/3, giving +2/3=43⋅0.5+2/3 = \tfrac{4}{3}\cdot 0.5. If all four rollouts succeed (or all fail), every advantage is 0 and the question teaches nothing, which is why the recipe curates moderately hard questions. Everything else on this page (synthetic data, CPT, environments) exists to make this 0/1 signal informative and stable. Stage-by-stage details follow; the training subsections are reproduction details and can be skimmed on a first read.

At each step tt the model produces a thought τt\tau_t and an action ata_t, and receives an observation oto_t. The action is one of five tools or the final answer. All five tools are described in App. D:

toolwhat it returns
SearchGoogle, several queries per call, top-10 results each (title, snippet, URL)
Visitpage parsed by Jina, then a summary model extracts only what serves a stated goal
Pythonsandboxed execution, output via print
Google Scholaracademic search, several queries per call
File Parserconverts PDFs, office files, audio or video to text, then a summary model answers the question

The policy runs in one of two modes:

  • ReAct mode (vanilla ReAct). The model conditions on the whole history: τt,at∼π(⋅∣Ht−1)\tau_t, a_t \sim \pi(\cdot \mid \mathcal{H}_{t-1}), where Ht−1=(τ0,a0,o0,… )\mathcal{H}_{t-1} = (\tau_0, a_0, o_0, \dots). The report chooses ReAct deliberately and cites the Bitter Lesson: general methods that use scalable computation should beat hand-engineered multi-agent scaffolds.
  • Context-management mode (Eq. 3, from the team’s WebResearcher and IterResearch papers). The model conditions only on a rebuilt workspace: the question, an evolving report St−1S_{t-1} that acts as compressed memory, and the latest action and observation. It then writes the next report and action:
St, τt+1, at+1  ∼  π(⋅∣q, St−1, at, ot).S_t,\ \tau_{t+1},\ a_{t+1} \;\sim\; \pi(\cdot \mid q,\ S_{t-1},\ a_t,\ o_t).

The report calls this “Markovian state reconstruction”. The second mode bounds context growth using a compressed state summary. It approximates a sufficient state only insofar as the summary preserves the information needed for future decisions; bounded length alone does not guarantee the Markov property. Each step trades decode tokens (rewriting SS) for unbounded depth.

Where a lossy summary breaks it (illustrative). The question asks for a person who studied in Lyon and later chaired a board in Oslo. Step 3 finds a page saying candidate X studied in Lyon; the report S3S_3 records only “X: plausible, Oslo link unknown”. Step 7 finds that X chaired the Oslo board, but a different page names candidate Y with the same Oslo role and a Lyon degree. To choose, the agent needs the exact Lyon evidence for X (dates, institution), which S3S_3 dropped. The next decision now depends on history that is not in the state, so the process is not Markov in SS, even though SS stayed short. ReAct mode keeps the raw history and avoids this, at the cost of unbounded context.

Heavy Mode builds test-time scaling on top of this. Several agents run in parallel in context-management mode, and a synthesis model reads their final reports STuS_T^u instead of their full trajectories. This keeps the synthesiser’s input small enough to compare many agents.

Tongyi DeepResearch training pipeline and context management Five rows show the pipeline. The base model is Qwen3-30B-A3B-Base, a mixture-of-experts model with 30.5 billion total and 3.3 billion active parameters. Stage 1, agentic continual pre-training, uses next-token loss on synthetic agent data (questions, plans, reasoning chains, decision steps and function-calling data), first at 32K then at 128K context, in prior-world and simulated environments. Stage 2, supervised fine-tuning, trains on rejection-sampled trajectories from open models on synthetic hard questions, in ReAct and context-management formats. Stage 3, agentic reinforcement learning, is an on-policy GRPO variant with a 0/1 answer-match reward, a leave-one-out baseline, token-level loss and clip-higher; ablations run in an offline 2024 Wikipedia simulator and the final training uses real tools behind a caching, retrying sandbox; the training set is refreshed to stay moderately hard. Stage 4 merges model variants by weighted parameter averaging. Bottom: in ReAct mode the model conditions on the whole history; in context-management mode it conditions on the question, an evolving report and only the last action and observation. Heavy mode runs several agents in parallel and synthesizes their reports. Tongyi DeepResearch: one 30B-A3B model, four training stages stagedata and objectiveenvironment Base model Qwen3-30B-A3B-Base Mixture-of-experts: 30.5B total parameters, 3.3B active per token — 1 · Agentic CPT mid-training, next-token loss; 32K → 128K context Synthetic questions, plans, reasoning chains, decision steps, function-calling data; stage 2 adds 64K–128K agent trajectories prior-world (no real tool responses) and simulated environments 2 · SFT cold start two formats: ReAct and context management Synthetic hard QA (graph random walks, uncertainty-raising edits) → rollouts by open models → rejection sampling teacher trajectories with recorded tool responses 3 · Agentic RL on-policy GRPO variant 0/1 answer-match reward Leave-one-out baseline, token-level loss, clip-higher, some failed rollouts dropped; training set refreshed to stay moderately hard offline 2024-Wikipedia sim for ablations → real tools behind a sandbox 4 · Model merging weighted average of variants from one base Combines checkpoints with different strengths; no extra training — What the model conditions on at step t ReAct mode q, τ₀ a₀ o₀, …, τₜ₋₁ aₜ₋₁ oₜ₋₁ → τₜ, aₜ the full history: grows every step, capped by the 128K window Context-management mode q, Sₜ₋₁, aₜ, oₜ → Sₜ, τₜ₊₁, aₜ₊₁ S = evolving report (compressed memory); context stays roughly constant in size Heavy mode: n parallel agents in context-management mode; a synthesis model reads their n final reports.
Original sketch of the training pipeline (top) and the two context modes (bottom), summarised from §3 of the report.

Key idea: train the agent at every stage, with synthetic data and designed environments

Section titled “Key idea: train the agent at every stage, with synthetic data and designed environments”

1. Agentic mid-training (§3.3). The report’s claim is that general base models lack an agentic inductive bias. Teaching tool use and alignment at the same time during post-training then leads to conflicts. So the model first gets Agentic CPT: ordinary next-token training on synthetic data that covers the whole agent workflow.

  • Questions come from an entity-anchored memory built from crawled web data and earlier agent trajectories.
  • Planning data: decompositions and first actions, rejection-sampled against the entities used to build each question.
  • Reasoning chains over the question’s supporting knowledge, filtered by length and answer consistency.
  • Decision data: existing trajectories rewritten so that each step lists alternative actions and the one chosen.
  • Function-calling data from automatically built simulated environments, each one a read–write database.

Stage 1 trains at 32K context. Stage 2 trains at 128K and adds agent trajectories of 64K–128K tokens. A small amount of general pre-training text is mixed in throughout.

2. Synthetic post-training data (§3.4.1). Hard QA pairs are generated without human annotation:

  • Random walks build a knowledge graph from web search results and tables taken from real websites.
  • Subgraphs are sampled into questions.
  • Uncertainty is then raised with controlled “atomic operations”, such as merging entities with similar attributes. A set-theoretic formalisation keeps the reasoning structure consistent and makes answers checkable. This is the WebSailor and WebShaper line of work.
  • A separate engine escalates multi-disciplinary seed questions into PhD-level ones.

App. C shows examples. Each is a BrowseComp-style chain of obscure constraints ending in a short answer.

3. SFT cold start (§3.4.2). High-performing open models generate trajectories on the synthetic QA, and rejection sampling filters them. Each trajectory is stored in both formats: ReAct and context management. Training runs first at 40K context (short ReAct samples plus all context-management samples), then at 128K. More than 20% of SFT samples exceed 32K tokens and use more than 10 tool calls.

4. Agentic RL (§3.4.3). The RL stage keeps the algorithm deliberately plain:

J(θ)=E[1∑i∣Hi∣∑i∑jmin⁡(ri,jA^i,j, clip(ri,j,1−εlow,1+εhigh)A^i,j)],A^i,j=Ri−mean(R).\mathcal{J}(\theta)=\mathbb{E}\Big[\tfrac{1}{\sum_i |\mathcal{H}^i|}\sum_{i}\sum_{j}\min\big(r_{i,j}\hat A_{i,j},\ \mathrm{clip}(r_{i,j},1-\varepsilon_{\text{low}},1+\varepsilon_{\text{high}})\hat A_{i,j}\big)\Big],\qquad \hat A_{i,j}=R_i-\mathrm{mean}(R).

The report’s displayed advantage subtracts the group mean, while its text says the implementation uses a leave-one-out baseline (the mean of the other G−1G-1 rollouts). The two differ only by a constant factor: AiLOO=GG−1 Aigroup-meanA^{\text{LOO}}_i = \tfrac{G}{G-1}\,A^{\text{group-mean}}_i. Unlike the group mean, the leave-one-out baseline does not include the rollout’s own reward.

  • Reward: 1 if the final answer matches the ground truth, 0 otherwise. There is no format reward, because SFT already teaches the format.
  • Optimiser details: token-level loss and clip-higher, as in DAPO. The advantage is not divided by the std (compare Dr. GRPO) and uses a leave-one-out baseline (as in RLOO).
  • Strictly on-policy: the importance ratio ri,j=πθ/πθoldr_{i,j}=\pi_\theta/\pi_{\theta_{\text{old}}} equals 1 numerically at the sampling parameters, because rollouts come from the current policy, so the clip is inactive. Its derivative is not zero: ∇θri,j=∇θlog⁡πθ\nabla_\theta r_{i,j} = \nabla_\theta \log \pi_\theta at that point, which is exactly the policy-gradient term. Do not replace the ratio with the constant 1 before differentiating.
  • Dropped failures: some failed rollouts are excluded from the loss, for example ones that hit the length limit without answering. Training on all failures led to collapse.
  • Rollout infrastructure: step-level asynchronous rollouts on rLLM, with separate servers for inference and for tools.
  • Automatic data curation: problems the SFT model always solves or always fails are removed, since they give zero advantage. During training, a background process keeps a pool of problems that have become moderately hard for the current policy and swaps them in when the reward plateaus.

5. Environments (§2, §3.4.3). The report describes a ladder of three environments:

  • prior-world: tools and task definitions, but no real responses. The model produces trajectories from its own knowledge. Used for CPT data.
  • simulated: an offline 2024 Wikipedia with local RAG tools, plus QA generated for it. The report calls it a wind tunnel for fast ablations; its reward curve tracks the real one (Fig. 10b vs Fig. 8).
  • real: live tools behind a sandbox with rate limits, caching, timeouts and retries, and failover to a backup search API. This makes tool calls close to deterministic, so a bad rollout reflects the policy rather than a flaky API.

6. Model merging (§3.4.4). The final model is a weighted average of variants trained from the same base with different strengths.

The report sums up its lesson as follows: agentic RL success “depends more on the quality of the data and the stability of the training environment than on the specific algorithm”.

Main benchmarks (Table 1). Scores are the average of three runs (Avg@3). Settings: temperature 0.85, up to 128 tool calls, 128K context, run on 16 September 2025.

HLEBrowseCompBrowseComp-ZHGAIAxbench-DSWebWalkerQAFRAMES
Tongyi DeepResearch32.943.446.770.975.072.290.6
OpenAI o3 (ReAct)24.949.758.1–67.071.784.0
DeepSeek-V3.129.830.049.263.171.061.283.7
OpenAI Deep Research26.651.542.967.4–––
Kimi Researcher26.9–––69.0–78.8
  • On the newer xbench-DeepSearch-2510 (evaluated 28 October 2025), Tongyi scores 55.0. The report says this ranks just below ChatGPT-5-Pro.
  • Tongyi leads on five of seven benchmarks. It is not best on BrowseComp or BrowseComp-ZH. The ”–” cells are numbers the report did not have.
  • The benchmarks use different judges: GPT-4o for BrowseComp, Qwen2.5-72B for GAIA and WebWalkerQA, Gemini-2.0-Flash for xbench, and o3-mini for the 2,154 text-only HLE questions.

Heavy Mode (Fig. 6). Parallel agents plus synthesis reach HLE 38.3, BrowseComp 58.3 and BrowseComp-ZH 58.1. Pass@3 (best of three runs, an oracle choice) reaches HLE 45.9 and BrowseComp 59.6. Neither is compute-matched to the single-agent baselines.

Training analyses (§4.4).

  • RL reward rises steadily while entropy stays stable (Fig. 8).
  • BrowseComp accuracy improves as the number of interactions and the context length grow. This is “interaction scaling”, a different axis from longer chains of thought.
  • In the context-length ablation (Fig. 9), a 32K-context model trained on a curriculum curated by a 64K model learns to shorten its trajectories.
  • With tools, the model also beats its base model on AIME25, HMMT25 and SimpleQA (Fig. 11). The math answers were graded by hand, because the model’s outputs are long reports.

Long-form research. On long-form, rubric-scored research reports Tongyi is weaker. In DR Tulu’s Table 1 it averages 50.0, against 65.6 for DR Tulu-8B. This is expected for a model trained only with a short-answer reward.

  • Short answers only. The RL reward is exact-answer correctness. The report itself lists improving report-generation fidelity and preference alignment as future work.
  • No ablations for the main claims. There is no run without CPT, without merging, or with a different RL algorithm. The claim that “data and environment matter more than the algorithm” is the team’s experience, not a controlled result.
  • Hard to reproduce. The evaluation runs on the live web and uses internal APIs; the public code substitutes open alternatives, which the authors say reproduce the results. Synthetic training questions built from web entities may overlap in style with BrowseComp-type benchmarks.
  • Context length. 128K is still a limit for the longest tasks, and context management can drop evidence when it summarises. Partial rollouts would make RL more efficient but bring off-policy problems; the report lists both.

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

    Tongyi's RL uses a 0/1 answer reward, no std normalisation, and a leave-one-out baseline. For a group of G = 8 rollouts where 2 are correct, compute the advantage of a correct and a wrong rollout under (a) the plain group-mean baseline, (b) leave-one-out, and (c) standard GRPO with division by the group std. Show the general relation between (a) and (b). What happens when all 8 rollouts fail, and which part of the pipeline is designed so that this case is rare?

    What a strong answer covers
    • (a) mean = 2/8 = 0.25, so a correct rollout gets 1 − 0.25 = +0.75 and a wrong one gets −0.25.
    • (b) leave-one-out uses the mean of the other 7: correct gets 1 − 1/7 ≈ +0.857, wrong gets 0 − 2/7 ≈ −0.286. In general R_i − mean of the others = G/(G − 1) · (R_i − group mean), so it is (a) scaled by 8/7. The direction is the same; the baseline no longer includes the rollout's own reward, so it is unbiased.
    • (c) std = sqrt(0.25 · 0.75) ≈ 0.433, so correct gets about +1.73 and wrong about −0.58. Dividing by the std up-weights prompts where successes are rare (or failures are rare), which is the difficulty bias Dr. GRPO criticises. Tongyi's Eq. 5 does not divide by the std.
    • All 8 fail: every advantage is 0, so the prompt contributes no gradient and only costs rollout time.
    • Automatic data curation removes problems the SFT model always solves or always fails, and keeps refreshing the active set from a backup pool of problems that have become moderately hard for the current policy.
  2. Derive / compute

    Assume a question of 300 tokens and, per step, a 400-token thought, a 50-token tool call and a 1,500-token observation (Visit already returns a goal-focused summary). In ReAct mode, after how many steps does the context exceed 128K tokens? In context-management mode, assume the evolving report S is capped at 3,000 tokens. What is the per-step context size, and how many output tokens do 128 steps generate in each mode? What does this trade-off say about when context management is worth it?

    What a strong answer covers
    • ReAct: each step adds 400 + 50 + 1,500 = 1,950 tokens. (128,000 − 300)/1,950 ≈ 65.5, so the window overflows during step 66, well before the 128-call budget used at evaluation.
    • Context management: input = q + S + last action and observation = 300 + 3,000 + 1,550 = 4,850 tokens; output = new S + thought + call = 3,000 + 400 + 50 = 3,450 tokens. About 8.3K tokens per step, independent of t.
    • Output tokens over 128 steps: ReAct 128 × 450 = 57,600 (if it could fit); context management 128 × 3,450 = 441,600, because the report is rewritten every step.
    • Context management buys unbounded depth and a stable context at the price of many more decode tokens and possible information loss in the summary. It pays off when tasks need many more steps than the window allows (deep BrowseComp-style search), not on short tasks.
  3. Mechanism

    The report argues for agentic mid-training (Agentic CPT) between pre-training and post-training. Explain the claimed mechanism: what is wrong with going straight from a general base model to agentic SFT and RL, what kinds of data the CPT stage contains, and why the report uses prior-world and simulated environments to produce that data rather than the real web.

    What a strong answer covers
    • Claim: a general base model has no agentic inductive bias. If SFT and RL must teach tool use, planning and alignment all at once, the report says optimisation conflicts and sub-optimal results follow.
    • Agentic CPT keeps the next-token loss but trains on synthetic agent data covering the whole workflow: entity-anchored questions, planning (decomposition and first action), reasoning chains, and explicit decision steps where alternative actions are spelled out, plus function-calling data from automatically built simulated environments. A little general text is mixed in.
    • It runs in two stages, first at 32K context and then at 128K with 64K–128K-token agent trajectories, so long-horizon behaviour is learnt before RL.
    • Prior-world and simulated environments cost nothing per call and are stable and unlimited, which matters for the scale of pre-training-style data. Real APIs are slow, costly and non-stationary, so they are reserved for the final RL stage.
    • Caveat: this report gives no ablation that removes CPT; the evidence is in the separate paper it cites, Scaling Agents via Continual Pre-training (Su et al., 2025), not here.
  4. What if…

    Fig. 9 trains RL with 32K, 48K and 64K context limits, but the training problems are always curated by a 64K-context model. The 64K run reaches the highest reward and its responses get longer; the 32K run's responses get shorter. Explain both effects and say what a fair version of this ablation would change.

    What a strong answer covers
    • The curriculum contains problems that are moderately hard for the 64K model, so some need more than 32K or 48K tokens of interaction. Those return zero reward for the smaller budgets, which caps their attainable reward.
    • With 64K, longer search pays off, so RL lengthens responses. With 32K, the only rewarded rollouts are ones that solve the task concisely, so RL pushes the policy towards shorter, more efficient action sequences.
    • So the comparison mixes two factors: the context budget and the mismatch between the budget and the curriculum.
    • A fair version would curate each run's data with its own context limit (or a fixed, budget-independent pool) and compare at matched training compute and with downstream accuracy, not only training reward.
  5. Critique

    The report claims Tongyi DeepResearch gets the highest scores on nearly all of its benchmarks and surpasses proprietary systems. Using Table 1 and the evaluation setup, list the reasons to treat these comparisons with care, and say what a cleaner comparison would look like.

    What a strong answer covers
    • OpenAI Deep Research is still ahead on BrowseComp (51.5 vs 43.4), and o3 is ahead on BrowseComp-ZH (58.1 vs 46.7). Many proprietary cells are missing ("–") and come from other reports.
    • Each benchmark uses a different LLM judge (GPT-4o for BrowseComp, Qwen2.5-72B for GAIA and WebWalkerQA, Gemini-2.0-Flash for xbench, o3-mini for HLE), and the scores are Avg@3 on the live web on one date (16 September 2025).
    • Tools differ across systems: Tongyi uses Google search, a Jina-plus-summariser Visit tool, Python, Scholar and a file parser, with up to 128 calls. The open-source release substitutes some internal APIs. Baseline numbers come from different harnesses and budgets.
    • Heavy Mode numbers (HLE 38.3, BrowseComp 58.3) use n parallel agents plus a synthesiser, so they are not compute-matched to single-agent baselines. Pass@3 numbers are oracle selections.
    • The synthetic QA pipeline creates BrowseComp-style questions from web entities, so there is a risk of style or content overlap with the benchmarks. A cleaner comparison: fixed corpus (e.g. BrowseComp-Plus), same retriever and tool budget for all systems, one judge with human spot checks, and reported variance.
  6. Design

    Tongyi validates algorithms in an offline 2024-Wikipedia simulator before training on real tools. You have a fixed budget and want to train a 7B search agent. Design an environment ladder for your project: what each rung is for, how you would decide that a result in simulation will transfer, and when you would switch to the live web.

    What a strong answer covers
    • Rung 1, cheap and deterministic: a local corpus (Wikipedia dump or the BrowseComp-Plus documents) with BM25 and a dense retriever as the search tool, and a page-reader tool. Use it for algorithm, reward and hyperparameter ablations.
    • Rung 2, closer to deployment: cached real search results (record queries and responses, replay them) to keep stability while matching real snippet formats and noise.
    • Rung 3: live tools behind a sandbox with rate limits, caching, retries and failover, as Tongyi does, used only for final training.
    • Transfer check: the report compares reward curves between simulation and the real environment (Fig. 10b vs Fig. 8). Go further: rank-correlate several variants' simulated scores with their real-web scores, and track tool-error rates and the share of rollouts that fail for environment reasons.
    • Switch when the sim ranking of variants stops predicting the real ranking, or when the policy saturates the simulator (questions solvable without the real web).

Done with this page?

Status