Summary: This article does just one calculation — when Ai2 trained DR Tulu 2, the third-party search API line item went from roughly $4,548 to about $17.52. Here’s where 99.6% comes from, what makes it hold, and when it doesn’t.
The 99.6% in the title has a very narrow denominator: it converts the roughly 9.1 million successful searches logged during training into third-party search API credits at the same unit price of $0.50 per thousand, then compares that with the 35,030 queries actually issued during the index-building phase. This is neither a reduction in total training cost nor a procurement bill anyone actually paid. The formula is just one line: (4,548 − 17.52) ÷ 4,548 × 100% = 99.6148%, which rounds to 99.6% at one decimal place. The numerator and denominator share the same unit price, so the price cancels out in the ratio; the remaining gap comes purely from the number of calls.
The $4,548 denominator measures a counterfactual: how much it would cost if all those roughly 9.1 million retrievals were outsourced to a third-party search API. The $17.52 numerator measures what actually happened: DR-Anything actually issued 35,030 Serper searches while building the training data store, retrieval during the reinforcement learning stage was handled by a local index, and the marginal cost of third-party search credits was zero. So strictly speaking, this setup didn’t make search itself cheaper; it moved ongoing, repeated retrieval into its own environment and paid for external queries only once, during index construction.
This article only breaks down the cost structure, environment setup, and conversion assumptions. It doesn’t rehash the capability panel for DR-Tulu2-4B or the ten aggregate scores of the released model. The companion open-source introduction answers “what can this 4B model do”; this article answers “how was the training money moved around.” Both cite different sections of the same technical report, and reading them together makes it easy to mistake evaluation inference costs for training search costs.

Knowledge Map: Breaking Down Deep Research Agent Training Costs into Five Parts

The job of this diagram is to lay out how the five pieces relate to each other before you decide where to start reading. The trunk on the left (1 → 2 → 3) answers “how does the money get saved”, while the two branches on the right (4, 5) answer “what price do you pay for those savings, and when does this accounting stop holding up”. That dashed line between 2.2 and 1.2 is the key junction of the whole article: the 35,030 queries issued while building the corpus are both the numerator and a product of the environment construction — the same batch of requests is billed only once, which is why it shows up in both the cost section and the engineering section.
Index: Why This Reading Order
Item 1 starts by working through the denominator, the numerator, and the formula, because every later discussion depends on these three numbers. If you skip this step and jump straight to “how fast local BM25 is,” it’s easy to mistake a speed win for a cost win. Section 2 breaks down how the environment gets built: the question bank, prefetched documents, the index, and sampled scoring. That section explains why external queries only need to happen once. Section 3 covers the physical preconditions for the conversion: wait times and update throughput determine whether “local retrieval” can actually keep training running at full throughput. Section 4 addresses quality concerns with three sets of same-question comparisons. Section 5 is a self-check checklist; after reading it, you’ll be able to tell which quantities in your own project need to be recalculated.
If you only care about the conclusions, just read Sections 1.3, 1.4, and 4.2. If you’re going to reproduce it hands-on, start with 2.1 and 5.1.
To Know: Six Terms to Sort Out Before You Read the Main Text
| Term | Brief explanation |
|---|---|
| Search credits | The per-call billing unit for third-party search APIs. This article uses a consistent conversion of $0.50 per thousand calls. |
| Credit-equivalent amount | Converting call counts into dollar amounts at the same unit price for comparison; this is not the actual bill. |
| Counterfactual baseline | The hypothetical cost if all training-time retrieval were outsourced. This article uses about $4,548. |
| BM25 | A classic retrieval scoring method based on term frequency and inverse document frequency that can run on a local index. |
| rollout | A complete research trajectory sampled by the model for a single question, including multiple tool calls. |
| Index build | The one-time stage before training in which you construct the question bank, prefetch documents, and build the local index. |
1. The 99.6% Denominator and the Formula: How to Convert Deep Research Agent Training Costs
When checking this set of numbers, the order matters: first confirm what the denominator is, then confirm what the numerator is, and only then do the subtraction. Do it backwards and you’ll easily end up putting amounts from two different categories into the same parentheses.

Both sides of the chart use the same unit-price scale, so the difference in length is the difference in counts. To reproduce this chart for your own project, you can first run a small batch of retrieval and scoring through APIYI apiyi.com’s compatible interface, calibrate your denominator with real call volume, and then decide whether to build your own index.
1.1 The Denominator: The Counterfactual of Fully Outsourcing Successful Searches During Training
Section 6.1 of the technical report records about 9.1 million successful searches, all of which were completed inside the local training environment. At $0.50 per thousand calls, 9,100,000 × 0.50 ÷ 1,000 comes to about $4,550; the report gives the figure as about $4,548, with the difference coming from rounding the count — the report kept the original displayed precision for both the roughly 9.1 million calls and the roughly $4,548. This denominator measures the case where every successful call is billed separately, and it doesn’t include the discounts that come from cache reuse.
The roughly 9.1 million figure looks exaggerated, but it’s an inevitable result of reinforcement learning sampling: each problem draws 32 trajectories, each problem allows up to 150 tool calls, each update covers 8 problems, and a few hundred updates multiplied out lands in the tens of millions. Once this retrieval goes through an external API, cost grows linearly with the number of updates; with a local index, the marginal cost drops to zero.
1.2 Numerator: The 35,030 Serper Queries Actually Sent During Index Building
The numerator comes from an entirely different source. When constructing its training data store, DR-Anything actually issued 35,030 Serper searches. Calculated at the same unit price, 35,030 × 0.50 ÷ 1,000 = 17.515, which rounds to $17.52 at two decimal places. Retrieval during the reinforcement learning stage is handled by a local index, so the marginal third-party search credit cost is zero. As a result, the search credit expense of the whole approach is concentrated in the one-time index building before training.
This also explains why the number is so small: it isn’t “how much search fee was spent during training” but “how much was paid upfront so we no longer pay per call.” The same training index can serve all subsequent trajectories repeatedly, and the number of queries is decoupled from the number of trajectories.
| Item | Baseline (counterfactual) | Actual occurrence (index-building stage) | Notes |
|---|---|---|---|
| Billing object | Full outsourcing of successful searches during training | Serper queries actually sent during index building | Same billing category |
| Count | About 9.1 million | 35,030 | The former is a recorded value; the latter is the actual sent value |
| Unit price | $0.50 per thousand | $0.50 per thousand | Cancels out in the ratio |
| Converted amount | About $4,548 | About $17.52 | Both retain the report’s precision |
| Share of baseline | 100% | About 0.385% | The baseline is about 259.6 times the index-building cost |
| Marginal cost during reinforcement learning | — | 0 | Retrieval is handled by the local index |
1.3 Recalculation and Scope Boundaries
Recalculation takes just one step: (4,548 − 17.52) ÷ 4,548 × 100% = 99.6148%, which is 99.6% to one decimal place. Looking at it the other way is even more intuitive: the credit-equivalent amount for building the database is about 0.385% of the baseline, and the baseline is about 259.6 times the converted database-build amount, consistent with the roughly 260x figure given in the report. You can put it in a single sentence: “At the same per-search unit price, Ai2 brings the third-party search credit expense needed for this training down to about 0.4% of the original baseline.”
There are three scope boundaries you must keep in mind. First, the unit price, currency, and billing items must be identical on both sides; otherwise the ratio doesn’t hold. Second, the unit of comparison is the per-call search credit, not time or tokens; the roughly 9.1 million figure is the number of successful invocations, and the same query may be involved multiple times. If online training relies on caching to reuse the same search or page-fetch requests, the actual billed request volume will be affected by the hit rate, and the paper also makes a separate comparison for the online solution with caching enabled. Third, $17.52 is a credit-equivalent amount, not a bill: on the snapshot date, Serper’s official website listed the Scale tier at $0.50 per thousand calls, sold as a top-up package of 2.5 million credits for $1,250. The plans have tiers, concurrency caps, and credit expiration dates, and the actual purchase amount also depends on the minimum purchase quantity, existing balance, and taxes.
As an aside, the Ai2 announcement recalls that the first-generation DR Tulu cost about $5,000 per training run just for the search API. That figure provides historical context, but every calculation in this article uses the $4,548 from the technical report—don’t mix the two up.
1.4 What cost categories doesn’t this percentage cover?
Both components of the 99.6% are third-party search query credits — it measures a single cost line item. Full-fledged engineering also needs models to generate training questions and scoring rubrics, GPUs to batch-generate research trajectories, GPUs to update model parameters, models that handle grading, plus corpus storage, indexing, and serving resources. The report separately uses Jina Reader to open live web pages, and those scraping costs belong to a separate cost line item. The model card’s environmental impact entry lists around 100,000 GPU hours, which can serve as an order-of-magnitude reference for the compute that’s still being spent.
| Cost category | Covered by the 99.6%? | Notes |
|---|---|---|
| Third-party search credits during training | Yes | The only item the headline refers to |
| GPUs for trajectory generation and parameter updates | No | On the order of ~100,000 GPU hours |
| Question-generation and grading models | No | Grading side also incurs separate invocation overhead |
| Jina Reader page fetching | No | A separately billed item |
| Corpus storage, indexing, and serving | No | Owned resources, not converted to cost |
| Real-time search inference after deployment | No | The left side of Figure 1 in the report falls under evaluation-inference accounting |
Converting search fees by call volume doesn’t put a price on any of these items, so you can’t derive a total training bill from the 99.6%. The per-test-question inference API cost shown on the left side of Figure 1 in the paper is estimated from measured token usage, prompt caching, and each vendor’s per-model pricing — that’s evaluation accounting, and it’s a different thing from the training search credits in the headline.
2. How Search API Costs Move to Local: Building the Corpus, Indexing, and Sampling
This section answers the question: how does it get away with paying for only 35,030 calls? The answer is that the environment is built in advance. The questions, answers, grading rubrics, and potentially searchable webpages are all prepared once before training starts. After that, all repeated retrieval hits this local dataset.
2.1 Building the corpus: seeds, questions, and grading rubrics
DR-Anything starts with document collections and a small set of seeds. A seed can be an entity, a company lead, or a real user query. The agents that build the environment read the existing materials around the seeds, collect facts with sources attached, and then use them to design training questions: short answers get reference answers, while long reports get item-by-item grading criteria.
The three domains have different question formats, so the way questions are created differs too. General web training searches for evidence across webpages; finance tasks look up fields in U.S. SEC documents and perform calculations; science tasks synthesize evidence from papers to build arguments. The three public datasets contain 1,131 general web questions, 100 finance questions, and 100 science questions, respectively.
2.2 Prefetching and Distractors: Putting the Results You’ll Encounter Online into the Library Ahead of Time
When building the library, the question is split into multiple candidate queries. Each query pulls the top ten ranked web results, and after deduplication by URL, those results are merged with the original document set. At the same time, related but potentially misleading pages are injected so the library keeps the kind of noise an agent runs into during real web retrieval. Then a local BM25 index is built in bulk.
Figure 2 in the paper uses a research question about capybara weight differences to show the scale: the builder agent searches 35 times, reads 17 pages, and collects 75 facts from 50 documents; around the generated question, it then simulates 11 queries, adds 73 web pages, and configures 20 scoring rules. All of this collection cost happens during the library-building stage, and that library can serve every trajectory that comes after — which is exactly the engineering reason the 35,030 calls in Section 1.2 and the 9.1 million calls saved in Section 1.1 differ by three orders of magnitude.

2.3 Local BM25 Index and Two Types of Tools
During training, the model mainly uses two tools: a search tool that returns summaries of retrieval results, and a web terminal that reads the full text. Both point to the local index and local document collection, so no matter how many tool calls are made, they won’t trigger third-party billing.
Many people underestimate how much this affects sampling density: the tool-call limit is 150 per trajectory, and 32 trajectories mean nearly five thousand tool calls per question at most. If every call went through an external API, the cost curve would climb steeply with the number of samples; the local index flattens that curve into a horizontal line, turning the cost into a one-time storage and indexing expense.
2.4 Sampling and Scoring: Why Repeated Sampling Amplifies Retrieval Volume
Training starts from Qwen3.5-4B and only performs the post-training reinforcement learning for this run, using DPPO, with 8 questions per update and 32 trajectories sampled per question, a 128K-token context, and up to 150 tool calls per trajectory; Qwen3.8-27B handles scoring. For short answers, it extracts the conclusion from the final response and checks it; for long answers, it evaluates each weighted scoring item one by one.
| Configuration item | Setting |
|---|---|
| Starting model | Qwen3.5-4B |
| Training method | Post-training reinforcement learning, DPPO |
| Questions per update | 8 |
| Trajectories sampled per question | 32 |
| Context length | 128K token |
| Tool-call limit per trajectory | 150 |
| Scoring model | Qwen3.8-27B |
| Retrieval backend | Local BM25 index |
Repeated sampling turns multiple retrievals for a single question into a large number of requests, and the local index makes this kind of practice repeatable. The scoring side is a different kind of cost: it needs to call a larger model, but the number of calls depends on the number of trajectories and scoring items, not on the number of retrievals, so it’s a line item you can estimate separately. If you’re building a scoring step in your own project, you can hook up a mid-sized model through an OpenAI-compatible interface like APIYI apiyi.com; pay-as-you-go billing makes it easy to measure the scoring cost per trajectory first.
3. The Conditions for the Trade-Off to Hold: Waiting Time and Update Throughput
Saving on search fees is only half the ledger. If local retrieval is slow, training gets held up by waiting, and the money you saved gets spent as idle compute. That’s why the paper breaks waiting time and update throughput out into their own set of metrics.
3.1 Single-Search Wait Drops from 186 Seconds to 0.8 Seconds
Figure 1 in the report compares the average search wait per trajectory: roughly 186 seconds for live web versus about 0.8 seconds locally—a difference of around 233×. Appendix D has finer stats for general web trajectories: the median search-and-fetch wait drops from 90.23 seconds with a cached live search to 1.34 seconds locally, and the 95th percentile goes from 170.19 seconds to 2.46 seconds.
3.2 The Tail of 32 Trajectories on the Same Question
Each group needs all 32 trajectories for the same question before it can update, so the bottleneck isn’t average latency—it’s the slowest one. The paper provides an independent approximation: across 32 trajectories, the probability that at least one crosses the 95th-percentile threshold for a single wait is about 81%. The authors mask part of the waiting with double concurrent sampling, but Figure 3 shows that the 300-requests-per-second cap starts constraining scaling at around 64 trajectory-generation GPUs. The bottleneck here is training supply and waiting—a separate ledger from the search-credit savings in Section 1.
3.3 24 Hours: 320 Updates vs. 211
In the actual run logs for General Web—16 B300 GPUs generating trajectories plus another 16 training GPUs—the local setup completed 320 updates in 24 hours of active training, while live web even with caching managed only 211, a roughly 52% increase in updates under the same compute budget.
| Metric | Live Web | Local Simulation | Notes |
|---|---|---|---|
| Average search wait per trajectory | ~186 s | ~0.8 s | ~233× |
| Median search-and-fetch wait | 90.23 s (with cache) | 1.34 s | Appendix D |
| 95th percentile | 170.19 s | 2.46 s | Appendix D |
| Updates in 24 hours of active training | 211 | 320 | 16 generation + 16 training GPUs |
These three sets of numbers describe tool waiting, scaling analysis, and update throughput respectively—don’t add them together, and don’t use any one of them to explain 99.6%.
4. Three-Domain Comparison: Can Simulated Training Transfer to the Live Web?
Once the cost comes down, the most natural question is whether quality suffers. Ai2’s approach is to run same-task comparisons rather than comparing aggregate scores from different experiments.
4.1 Experimental Design
They ran one pair of training experiments each for general web, finance, and science: one side practiced the same set of tasks in a local simulated environment, the other practiced in a live web environment, and both were finally tested on the live web, with 200 training updates. The key point of this design is “same tasks, same test environment,” so any score gap can be attributed to the training environment rather than to task difficulty or evaluation settings.
4.2 Same-Task Scores Across Three Domains
| Benchmark | Simulated-environment training | Live-web training | Difference |
|---|---|---|---|
| BrowseComp (general web) | 37.3 | 34.4 | +2.9 |
| FinSearchComp (finance) | 53.5 | 49.1 | +4.4 |
| FrontierScience-Research (science) | 23.7 | 22.7 | +1.0 |
| Average of the three | 38.2 | 35.4 | +2.8 |
In all three pairs, the first column is simulated training, and the averages come out to 38.2 versus 35.4. The conclusion is limited to these three same-task comparisons and the training scale reported here: it supports the claim that “a well-designed simulated environment can cultivate transferable research capability,” but it doesn’t mean this holds for every task. One caveat deserves special emphasis: these scores come from a different experiment than the ten-benchmark aggregate results of the released model, so citing the two side by side gives a misleading impression.
4.3 Transfer Depends on Corpus and Task Design
On the same set of general web questions, the paper compared three corpora: Wikipedia only, supporting materials only, and those plus per-question pre-crawled web pages. The third option scored higher on live-web BrowseComp — showing that the value of a simulated environment comes from corpus design, not from the “local” property itself.
At benchmark deployment time, nine of the benchmarks connect to the live web through Serper and Jina, while BrowseComp-Plus uses a fixed document set, so the two types of evaluation have different cost structures. This also explains why the left and right halves of Figure 1 should be read separately: the left side covers API costs for evaluation inference, while the right side — and Section 6.1 — is where the training search credits discussed in this article come in.
5. Deep Research Agent Quick Start: Reproducing This Cost Structure in Your Own Project
What you want to reproduce isn’t that 99.6% — it’s the three decisions behind it: swap the retrieval backend for a local index you can call over and over; reuse shared retrieval results before sampling; and replace manual spot-checking with an independent judging model.
5.1 A Minimal Example
First, get the judging step working with ten lines of code, and confirm the scoring cost for a single trace:
from openai import OpenAI
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1", # unified interface, makes it easy to switch the judging model
)
def judge(question: str, reference: str, answer: str) -> str:
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[
{"role": "system", "content": "对照参考答案判断学生答案是否给出同一结论,只输出 通过 或 不通过。"},
{"role": "user", "content": f"问题:{question}\n参考答案:{reference}\n学生答案:{answer}"},
],
temperature=0,
)
return resp.choices[0].message.content.strip()
print(judge("水豚体重差异的主要原因是什么?", "不同地区食物供给不同", "因为各地食物供给不一样"))
Tip: You don’t have to jump straight to the biggest judging model. Start with the free trial credits on APIYI apiyi.com, run 200 samples through a small or mid-size model, measure the accuracy and per-sample cost, then decide whether to upgrade.
5.2 Full Implementation
View the full code for cost recalculation and query deduplication
from openai import OpenAI
from urllib.parse import urlparse
client = OpenAI(
api_key="YOUR_API_KEY",
base_url="https://api.apiyi.com/v1", # Scoring and question generation share the same API key
)
USD_PER_1K = 0.50
def credit_cost(queries: int, usd_per_1k: float = USD_PER_1K) -> float:
"""Convert the number of queries into the equivalent search credit amount, rounded to two decimal places."""
return round(queries * usd_per_1k / 1000, 2)
def normalize(url: str) -> str:
"""Deduplicate by hostname and path, ignoring scheme and query parameters."""
p = urlparse(url)
return f"{p.netloc}{p.path}".rstrip("/")
def dedup_pages(pages: list[dict]) -> list[dict]:
seen, kept = set(), []
for page in pages:
key = normalize(page["url"])
if key in seen:
continue
seen.add(key)
kept.append(page)
return kept
def build_queries(seed: str, n: int = 4) -> list[str]:
resp = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": f"围绕「{seed}」生成 {n} 条互不重复的检索式,每行一条,不要编号。"}],
temperature=0.3,
)
return [q.strip("-• ").strip() for q in resp.choices[0].message.content.splitlines() if q.strip()][:n]
if __name__ == "__main__":
baseline = credit_cost(9_100_000) # About $4,550; the report uses about $4,548
build = credit_cost(35_030) # $17.52
saving = (baseline - build) / baseline * 100
print(f"基线 {baseline} 美元 / 建库 {build} 美元 / 降幅 {saving:.1f}%")
# Replace with your own numbers: number of training trajectories × max tool calls per trajectory
mine = credit_cost(32 * 150 * 8 * 300)
print(f"若全部外包,你的搜索积分约为 {mine} 美元")
Once you run this, you’ll get two numbers: one is the recalculated result using the report’s accounting basis, and the other is the counterfactual amount for your own sampling configuration. The latter is the denominator you should use when budgeting; the former is only there to check whether the formula was written correctly. If you also need to compare the cost of different scoring models, you can swap the model name on APIYI apiyi.com and rerun the same batch of samples.
6. Applicable Limits and Common Misconceptions About Search API Costs
Q1: Does 99.6% mean total training cost dropped by 99.6%?
No. It covers just one line item — third-party search query credits. GPU, grading models, page fetching, and storage aren’t in it. Converting search fees by call volume doesn’t put a price on any of those items, so you can’t back the total bill out of that percentage.
Q2: Is $17.52 what I’d actually pay if I followed along?
That’s the credit-equivalent amount calculated at $0.50 per thousand calls. What you actually pay depends on your plan’s minimum purchase volume and tier, your existing balance, the credit validity period, and taxes. At very small scale, you might not even get through the smallest recharge pack.
Q3: Can I just drop 99.6% into a project budget?
I’d recompute it. The denominator is “your number of trajectories × the per-trajectory tool-call cap × the number of updates,” and the numerator is the number of queries you actually issue when building the index. You need to plug in your own configuration and unit price before the ratio means anything in your scenario.
Q4: Does a local index make the model worse at research?
The three same-question comparisons don’t support that worry — the simulated-training side came out slightly ahead on all three. But that conclusion is limited to this training scale and these three task types, and transfer performance depends on how the corpus is designed. The version that added per-question pre-fetched web pages scored higher.
Q5: Can you still save money after deployment?
The training-phase savings come from “retrieval isn’t billed per call.” After deployment, if you rely on real-time search, inference-time search and page-fetching costs will shift with the number of calls per question — that’s a different basis entirely. You can compare the per-test-question inference cost on the left side of Figure 1 in the report against the fixed cost of running your own index, then decide.
7. Acceptance: A Three-Minute Self-Check on Whether You Applied This Conversion Correctly
The check takes just three steps. First, confirm that the numerator and denominator use the same unit price and the same billing item — if either side has page-scraping fees or model fees mixed in, the ratio immediately becomes distorted. Second, confirm that the denominator is “per-successful-search, billed per call” rather than the billed request count after caching; online setups with high cache hit rates will significantly shrink this denominator. Third, confirm that you haven’t treated this 99.6% as the overall training cost reduction — if GPU hours and this percentage show up in the same passage, you’ve basically crammed two separate line items into one parenthesis.
Once you’ve done these three steps, you’ll arrive at a plainer but more usable conclusion: replacing a per-call billed retrieval step with a reusable local index changes the external query spend during training from “growing linearly with sampling” to “a fixed cost from a one-time index build”; the trade-off is the one-time investment in index construction, indexing, storage, and corpus design, plus the fact that the ceiling on transfer performance is determined by corpus quality. This conclusion is more worth remembering than 99.6%, because you can carry it into your own project and recompute it.
If you need to quickly measure the per-evaluation and retrieval cost in your own scenario, you can run a small batch of samples through APIYI’s apiyi.com compatible interface, then decide on index size and sampling density.
Author: APIYI Technical Team
Technical Inquiries: Feel free to contact us via the APIYI website homepage; more materials are available at the docs.apiyi.com documentation center
Sources: Ai2 technical report “DR Tulu 2: Scaling Simulated Environments for Deep Research Agents,” link: allenai.org/papers/dr-tulu2; Ai2 announcement: allenai.org/blog/dr-tulu2; model card: huggingface.co/allenai/DR-Tulu2-4B; Serper public pricing: serper.dev
