Research › AI Safety

- Viper Consulting™ Technical Report VC-TR-2026-03
- AI Safety series
- Version 1.0
- Not peer reviewed
Measuring Accuracy and Human-in-the-Loop Review for AI Assistance in Patent Publication Quality Checks
Viper Consulting™ Research
Viper Consulting™ (Epstein Investment Group LLC), Arlington, Virginia
Abstract
We report how we measure Viper PubPro™, a working prototype that runs quality checks on patent documents before publication. Accuracy is measured on a seeded-error gold set: 3,265 test copies of 79 public US patent documents, each with one known error of 50 types. Overall recall is 99.1% (3,236 of 3,265) and conservative precision is 98.1%; the weakest checks are figure coverage (87.5% recall) and claim antecedent basis (67.7% lower-bound precision). On December 3, 2026 we regenerated the gold set (identical results), confirmed byte-identical outputs on all 79 documents, and ran 474 tamper trials against the hash-chained audit log: every edit, deletion, reordering and change of actor was detected, while truncating the last entry was not. We explain why the checks are deterministic, why the optional language-model layer can only explain and never edit, and what this means for government use of AI.
Keywords: human in the loop; evaluation; gold set; precision and recall; audit log; patent publication; government AI
1. Introduction
Before a patent application or grant is published, its text is checked for problems that would otherwise reach print: claims numbered out of order, a dependent claim that refers to a later claim, a figure that is never described, broken characters, a missing abstract, an amendment entered twice. These checks are tedious for people and attractive to automate, and language models are an obvious candidate. In a government setting, the questions that matter are not only "how accurate is it?" but also "who decides?", "can we show what happened?" and "what happens when the model is wrong?". OMB memorandum M-25-21 [1] asks agencies using high-impact AI to test before deployment against expected real-world outcomes, to monitor with periodic human review, and to keep human oversight, intervention and accountability.
Viper PubPro™ is a working prototype of a patent publication pipeline that we built and measured on public patent data. This report describes how we measure its quality checks and how its review and audit design keeps a person in charge of every decision. We report the gold-set results, an experiment run for this report on December 3, 2026 on determinism and audit-log tamper evidence, and the limits of both. PubPro is not affiliated with or endorsed by the USPTO, and no part of this report describes a deployment at any agency.
2. System design
Show the data table for Figure 1
| Stage | Role |
|---|---|
| Ingest | hardened XML reader |
| Checks | 12 deterministic checks |
| CPC assist | suggestions only |
| Compose | byte-identical proofs |
| Model layer | optional, off by default; explains only |
| Review queue | named person accepts or rejects |
PubPro runs six stages (Figure 1). It reads patent full-text XML with a hardened reader (no document type definitions or entity processing) into one normalized model; runs 12 quality checks; suggests CPC classification subclasses; composes publication-ready XML and HTML and PDF proofs; optionally asks a language model to explain a finding; and puts every finding in a review queue. Three design choices matter for safety.
The checks are deterministic. Each of the 12 checks is a fixed, documented rule over the normalized document. The same input gives the same findings, and composition gives byte-identical output; composition never edits a text node. A deterministic check can be measured once and trusted to behave the same way the next day, and its every finding carries the evidence and the rule that produced it.
The language-model layer can only explain. The optional layer is off by default. When enabled, it is asked to explain in two or three sentences why a flagged passage may be a problem and what the reviewer should check, and it is told not to rewrite, correct or propose replacement text for the patent document. It is limited to findings from two checks (abstract form and claim antecedent basis). It refuses a provider that does not declare an American-built model unless the deployer overrides that explicitly. It never sends unpublished application text to a provider that is outside the deployment boundary. Every call is written to the audit log with SHA-256 hashes of the prompt and the answer, and every suggestion waits in the review queue for a person.
A named person decides, and the log can show it. Each finding and each suggestion is a review item that only a named reviewer can accept (a real problem) or reject (a false alarm); an item cannot be decided twice. Every pipeline step and every decision is written to a hash-chained audit log: each entry records who, what and when, the SHA-256 of the input and the output, and the hash of the entry before it [2]. A verifier recomputes the chain and reports the first broken entry. Reviewer decisions also produce accuracy figures: per check, precision equals accepted divided by accepted plus rejected.
3. Measurement method
3.1 The seeded-error gold set
We collected 79 public US patent documents (63 grants and 16 published applications; 1,360 claims; 10,048 paragraphs; 7,675,260 characters of XML). From them a tool made 3,265 test copies, each with exactly one known error planted, across 50 error types grouped under the 12 checks. A type is planted only where the document has the feature it needs (for example a table, a formula, or a cross-reference with a date), so the number of copies varies by type. The CPC scheme version is 2026.08.
Recall for a type is the number of test copies on which the expected finding fired divided by the number of copies with that type planted. Precision is computed conservatively: a false alarm is counted for every unmodified published document on which the same finding code already fires, although some of those findings are real defects in the published document. Until a reviewer labels those baseline findings, precision is a lower bound [3].
3.2 The experiment of December 3, 2026
For this report we ran three things on the 79 unmodified public documents with PubPro 0.1.1, with PDF composition switched off for speed:
- Gold-set regeneration. We rebuilt the gold set from scratch and compared the result with the committed metrics file.
- Determinism. Each document was run twice with a fixed clock; we compared the SHA-256 of the composed XML and HTML and the list of findings.
- Tamper evidence. For each document's audit log we added one synthetic review decision (actor "test-harness", clearly labeled as synthetic) and verified the chain. We then made six kinds of change, one trial of each per log: edit an entry's text, replace an output hash, delete an entry other than the last, swap two adjacent entries, change who acted, and remove the last entry. Positions were chosen with a fixed-seed pseudo-random generator.
We also exercised the language-model layer's gates with a test double, a stand-in object that returns a fixed sentence; no real model was called.
4. Results
4.1 Accuracy on the gold set
Regenerating the gold set on December 3 took about 40 seconds and produced metrics identical to the committed file. Overall, the checks detected 3,236 of 3,265 seeded errors (recall 99.1%) with 62 conservative false alarms (precision at least 98.1%, F1 0.986). The library's own test suite passed 86 of 86 tests the same day.
| Check | Error types | Seeded | Detected | Missed | Recall | False alarms | Precision |
|---|---|---|---|---|---|---|---|
| Claim numbering | 3 | 188 | 188 | 0 | 100.0% | 0 | 100.0% |
| Claim dependency | 3 | 226 | 224 | 2 | 99.1% | 0 | 100.0% |
| Claim antecedent basis | 1 | 73 | 67 | 6 | 91.8% | 32 | 67.7% |
| Reference numerals | 1 | 58 | 58 | 0 | 100.0% | 5 | 92.1% |
| Figure coverage | 2 | 80 | 70 | 10 | 87.5% | 7 | 90.9% |
| Abstract form | 3 | 233 | 233 | 0 | 100.0% | 5 | 97.9% |
| Sequence presence | 2 | 157 | 157 | 0 | 100.0% | 1 | 99.4% |
| Markup integrity | 6 | 195 | 195 | 0 | 100.0% | 5 | 97.5% |
| Encoding anomalies | 8 | 632 | 624 | 8 | 98.7% | 0 | 100.0% |
| Bibliographic consistency | 9 | 644 | 644 | 0 | 100.0% | 1 | 99.8% |
| Certificate-of-correction patterns | 5 | 240 | 237 | 3 | 98.8% | 6 | 97.5% |
| Amendment merge | 7 | 539 | 539 | 0 | 100.0% | 0 | 100.0% |
| All checks | 50 | 3,265 | 3,236 | 29 | 99.1% | 62 | 98.1% |
Show the data table for Figure 2
| Check | Seeded | Detected | Recall | 95% interval |
|---|---|---|---|---|
| Claim numbering | 188 | 188 | 100.0% | 98.0% to 100.0% |
| Claim dependency | 226 | 224 | 99.1% | 96.8% to 99.8% |
| Claim antecedent basis | 73 | 67 | 91.8% | 83.2% to 96.2% |
| Reference numerals | 58 | 58 | 100.0% | 93.8% to 100.0% |
| Figure coverage | 80 | 70 | 87.5% | 78.5% to 93.1% |
| Abstract form | 233 | 233 | 100.0% | 98.4% to 100.0% |
| Sequence presence | 157 | 157 | 100.0% | 97.6% to 100.0% |
| Markup integrity | 195 | 195 | 100.0% | 98.1% to 100.0% |
| Encoding anomalies | 632 | 624 | 98.7% | 97.5% to 99.4% |
| Bibliographic consistency | 644 | 644 | 100.0% | 99.4% to 100.0% |
| Certificate-of-correction patterns | 240 | 237 | 98.8% | 96.4% to 99.6% |
| Amendment merge | 539 | 539 | 100.0% | 99.3% to 100.0% |
Two checks carry most of the risk. Figure coverage missed 10 of 80 seeded errors; all 10 misses are of one type (a dropped line in the brief description of the drawings: 46 of 56 detected). Claim antecedent basis missed 6 of 73 and raised 32 conservative false alarms; on the unmodified documents the same check raised 122 findings (117 informational, 5 warnings) that no reviewer has yet labeled. These are the checks where a reviewer's time is most useful. Claim antecedent basis is one of the two checks the language-model layer may explain; figure coverage is not, so its misses can only be reduced by improving the rule.
On the 79 unmodified documents the checks raised 309 findings under 24 codes. They are a mix of real defects, differences introduced by the public rendering the samples were rebuilt from, and false alarms; they have not been labeled.
The CPC suggestion found a recorded subclass among its top suggestion for 41.8% of documents, top 3 for 60.8% and top 5 for 70.9%; for the main (first) subclass the figures are 25.3%, 41.8% and 49.4%. These are suggestions only; a person decides the classification.
4.2 Determinism
All 79 documents gave identical composed XML, identical HTML proofs and identical findings on two runs. The median pipeline time without the PDF proof was 13.1 ms per document on our workspace machine.
4.3 Audit-log tamper evidence
All 79 audit logs (455 entries in total, including 60 synthetic review entries) verified intact before tampering. Figure 3 shows the tamper trials.
Show the data table for Figure 3
| Tamper type | Trials | Detected |
|---|---|---|
| edit an entry's text | 79 | 79 |
| replace an output hash | 79 | 79 |
| delete an entry (not the last) | 79 | 79 |
| swap two adjacent entries | 79 | 79 |
| change who acted | 79 | 79 |
| remove the last entry (truncation) | 79 | 0 |
Every edit of an entry's text, replacement of an output hash, deletion of an entry other than the last, swap of adjacent entries and change of actor was detected (79 of 79 for each, 395 of 395 together). Removing the last entry was detected 0 of 79 times. This is a known property of a hash chain: the chain proves that what is there was not changed, not that nothing was removed from the end. The remedy is to store the latest hash (the head) somewhere the person editing the log cannot change, for example a separate write-once store or a signed periodic checkpoint [2]. PubPro does not yet do this; it is on our list.
4.4 Language-model layer gates
With the test double: a provider that did not declare an American-built model was refused when the layer was created. With unpublished-text mode on and a provider declared outside the boundary, the layer refused both eligible findings and logged two refusals, sending nothing. With a provider declared inside the boundary, it produced two suggestions, logged both with hashes, and placed both in the review queue as open items awaiting a person. No real language model has been evaluated with PubPro yet, so we report no accuracy figure for the explanations.
5. Discussion: implications for government use of AI
Measure the parts that decide, and keep them deterministic. In PubPro the parts that decide whether something is flagged are deterministic rules measured on a gold set. The model, if used, sits after the decision and only explains. That keeps the accuracy figures meaningful: a model update cannot silently change the recall in Table 1.
Report precision honestly. Counting every baseline finding as a false alarm understates precision, but it never overstates it. A system that claims precision without labeled negatives is reporting a guess.
Make human review produce data. Each accept or reject is both a decision and a label. Over time the reviewer decisions give per-check precision on real documents, which the seeded set cannot.
Make the record verifiable, and know its limit. A hash chain makes silent edits detectable; our experiment shows it does not make silent truncation detectable without an anchored head. Agencies evaluating any AI audit log should test exactly this.
These choices line up with M-25-21's minimum practices for high-impact AI: pre-deployment testing (the gold set), ongoing monitoring with human review (reviewer-decision metrics), and human oversight and accountability (a named person decides every item, and the log records it) [1]. They also correspond to the Measure and Manage functions of the NIST AI RMF [4]. We do not claim that PubPro is a high-impact use case or that it meets any agency's requirements; that determination belongs to an agency.
6. Limitations
- Synthetic errors. We planted the test errors ourselves, one per copy, and many are easy for a rule to find. Accuracy on errors that really reached print, on several errors in one document, or on official agency export files has not been measured.
- Rebuilt samples. The 79 documents were rebuilt from public full text and metadata in the standard XML structure; they are not official agency files.
- Unlabeled baseline. Precision is a lower bound until the 309 baseline findings are labeled.
- No model evaluated. The language-model layer has been exercised only with a test double.
- Truncation. The audit log does not yet anchor its head, so removal of the newest entries is not detected.
- Prototype. PubPro is a working prototype at version 0.1.1, not a deployed system; timings were taken on our workspace machine and are indicative only.
7. Reproducibility
The gold set is rebuilt with one command from the 79 sample documents and the list of their public sources; on December 3, 2026 the rebuilt metrics matched the committed file exactly. The experiment in section 3.2 is a short script over the same samples using the library's public functions (pipeline, review decision and audit verification) with a fixed clock and a fixed random seed (20261203); its full output, including per-document rows, is kept with this report's working files. The library is proprietary and is not published; the measurement method is fully described above.
8. Conclusion
For AI assistance in a quality-control task with legal weight, accuracy is necessary but not sufficient. In PubPro, deterministic checks reach 99.1% recall on 3,265 seeded errors with conservative precision of at least 98.1%; a named person decides every finding; and a hash-chained log detected every edit, deletion, reordering and change of actor in 395 trials. It did not detect truncation of the newest entry in any of 79 trials, which tells us exactly what to fix next. That combination of measured accuracy, human decision and a verifiable record, with its limits stated, is what we think government use of AI should ask for.
References
- Office of Management and Budget. M-25-21, Accelerating Federal Use of AI through Innovation, Governance, and Public Trust, April 3, 2025. https://www.whitehouse.gov/wp-content/uploads/2025/02/M-25-21-Accelerating-Federal-Use-of-AI-through-Innovation-Governance-and-Public-Trust.pdf
- Crosby, S. A., Wallach, D. S. Efficient Data Structures for Tamper-Evident Logging. 18th USENIX Security Symposium, 2009. https://www.usenix.org/conference/usenixsecurity09/technical-sessions/presentation/efficient-data-structures-tamper-evident
- Davis, J., Goadrich, M. The Relationship Between Precision-Recall and ROC Curves. Proceedings of the 23rd International Conference on Machine Learning (ICML'06), 2006. https://pages.cs.wisc.edu/~shavlik/abstracts/davis.icml06.abstract.html
- National Institute of Standards and Technology. Artificial Intelligence Risk Management Framework (AI RMF 1.0), NIST AI 100-1, January 2023. https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-1.pdf
Viper Consulting™ Research. (2026). Measuring Accuracy and Human-in-the-Loop Review for AI Assistance in Patent Publication Quality Checks. Viper Consulting™ Technical Report VC-TR-2026-03, version 1.0, December 3, 2026. https://viperconsulting.ai/research/human-in-the-loop-patent-publication-quality-checksVersion history. Version 1.0, December 3, 2026: first publication. PDF: https://viperconsulting.ai/research/human-in-the-loop-patent-publication-quality-checks.pdf
Viper Consulting™ Technical Report. Not peer reviewed. Built only from our own measured results and the public sources cited. Viper Consulting™ is not affiliated with or endorsed by the USPTO, NIST, OWASP or MITRE. © 2026 Epstein Investment Group LLC d/b/a Viper Consulting™. All rights reserved.