
Summary: This article answers just one question — how the 99.6% that Ai2 published when training DR Tulu 2 was actually calculated, what in the training pipeline makes it possible, and why it can’t be read as an overall training-cost reduction.
The 99.6% that Ai2 released on December 1, 2026 measures a single cost line item: third-party search API credits. The denominator takes roughly 9.1 million successful searches recorded during training and outsources all of them to an online search API, converted at $0.50 per thousand calls to about $4,548. The numerator is the actual third-party queries that took place — these only showed up during the index-building phase, as 35,030 Serper searches, which at the same price convert to $17.52. Dividing the two gives (4,548 − 17.52) ÷ 4,548 = 99.61%, which rounds to 99.6% at one decimal place. The denominator measures the counterfactual of “outsourcing everything,” while the numerator measures the real usage of “buying only the index-building segment.” Unit price, currency, and billing item line up on both sides. Reading it as “total training cost dropped 99.6%” or “the actual bill was only $17.52” misses the point, because GPUs, scoring models, real-time page fetching, corpus storage, and indexing services are not part of this line item.
Knowledge Map: The Four Stages of Search API Cost Breakdown

Here’s how to read this diagram: start with the two branches at the top, then look at the decision node in the middle. The top decides whether the 99.6% figure holds up; the middle decides whether it can be cited as some other conclusion; and the three cards below cover how the training works, what it bought you, and where it doesn’t apply. Every node in the figure maps to a body section with the same number, and the explanatory text sits outside the graphic rather than crammed into it.
Outline: Why Start with the Denominator, Then Explain the Training Pipeline
This article follows a simple order: settle the measurement basis first, then explain the implementation, and finally draw the boundaries. Section 1 sticks to arithmetic and defining the measurement basis, because 99.6% of the disputes come from misreading the denominator. Section 2 explains how training concentrates third-party queries into the environment-build stage, which is why the numerator can be pushed down to the ~30,000 range. Section 3 uses wait time, throughput, and a three-domain comparison to explain the benefits and costs of the local index. Section 4 lays out the conditions under which this approach breaks down. Section 5 gives a minimal, runnable reproduction path.
If all you want to know is whether this number is citable, reading Sections 1.1 through 1.5 is enough. If you want to revamp your own training pipeline, Sections 2 and 5 are the main thread. This article does not repeat the model capability lists and leaderboard results from the same batch of 4B open-source introduction articles; the focus is on cost line items and training mechanics.
To Know: 6 Terms in Deep Research Agent Training
| Term | Plain explanation |
|---|---|
| Search-credit equivalent cost | Converts the number of searches completed locally into a dollar amount using the unit price of a third-party search API for apples-to-apples comparison; it does not equal actual payment |
| Environment build | One-time work before training that constructs questions, reference answers, and scoring rubrics, pre-crawls web pages, and builds the local index |
| Local BM25 index | Uses the classic BM25 algorithm to build an inverted index over the pre-crawled corpus locally, replacing online search calls during training |
| Trajectory | A complete research process in which the model goes from reading the question to delivering an answer, including every search, page read, and query rewrite |
| DPPO | The reinforcement learning algorithm used in this training run; each update samples 8 questions and 32 trajectories per question |
| Same-question control | A control experiment in which two model groups practice the same questions and share only the same test environment, used to verify transfer from simulated training |
1. Search API Costs: Let’s Start with the Denominator and the Formula
1.1 The Denominator: Fully Outsourcing 9.1 Million Successful Searches
While training DR-Tulu2-4B, Ai2 recorded roughly 9.1 million successful searches, all of which happened inside its local training environment. The conversion in Section 6.1 of the technical report is straightforward: if the same number of requests were billed to a third-party search API at $0.50 per thousand calls, the cost would come to about $4,548. That number is the denominator—it measures a counterfactual, treating every successful search during training as a paid online call.
Note that “successful search” means the number of calls, not the number of unique queries. The same question or trajectory may repeatedly retrieve similar keywords, and repeated sampling can amplify a single question’s retrieval into dozens of requests. The denominator counts exactly this amplified call volume, which is also why it reaches the nine-million scale.
1.2 Numerator: 35,030 Queries Actually Issued During Database Construction
The only real third-party charges happen before training starts. When DR-Anything built its training data store, it actually sent 35,030 searches to Serper. Converted at the same unit price: 35,030 × 0.50 ÷ 1,000 = $17.515, which rounds to two decimal places as $17.52.
Once the reinforcement learning stage begins, retrieval is handled by a local index, so the marginal third-party search-credit cost is zero. The search-credit spending for this approach is therefore concentrated in the upfront database construction; no matter how many trajectories are sampled during training, no new search API charges are generated.
1.3 Recalculation: 99.6% and About 260x
(4,548 − 17.52) ÷ 4,548 × 100% = 99.6148%, which rounds to one decimal place as 99.6%. The converted database-construction amount is about 0.385% of the baseline; conversely, the baseline is about 259.6 times that amount, consistent with the report’s “about 260x” claim.

| Item | Value | Basis |
|---|---|---|
| Baseline (denominator) | Approx. $4,548 | About 9.1 million successful searches × $0.50 per 1,000 |
| Actual (numerator) | $17.52 | 35,030 Serper queries during database construction × same unit price |
| Reduction | 99.6% | (4,548 − 17.52) ÷ 4,548 |
| Multiple | Approx. 259.6x | Baseline ÷ converted database-construction amount |
| Covered line item | Third-party search query credits only | Excludes compute, scoring, page scraping, storage, and services |
1.4 Why the Unit Price Cancels Out in the Ratio
Both figures use the same unit price, the same currency, and the same billing item. Plug $0.50 per thousand calls into both the numerator and the denominator, and the unit price disappears from the ratio. The 99.6% is actually close to “1 − number of index-building queries ÷ number of successful searches during training.” In other words, the savings come from shrinking third-party call volume from the millions down to the 30,000 range—not from finding a cheaper search vendor.
This also explains where the calculation stops applying. If online training reuses the same search or page-fetch requests through caching, the number of requests actually billed depends on the cache hit rate. The higher the hit rate, the smaller the denominator, and the reduction shrinks accordingly. The report separately compares a cache-enabled online setup on speed, but that’s a different metric and can’t be used to convert costs.
1.5 Unit Price Isn’t the Same as the Procurement Bill
On the snapshot date, Serper’s official site listed the Scale tier at $0.50 per thousand calls, sold as a 2.5-million-credit, $1,250 top-up package, with tier levels, concurrency caps, and credit expiration. So the $17.52 calculated from call counts corresponds to the credit-equivalent figure in the report; the actual procurement bill also depends on the minimum package size, the account’s existing balance, and taxes.
This distinction matters a lot when you try to reproduce the numbers: you may not be able to buy just 35,030 calls. If the minimum purchase is 2.5 million credits, your upfront cash flow will be in the $1,250 range, not $17.52. Switch to pay-as-you-go billing or a setup with your own scraping channel, and the gap between the equivalent figure and actual spending grows even wider. The Ai2 announcement also looks back at the first-generation DR Tulu, which spent roughly $5,000 per training run on search APIs alone. That’s historical context; the arithmetic in this piece consistently uses the $4,548 figure from the technical report.
If you just want to see how a judging model or retrieval-assist model performs on your corpus, you can run a small test first through the compatible API on APIYI (apiyi.com)—no need to open multiple third-party accounts just for a one-off check.
1.6 The 99.6% Doesn’t Cover These Cost Categories
| Cost category | Included in the 99.6%? | Notes |
|---|---|---|
| Third-party search query credits | Yes | Numerator and denominator converted at the same unit price |
| Models that generate training questions and scoring rubrics | No | Model invocation during the database-building phase is billed separately |
| GPUs for batch trajectory generation | No | Sixteen B300s handle rollout |
| GPUs for updating model parameters | No | Another sixteen training GPUs |
| Scoring model | No | Qwen3.8-27B handles the scoring |
| Real-time web scraping (Jina Reader) | No | A separate category, billed by scrape volume |
| Corpus storage, indexing, and serving | No | Fixed investment unrelated to query count |
The model card’s environmental impact section lists roughly 100,000 GPU hours, which works as an order-of-magnitude reference for “there’s still compute investment involved.” Converting search fees by call volume doesn’t put a price on any of the categories above, so you can’t derive the total training bill from the 99.6%. And if real-time search is used after deployment, inference-time search and page-scraping costs will vary with the per-question call volume too.
2. Deep Research Agent Training Pipeline: From Document Collection to Reinforcement Learning
2.1 Building the Library: From Seeds to Scorable Questions
DR-Anything starts with a document collection and a small set of seeds. A seed can be an entity, a company lead, or even a real user query. The agent building the environment reads existing materials around the seed, collects facts with sources, and uses them to design training questions—short-answer questions come with reference answers, while long-form reports come with item-by-item scoring rubrics. The three task types retrieve different things: general web questions look for evidence across web pages, finance questions look up fields in U.S. SEC filings and perform calculations, and science questions synthesize evidence from papers to build an argument.
The three public datasets contain 1,131 general web questions, 100 finance questions, and 100 science questions, respectively. The numbers aren’t large, but every question comes with verifiable factual sources and detailed scoring rubrics—exactly what makes automated scoring possible in the later reinforcement learning stage.
2.2 Pre-fetching: Loading Potentially Retrieved Pages into the Local Index Ahead of Time
During library construction, the system breaks each question into multiple candidate queries. For each query, it fetches the top ten web results, deduplicates them by URL, and merges them with the original document collection. It then injects relevant but potentially misleading pages, preserving the distractions an agent would encounter in real search, and finally builds a local BM25 index in bulk.
Figure 2 in the paper illustrates the scale with a research question about differences in capybara body weight: the construction agent first runs 35 searches, reads 17 pages, and collects 75 facts from 50 documents; around the generated question, it then simulates 11 queries, adds 73 web pages, and sets up 20 scoring rules. These collection costs are incurred once during library construction, and the same training library can be reused to serve many thousands of later trajectories.
2.3 Sampling and Scoring: How a Trajectory Turns into a Gradient
After receiving a question, the model performs searches, reads full pages, rewrites queries, synthesizes information, and finally delivers an answer. Training mainly uses two tools: a search tool that returns summaries of retrieval results, and a web terminal that reads full pages. Ai2 starts from Qwen3.5-4B and uses only reinforcement learning for this post-training run, with DPPO. Each update covers eight questions, samples 32 trajectories per question, uses a 128K-token training context, and allows up to 150 tool calls per trajectory. Qwen3.8-27B serves as the scoring model: for short answers, it extracts the conclusion from the final response and verifies it; for long answers, it evaluates each weighted scoring criterion one by one.
This shows why the local index is part of the training architecture. With 32 trajectories, the same question gets retrieved dozens of times. If every retrieval had to wait on an external API, per-question latency would become unacceptable. A local index brings the marginal cost of repeated retrieval close to zero, which is what makes it feasible to sample this many trajectories. Choosing a scoring model usually takes a few rounds of trial and error. With APIYI’s unified interface at apiyi.com, you can switch models within the same evaluation script and save the time you’d otherwise spend editing code.
3. What the Local BM25 Index Buys You: Search Latency, Throughput, and DR Tulu 2 Training Quality
3.1 Waiting Time: 186 Seconds vs. 0.8 Seconds
Figure 1 of the report compares the average waiting time spent on search per trajectory: about 186 seconds for live web versus about 0.8 seconds for the local index — roughly a 233x gap. Appendix D breaks the distribution down further — for general web trajectories, the median wait for search and page fetching drops from 90.23 seconds with cached live search to 1.34 seconds locally, and the 95th percentile drops from 170.19 seconds to 2.46 seconds.
The impact of tail latency gets amplified by the sampling structure. Each group has to collect all thirty-two trajectories for the same question, so if even one is slow, the whole group has to wait. The paper’s independent approximation is that the probability of at least one of thirty-two trajectories crossing the per-trajectory 95th percentile waiting threshold is about 81%. The authors mask part of the waiting with double concurrency sampling, but Figure 3 shows that the rate cap of three hundred requests per second starts constraining scaling at around sixty-four generation-trajectory GPUs.
| Metric | Live Web | Local Index | Notes |
|---|---|---|---|
| Average search wait per trajectory | ~186 seconds | ~0.8 seconds | ~233x per report |
| Median wait | 90.23 seconds (cached) | 1.34 seconds | General web trajectories |
| 95th percentile | 170.19 seconds | 2.46 seconds | Tail latency |
| Active training updates in 24 hours | 211 | 320 | Sixteen B300 generation + sixteen training |
| Update count improvement at same budget | — | ~52% | General Web actual run record |
3.2 Throughput: About 52% More Updates on the Same Budget
General Web’s real-world run used sixteen B300 GPUs for trajectory generation and another sixteen GPUs for training. The local setup completed 320 updates over 24 hours of active training. The live-web setup, even with caching, completed only 211. That works out to about 52% more updates on the same compute budget.
These three sets of numbers cover tool-wait time, throughput scaling analysis, and update counts, respectively—don’t mix them up. Search-credit savings are a cost metric; update count is a training-efficiency metric. Both can be true at once, but neither implies the other.
3.3 Quality: Same-Task Comparison Across Three Domains
Ai2 ran a pair of training experiments for each of general web, finance, and science: one side trained on the same task set in a local simulated environment, while the other trained in a live-web environment. Both were ultimately tested on the live web. After 200 updates, the simulated-training group led on all three tasks.

| Test set | Simulated-environment training | Live-web training | Difference |
|---|---|---|---|
| BrowseComp (web) | 37.3 | 34.4 | +2.9 |
| FinSearchComp (finance) | 53.5 | 49.1 | +4.4 |
| FrontierScience-Research (science) | 23.7 | 22.7 | +1.0 |
| Three-domain average | 38.2 | 35.4 | +2.8 |
The conclusion is limited to these three same-task comparisons and the reported training scale: a well-designed simulated environment is enough to develop transferable research capability—there was no sign of the “train locally, fail on the live web” problem. One distinction matters: these comparison scores come from a different experiment than the ten-item aggregate results for the released model, so the two can’t be substituted for each other.
4. Applicability Limits: Under What Conditions Does This 99.6% Search API Cost Reduction Hold?
4.1 Migration Depends on the Corpus and Task Design
A local environment isn’t just about scraping a bunch of web pages and calling it done. On the same set of general web questions, the paper compared three corpora: Wikipedia only, supporting materials only, and adding per-question pre-fetched web pages. The third scored higher on the live-web BrowseComp. For question types the corpus doesn’t cover, the advantage of simulated training shrinks noticeably.
Task design matters just the same. The scoring rubric needs to break down into items that can be judged one by one, so the grading model can assign scores accurately. If the task itself only has a vague right-or-wrong, reinforcement learning won’t get a stable signal.
4.2 When This Math Doesn’t Hold Up
The first case is tasks that depend heavily on real-time information — stock prices, same-day news, or sites that require login. Pre-fetched corpora are inherently stale, so you still need to hook up live search at deployment time. The second is when the online setup has a high cache hit rate: the denominator gets squeezed, and the reduction shrinks along with it. The third is when the index grows too large for a single machine to hold, and storage and serving costs shift into some other line item. The fourth is the most common: comparing only search credits while presenting the conclusion as total cost.
There’s also an easy-to-confuse basis for the numbers. The “inference API cost per test question” on the left side of Figure 1 in the report is an estimate of evaluation inference cost, computed from measured token usage, prompt caching, and per-provider model pricing. It is not the same number as the training search credits on the right side and in Section 6.1. When you see 99.6%, first confirm which line item it’s attached to.
4.3 Minimum Prerequisites for Reproduction
The training and evaluation code is already public on GitHub, and the three datasets are released separately on Hugging Face. The retrieval side uses standard BM25 and doesn’t require a proprietary search engine. On compute, you still have to look at the scale listed on the model card — the figure of roughly 100,000 GPU hours reminds us that what’s being saved is search API cost, not GPUs.
5. Quick Start: Reproducing Local Indexing and Sampling-Based Scoring for Deep Research Agent Training
To bring this approach into your own domain, the minimum viable version only needs two pieces: a retriever you can query offline over and over, and a grader that scores consistently. Below, we’ll use BM25 instead of online search and call the grading model through a compatible endpoint.
from rank_bm25 import BM25Okapi
import openai
# 1) Index-building stage: pre-fetch documents and build a local index
corpus = [doc["text"] for doc in docs]
bm25 = BM25Okapi([text.split() for text in corpus])
def search(query: str, top_k: int = 10) -> list[str]:
scores = bm25.get_scores(query.split())
order = sorted(range(len(scores)), key=scores.__getitem__, reverse=True)
return [corpus[i] for i in order[:top_k]]
# 2) Grading stage: switch grader models with the same key
grader = openai.OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1" # APIYI-compatible endpoint
)
def grade(answer: str, rubric: list[str]) -> str:
resp = grader.chat.completions.create(
model="gpt-4o-mini",
messages=[{
"role": "user",
"content": f"按评分项逐条判定并给出理由:{rubric}\n\n待评答案:{answer}",
}],
)
return resp.choices[0].message.content
Don’t skip the index-building step. Split each question into candidate queries, fetch top-ranked results, deduplicate and merge them, and deliberately keep some distractor pages. These four steps determine whether the local index can replace online search. For the grader, start by calibrating it on a few dozen human-labeled examples. Once you’ve confirmed it agrees with your judgment, put it into the training loop; otherwise, the reward signal will be biased from the start.
Tip: Grading models and retrieval-assistant models often need to be compared repeatedly. With APIYI apiyi.com, you can use a single API key to switch between multiple mainstream models, pay as you go, and new users get free trial credits. That makes it a good fit for small-sample calibration before deciding on a long-run configuration.
6. FAQ: Common Questions About Ai2 Search API Costs and DR Tulu 2 Training
Q1: Does 99.6% mean the total training cost dropped by 99.6%?
No. It only covers the single line item of third-party search query credits. GPUs, the judge model, Jina page crawling, corpus storage and indexing services all sit outside that line item, and the roughly 100,000 GPU-hours of compute aren’t factored in either.
Q2: Why does the numerator only count 35,030 queries?
Because retrieval during the RL stage runs on a local index and doesn’t generate third-party calls. The third-party queries that actually happened were concentrated in the corpus-building stage: 35,030 Serper searches in total, which works out to $17.52 at the same unit price.
Q3: Is $17.52 the amount I’d actually have to pay?
Not necessarily. That’s the credit-equivalent amount. Real procurement also depends on the minimum package size, concurrency caps, credit expiration, existing balance, and taxes. Serper’s Scale tier is sold in packages of 2.5 million credits for $1,250, so the entry threshold is far higher than 35,030 queries.
Q4: Does a local BM25 index degrade model capability?
The three-domain, same-question comparison says no. After 200 updates, the simulated-training group scored 37.3 on BrowseComp, 53.5 on FinSearchComp, and 23.7 on FrontierScience-Research for live web tasks — all above the live-web training group’s 34.4, 49.1, and 22.7. The conclusion is limited to these three comparisons and the training scale reported.
Q5: What’s the easiest thing to get wrong if I want to reproduce this in my own domain?
Two things. Insufficient corpus coverage — pre-crawled pages can’t supply enough evidence for real questions. And rubrics that are too coarse — the judge model can’t produce a stable signal. Start with a small-sample grading calibration run on APIYI apiyi.com to confirm grading consistency before scaling up.
Q6: Will there still be search costs after deployment?
Yes. In the benchmark deployment, nine of the tasks use Serper and Jina to connect to the live web. Inference-time search and page-crawling expenses vary with the number of calls per question — that’s a different stage’s bill from the 99.6% figure during training.
7. DR Tulu 2 Search API Cost: Key Takeaways
- Denominator: About 9.1 million successful searches billed at $0.50 per thousand, roughly $4,548.
- Numerator: 35,030 Serper queries during the index-building phase, converted at the same rate to $17.52.
- Formula: (4,548 − 17.52) ÷ 4,548 = 99.61%, which makes the baseline about 260 times the converted index-building cost.
- Coverage: This counts only third-party search credits—no compute, grading, page fetching, storage, or serving.
- Implementation: Pre-fetch web pages and build a local BM25 index, so the marginal third-party cost during training is zero.
- Speed payoff: Search wait drops from about 186 seconds to roughly 0.8 seconds, and the number of updates per budget rises by about 52%.
- Getting started: First use APIYI apiyi.com to calibrate the grading model, then scale up sampling.
8. Summary: Putting 99.6% Back Where It Belongs
In a single sentence: 99.6% says that “at the same unit price, the third-party search credits needed for this training run are cut to about 0.4% of the original baseline.” The denominator is the counterfactual of outsourcing all 9.1 million successful searches; the numerator is the 35,030 queries actually issued during the index-building phase. It holds only because the local index handles retrieval during training—and the price is the upfront collection work to build that index, roughly a hundred thousand GPU hours of compute, plus extra requirements on corpus coverage and task design.
To judge whether it’s worth it in your own scenario, work out three numbers first: the expected number of search calls during training, how many queries you actually need to issue to build the index, and whether your corpus covers the kinds of questions you’ll ask. If all three line up, then consider moving the index locally. When you need to validate the grading model and retrieval-assist model first, you can use APIYI apiyi.com for a small-traffic trial run, then decide on the long-run configuration.
References
-
Ai2 Technical Report “DR Tulu 2: Scaling Simulated Environments for Deep Research Agents”: the original source for the cost methodology, training details, and same-question comparison
- Link:
allenai.org/papers/dr-tulu2 - Note: Sections 3, 4, and 6.1 cover database construction, sampling, and cost calculation, respectively
- Link:
-
Ai2 launch announcement: the public 99.6% claim and the simulated-training transfer results
- Link:
allenai.org/blog/dr-tulu2 - Note: includes database construction examples, a cost retrospective, and the three-domain comparison notes
- Link:
-
Ai2 model card DR-Tulu2-4B: training configuration, speed data, and environmental impact
- Link:
huggingface.co/allenai/DR-Tulu2-4B - Note: you can verify the training details, speed and scale, and evaluation setup here
- Link:
-
Ai2 three-domain dataset and training code: 1,131 + 100 + 100 questions plus a runnable implementation
- Link:
huggingface.co/collections/allenai/dr-tulu-2 - Note: start here if you want to reproduce the database construction and evaluation pipeline
- Link:
-
Serper public plan pricing: the source for the $0.50 per thousand requests unit price
- Link:
serper.dev - Note: pay attention to tiers, concurrency caps, and credit expiration—unit price isn’t the same as your bill
- Link:
Author: APIYI Technical Team
Get in touch: Feel free to reach us through the APIYI website homepage; for more resources, visit the docs.apiyi.com documentation center
