Not Just the Verdict: PatEx-Gym Scores the Whole Patent Search Process
Final novelty decision accuracy cannot stand in for examination quality: PatEx-Gym turns the whole search-reasoning-assessment trajectory into something scoreable, then uses layered quality scores to filter trainable trajectories.
On this page
The IT lead at a patent agency must decide this quarter whether to hand prior-art search to an automated tool. She has several hundred applications, and each one needs references that could affect novelty - the earlier public disclosures used to judge whether a technology is new - dug out of a sea of patents and papers, then written into an Office Action, the examiner's written statement of reasons. Her current check is to test the tool on historical cases and see whether its final novelty verdict matches the human one; if it matches often enough, she calls it usable. That misses the most important thing: whether an application is granted is decided not by that final call but by the whole chain before it - how sparse clues become references, how the query is refined round after round, how evidence is verified, and how the reasoning lands on the page. A tool can guess the verdict right while the documents it cites do not hold up. That is exactly what paper [1] keeps stressing: decision accuracy alone does not capture examination quality.
The Default: A Final-Verdict Check Cannot Measure Examination Quality
Start with why existing evaluation falls short. Patent examination asks an agent, meaning a program that calls tools on its own and works in multiple steps, to discover sparse prior art across heterogeneous scientific and technical domains, iteratively refine queries, inspect technical evidence, and produce a novelty assessment documented in an Office Action. Existing benchmarks, however, mostly hand over a static, limited candidate set and ask a system to rank that small pool. The paper argues that this leaves the full search-reasoning-assessment process largely unexplored: the act of hunting, the strategy of rewording a query, and whether evidence was actually read all fall outside the frame.
The paper groups three counterintuitive findings that strike directly at judging by the verdict: strong models still face substantial prior-art discovery challenges; decision accuracy alone does not capture examination quality; and broader prior-art discovery does not always translate into better reference selection. The third stings most, because retrieving more documents can simply pile up noise while the few that end up cited in the opinion are the wrong ones. All three are claims the paper states explicitly, not inferences I am drawing for it.
For Wei He, this means her answer-matching test systematically waves through one kind of tool: a system that guesses the verdict right, runs a chaotic search, and cites documents that will not survive scrutiny. By the same test, a tool that builds a solid evidence chain yet occasionally disagrees with a human on the final call gets underrated. To accept such a system, the process itself has to become measurable and accountable, not just a final right-or-wrong bit.
What Was Built: One Line From Benchmark to Synthetic Data to Training
The framework is called PatEx-Gym, and the paper calls it the first for developing and evaluating agents for patent examination. It joins three things that are usually separate into one line: a benchmark, scalable trajectory synthesis, and supervised agent training, respectively PatEx-Bench, PASS and PatEx-Agent. Its harness runtime supports iterative search, document visits, reasoning and Office Action generation, effectively moving the examiner whole workbench into the evaluation loop. A trajectory here means the full string of actions from the first query to the delivered opinion.
Look first at how the benchmark is built. PatEx-Bench contains 1,000 real examination tasks drawn from the first examiner-authored Office Actions in public USPTO prosecution records (not synthetic labels), spanning all eight IPC sections, with 2,946 examiner-cited patents and 178 examiner-cited papers as ground-truth references [1]. The two corpora, Patent-1M and Paper-52K, come from Google Patent and Google Scholar and contain 1,011,901 unique patents and 52,105 scientific papers after deduplication; the paper also verifies that every oracle reference for each task is retrievable from these two corpora [1]. Table 1 compares it with older benchmarks along five columns: Evidence Pool (searchable candidates), Reason (LLM reasoning beyond retrieval), OA (Office Action generation), Agentic (a harness for iterative tool use and multi-step execution), and NPL (non-patent literature support). Older benchmarks have far smaller pools (PAR4PC 8 candidates, PatRe 10 references, FiNE-Patents 1 given document), while PatEx-Bench offers 1M + 52K and ticks all five [1]. The NTCIR Patent Retrieval and CLEF-IP line advanced lexical retrieval, query expansion, cross-lingual matching and patent-specific ranking, but evaluates ranking a small pool, not the whole trajectory [1].
The second piece, PASS, is an annotation-free trajectory synthesis framework. It exploits document visits as implicit relevance signals, treating a document being opened as a rough stand-in for usefulness without human labels, and as evidence-acquisition anchors, then models intra-turn query behavior, inter-turn search progression, and trajectory-level evidence and outcome quality, yielding the training set PatEx-SynData [1]. The third piece, PatEx-Agent, is trained by supervised fine-tuning on those trajectories with Qwen3.5-4B as the backbone and GLM-5.3 as the teacher model, for 3 epochs on 8 NVIDIA H20 GPUs; the paper positions it as a lightweight baseline [1]. Together the three close a loop from posing tasks, to manufacturing training data, to producing a runnable baseline.
How It Works: Score a Trajectory in Layers, Then Keep the Good Ones
How PASS turns process into computable scores is the most interesting part of the method. It assigns each trajectory a hierarchical quality score with four components. The table below lists what each measures and how, following the paper.
| Component | What it measures | How it is computed |
|---|---|---|
| Intra-turn score s_intra | Efficiency at turning retrieved candidates into inspections | NDCG over visited documents against the search results |
| Inter-turn score s_inter | Whether the query meaningfully advances with new information | Checks whether consecutive queries truly shift, not just rephrase |
| Evidence score s_evi | Whether every selected reference is grounded | Each citation must land in content the agent actually inspected |
| Outcome score s_out | Quality of the final Office Action | An LLM judges two things without a ground-truth OA: whether each claim is explicitly resolved with justification, and whether references supporting statutory rejections are grounded in the selected evidence |
How the Office Action itself is scored is also spelled out. A format score F_i in [0,1] checks file presence and structural validity. Then three distinct LLM judges (Claude-Opus-4.7, Gemini-3.5-Flash, GPT-5.5, temperature 0) independently score the generated opinion against the ground-truth one from 1 to 10 along five dimensions: soundness, clarity, constructiveness, completeness and language style; the scores are averaged across judges and dimensions and normalized to Q_i in [0,1], with the final Score = (1/6 F_i + 5/6 Q_i) x 10 [1]. The paper also reports inter-judge agreement of Kendall's W = 0.849, so the three judges rank quality quite consistently [1]. Decision Accuracy and Statute F1 are also reported separately, measuring the decision and the statutory grounds respectively. These weights, dimensions and ranges all come from the paper, and I do not rescale them.
With the layered scores in hand, PASS filters trajectories in two stages: first a strict rejection gate requiring each trajectory to deliver both the Office Action and the reference set within the allowed turn budget, discarding any that miss a condition; then a pairwise tournament over the four-dimensional scores, where a trajectory wins a pair only if it beats the other on a strict majority of the four components, and ranking by total pairwise wins [1]. The paper actually gives the whole funnel here, so there is no missing figure: 10K seed patents yield 10K teacher-generated rollouts, 6,321 survive strict rejection, and the top roughly 3K by tournament score become PatEx-SynData [1]. The roughly 3K is therefore not a bare 'top' but the last stage of 10K to 6,321 to roughly 3K. Section 5.4.1 also runs a control with 3K trajectories sampled randomly from the same pool: random sampling gives Select-R 11.96, while PASS-filtered data reaches 18.24 [1].
'Visited is not the same as used correctly' is clearest in the two real trajectories of Section 5.5, so no invented example is needed. The paper measures examiner-cited references along three stages: Search-R (retrieved), Visit-R (actually opened), Select-R (finally written into the opinion). In Table 2 the strongest model, Claude-Opus-5-max, scores 48.7 / 35.6 / 32.4, dropping at each stage; DeepSeek-V4-Flash-0731 reaches Search-R 44.1 but Select-R only 24.7 [1]. Two case studies reach the same 'Non-Final Rejection' verdict through opposite processes. For application 17/719,110 (teleoperator guidance), BM25 plus semantic search surfaced two oracle references, Groz and von Reventlow; the agent opened both, read claims and descriptions, assigned them distinct evidentiary roles (feedback-driven model updates and action ranking), and wrote them into a § 103 rejection as primary and secondary references, with funnel recall 100 / 100 / 100 [1]. For application 19/452,413 (FHE-encrypted model and smart contract), the oracle reference smartFHE was retrieved at rank 9 but never visited or selected; the agent used Kocsis, Rosen, and Guo as alternative evidence, reached the same Non-Final Rejection but omitted the § 101 ground present in the ground truth, and scored 100 / 0 / 0 [1]. An acceptance test that collects only the final verdict would rate these two trajectories equally good.
My judgment, not a measurement from the paper: under the four components defined in Section 4.1, the gap between these two trajectories would land mainly on s_evi and s_out - B retrieved the oracle reference but never visited it, so its citation set cannot be grounded in content actually read, and the opinion misses a statutory ground; A shows substantive query progression and every citation pointing back to a read passage. Section 5.5 reports only funnel recall, the decision, and the statutory grounds; it gives no s_intra / s_inter / s_evi / s_out values for these two trajectories, so I will not invent four scores here, only say where the definitions would separate them.
What the Numbers Say: Scale, Scoring Rules and a Lightweight Baseline
Keep the paper figures in two piles - evaluation protocol and main results - so scale is not mistaken for effect. On protocol: Table 2 reports Score (0-10), Decision Accuracy (Dec.), Statute F1 (Stat.) and three-stage recall Search-R / Visit-R / Select-R, with 3 LLM judges (Claude-Opus-4.7, Gemini-3.5-Flash, GPT-5.5, temperature 0, inter-judge Kendall's W = 0.849), plus 12 retrievers evaluated separately on Patent-1M [1]. In Table 3 the best dense retriever, PatEmbed-Large, reaches R@100 45.98, the best sparse one SPLADE-v3 29.25, and PatEx-Agent raises R@100 from 24.06 to 36.36 over its backbone [1]. All three counterintuitive findings have numbers behind them: (1) strong models still struggle to find prior art - even the best Claude-Opus-5-max reaches only Search-R 48.7 and Select-R 32.4, and every model stays below 33 on Select-R; (2) decision accuracy does not capture quality - Qwen3.6-27B has the highest Dec. at 87.6% but Score 5.96 against 7.34 and Select-R 19.5 against 32.4, with Kendall's tau of only 0.550 between Dec. and Score; (3) broader discovery does not mean better selection - DeepSeek-V4-Flash-0731 reaches Search-R 44.1 but Select-R only 24.7 [1].
On main results: the PatEx-Agent-4B row of Table 2 is Score 5.41, Dec. 82.9, Stat. 45.7, Search-R 38.7, Visit-R 23.2, Select-R 18.2; its Qwen3.5-4B backbone is 3.79 / 69.7 / 38.9 / 23.2 / 12.1 / 12.0, so SFT lifts Score by 42.7%, Search-R by 66.8% and Select-R by 51.7% [1]. Sections 1 and 6 phrase this as performing comparably to agents of roughly 30B parameters in prior-art discovery and as Search-R on par with Qwen3.7-Max - a relative claim of the paper's. Look at Table 2 cell by cell and Qwen3.7-Max-xhigh has Search-R 36.1 against PatEx-Agent's 38.7, slightly higher rather than exactly on par [1]. There is also a control for the PASS filtering itself: training on 3K trajectories sampled randomly from the same pool drops R@10 from 14.9 to 11.6 and Select-R from 12.03 to 11.96, while the PASS-selected 3K raises Select-R to 18.24 (+51.6%) [1]. On NPL (scientific papers), PatEx-Agent reaches Paper Search-R 69.4, nearly Qwen3.8-Max's 69.6, but Visit-R 37.6 and Select-R 27.7 - another stage-by-stage decline [1]. So 4B matching 30B should not be read as examination quality being solved.
| Item | Reported figure | Note |
|---|---|---|
| Examination tasks (PatEx-Bench) | 1,000 | 8 IPC sections; 2,946 cited patents and 178 cited papers as ground truth [1] |
| Patent-1M / Paper-52K | 1,011,901 / 52,105 | Unique documents after deduplication [1] |
| Framework components | 3 | PatEx-Bench / PASS / PatEx-Agent [1] |
| Judges / dimensions / agreement | 3 / 5 / W=0.849 | 1-10 scores; Claude-Opus-4.7, Gemini-3.5-Flash, GPT-5.5 [1] |
| Format : quality weight | 1 : 5 | Score = (1/6 F + 5/6 Q) x 10 [1] |
| Trajectory filtering funnel | 10K -> 6,321 -> ~3K | Teacher rollouts -> after strict rejection -> tournament top [1] |
| Evaluated retrievers | 12 | 4 sparse + 8 dense; best Table 3 R@100 is PatEmbed-Large 45.98 [1] |
| PatEx-Agent-4B Score / Search-R | 5.41 / 38.7 | Qwen3.5-4B backbone: 3.79 / 23.2 [1] |
| Claude-Opus-5-max Search/Visit/Select-R | 48.7 / 35.6 / 32.4 | Best in Table 2, still declining by stage [1] |
Where the Method Stops
Being clear about scope matters more than memorizing figures like 1M or 52K. By the paper's own account, the boundaries are roughly these.
- It evaluates the search-reasoning-assessment trajectory on this benchmark, not legal correctness in real examination, so Office Actions still need professional review;
- Conclusions rest on 1K tasks, over 1M patents and 52K papers, so a different jurisdiction, language or technical domain needs fresh validation;
- PASS uses document visits as implicit relevance signals, an annotation-free compromise where visiting is not the same as understanding, and the evidence score only guarantees citations land in visited documents; the two Section 5.5 trajectories (recall 100/100/100 versus 100/0/0) are a concrete instance of that gap [1];
- Office Action scoring depends on three LLM judges making subjective calls from 1 to 10, and weighting format to quality at one share to five shares is a human-set convention of the paper;
- The roughly 3K trajectories are the tournament top selected from 10K teacher rollouts after strict rejection leaves 6,321, and that selection itself shapes the bias of PatEx-SynData; Section 5.4.1 uses a control of 3K trajectories sampled randomly from the same pool to show the filtering helps (random Select-R 11.96 versus PASS-selected 18.24), but the paper does not discuss the distributional bias of the discarded rollouts [1];
- The paper keeps saying decision accuracy does not capture quality and broader search does not mean better selection, so it offers a finer evaluation lens, not a claim that automated examination is ready.
In one line: this framework applies when you are developing or evaluating a patent-examination agent that finds prior art on its own and you are willing to score the entire trajectory. It answers how to measure the process and how to filter trainable data out of it. If you want a tool that issues a legal conclusion and can sign off independently, or you only need to rank a small pool of candidate documents, it cannot help you; in that case, writing hard requirements for jurisdiction, review responsibility and evidence traceability is more practical than chasing a prettier recall number [1].
