Skip to content

Building training data for search agents

TL;DR. For search agents, the training questions largely decide what the agent learns. NQ and HotpotQA teach one or two clean queries. Agents that do well on BrowseComp-style tasks are trained on synthetic questions that are deliberately hard to search: several indirect clues, blurred dates and names, and a short answer that can be checked automatically. This page compares how twelve recent pipelines build such data. The main design choices are where the facts come from, how difficulty is added, and how the answer is verified.

Why it matters now. Most agent papers change the data and the training recipe at the same time, so it is hard to tell which helped. The few controlled comparisons (WebShaper’s Table 2, ORBIT’s InfoSeeker-4B baseline, InfoSeek’s Table 5) all find that the data matters at fixed recipe. For an IR researcher, the problem also looks familiar: a good training question is a query whose relevant set has exactly one element, and which no single query can retrieve.

Think of each clue cic_i as a filter that keeps a fraction pip_i of a universe of NN candidates. If clues are roughly independent, the expected number of wrong candidates that satisfy all of them is about (N−1)∏ipi(N-1)\prod_i p_i.

  • With λ=(N−1)∏ipi\lambda = (N-1)\prod_i p_i wrong matches expected, the chance that the answer is unique is roughly e−λe^{-\lambda}. A product near 1/N1/N gives λ≈1\lambda \approx 1 and only about 37% uniqueness, so a reliable question needs λ≪1\lambda \ll 1.
  • A small product over all clues suggests joint uniqueness, not a shortcut. The question is overdetermined when a single clue or a small subset of clues already isolates the answer, so a single good query solves it; InfoSeek (§2.4) names this failure explicitly. Diagnose it by checking small subsets, not the full product. Good questions can have a very small full product while every small subset remains ambiguous: ten independent clues that each keep 20% of 100,000 candidates leave about 0.01 wrong matches jointly, but about 4,000 for any pair.
  • If the product is well above 1/N1/N, the question is underdetermined: several entities fit, and the gold answer is one arbitrary choice. WebSailor reports this for some SailorFog-QA items.
  • Search difficulty comes from clues that are each weak (large pip_i, hard to query directly) but jointly selective. Blurring a clue (“2017” → “the late 2010s”) raises its pip_i; to keep the answer unique, the pipeline must add clues or keep others tight.

The answer should also not be in the model’s memory, otherwise RL rewards answering without searching. And it should be short and canonical (a name, a number, a date), so that exact match or an LLM judge can score it reliably.

Sizes are as reported in each paper; “released” means public at the time of writing.

Dataset (paper)Source of factsHow difficulty is addedHow answers are checkedSizeCost / API dependenceAnswer type
ORBIT (2604.01195)Wikipedia category pages as seeds, then the open webDeepSeek-V3.1 chat with search writes an inverted question with 4–5 cluesDeepSeek self-check with search; then a different model answers from the scraped cited pages (Qwen3-4B, then gpt-oss-120b)20K (44.1K generated)No paid API; free chat interfaces driven by Selenium; 2–3 monthsShort entity, number or date; exact match
SailorFog-QA (WebSailor, 2507.02592)Rare Wikidata entity, expanded by web searchRandom-walk graph with cycles, subgraph sampling, then blurred dates, names and numbersAnswer satisfies the clues by construction; uniqueness not guaranteedNot stated (v1)Google search, Jina, large LLMsEntity; LLM judge
WebDancer crawlQA / e2hQA (2505.22648)Crawled pages of official sites; existing QAcrawlQA: GPT-4o writes count, multi-hop and intersection questions; e2hQA: replace an entity by a sub-question, repeatedlyRejection sampling of agent trajectories60K + 40K QAGPT-4o, QwQ, web toolsEntity or count; LLM judge
WebShaper (2507.15061)Offline Wikipedia random walks as seedsFormal set operations (knowledge projections); an agent expands leaf constants layer by layerValidate tool: type check and reject if QwQ answers without search; 5 rollouts, judge filter5K trajectories; 500 QA releasedSearch and summarize tools; QwQ, larger LLMsEntity; LLM judge
InfoSeek (2509.00375)Wikipedia pages and hyperlinksTree of constraints (HCSP); blur a node with several constraints; deepen through linksDrop items Qwen2.5-32B answers directly; Gemini 2.5 Flash must solve from gold pages plus distractors, with a unique answer52,138 QAAbout 572 dollars totalEntity
InForage (2505.09316)About 80K web pages (Jan–Mar 2025) and 172K extracted claimsChain at least 3 non-redundant claims via Google results500 human-built and verified; then GPT-4o as annotator; gold URLs kept for the coverage reward20K (19.5K train)Google search, GPT-4o; not released per InfoSeek’s tableShort answer; EM
SimpleDeepSearcher (2505.16834)Existing open-domain QA sets, sampled for diversityLive-web trajectories with commercial search APIs; select hard, efficient onesCorrect answer plus format, reasoning-path and search-efficiency filters871 SFT trajectoriesCommercial search APIs, QwQFrom source datasets
TaskCraft (2506.10055)Web pages, PDFs, imagesAtomic tasks from tool outputs, extended in depth (chain) and width (merge)Agent check for atomic tasks; LLM checks for superset relation and information leakageAbout 36K tasksLLM-based, multimodal toolsShort tool-derived answer
ASearcher (2508.07976)Seed QA plus facts found by searchAgent alternates “injection” (add facts) and “fuzz” (blur details)Quality check against supporting facts; QwQ-32B answers without tools to measure difficulty; check alternative answers for uniqueness134K generated (25.6K need tools); 35K sets releasedLLM synthesis agent with searchEntity
WebExplorer-QA (2509.06501)Wikipedia seed entities explored by an LLM with searchModel-based exploration, then 5 rounds of long-to-short evolution (remove salient clues, blur)Difficulty measured by Claude-4-Sonnet (86.6% → 67.1% accuracy); no separate answer audit foundAbout 40KFrontier LLM with searchEntity; LLM judge
DeepDive (2509.10446)KILT and AMiner knowledge graphsRandom walk with out-degree limits; Gemini-2.5-Pro blurs entity attributesDrop items GPT-4o with search solves in any of 4 tries3,250 QAGemini, GPT-4o; Serper and JinaEntity
MiroVerse (MiroThinker, 2511.11793)Hyperlinked Wikipedia, Common Crawl and other web pages; plus open QA setsHyperlink-walk subgraph, fact extraction, blur time and place, LLM-written question; trajectories from several LLMsNot described in detail in the paperv0.1: 100K–1M (Hugging Face tag); v1.0 not statedSeveral LLMs (GPT-OSS, DeepSeek-V3.1); gated, CC BY-NC 4.0Mixed; trajectories

Three groups stand out:

  1. Graph-first (SailorFog-QA, WebShaper, InfoSeek, DeepDive, MiroVerse): build an explicit graph of entities or pages, sample a structure, then write a question. Easy to control the number of hops and to check uniqueness against the graph, but the result inherits the graph’s coverage (mostly Wikipedia).
  2. LLM-first (ORBIT, WebExplorer, ASearcher, crawlQA): a strong model with search writes the question directly, then other steps make it harder or check it. Less machinery and broader topics, but verification has to be added explicitly, and the writer’s knowledge biases what gets asked.
  3. Trajectory-first (SimpleDeepSearcher, TaskCraft, MiroVerse’s open-QA part): reuse existing questions and spend the effort on collecting and filtering good agent trajectories for SFT.

Worked example: one ORBIT item through the pipeline

Section titled “Worked example: one ORBIT item through the pipeline”

Take ORBIT’s example from TV & movies (Table 2 of the paper).

  1. Seed. A film page from a Wikipedia category in the TV & movies domain.
  2. Generation. DeepSeek-V3.1 with search writes: the exact runtime of a 2017 animated film set inside a phone’s messaging app, directed by someone known for children’s-franchise sequels, whose hero’s expressions malfunction, voiced partly by a sitcom lead, from a studio that later won an Oscar for a Spider-Man film. Answer: 86 minutes.
  3. Self-verification. DeepSeek searches again and confirms each clue with a URL: The Emoji Movie (2017) is set in a messaging app; Tony Leondis directed Lilo & Stitch 2; Gene’s expressions malfunction; T.J. Miller starred in Silicon Valley; Sony Pictures Animation won the Oscar for Spider-Verse.
  4. External verification. The cited pages are scraped; Qwen3-4B, reading only those pages, must answer “86 minutes” and judge it a match.

In the candidate-set model: “2017 animated feature” keeps perhaps a few dozen films out of all films; “set inside a messaging app” alone almost identifies it. So this item is close to overdetermined: one query like 2017 animated film inside smartphone messaging app likely returns the film, and a second query finds the runtime. The other clues add confirmation more than difficulty. A SailorFog-style pipeline would blur the setting clue (“a film set in a consumer device”) and keep the rest; InfoSeek calls this pattern overdetermination and selects clues to reduce it (it requires that no clue’s candidate set contains another’s). This is a choice, not an error: the ORBIT authors target a 4B model with at most 5 search turns, and their own ablation finds that a heavier share of hard data hurts at that scale.

  • Verify against evidence, not against the writer. The strongest checks reach the gold answer from retrieved pages with a different model (ORBIT Stage 4, InfoSeek’s Gemini check). Self-checks by the generating model are weaker.
  • Check uniqueness explicitly. Only InfoSeek and ASearcher do this directly; graph-based pipelines could do it cheaply by querying the graph.
  • Filter both ends. Drop items answerable without search, and track how many items no rollout solves, because those give no RL signal.
  • Report size, cost and licence. Several papers give no item count or release only a small sample, which makes data-scale comparisons impossible.

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

    Use the candidate-set model from this page. The universe is 100,000 films; a question has five independent clues that keep fractions 0.01, 0.05, 0.1, 0.2 and 0.3 of the candidates. Compute the expected number of wrong films that satisfy every clue and the chance the answer is unique. Then obfuscate the first clue so it keeps 0.1 instead of 0.01 and recompute. What does this say about blurring clues?

    What a strong answer covers
    • Product of fractions: 0.01 × 0.05 × 0.1 × 0.2 × 0.3 = 3 × 10^-6; expected wrong matches = 99,999 × 3 × 10^-6 ≈ 0.3.
    • With a Poisson approximation, P(no other match) ≈ e^-0.3 ≈ 0.74, so about one question in four would have another valid answer.
    • After blurring clue 1 to 0.1: product 3 × 10^-5, expected wrong matches ≈ 3, P(unique) ≈ e^-3 ≈ 0.05: the question is now underdetermined.
    • Blurring raises search difficulty only if other clues are added or tightened so that the expected number of wrong matches stays well below 1 (a product near 1/N gives only about e^-1 ≈ 37% uniqueness); this is why InfoSeek and ASearcher add an explicit uniqueness check and why WebSailor reports non-unique answers.
  2. Mechanism

    Several pipelines (WebShaper, InfoSeek, ASearcher, DeepDive) throw away questions that a strong model can answer without tools, or that a model with search solves easily. Explain what each filter removes and why each matters for RL with a group-normalised, outcome-only reward. What does each filter fail to catch?

    What a strong answer covers
    • The no-tool filter removes items whose answer is in the model's memory; on those, the policy earns reward without searching, so RL would reinforce answering from memory.
    • The with-search filter (DeepDive drops items GPT-4o with search solves in any of 4 tries) removes items solvable by one obvious query, which give little signal for multi-step search.
    • Both shift the training set toward items where reward depends on search behaviour; but items no rollout can solve give all-zero groups and no gradient, so too hard is also wasted.
    • Neither filter checks the answer is correct or unique; a wrong gold answer passes both because no model reproduces it. A separate grounding check (InfoSeek's solve-from-gold-pages, ORBIT's scraped-page check) is needed for that.
  3. Critique

    WebExplorer and WebSailor compare datasets by the accuracy and number of tool calls of one strong model (Claude-4-Sonnet, o4-mini) on samples from each. What does a lower accuracy on dataset A than on dataset B actually establish, and what would you add to make the comparison mean "A is harder and better for training"?

    What a strong answer covers
    • Low accuracy can mean hard-but-correct items, or items with wrong or non-unique gold answers; the measurement cannot tell them apart.
    • Accuracy also depends on the judge, the search tool and its date, so numbers are comparable only within one setup.
    • Add a manual or grounded audit of a sample: is the gold answer supported, and is it unique?
    • The usefulness claim needs a training experiment: same base model, recipe and number of items, swap only the dataset, evaluate on held-out benchmarks (as WebShaper's Table 2 does for SFT).
  4. Design

    You want to train a 4B search agent with RL against a fixed corpus (a BrowseComp-Plus-style index of about 100K web pages), on a budget of a few hundred dollars of API calls. Choose a data pipeline from this page, adapt it to the fixed corpus, and say how you would check that each item is answerable from the corpus and has a unique answer.

    What a strong answer covers
    • Generate inside the corpus: walk hyperlinks or entity links among indexed pages (as MiroVerse or InfoSeek do) so every clue's evidence is in the index by construction.
    • Use a cheap open model for writing and obfuscation; spend API budget only on a final grounded check, as InfoSeek does for about 570 dollars total.
    • Answerability: an oracle reader given the gold pages must reach the answer; the gold pages must be retrievable by some sub-clue query with BM25 or a dense retriever.
    • Uniqueness: run each clue as a retrieval query, intersect candidate sets, and reject items where a second entity satisfies all clues; also reject items a no-tool model answers.
    • Mix with easy NQ/HotpotQA-style items so early GRPO groups have non-zero variance, as ORBIT's mixing ablation suggests.