Skip to main content

PatentBench

The First Reproducible Benchmark for Patent Prosecution AI

arXiv HuggingFace License Leaderboard


Overview

PatentBench is the first open, reproducible benchmark for evaluating AI systems on patent prosecution tasks. Inspired by SWE-bench for software engineering, PatentBench measures whether AI can perform the real work of patent attorneys -- from parsing USPTO Office Actions to drafting legally sound arguments under 35 U.S.C. sections 101, 102, 103, and 112.

Patent prosecution has remained one of the last untouched domains for AI benchmarking despite being a $15B+ annual market. Existing evaluations are ad hoc, non-reproducible, and disconnected from the economic reality of patent practice. PatentBench changes this.

Why PatentBench?

  • Real tasks, not toy problems. Every test case derives from actual USPTO proceedings
  • Economically grounded. Tasks map to billable activities at patent law firms
  • Anti-hallucination first. Poison-pill MPEP citations and fabricated case law detection built in
  • Glass Box Standard. Full transparency on data provenance, evaluation methodology, and scoring

Benchmark Structure

5 Domains

Domain Description Example Tasks
Administration Deadline computation, fee calculation, entity status Calculate response deadline from OA mailing date
Drafting Claim drafting, specification writing, amendment preparation Draft independent claim from invention disclosure
Prosecution Office Action response, rejection traversal, interviews Argue against 103 obviousness rejection
Analytics Portfolio analysis, prior art landscape, claim mapping Identify claim overlap across patent family
Prior Art Search strategy, reference analysis, relevance ranking Evaluate novelty of claims against prior art set

7,200 Total Test Cases

PatentBench contains 7,200 expert-curated test cases spanning all five domains. The initial release, PatentBench-Mini, includes 300 representative cases for rapid evaluation.

Subset Cases Purpose
PatentBench-Full 7,200 Complete evaluation
PatentBench-Mini 300 Quick iteration and development
PatentBench-OA 1,800 Office Action response focus
PatentBench-Draft 1,200 Drafting focus

5 Difficulty Tiers

Tier Level Equivalent Examples
1 Paralegal 0-1 years Deadline calculation, fee lookup, form filling
2 Junior Associate 1-3 years OA parsing, straightforward 112 responses
3 Senior Associate 3-6 years 103 arguments, claim amendments, interview prep
4 Junior Partner 6-10 years Complex multi-rejection OAs, continuation strategy
5 Senior Partner 10+ years Portfolio strategy, IPR defense, prosecution history estoppel

4-Layer Evaluation

PatentBench uses a rigorous 4-layer evaluation framework:

  1. Deterministic Evaluation -- Binary correctness for objective tasks (deadlines, fees, format compliance)
  2. LLM-as-Judge -- Calibrated rubric-based scoring for subjective quality (legal accuracy, argument strength, completeness)
  3. Comparative Evaluation -- Blind side-by-side ranking of model outputs by domain experts
  4. Human Calibration -- Expert attorney scores on a subset to anchor and validate automated metrics

Quick Start

Installation

pip install patentbench

Or from source:

git clone https://github.com/rhahn28/patentbench.git
cd patentbench
pip install -e ".[dev]"

Run the Benchmark

# Run PatentBench-Mini with a specific model
patentbench run --model openai:gpt-4o --subset mini

# Run a specific domain and tier
patentbench run --model anthropic:claude-sonnet-4 --domain prosecution --tier 3

# Run with ABIGAIL
patentbench run --model abigail --subset mini --api-key YOUR_KEY

Python API

from patentbench import BenchmarkRunner, DataLoader
from patentbench.models import OpenAIAdapter

# Load test cases
loader = DataLoader("data/mini")
cases = loader.load(domain="prosecution", tier=3)

# Configure model
model = OpenAIAdapter(model_name="gpt-4o")

# Run benchmark
runner = BenchmarkRunner(model=model, cases=cases)
results = runner.run()

# Print results
print(results.summary())

Leaderboard

Results on PatentBench-Mini (300 cases). Last updated: 2026-03-19.

System Classification Timeline Fees Deadlines Layer 1 Overall
ABIGAIL v3 100.0% 100.0% 100.0% 100.0% 100.0%
ABIGAIL v3 (Variant B) 92.7% 94.2% 100.0% 99.0% 95.9%

Layer 1 (deterministic) results only. Layer 2-4 evaluation in progress. Submit your system for evaluation — see METHODOLOGY.md. Underlying model architectures are not disclosed; results measure system-level output quality.

Glass Box Standard

PatentBench adheres to the Glass Box Standard for AI evaluation transparency:

  1. Data Provenance -- Every test case traces back to a specific USPTO application number, Office Action date, and MPEP section
  2. Evaluation Reproducibility -- Deterministic scoring with pinned LLM-judge versions and published rubrics
  3. Contamination Prevention -- Held-out test cases never published in training data; canary strings embedded
  4. Economic Validity -- Tasks map to real billable activities with known market rates
  5. Human Calibration -- Expert attorney scores anchor all automated metrics with published inter-rater reliability

Anti-Hallucination Testing

PatentBench includes dedicated anti-hallucination checks:

  • Poison Pill MPEP Citations -- Fabricated MPEP section numbers inserted to detect confabulation
  • Case Law Verification -- All cited cases validated against published USPTO and Federal Circuit decisions
  • Statute Accuracy -- 35 U.S.C. section references verified against current patent law
  • Examiner Name Verification -- Cross-referenced against USPTO PEDS records

Citation

@article{patentbench2026,
  title={PatentBench: A Reproducible Benchmark for Patent Prosecution AI},
  author={Salt Holdings LLC},
  journal={arXiv preprint arXiv:XXXX.XXXXX},
  year={2026},
  url={https://github.com/rhahn28/patentbench}
}

Links

Contributing

See CONTRIBUTING.md for guidelines on contributing test cases, rubrics, and model adapters.

License

Apache 2.0. See LICENSE.

Copyright 2026 Salt Holdings LLC.

Metadata

Release files for patentbench 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for patentbench 0.2.0
File Size Uploaded
patentbench-0.2.0.tar.gz 812.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for patentbench 0.2.0
File Interpreter ABI Platform
patentbench-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 1.6 MB

Release files / patentbench-0.2.0.tar.gz

Download URL patentbench-0.2.0.tar.gz
Size 812.6 kB
Tags Source
SHA-256 checksum
How to use checksums
290a984e462aa90a107710e147f932ab5b68e32d72b44f255f5ab43cdb6915ac
BLAKE2b-256 checksum
How to use checksums
c45c2fbb5173f1c863f986ec7187bb5ce4186e6d5096d3e1687d0568197f2e0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release files / patentbench-0.2.0-py3-none-any.whl

Download URL patentbench-0.2.0-py3-none-any.whl
Size 797.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ed4b057382544d01828dd1737fa56b25000180e4a091fe7d9e239bd40bc4ea25
BLAKE2b-256 checksum
How to use checksums
f476ed6f8f89b95e65490b9c4cfee75e73684dcbf04ea4841a0bd81509197c72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.1

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page