Constrained Inference: Compare Accuracy, Coverage and Serving Conditions
In this article
Use a constrained inference design when its output contract fits the task, then measure the errors it can still make. A valid schema or reproducible routing decision does not establish that the returned information is correct.
Correction, 21 October 2026: The earlier article called learned extraction stages deterministic, overstated OpenCodeReview's cross-file limitations and omitted concurrency from Jina's throughput figure. It also presented an extraction score too broadly. Those claims are corrected below. AI Mastery has not reproduced these vendor evaluations.
OpenCodeReview combines engineering and model analysis
Alibaba's repository describes a hybrid review system with deterministic file handling and positioning around LLM analysis. Its documentation explicitly permits full-file reads, codebase searches and inspection of other changed files.
The project reports roughly one-ninth the tokens of a Claude Code comparison with the same underlying model, higher precision and F1, and lower recall. Its benchmark comprises 200 pull requests across 50 repositories and 10 languages. These are project-reported results for that evaluation, not a guarantee for a different model or repository.
The earlier claim that deterministic dispatch makes cross-file analysis impossible is therefore unsupported. Lower recall also does not identify its own cause. Establishing that a routing choice caused missed defects would require a comparison changing that choice while holding the rest of the system fixed.
For your own repository, record which defects were missed and whether the relevant context was available. Distinguish an intentionally suppressed comment from a failure to inspect a file or understand its effect.
Jina OCR still generates text
The jina-ocr-v1 card describes a DeepSeek-OCR-based parser with a 3B mixture-of-experts decoder, approximately 570M active parameters per token and a speculative FastMTP head. Its reported 2.57 pages per second uses an A100 at concurrency 32 on olmOCR-Bench.
FastMTP drafts up to three tokens, then uses greedy verification to preserve the verifier's output sequence. This accelerates an autoregressive system; it does not eliminate generation or prove the output matches the document.
Page throughput under concurrent load is a different measurement from the time an individual user waits for one document. Measure both, including document size, queueing, parsing and any repair after decoding. The card lists CC BY-NC 4.0; review the actual model terms before selecting a deployment.
GLiFormer separates extraction from record assembly
GLiFormer's card describes a shared encoder with task heads and a decoder assembling source-grounded fields and relationships. Predictions depend on the input, schema and thresholds. Learned span or relationship predictions should not be described as deterministic correctness checks.
The reported 91.10 multilevel-structuring result is order-free, boundary-tolerant JSON F1 on 500 examples. It allows the evaluator's record alignment and limited boundary repairs; it is not exact JSON match. Pydantic validation checks schema compliance rather than factual truth.
Copying a passage can prevent one kind of invented field content while still producing a misleading record. A date taken from the wrong invoice remains wrong even if the characters all appear in the input.
Choose measurements that match the failure
| Workload | Quality check | Efficiency check |
|---|---|---|
| Code review | Precision and recall against annotated defects; inspect missed cross-file cases | Tokens and elapsed time per completed pull request |
| Document parsing | Field and transcription accuracy, including difficult layouts | Individual latency and loaded throughput at stated concurrency |
| Structured extraction | Exact records plus field-level scores and omission rates | Latency across input length, schema depth and batch size |
This is our proposed comparison procedure. It does not convert three unrelated vendor evaluations into a common leaderboard.
Keep the acceptance set representative of what users will submit, including documents with missing fields and changes involving several files. Count retries and manual repair in completed-task cost. Our bounded-output review explains why enforcing a format still leaves a separate semantic validation problem.
Frequently asked questions
Does deterministic routing prevent OpenCodeReview from reading other files?
No. The current repository documents full-file reading, codebase search and inspection of other changed files. The earlier blanket claim that deterministic dispatch prevents cross-file reasoning was incorrect.
Under what conditions does Jina report 2.57 pages per second?
The jina-ocr-v1 model card reports 2.57 pages per second on olmOCR-Bench using an A100 at concurrency 32. This is not a single-request latency result or a measurement reproduced by AI Mastery.
What does GLiFormer's 91.10 score measure?
The model card reports order-free, boundary-tolerant JSON F1 on 500 multilevel-structuring examples. It is not exact JSON match and does not mean 91.10 percent of complete records are fully correct.
Does greedy speculative verification establish that OCR is accurate?
No. It preserves the verifier's greedy token sequence under the documented method. That sequence can still contain transcription errors.
Can source-grounded extraction return a wrong answer?
Yes. It can select the wrong passage, omit a required value or attach a value to the wrong record. Schema validation does not establish factual correctness.
Related Reading

Testing an LLM Editor: Planted Errors and Preservation Checks
A runnable preservation checker and a protocol for testing whether an LLM editor corrects planted errors while preserving code and citations.
OpenAI Decisions API Beta: 10x Faster Typed Answers, $0.10 Input
OpenAI's gpt-6-luna Decisions endpoint returns probabilities, choices and scores at $0.10 per million input tokens, with no output fees and a vendor-stated 10x speedup.
Uber Eats Cuts Search Latency 50% With Pipeline Rewrites, Not New Models
Uber reports a 50% cut in Uber Eats search latency by redesigning retrieval, hydration, ranking, and ad-serving — no model changes required.