DR-Anything: How Ai2 Builds Simulated Search Environments for Training
DR-Anything is Ai2's open framework for automatically building simulated search environments for deep research agents. This guide explains its three outputs — questions and rubrics, a web-like corpus, and a BM25 index — plus the $17.52 versus $4,548 cost comparison, the capybara example, and what simulation does not model.
View 2 referencesAllow the functional cookie to save your likes. Privacy details
What is DR-Anything?
DR-Anything is an open framework from the Allen Institute for AI that automatically builds and scales simulated search environments for training deep research agents. It was released on December 1, 2026 alongside DR Tulu 2 and is described in Ai2's release post.
Given a document collection and a small set of seeds, DR-Anything produces a local search environment complete with training questions, grading criteria, and a retriever. Researchers can therefore own the environment instead of renting it from a commercial search API.
Why did Ai2 build DR-Anything?
Deep research reinforcement learning needs both graded questions and a searchable corpus, and teams usually outsource search to commercial APIs. A single research attempt can involve more than 100 searches, and one training run can generate roughly ten million queries, so API fees and rate limits become the bottleneck.
DR-Anything collects target pages ahead of time and serves them locally. Ai2 says this removes recurring fees and third-party outages, gives researchers control over the training data, and makes domain-specific environments in finance or science practical rather than only general web questions.
How does DR-Anything build an environment?
DR-Anything starts with a document collection and seeds such as names, facts, or documents users clicked. For each seed, a pretrained research agent searches the collection, gathers supporting facts, then writes a training question with either a reference answer for short questions or a grading rubric for long reports.
Next it simulates the queries an agent might run, retrieves the top ten web results for each, and adds those pages to the collection. That deliberately introduces messy, partially relevant material so the environment resembles the live web rather than a clean document set.
What are the three outputs of DR-Anything?
DR-Anything produces training questions and grading criteria, a web-like document collection, and a BM25 search index. BM25 is a lexical retriever that Ai2 deliberately chose as weaker and cheaper than a strong semantic retriever. Together they form a complete, self-contained training environment that a researcher can regenerate from a corpus and seeds.
The weaker retriever is a feature, not a shortcut: Ai2 finds it incentivizes stronger information-seeking behavior because the agent cannot simply receive the right document. It also makes it feasible to scale the environment to many more documents.
What does the capybara example show?
Ai2's example starts from the seed "physiological parameters of capybara." The agent searched a scientific collection 35 times, read 17 pages, and gathered 75 facts from 50 documents, then wrote a question about whether greater body mass in human-modified landscapes counts as a nutritional advantage, with 20 rubric items.
DR-Anything then simulated 11 queries and added 73 mined web pages. The example shows that the framework builds both the question and the noisy retrieval setting, not just a list of documents.
How much does DR-Anything reduce search cost?
Ai2 reports search API costs of $17.52 in simulation versus $4,548 on the live web, with average search waits of 0.8 seconds versus 186 seconds. The original DR Tulu cost about $5,000 in search fees per training run. Lower latency is what makes very long training rollouts practical.
The simulation figure includes the searches used to construct the environment, while training itself runs locally. That speed is what allowed training with a 128,000-token context window and up to 150 tool calls per attempt.
Does DR-Anything transfer to real web search?
Ai2 reports no observed sim-to-real gap on the three benchmarks used for comparison. After 200 updates, simulation-trained agents averaged 38.2 on live-web benchmarks against 35.4 for agents trained with live web search, and as few as 100 training questions were enough to improve performance on a new task.
This is evidence for transfer under a specific setup, not proof for every domain. The comparison spans three benchmarks, uses the same questions in both conditions, and comes from the same team that built the framework.
How do you use DR-Anything?
The DR Tulu 2 repository ships the framework components. It includes search datastores for General Web, Finance, and Science on Hugging Face, an index builder script, and a Docker quick-start script that starts a local search service. The quick start uses a bundled demo corpus so you can test the search service first.
A typical path is to build a BM25 index from your own corpus, start the local search and terminal services, and define questions and rubrics with the framework before running reinforcement learning. The Verifiers evaluation client connects a vLLM-served model to the tools.
What are the limits of DR-Anything?
A local, static corpus cannot reproduce live-web dynamics: rankings change, pages disappear, and real search engines rank semantically rather than lexically. BM25 is intentionally weaker, which helps training but means the simulated retrieval task is not identical to production search.
The reported sim-to-real evidence comes from three benchmarks and one model family. Teams working in regulated or fast-moving domains should validate on their own live queries before assuming the cost saving transfers without a quality cost.
Frequently asked questions about DR-Anything
These questions cover what practitioners ask first about DR-Anything: what a seed is, whether it is a search engine, how it relates to DR Tulu 2, and where the code lives. The answers stay with Ai2's official description and repository.
What counts as a seed in DR-Anything?
A seed can be a name, a fact, or a document a user clicked. It is the starting point from which a pretrained agent explores a collection and generates a training question plus grading criteria.
Is DR-Anything itself a search engine?
It builds an environment that includes a BM25 search index over a document collection, but the framework's purpose is training data and environment generation, not serving production search to users.
Do I need DR Tulu 2 to use DR-Anything?
No. Ai2 says you can build an environment around a document collection in your own domain and continue training DR-Tulu2-4B in it. The framework is released as infrastructure, not only as a step in one model's training.
Where is the code?
DR-Anything ships in github.com/allenai/dr-tulu2, with corpus datastores and simulated environments on Hugging Face under the allenai account. The repository README includes a Docker quick start and evaluation guide.