Smart Router v2
Preserve usable native text when OCR risks losing content or disrupting reading order. A frozen v1 build and AnyDoc alone are compared with the new router using the same browser and hardware within each split.
Verified validation workflow · Merged PR · Policy & reproduction
Full DP-Bench corpus evaluation
The same frozen router policy evaluated on all 200 pages, including 160 previously unevaluated pages.
| Mode | Reference score | Completed | WER (successes) | CER (successes) | Pooled median |
|---|---|---|---|---|---|
| Smart Router v2 | 90.19% | 200/200 | 9.81% | 7.63% | 949 ms |
| AnyDoc | 87.36% | 197/200 | 11.31% | 9.31% | 232 ms |
| Smart Router v1 | 85.66% | 200/200 | 14.34% | 11.56% | 819.5 ms |
Paired word-error comparison
| Subset | Joint successes | AnyDoc mean WER | v2 mean WER | Relative reduction |
|---|---|---|---|---|
| Full 200 | 197 | 11.31% | 9.46% | 16.32% |
| Previously evaluated 40 | 40 | 10.03% | 7.46% | 25.56% |
| New 160 | 157 | 11.63% | 9.97% | 14.29% |
All-attempt reference-score comparisons vs AnyDoc: 59 improved, 116 tied, 25 degraded. Versus v1: 22 improved, 176 tied, 2 degraded; 31.62% lower mean WER across 200 successful pairs. Three AnyDoc attempts failed. v2 selected AnyDoc on 113 pages and LiteParse + OCR on 87.
AnyDoc alone is faster. Pooled latency is descriptive across different runners; use within-shard timings for matched comparisons. Reference scores include failures at zero; WER comparisons use only jointly successful cases and unrounded means. One trial per page and mode. Normalized text-only diagnostics, not official DP-Bench NID/TEDS or a universal accuracy claim. The 160 pages are new to this evaluation, not an independent external dataset.
Download original full JSON (600 cases) · Successful CI run · Exact benchmark code
Report SHA-256: 5d13b5ab2128be9dbac496227c75fa9d48aecd9172cc316bf8081f416a2fcd64
Development pilot
Sorted PDF paths; take one-based positions 5, 15, ..., 195 before evaluation. All 60 measured cases completed. 1 pages improved, 19 tied and 0 regressed against v1; mean paired gain 2.10 percentage points.
| Mode | Reference score | Successful | WER | CER | Median |
|---|---|---|---|---|---|
| Smart Router v2 | 94.52% | 20/20 | 5.48% | 4.17% | 607 ms |
| AnyDoc | 93.18% | 20/20 | 6.82% | 5.35% | 193 ms |
| Smart Router v1 | 92.42% | 20/20 | 7.58% | 5.71% | 565 ms |
Runner: AMD EPYC 9V45 96-Core Processor, 4 logical CPUs; Chromium 159.0.8154.6. Compare latency only within this split.
Download full metrics JSON · Workflow job
All 20 paired page comparisons
| Source ID | v1 score | v2 score | Delta | v2 route | Guard reason |
|---|---|---|---|---|---|
| 01030000000005 | 92.11% | 92.11% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000015 | 49.55% | 91.52% | +41.96 pp | anydoc | ocr_reading_order_disagreement |
| 01030000000025 | 99.73% | 99.73% | +0.00 pp | anydoc | — |
| 01030000000035 | 89.41% | 89.41% | +0.00 pp | anydoc | — |
| 01030000000045 | 90.09% | 90.09% | +0.00 pp | anydoc | — |
| 01030000000055 | 90.82% | 90.82% | +0.00 pp | anydoc | — |
| 01030000000065 | 100.00% | 100.00% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000075 | 100.00% | 100.00% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000085 | 93.18% | 93.18% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000095 | 90.58% | 90.58% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000105 | 93.41% | 93.41% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000115 | 99.62% | 99.62% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000125 | 98.33% | 98.33% | +0.00 pp | anydoc | — |
| 01030000000135 | 99.64% | 99.64% | +0.00 pp | anydoc | — |
| 01030000000145 | 85.05% | 85.05% | +0.00 pp | anydoc | — |
| 01030000000155 | 100.00% | 100.00% | +0.00 pp | anydoc | — |
| 01030000000165 | 83.63% | 83.63% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000175 | 98.85% | 98.85% | +0.00 pp | anydoc | native_preferred_no_new_ocr_words |
| 01030000000185 | 94.48% | 94.48% | +0.00 pp | anydoc | — |
| 01030000000195 | 100.00% | 100.00% | +0.00 pp | anydoc | — |
Independent holdout
Sorted PDF paths; one-based positions 10, 20, ..., 200, fixed before v2 evaluation; disjoint from pilot positions 5, 15, ..., 195. All 60 measured cases completed. 4 pages improved, 16 tied and 0 regressed against v1; mean paired gain 8.48 percentage points.
| Mode | Reference score | Successful | WER | CER | Median |
|---|---|---|---|---|---|
| Smart Router v2 | 90.55% | 20/20 | 9.45% | 7.30% | 1,371 ms |
| AnyDoc | 86.77% | 20/20 | 13.23% | 10.87% | 253 ms |
| Smart Router v1 | 82.07% | 20/20 | 17.93% | 14.24% | 1,181 ms |
Runner: INTEL(R) XEON(R) PLATINUM 8573C, 4 logical CPUs; Chromium 159.0.8154.6. Compare latency only within this split.
Download full metrics JSON · Workflow job
All 20 paired page comparisons
| Source ID | v1 score | v2 score | Delta | v2 route | Guard reason |
|---|---|---|---|---|---|
| 01030000000010 | 22.15% | 94.14% | +71.99 pp | anydoc | ocr_reading_order_disagreement |
| 01030000000020 | 100.00% | 100.00% | +0.00 pp | anydoc | — |
| 01030000000030 | 93.33% | 93.33% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000040 | 23.51% | 95.30% | +71.78 pp | anydoc | ocr_reading_order_disagreement |
| 01030000000050 | 100.00% | 100.00% | +0.00 pp | anydoc | — |
| 01030000000060 | 92.17% | 92.17% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000070 | 78.29% | 78.29% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000080 | 96.24% | 96.24% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000090 | 89.14% | 89.14% | +0.00 pp | anydoc | — |
| 01030000000100 | 80.58% | 80.58% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000110 | 98.52% | 98.52% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000120 | 73.82% | 73.82% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000130 | 87.21% | 87.21% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000140 | 69.41% | 69.41% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000150 | 98.42% | 98.42% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000160 | 100.00% | 100.00% | +0.00 pp | anydoc | — |
| 01030000000170 | 93.92% | 93.92% | +0.00 pp | liteparse-ocr | ocr_preserves_native_text_with_changes |
| 01030000000180 | 93.10% | 94.25% | +1.15 pp | anydoc | native_preferred_no_new_ocr_words |
| 01030000000190 | 99.52% | 99.52% | +0.00 pp | anydoc | — |
| 01030000000200 | 52.14% | 76.75% | +24.60 pp | anydoc | ocr_reading_order_disagreement |
Trade-offs and limitations
The v2 guard compares bounded normalized word counts and ordered subsequence retention only when OCR is recommended and both native and OCR extraction are available. It keeps usable native output when OCR fails its guard, with a warning that scanned content may still be missing. It is not a calibrated accuracy score.
Within the holdout, median wall-clock latency was 1,371 ms for v2, 1,181 ms for v1 and 253 ms for AnyDoc. The two splits ran on different CPU models; do not compare latency across splits.
Reference score is mean max(0, 1 − normalized WER), not official DP-Bench NID/TEDS. One measured trial per mode and page, no warm-up, rotated order. The holdout is disjoint and fixed, not necessarily representative or independently distributed. No universal accuracy, layout, multilingual or production-performance claim. No source or predicted text is hosted.
Source: Upstage DP-Bench, via pinned OpenDataLoader mirror. Dataset license: MIT (upstream declaration). No OmniDocBench data used.