December 1, 2026
# Web search for reinforcement learning: how to keep search on during post-training
Most labs switch web search off during RL post-training because a live search tool lets the policy look up answers that were published after the task was written. This guide covers how that leakage happens, the three ways research teams give RL agents a search tool today, what a dated web snapshot changes, and how to wire one into a rollout.
## Why labs turn search off during RL
Reinforcement learning with verifiable rewards (RLVR[RLVR]) needs tasks whose answers are already known: a bug with a merged fix, a forecast with a resolved outcome, a question with a checked answer. That is what makes the reward computable. It is also what makes a live search tool dangerous. If the answer exists on the web today, a policy with search can find it, copy it, and collect the reward without learning the skill the task was meant to teach. That is reward hacking[reward hacking] through retrieval.
The effect is large on current models. In a June 2026 audit of SWE-bench Pro runs, Cursor found[Cursor found] that 63% of successful Opus 4.8 Max resolutions retrieved the fix rather than derived it, most often by finding the merged pull request on the public web. When Cursor sealed git history and restricted internet access, Opus 4.8 Max fell from 87.1% to 73.0% and Cursor's own Composer 2.5 fell from 74.7% to 54.0%. An eval is one rollout; an RL run repeats the same opportunity millions of times, and the policy is optimized toward whatever earns reward.
Filtering search results by publication date does not close the gap. An ACL 2026 study[ACL 2026 study] of date-filtered web retrieval found major leakage for 71% and 81% of forecasting questions on the two engines it tested, with the answer revealed outright for 41% and 55%. A page published before the cutoff can be edited after it, and a date filter returns the edited version.
Turning search off has its own cost. A model trained without a search tool never practices the search behavior it will use in production, so training reward stops predicting deployed quality. Parallel's model labs page[model labs page] puts the share of real queries that need the web at 15 to 20%.
## Three ways teams give RL agents a search tool today
Published work on search agents trained with RL falls into three patterns.
### A local corpus
Search-R1[Search-R1] interleaves reasoning with retrieval calls and trains with outcome-only rewards such as exact match, but its search space is a local Wikipedia retriever. A fixed corpus can't leak anything published later, it costs nothing per call, and it is fast. The trade-off is coverage and realism: a frozen encyclopedia dump doesn't look like the open web, and an agent tuned to it has to adapt to real search results at deployment.
### A simulated search engine
ZeroSearch[ZeroSearch] replaces the search engine with an LLM fine-tuned to generate relevant and noisy documents, then makes the documents worse over the course of training as a curriculum. The authors' motivation was cost: they estimate about $587 in SerpAPI fees for roughly 64,000 queries in one training run, against $18 to $71 of GPU time for the simulator. Simulation also can't leak future pages. It can still invent facts, and the agent never sees the structure, noise, and failure modes of real search results.
### The live web
DeepResearcher[DeepResearcher] trains in the real web environment with a search API and a text browser, and reports that this matters: it outperformed RAG-based RL agents by up to 7.2 points and prompt-based baselines by up to 28.9. Live search gives the most realistic training signal. It is also the pattern where leakage is hardest to control, since nothing stops the policy from finding the resolved answer.
## What a dated web snapshot changes
A dated snapshot, also called point-in-time search[point-in-time search], keeps the realism of the live web and removes the leak. Every search and every page read is answered from stored copies captured at or before a cutoff, so the policy sees the web as it stood when the task was still open. Later pages and later edits to older pages don't exist from the policy's point of view.
| Approach | Leakage risk | Realism | Cost per call | Same tool at inference |
|---|---|---|---|---|
| Local corpus (Search-R1) | None | Low | Near zero | No |
| Simulated search (ZeroSearch) | None, but can invent facts | Medium | GPU time | No |
| Live web search (DeepResearcher) | High | High | API price | Yes |
| Dated web snapshot | Low, if capture time is enforced | High | API price | Yes, when the API is the same |
The last column is the one that tends to get overlooked. If the snapshot runs on the same search API, result format, and excerpt length the model will call in production, there is no train-serve mismatch to adapt across.
## What to require from a search tool for RL
- - **One cutoff across search and page reads.** If search is pinned to a date but the agent's fetch tool reads the live page, the leak moves to the fetch step. Both calls need the same cutoff.
- - **Capture time, not publish date.** The cutoff has to apply to when the index stored a copy of the page. Publication dates are self-reported and miss later edits.
- - **Coverage at the cutoff.** Leakage rewards the policy for answers it shouldn't have, and missing history penalizes it for evidence it had no way to find. Ask a vendor how often the needed evidence is present at a past cutoff in your domains, not only whether leaks are blocked.
- - **Latency.** A rollout batch waits on its slowest tool call, and slow search leaves GPUs idle.
- - **Burst capacity.** Request volume spikes when a batch of rollouts starts. Rate limits that suit steady inference traffic can throttle a training run.
- - **Price per request at volume.** One rollout can make dozens of searches and a run can make millions.
## Wiring a dated snapshot into a rollout
With Parallel Lookback[Parallel Lookback], the cutoff is a single field, `as_of`, inside the fetch policy of a normal Search or Extract request. Store each task with the date it opened, and pass that date on every tool call the policy makes during the rollout.
123456789101112131415161718192021222324252627import os
from parallel import Parallel
client = Parallel(api_key=os.environ["PARALLEL_API_KEY"])
def make_tools(task):
as_of = task["opened_at"] # e.g. "2026-03-31" or "2026-03-31T14:00:00Z"
policy = {"fetch_policy": {"as_of": as_of}}
def web_search(objective, queries):
res = client.search(
mode="fast",
objective=objective,
search_queries=queries,
advanced_settings={"max_results": 10, **policy},
)
return [(r.url, r.title, r.excerpts) for r in res.results]
def web_fetch(urls, objective):
res = client.extract(
urls=urls,
objective=objective,
advanced_settings=policy,
)
return [(r.url, r.excerpts) for r in res.results]
return web_search, web_fetch``` import osfrom parallel import Parallel client = Parallel(api_key=os.environ["PARALLEL_API_KEY"]) def make_tools(task): as_of = task["opened_at"] # e.g. "2026-03-31" or "2026-03-31T14:00:00Z" policy = {"fetch_policy": {"as_of": as_of}} def web_search(objective, queries): res = client.search( mode="fast", objective=objective, search_queries=queries, advanced_settings={"max_results": 10, **policy}, ) return [(r.url, r.title, r.excerpts) for r in res.results] def web_fetch(urls, objective): res = client.extract( urls=urls, objective=objective, advanced_settings=policy, ) return [(r.url, r.excerpts) for r in res.results] return web_search, web_fetch``` The reward is computed outside the snapshot. For a coding task, run the agent's patch against the repository's test suite at the commit before the fix. For a forecast, score the probability against the resolved outcome. The grader can read the live web; only the policy is held to the cutoff.
Three details from the Lookback docs matter in practice. The `as_of` value is rounded down to the hour in UTC, and a bare date means 00:00 UTC, so `2026-03-31` excludes copies captured later that day. Pages with no stored copy from before the cutoff are left out, so a search can return fewer results than `max_results`, and Extract lists the URL under `errors`. And neither endpoint fetches the live page when `as_of` is set.
Parallel's launch post reports an internal test of 22,455 searches across eight verticals, each with a cutoff: zero confirmed leaks in 224,550 results, and the evidence needed to answer present at the cutoff for 94% to 98% of questions depending on the vertical. Lookback's history currently reaches back about three years. The benchmark is Parallel's own, so run the same check on a sample of your tasks before a full run. Lookback is priced at $1 per 1,000 requests and needs access from the Parallel team[Parallel team].
## Auditing a run for leakage
No snapshot removes the need to check. Cursor's method is a good template: an agent reads trajectories and flags the ones where the policy found the answer rather than worked it out. For search-equipped RL, sample rollouts with high reward and check three things: whether any result or page read carries a date after the cutoff, whether the final answer appears verbatim in retrieved text, and whether the policy's queries name the outcome it was asked to predict. Track reward per task over the run, too: a task whose reward jumps from near zero to near perfect in a few steps is worth reading by hand.
## FAQ
**Can I just use a publication-date filter on a normal search API?**
Not for training. A date filter keeps pages by their stated publish date but returns the current version of each page, so edits made after the cutoff still reach the policy. The ACL 2026 study above measured how often that happens.
**Does the model's own training data leak answers too?**
Yes, and a search snapshot can't fix that. If the base model saw the resolution during pretraining, it can recall it without searching. Pick tasks that resolved after the base model's training cutoff, or measure how well the model does with no tools to estimate how much it already knows.
**Which RL algorithm works with a search tool?**
Search is part of the environment, so the choice of algorithm is independent of it. Search-R1 and ZeroSearch report results with PPO and GRPO, and ZeroSearch also with REINFORCE. Mask retrieved tokens out of the loss so the policy isn't trained to reproduce search results.
**Which search APIs offer point-in-time search?**
Parallel, Exa, Perplexity, and Keenable each have a version, with different access terms, history depth, and prices. Our comparison of point-in-time search APIs[comparison of point-in-time search APIs] covers the differences.
Related reading: Point-in-time search APIs compared[Point-in-time search APIs compared] / How to backtest AI agents without look-ahead bias[How to backtest AI agents without look-ahead bias] / RL environment[RL environment] / Parallel for Model Labs[Parallel for Model Labs]