docTR vs Surya2: Receipt OCRHead-to-Head Benchmark (2026)

Last reviewed: 2026-11-06 · Experiment: August 2026 · Run tier: official · Receipt v1.1 offline correction

What this page covers: docTR and Surya2 on the fixed SROIE 2019 English receipt test split (361 samples) and CORD v2 Indonesian receipt test split (100 samples). This is a slice of the eight-engine August 2026 receipt experiment, corrected offline in Receipt v1.1. It compares SROIE normalized text distance, regex/LLM postprocessed field scores, per-request latency, accepted batch-wall throughput, historical GPU cost, and empty-output coverage. The pinned protocol defines the evidence and missing values.
Scope: receipts only. Native structured extraction, tables, forms, long documents, training coverage, and installation effort are not evaluated. The complete roundup is OCR engines vs vision-language models.

Scope of every number on this page: receipts (SROIE 2019 English, CORD v2 Indonesian), one GPU tier (RTX 4090 at $0.76/hr), August 2026 model versions. Do not extrapolate these results to invoices, tables, or complex layouts — the benchmark measures receipt OCR and receipt-field extraction only. All figures come from the benchmark’s results/receipt_v1_1/summary_metrics.csv and results/receipt_v1_1/field_method_comparison.csv, mirrored in the public GitHub repository and cited row-by-row.

SROIE normalized CER is 0.1971 for docTR and 0.1915 for Surya2, a 0.0056-point difference. This is a text-distance diagnostic, not evidence of statistical equivalence or equal reading ability. Regex field F1 favors Surya2 (0.3183 vs 0.0766, 4.16×); inherited LLM field F1 is 0.6139 vs docTR 0.6171. Accepted wall throughput favors docTR, 264.6 vs 11.9 pages/min (22.16×), as does historical GPU cost, $0.0479 vs $1.0609 per 1,000 pages. (field_method_comparison.csv; summary_metrics.csv, named rows.)

The trade, in one pair of numbers: docTR reads a receipt page at 108.7 ms p50 for $0.048 per 1,000 pages; Surya2 reads it at 2,668.0 ms p50 for $1.061 per 1,000 pages — same receipts, same test split, same RTX 4090. Neither engine "wins"; they win on different axes, and the point of this page is to show both axes from the same controlled run.

0.1915 · 0.1971
SROIE normalized CER for Surya2 vs docTR: 0.1915 vs 0.1971, a 0.0056-point difference. No statistical equivalence test is reported, and cross-family CER alone does not establish ability equivalence. (summary_metrics.csv, named rows.)
22.2×
docTR vs Surya2 SROIE: 22.2× lower historical GPU cost, 24.5× lower request p50, and 22.2× higher accepted batch-wall throughput. Request-derived throughput uses a separate clock. (summary_metrics.csv, named rows.)
4.2×
Surya2 vs docTR SROIE regex field F1: 0.3183 vs 0.0766 (4.16×). With the inherited LLM postprocessor, F1 is 0.6139 vs 0.6171. These are pipeline point estimates, not native KIE or proof of equivalence. (field_method_comparison.csv, named rows.)

CER (Character Error Rate): per-sample character edit distance divided by reference length, averaged across samples. The implementation lowercases text and collapses whitespace before scoring. Case-only differences and ordinary line-break/whitespace changes do not cause errors. On SROIE it is a text-distance diagnostic; cross-family scores alone do not establish equal or superior reading ability. CORD CER/WER are not applicable. WER (Word Error Rate): the corresponding word-level edit-distance diagnostic, using the same lowercase and whitespace normalization. Reported for SROIE; not applicable to CORD under this release protocol.

docTR and Surya2 have SROIE CER point estimates of 0.1971 and 0.1915; WER is 0.3199 and 0.2735. The small CER difference does not establish a noise band, a statistical tie, or equal practical reading ability. (summary_metrics.csv, named rows.)

SROIE Text-Distance Diagnostics Across Model Families

This is a comparison of a recorded OCR configuration and a document-parsing VLM configuration, not an architecture ablation. The CER implementation lowercases and collapses whitespace, so case-only and ordinary line-break differences do not explain these scores. Content, omissions, additional text, and ordering can still affect edit distance; the release does not decompose their causes.

Metric (SROIE 2019, n=361)docTRSurya2Source
Character Error Rate (CER)0.19710.1915summary_metrics.csv · cer, sroie_2019 rows for doctr, surya2
Word Error Rate (WER)0.31990.2735summary_metrics.csv · wer, sroie_2019 rows for doctr, surya2

Table: summary_metrics.csv — cer and wer columns, sroie_2019 rows. Exact values: docTR cer 0.19707 / wer 0.31990; Surya2 cer 0.19147 / wer 0.27352. Lower is better; both runs completed with request_error_rate 0.0.

Where They Diverge: Out-of-Box Field Extraction Flips the Outcome

Fixed regex on the same four SROIE fields yields Surya2 F1 0.3183 vs docTR 0.0766, a 4.16× ratio. These are OCR-text-plus-rules scores. docTR has the lowest SROIE regex F1 of the eight engines, which is a separate observation from its lower text-distance score. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Field-value F1 combines precision and recall over extracted values. The score depends on the engine text and the fixed dataset-specific patterns together. The experiment does not isolate output case, separators, or label ordering as the causal mechanism; these results do not score native structured output.

SROIE 2019 field F1 by postprocessing method: through regex patterns Surya2 reaches 31.8% vs docTR 7.7%; through LLM postprocessing (deepseek-v4-flash) the two converge to 61.7% (docTR) and 61.4% (Surya2).

Source: field_method_comparison.csv — regex_field_value_f1 / llm_field_value_f1 columns, sroie_2019 rows (0–1 stored decimals shown as %). LLM postprocessor: deepseek-v4-flash (llm_model column). 361 samples per engine (llm_ok_count).

Regex postprocessing (SROIE 2019, n=361)docTRSurya2Source
Field-value F1 (regex)0.07660.3183field_method_comparison.csv · regex_field_value_f1, sroie_2019 rows for doctr, surya2
Field-value accuracy (regex)0.06230.2999field_method_comparison.csv · regex_field_value_accuracy, same rows
Document-fields exact (regex)0.00000.0194field_method_comparison.csv · regex_document_fields_exact, same rows

Table: field_method_comparison.csv — regex columns, sroie_2019 rows. These are postprocessed_sroie_receipt_regex_* metrics: fixed patterns applied to each engine’s OCR text (postprocessed, not native extraction). docTR’s regex field F1 of 0.0766 is the lowest of all eight engines in the underlying run despite the second-best CER.

LLM Postprocessing: Similar Point Estimates, Separate Operating Costs

The inherited LLM postprocessor gives docTR SROIE field F1 0.6171 and Surya2 0.6139, a 0.0033-point difference. This is a descriptive comparison, not an equivalence test or proof that engine choice no longer matters. (field_method_comparison.csv, named rows.)

The recorded median LLM postprocess times are 1,996.3 ms for docTR text and 2,261.7 ms for Surya2 text, separate from OCR request latency. Both score higher F1 with this historical LLM pipeline than with the fixed regex pipeline. The experiment does not isolate a semantic or formatting cause for the difference. (field_method_comparison.csv; summary_metrics.csv, named rows.)

LLM postprocessing (SROIE 2019, n=361)docTRSurya2Source
Field-value F1 (LLM)0.61710.6139field_method_comparison.csv · llm_field_value_f1, doctr/sroie_2019 and surya2/sroie_2019 rows
Field-value accuracy (LLM)0.61700.6136field_method_comparison.csv · llm_field_value_accuracy, same rows
Document-fields exact (LLM)0.14960.1551field_method_comparison.csv · llm_document_fields_exact, same rows
Median LLM latency (ms)1,996.32,261.7field_method_comparison.csv · llm_median_latency_ms, same rows

Table: field_method_comparison.csv — llm_* columns, sroie_2019 rows. LLM model: deepseek-v4-flash at temperature 0 (llm_model column). LLM latency is API-incurred and separate from engine latency (summary_metrics.csv latency_p50_ms).

The Operating Envelope: Where the Real Difference Lives

On SROIE, docTR accepted batch-wall throughput is 264.6 pages/min vs Surya2 11.9, a 22.16× ratio. Request p50 is 108.7 vs 2,668.0 ms (24.54×), and historical GPU cost is $0.0479 vs $1.0609 per 1,000 pages (22.16×). Request-derived rates are 449.3 and 12.1, not wall rates. (summary_metrics.csv, named rows.)

Costs retain the historical $0.76/hr GPU rate. Request p95 is 281.4 ms for docTR and 5,872.2 ms for Surya2. p95 is not a worst-case time, and the summaries do not identify prefill/decode, first-page behavior, or architecture as the cause of the difference. (summary_metrics.csv, named rows.)

Recorded SROIE request p50: docTR 108.7 ms vs Surya2 2,668.0 ms. This 24.54× ratio is separate from batch-wall throughput.

SROIE latency_p50_ms: docTR 108.7166 and Surya2 2667.9800. These request-time medians are separate from accepted full-batch timing. (summary_metrics.csv, named rows.)

Cost per 1,000 pages on SROIE 2019 (RTX 4090 at $0.76/hr): docTR $0.048 vs Surya2 $1.061 — a 22.2x gap. This is a historical-rate rental estimate over the recorded runner-process boundary; table below carries exact values.

Source: summary_metrics.csv — cost_per_1000_pages column, sroie_2019 rows. docTR 0.0479, Surya2 1.0609. This is a historical-rate rental estimate over the recorded runner-process boundary at $0.76/hr (August 2026). Local initialization is included only when it occurs inside that process; Surya2 uses a client-only runner, so separate serving-process model startup is outside the boundary.

Operating envelope (SROIE 2019, n=361)docTRSurya2Source
Latency p50 (ms)108.72,668.0summary_metrics.csv · latency_p50_ms, sroie_2019 rows for doctr, surya2
Latency p95 (ms)281.45,872.2summary_metrics.csv · latency_p95_ms, sroie_2019 rows for doctr, surya2
Pages per minute (accepted batch wall time)264.611.9summary_metrics.csv · wall_clock_pages_per_minute, sroie_2019 rows for doctr, surya2
Cost per 1,000 pages$0.048$1.061summary_metrics.csv · cost_per_1000_pages, sroie_2019 rows for doctr, surya2

SROIE accepted wall throughput is 264.6 vs 11.9 pages/min; request-derived rates are 449.3 vs 12.1. Historical GPU costs are $0.0479 vs $1.0609 per 1,000 pages. A request-time percentile and a batch-wall timer cannot be interchanged. (summary_metrics.csv, named rows.)

CORD: Corrected Field Scores, Text Metrics Not Applicable

CORD metric scope: all CORD CER/WER cells are N/A because the released structured annotation is not an aligned plain-text transcription reference. Use the separate CORD field metrics and output-coverage diagnostics. Do not infer language ability from the withdrawn text-distance values or pool CORD with SROIE.

CORD regex field F1 is 0.0000 for docTR and 0.2591 for Surya2 after corrected offline scoring. docTR’s zero is a measured score, not missing data. Inherited LLM field F1 is 0.5500 and 0.5203. Both engines have zero request errors and zero empty outputs in their 100 CORD samples. (field_method_comparison.csv; summary_metrics.csv, named rows.)

CORD v2, Indonesian receipts (n=100)docTRSurya2Source
Character Error Rate (CER) — not applicableN/AN/Asummary_metrics.csv · cer, cord_v2 rows for doctr, surya2
Field-value F1 (regex)0.00000.2591field_method_comparison.csv · regex_field_value_f1, cord_v2 rows for doctr, surya2
Field-value F1 (LLM)0.55000.5203field_method_comparison.csv · llm_field_value_f1, same rows

CORD regex scores are corrected from retained predictions; all LLM columns are inherited unchanged. CER/WER are N/A, so they cannot support a language-mismatch explanation. CORD is kept separate from SROIE. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Who Wins When: The Recap Grid

The SROIE results show a field-pipeline tradeoff: Surya2 has higher fixed-regex F1, while the inherited LLM F1 point estimates are 0.6139 and docTR 0.6171. docTR has lower request latency and historical GPU cost and higher accepted wall throughput. The small text/LLM score gaps do not establish statistical or capability equivalence.

Faster per page — docTR
108.7 ms vs 2,668.0 ms
SROIE p50 latency, 24.5× gap; p95 281.4 ms vs 5,872.2 ms (summary_metrics.csv, latency_p50_ms / latency_p95_ms, sroie_2019 rows). For an interactive per-page wait: 0.1 s vs 2.7 s.
Cheaper per 1,000 pages — docTR
$0.048 vs $1.061
SROIE cost per 1,000 pages on the same RTX 4090 at $0.76/hr — 22.2× lower historical-rate rental estimate over the recorded runner-process boundary (summary_metrics.csv, cost_per_1000_pages, sroie_2019 rows); separate Surya2 serving-process startup is outside that boundary.
Higher throughput — docTR
264.6 vs 11.9 pg/min
docTR vs Surya2 accepted SROIE batch-wall throughput: 22.16×. Request-derived 449.3 vs 12.1 pages/min are separate measures. (summary_metrics.csv, named rows.)
OCR + regex fields — Surya2
0.3183 vs 0.0766 F1
SROIE regex field F1 0.3183 vs 0.0766. This is postprocessed text, not native structured extraction, and no formatting mechanism is established. (field_method_comparison.csv, named rows.)
Normalized text-distance diagnostics
0.1915 vs 0.1971 CER
Surya2 vs docTR SROIE CER 0.1915 vs 0.1971 and WER 0.2735 vs 0.3199. No significance or equivalence conclusion follows from these point estimates. (summary_metrics.csv, named rows.)
Inherited LLM field F1
0.6171 vs 0.6139
docTR 0.6171 vs Surya2 0.6139, a 0.0033-point SROIE difference. Similar point estimates do not prove engine equivalence or remove operating-cost differences. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Frequently Asked Questions

Is Surya2 more accurate than docTR on receipts?

Surya2 has a lower SROIE normalized CER point estimate (0.1915 vs 0.1971) and higher regex F1 (0.3183 vs 0.0766). docTR has slightly higher inherited LLM F1 (0.6171 vs 0.6139) and lower historical operating costs. CER alone does not establish reading-ability equivalence or superiority. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Why can text-distance and regex-field rankings differ?

They grade different outputs. The fixed regex pipeline yields docTR 0.0766 vs Surya2 0.3183 SROIE field F1, while normalized CER is 0.1971 vs 0.1915. This shows the measured combined pipeline; it does not isolate output case, labels, or ordering as the cause. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Does adding an LLM postprocessor make docTR and Surya2 equal?

No equivalence conclusion is established. The inherited LLM SROIE field F1 point estimates are docTR 0.6171 and Surya2 0.6139. Recorded median LLM time is 1,996.3 and 2,261.7 ms, separate from engine request time. Other prompts, models, or samples may change the result. (field_method_comparison.csv; summary_metrics.csv, named rows.)

How much faster and cheaper is docTR than Surya2?

On SROIE, docTR has 24.54× lower request p50, 22.16× higher accepted batch-wall throughput (264.6 vs 11.9 pages/min), and 22.16× lower historical GPU cost ($0.0479 vs $1.0609 per 1,000 pages). (summary_metrics.csv, named rows.)

How should the CORD scores be interpreted?

CORD metric scope: all CORD CER/WER cells are N/A because the released structured annotation is not an aligned plain-text transcription reference. Use the separate CORD field metrics and output-coverage diagnostics. Do not infer language ability from the withdrawn text-distance values or pool CORD with SROIE. CORD regex F1 is docTR 0.0000 vs Surya2 0.2591; inherited LLM F1 is 0.5500 vs 0.5203. Both have zero empty outputs. (field_method_comparison.csv; summary_metrics.csv, named rows.)

Which engine should a receipt pipeline pick, docTR or Surya2?

For this receipt corpus, docTR has lower request latency and GPU cost, while Surya2 feeds the fixed regex pipeline to higher SROIE F1. With the historical LLM pipeline the point estimates are similar, but equivalence is untested. The native document structure and non-receipt workloads are outside this experiment.

Where do the numbers on this page come from?

The figures come from summary_metrics.csv and field_method_comparison.csv at commit 9729ba6f06f5b2af77d6f0987ed15834f3ac2bf6, under Receipt v1.1. Offline recomputation requires the original retained run artifacts, checked against the public manifest hashes; those raw run directories are not included in the public repository. The release provides scoring code, fixed sample lists, revised tables, and hash lineage.

Methodology & Sources

Protocol

This page uses Receipt v1.1, an offline correction of the August 2026 official receipt experiment: the same 361 SROIE test receipts and 100 CORD test receipts per engine, with no new OCR or LLM inference. The eight-engine release reuses 3,688 retained predictions. SROIE text/regex scores are retained; CORD regex scoring is corrected, and all LLM columns are inherited unchanged from the legacy published CSV. The pinned v1.1 protocol defines timing, missing values, scoring, and provenance. Offline recomputation requires the original retained run artifacts, checked against the public manifest hashes; those raw run directories are not included in the public repository. The release provides scoring code, fixed sample lists, revised tables, and hash lineage.

Runtime Environment

  • Hardware: both engines ran on the same NVIDIA RTX 4090 (24 GB); GPU cost computed at the RunPod on-demand rate of $0.76/hr, price timestamped in each run’s redacted manifest (August 2026).
  • Engines: out-of-the-box, no fine-tuning. Versions locked: docTR v1.0.1 (traditional two-stage neural OCR, GPU) and Surya2 (surya-ocr 0.22.1) (document-parsing VLM, vLLM-served) — per the public repo model table (README.md) and run manifests.
  • LLM postprocessor: deepseek-v4-flash, recorded temperature 0. This single fixed postprocessor was used in the historical comparison; temperature 0 does not establish deterministic behavior. Its published metrics are inherited, and its API latency is separate from OCR request timing.
  • Cost basis: retained historical GPU cost at $0.76/hr where valid complete-batch timing is available; this is the recorded August 2026 experimental rate. CPU operating costs are unmeasured (N/A), and Unlimited-OCR/SROIE cost is missing because its full-batch wall time cannot be reconstructed.
  • Field postprocessing: SROIE regex field metrics are postprocessed_sroie_receipt_regex_* (field_method_comparison.csv regex_* columns) — fields extracted from OCR text by a fixed pattern set. They measure OCR + downstream extraction, not native structured output by either model; the LLM_* columns measure OCR text + LLM extraction. The two pipelines are never blended.

Metric Definitions

  • CER (Character Error Rate): per-sample character edit distance divided by reference length, averaged across samples. The implementation lowercases text and collapses whitespace before scoring. Case-only differences and ordinary line-break/whitespace changes do not cause errors. On SROIE it is a text-distance diagnostic; cross-family scores alone do not establish equal or superior reading ability. CORD CER/WER are not applicable.
  • WER (Word Error Rate): the corresponding word-level edit-distance diagnostic, using the same lowercase and whitespace normalization. Reported for SROIE; not applicable to CORD under this release protocol.
  • Field-value F1 (regex): precision/recall harmonic mean over extracted field values using fixed regex patterns on OCR text (traditional OCR + rule-based KIE pipeline). Column: regex_field_value_f1. A score of 0 means no field values recovered.
  • Field-value F1 (LLM): the same metric on the LLM postprocessor’s output (OCR text → deepseek-v4-flash → fields). Column: llm_field_value_f1. The two pipelines are different and never blended.
  • Document-fields exact: fraction of documents where all target fields matched exactly — a much harsher bar than per-field F1.
  • Latency and throughput: p50 and p95 summarize recorded per-request elapsed times; p95 is the 95th percentile, not the maximum. latency_derived_pages_per_minute is 60,000 divided by mean request latency. wall_clock_pages_per_minute uses an accepted complete-batch wall time and is a separate measure. Neither clock alone isolates loading, scheduling, or model architecture.
  • Cost per 1,000 pages: retained historical GPU cost at $0.76/hr where valid complete-batch timing is available; this is the recorded August 2026 experimental rate. CPU operating costs are unmeasured (N/A), and Unlimited-OCR/SROIE cost is missing because its full-batch wall time cannot be reconstructed.

Source List

  1. summary_metrics.csv. Receipt v1.1 has 16 rows (8 engines × 2 datasets), including cer, wer, field_f1_regex, field_acc_regex, latency_p50_ms, latency_p95_ms, latency_derived_pages_per_minute, wall_clock_pages_per_minute, cost_per_1000_pages, request_error_rate, and empty_output_rate. Missing values remain N/A; CORD text metrics are not applicable.
  2. field_method_comparison.csv. Receipt v1.1 has 16 rows with separate regex and LLM field accuracy/F1, document-fields exactness, and LLM latency. The llm_model is deepseek-v4-flash. LLM columns are carried forward unchanged from the legacy publication; this correction did not rerun that postprocessor.
  3. ImageToTableai/benchmark-ocr at the pinned release commit. Published code, fixed sample lists, corrected result tables, and hash lineage. Offline recomputation requires the original retained run artifacts, checked against the public manifest hashes; those raw run directories are not included in the public repository. The release provides scoring code, fixed sample lists, revised tables, and hash lineage.
  4. Receipt v1.1 correction manifests. Each links the original inference manifest by path and hash. Original inference manifests contain the historical runtime fingerprints; the correction manifests provide scoring and measurement lineage. Receipt v1.1 protocol documents the correction.
  5. Huang et al., "ICDAR2019 Competition on Scanned Receipt OCR and Information Extraction" (2019). SROIE 2019 dataset definition, task structure, and license (CC-BY-4.0).
  6. Park et al., "CORD: A Consolidated Receipt Dataset for Post-OCR Parsing" (2020). CORD v2 dataset definition, nested field schema, and license (CC-BY-4.0).

Limitations

  • Document scope — receipts only: SROIE + CORD. Nothing here measures the layout/table/formula/long-document handling where document-parsing VLMs claim their biggest advantages; Surya2’s marketed strengths are unmeasured. Do not use this page to conclude "docTR wins on everything."
  • Sample size and inference: 361 SROIE and 100 CORD receipts per engine. These are point estimates on fixed samples, not evidence of statistical equivalence or a universal performance gap. No paired significance analysis or controlled architecture ablation is reported here.
  • Single GPU tier and single price: all numbers come from one RTX 4090 at $0.76/hr, price timestamped August 2026 in the run manifests. Other GPUs, multi-GPU serving, batch scheduling, or price changes will shift latency, throughput, and cost — re-derive costs at current rates before budgeting.
  • Single LLM postprocessor: all LLM rows use deepseek-v4-flash at temperature 0. A different LLM shifts absolute field F1; the convergence ordering may move at the margins. LLM latency (~2.0–2.3 s median, field_method_comparison.csv llm_median_latency_ms) is API-incurred and not part of either engine’s own latency.
  • Regex scope: fixed dataset-specific extraction patterns measure OCR text plus downstream rules. They do not score native key-information extraction (KIE) or native document structures; retuning patterns would define a different experiment.
  • CORD metric scope: all CORD CER/WER cells are N/A because the released structured annotation is not an aligned plain-text transcription reference. Use the separate CORD field metrics and output-coverage diagnostics. Do not infer language ability from the withdrawn text-distance values or pool CORD with SROIE.
  • Cross-family text metrics: the implementation already lowercases and collapses whitespace. Do not attribute the CER gap to case folding or ordinary line merging, or treat a small CER difference as proof of equal reading capability.
  • Two engines only: this head-to-head deliberately excludes the other six engines of the underlying run, cloud/API OCR services, and hosted VLM APIs; their latency and pricing models differ fundamentally from the local engines measured here.
  • Version pinning: results hold for docTR v1.0.1 and Surya2 0.22.1 (August 2026). Newer releases of either engine may shift every number on this page.

Related references: Traditional OCR vs Document Parsing VLMs · where regex breaks on real documents · why character counts mislead field extraction · Receipt OCR Accuracy

Related reading: AI OCR vs classic OCR accuracy · image data extraction vs OCR engines · AI Document Extraction Pricing (2026)

📮 contact email: [email protected]