Skip to content

WebSailor: Navigating Super-human Reasoning for Web Agent

optionalcorefrontierpaperrubric 9/122025 · ~45 min

Kuan Li, Zhongwang Zhang, Huifeng Yin, … Jingren Zhou

Read first: DAPO: An Open-Source LLM Reinforcement Learning System at Scale

Status

TL;DR. WebSailor is Tongyi Lab’s post-training recipe for open web agents aimed at BrowseComp-style questions. It has three parts: SailorFog-QA, questions sampled from random-walk entity graphs and then deliberately blurred; a small RFT cold start (just over 2k trajectories) whose reasoning is rewritten into short form; and DUPO, a DAPO variant that refills a batch by duplicating useful groups instead of sampling new questions. WebSailor-72B reaches 12.0 on BrowseComp-en and 30.1 on BrowseComp-zh.

Why it matters now. Search-R1-style agents trained on NQ/HotpotQA learn to issue one or two clean queries. BrowseComp-type questions have no obvious first query, and the paper argues that such agents never see this kind of question during training. WebSailor’s answer is mainly a data answer: make the training questions harder, then make RL cheap enough to run on them. The title’s “super-human” refers to this task family: proprietary agents beat human searchers on BrowseComp, and the authors report that human researchers could not solve SailorFog-QA items within about two hours. It does not mean WebSailor beats humans or proprietary agents. WebSailor is one component of Tongyi’s larger DeepResearch agent line; it is not an alias for that system.

WebSailor: SailorFog-QA, rewritten cold-start trajectories, and DUPO Top row, question synthesis: pick a rare seed entity with a Wikidata SPARQL query; expand a graph by random walk using search and visit tools; sample a subgraph and pick an answer node; obfuscate clues (a date becomes an era, a name becomes an initial, a number becomes a band); the result is SailorFog-QA, whose answers satisfy all clues but may not be unique. Middle row, cold start: an expert reasoning model such as QwQ-32B solves questions with ReAct; its actions and observations are kept and a second model writes short thoughts for each step; trajectories are kept only if correct, at most 32k tokens and with more than five tool calls; just over 2k trajectories are used for rejection-sampling fine-tuning with observations masked. Bottom, RL batch refill: DAPO drops groups whose eight rollouts are all right or all wrong and rolls out new questions until the batch is full, which needs extra sequential rollouts. DUPO drops the same groups but fills the slots by copying groups with non-zero reward variance from the same batch, with no new rollouts, reported as about two to three times faster. Before training, questions with all eight rollouts correct are removed. Reward is 0.1 format plus 0.9 answer judged by an LLM. Question synthesis (SailorFog-QA) 1. Seed rare entity via Wikidata SPARQL 2. Expand random walk, search + visit; cycles allowed 3. Subgraph sample one, pick an answer node 4. Obfuscate date → era name → initial number → band SailorFog-QA answer fits all clues; may not be unique Cold start (rejection-sampling fine-tuning) Expert LRM e.g. QwQ-32B, solves with ReAct Rewrite thoughts keep actions and observations; π* writes short ones Filter answer correct ≤ 32k tokens > 5 tool calls RFT cold start just over 2k trajectories, obs. loss masked RL batch refill: groups of 8 rollouts (shaded = mixed right/wrong) DAPO drop std = 0 groups, then roll out new questions until the batch is full (extra, sequential multi-turn rollouts) DUPO copy copy fill the slots by copying std > 0 groups from the same batch: no new rollouts, reported ~2–3× faster than DAPO Before RL: drop questions with 8/8 correct · reward 0.1·format + 0.9·answer (LLM judge)
Original sketch: SailorFog-QA construction, trajectory rewriting, and DUPO's batch refill compared with DAPO resampling.

Three levels of task. The paper sorts information-seeking questions by how uncertain they are and how hard that uncertainty is to reduce. Level 1 needs one lookup. Level 2 is classic multi-hop: many steps, but each step is clear. Level 3 has high uncertainty with no obvious path. WebSailor generates Level 3 questions.

SailorFog-QA. (1) Pick a rare seed entity with a Wikidata SPARQL query. (2) Use search and visit tools to collect facts about it and add related entities as nodes. (3) Keep expanding, sometimes from the newest node and sometimes from an older one, so the graph gets cycles and overlapping paths, not just a chain. (4) Sample a subgraph and write a question whose answer is one node. (5) Obfuscate the clues: a date becomes “the early 2010s”, a name becomes “someone with the initial F”, a number becomes “less than 1%”. The answer always satisfies the clues, but the paper notes the answer is not always unique. Version 1 of the paper does not state how many SailorFog-QA items were generated.

Trajectories with rewritten reasoning. An expert reasoning model (e.g. QwQ-32B) solves the questions with ReAct. The authors keep its actions ata_t and observations oto_t but drop its long thoughts. A second model π∗\pi^* writes a short thought for each step, conditioned on the history and on the action actually taken: τ^t∼π∗(τ∣Ht−1,at,ot)\hat\tau_t \sim \pi^*(\tau \mid \mathcal H_{t-1}, a_t, o_t). Trajectories are kept only if the final answer is correct, the trajectory is at most 32k tokens, and it has more than 5 tool calls. Observation tokens are masked from the SFT loss.

DUPO. RL uses GRPO-style group advantages with DAPO’s token-level loss and asymmetric clip (εlow,εhigh\varepsilon_\text{low}, \varepsilon_\text{high}), restricted to groups that are neither all right nor all wrong:

J(θ)=E[1∑i∣oi∣∑i=1G∑t=1∣oi∣min⁡(ri,tA^i,t, clip⁡(ri,t,1−εlow,1+εhigh)A^i,t)]s.t. 0<#correct<G.\mathcal J(\theta) = \mathbb E\Big[\tfrac{1}{\sum_i |o_i|}\sum_{i=1}^{G}\sum_{t=1}^{|o_i|} \min\big(r_{i,t}\hat A_{i,t},\ \operatorname{clip}(r_{i,t}, 1-\varepsilon_\text{low}, 1+\varepsilon_\text{high})\hat A_{i,t}\big)\Big] \quad \text{s.t. } 0 < \#\text{correct} < G.

DAPO enforces the constraint by sampling new questions until the batch is full, which is slow when every rollout is a multi-turn web session. DUPO does two things instead. Before training, it drops questions on which all 8 rollouts are already correct. During training, it fills the slots of zero-variance groups by duplicating other groups from the same batch. The paper reports a 2–3× speed-up over DAPO’s dynamic sampling. The reward is R=0.1 Rformat+0.9 RanswerR = 0.1\,R_\text{format} + 0.9\,R_\text{answer}, with an LLM judge for the answer.

Tools. search calls Google and returns the top-10 title/snippet/URL per query. visit fetches pages (via Jina) and returns a summary written for the agent’s stated goal by Qwen-2.5-72B. Episodes allow at most 30 tool calls.

All numbers are paper-reported; proprietary rows are partly copied from vendor publications.

  • Table 1 (BrowseComp-en / BrowseComp-zh / Xbench-DeepSearch / GAIA text-only, 103 items). WebSailor-3B 3.3/9.7/27.7/33.0; 7B 6.7/14.2/34.3/37.9; 32B 10.5/25.5/53.3/53.2; 72B 12.0/30.1/55.0/55.4. For comparison: WebDancer-32B 2.5/14.1/38.7/40.7, WebThinker-RL 2.8/7.3/24.0/48.5, OpenAI DeepResearch 51.5/42.9/–/67.4.
  • How hard is SailorFog-QA (Table 2, pass@1). o4-mini scores 47.3 on SailorFog-QA, 90.2 on WebDancer’s QA and 26.3 on BrowseComp-en. DeepSeek-R1 scores 38.9, 84.4 and 9.5. So SailorFog-QA is much harder than earlier synthetic data but easier than BrowseComp-en. The authors attribute part of the low accuracy to non-unique answers.
  • Cold start (Fig. 6). Direct RL from the instruct model rises faster at first but converges lower and makes far fewer tool calls; the gap is largest on BrowseComp-en.
  • Simple tasks. On a 200-question SimpleQA sample, WebSailor beats the other agents, so training only on hard data does not hurt simple lookups.
  • RL runs for only 50 steps (verl, 8 rollouts, batch 128, lr 1e-6) after Megatron SFT.
  • Answer uniqueness. The authors say some SailorFog-QA answers are not unique. Under an LLM-judge reward, a correct alternative answer is scored wrong, which adds reward noise.
  • Dataset size not reported in v1, so comparisons by data volume are not possible from the paper.
  • The 32k-token cap. The authors report that many failures come from running out of context. They also report “over-thinking”: many tool calls on simple questions.
  • Heavy paid stack. Google search, Jina reading and a 72B summarizer inside the visit tool mean that part of the “agent” is the tool. A smaller policy may be leaning on the summarizer.
  • Attribution. There is no ablation that swaps SailorFog-QA for other synthetic data under the same training recipe; see WebShaper for that kind of controlled comparison. WebSailor-V2 (2509.13305) later built a denser knowledge graph (SailorFog-QA-V2) and added a simulated environment over offline Wikipedia for cheap RL experiments.
  • DAPO is the parent algorithm; DUPO changes only how zero-variance groups are replaced.
  • WebDancer and WebShaper are the earlier and parallel Tongyi data recipes.
  • Training-data synthesis compares SailorFog-QA with ORBIT, InfoSeek, WebExplorer and others.
  • BrowseComp and BrowseComp-Plus are the target benchmarks; BrowseComp-Plus fixes the corpus so retrievers can be compared.
  • DeepResearcher also trains on the live web but with easy QA data and no cold start.

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

    WebSailor's reward is R = 0.1·R_format + 0.9·R_answer. In a group of 8 rollouts, 3 are correct and well formatted, 4 are wrong but well formatted, and 1 is wrong with a broken format. Compute the rewards, the group-normalised advantages (population std), and how much the format term separates the two kinds of wrong rollouts.

    What a strong answer covers
    • Rewards: 1.0 (×3), 0.1 (×4), 0.0 (×1). Mean = 3.4/8 = 0.425.
    • Deviations 0.575, −0.325, −0.425; variance = (3·0.331 + 4·0.106 + 0.181)/8 ≈ 0.199; std ≈ 0.447.
    • Advantages ≈ +1.29 for correct, −0.73 for wrong-but-formatted, −0.95 for broken format.
    • The format term moves the broken rollout only 0.1/0.447 ≈ 0.22 standard units below the other wrong ones, so correctness dominates once the format is mostly learned. That is the intended effect of the 0.1 weight.
  2. Derive / compute

    A DUPO batch holds 128 questions with 8 rollouts each. After rollout, 10 groups are all-correct and 30 are all-wrong (std = 0). How does DUPO fill the batch, how many extra rollouts would DAPO-style resampling need on average to replace the 40 slots if the useful fraction stays the same, and what does DUPO give up in exchange?

    What a strong answer covers
    • DUPO removes the 40 zero-std groups and fills their slots by randomly duplicating some of the 88 groups with non-zero std from the same batch; no new rollouts are generated.
    • Useful fraction = 88/128 ≈ 0.69. DAPO needs about 40/0.69 ≈ 58 new questions, i.e. about 465 extra rollouts, and these must be generated after the first round finishes, which is slow for multi-turn tool use.
    • The paper reports DUPO is about 2–3× faster than DAPO's dynamic sampling.
    • Cost: duplicated groups get double weight in the gradient, so the batch has fewer distinct questions: duplication reduces the effective number of distinct examples and adds resampling variance. Uniform duplication preserves the retained groups' mean in expectation; any bias comes from the filtering or weighting rule, which should be discussed separately. The pre-training filter (drop questions where all 8 rollouts are correct) reduces how often this happens.
  3. Mechanism

    WebSailor keeps the expert model's actions and observations but throws away its thoughts and asks another model to write a short justification for each action. Explain, in terms of what the student model is trained to predict, why this helps a 30-tool-call agent compared with fine-tuning on the expert's raw long reasoning.

    What a strong answer covers
    • SFT maximises the likelihood of every thought and action token. Raw expert thoughts are long and stylistically fixed, so most of the loss goes to imitating verbose prose rather than the action choices.
    • With up to 30 tool calls, long thoughts plus observations overflow the context; short reconstructed thoughts keep the whole trajectory within the 32k-token filter.
    • The reconstructed thought is conditioned on the action and observation that actually followed (Eq. 2), so it explains a step that is known to lie on a successful path.
    • Risk: the justification is written with hindsight, so it can mention facts the agent had not yet seen, teaching the model to "know" things before searching.
  4. What if…

    Figure 6 of WebSailor compares RL from an RFT cold start with RL directly on the instruct model. Describe the two curves for accuracy and tool calls, and explain why direct RL can rise faster at first yet converge lower on BrowseComp.

    What a strong answer covers
    • Direct RL shows the larger increase in Pass@1 early, but the cold-started model converges to clearly higher accuracy; the gap is widest on BrowseComp-en.
    • The cold-started model makes many tool calls from the start and keeps that level; the direct-RL model's tool calls rise slowly and stay much lower.
    • Explanation: on Level-3 questions almost every rollout fails at first, so GRPO groups are all-zero and give no gradient. Direct RL improves on the easier questions, while long search strategies are rarely sampled and so rarely reinforced.
    • The roughly 2k RFT trajectories (all with more than 5 tool calls) put long-horizon behaviour into the starting policy, so RL can refine it instead of discovering it.
  5. Critique

    The title says "super-human reasoning". Using what the paper actually measures, state precisely what that phrase refers to, and design an evaluation that would support or refute a stronger claim about WebSailor itself.

    What a strong answer covers
    • The phrase refers to the target task family: BrowseComp-style problems on which proprietary agents beat human searchers, and the authors' manual check that SailorFog-QA items were not solvable by human researchers within about two hours.
    • WebSailor-72B scores 12.0 on BrowseComp-en against 51.5 for OpenAI DeepResearch (Table 1), so the model itself is far from the systems the phrase describes.
    • A stronger claim would need humans and the agent on the same items with the same tools and a time budget, reporting accuracy against time spent.
    • Also control for answer ambiguity: the paper says SailorFog-QA answers are not always unique, which affects both human and model scores.
  6. Design

    You want SailorFog-style training data for scientific literature search (finding a paper from vague clues), built from an open citation graph such as OpenAlex. Describe the graph walk, the obfuscation, and how you would guarantee a unique, checkable answer — something SailorFog-QA does not guarantee.

    What a strong answer covers
    • Graph: nodes = papers, authors, venues, institutions; edges = cites, authored-by, published-in. Seed from low-citation papers so the start is rare, then expand with a random walk that sometimes returns to earlier nodes to create cycles, not only chains.
    • Obfuscation: exact year → range, author name → initial plus affiliation type, citation count → qualitative band, venue → field.
    • Uniqueness check: run the obfuscated constraints as a structured query over the full graph and keep the item only if exactly one paper matches; this is cheaper and stricter than an LLM check.
    • Also check that the answer cannot be found by one search engine query, e.g. by running a BM25 or web search on the question and rejecting items whose top results contain the answer.
    • Validate by measuring how often a strong agent solves the items and how many tool calls it needs, compared with BrowseComp-Plus.

Done with this page?

Status