OCR comparison: Unlimited-OCR 2, Docling and MinerU on academic PDFs

Date
28 October 2026
Task type
OCR
Status
Complete

Models tested

Model or toolProviderOpen?How run
Unlimited-OCR 2 (about 3B parameters, MIT licence, served with SGLang)BaiduOpen weightsLocal
Unlimited-OCR 2 (same weights, Hugging Face Transformers)BaiduOpen weightsLocal
Docling (2.93)Docling projectOpen weightsCommand line
MinerU (3.1.9 (MinerU2.5-Pro model))OpenDataLabOpen weightsCommand line

Purpose

Decide whether a new OCR model is worth adding to a PDF-to-Markdown workflow for academic papers, which already uses Docling by default and MinerU for maths-heavy papers.

Context

10 academic papers, 174 pages: three two-column journal papers, two table-heavy papers, two maths-heavy papers, one scanned 1967 book chapter, one 66-page report and one Spanish-language paper. All runs on an NVIDIA DGX Spark (GB10, 128 GB unified memory), one tool at a time.

Method

Each paper was converted to Markdown by each tool and wall-clock time was recorded per paper. The Transformers route was stopped after 4 papers as too slow. Text was compared with the PDF's own text layer (word error rate after normalising whitespace and hyphenation), and every number in each output was checked against the numbers in the text layer. The scan was compared with OCRmyPDF output instead. Tables emitted were counted.

Results

Docling took 3.5 minutes for all 10 papers, Unlimited-OCR 2 on SGLang 31 minutes and MinerU 62 minutes, with no accuracy advantage for either slower tool on born-digital papers.
SetupTotal time (10 papers)Time per pageWord error rate vs text layerNumbers not in text layerTables emitted
Docling 2.933.5 minabout 1.2 s21.9%21581
Unlimited-OCR 2 (SGLang)30.9 minabout 10.7 s22.7%24984
MinerU 3.1.961.7 minabout 21 s27.4%302153
Unlimited-OCR 2 (Transformers)4 papers only: 446-4,562 s eachnot computednot comparablenot comparablenot comparable

Caveats

What this suggests

For born-digital academic PDFs, Docling was about nine times faster than Unlimited-OCR 2 and as accurate on these measures, so the new model was not adopted. Unlimited-OCR 2 may be worth a look for scanned pages, and only through a serving engine such as SGLang: through Transformers it was 5 to 10 times slower again.

Source

entries/2026-10-28-ocr-comparison.md in the GitHub repository (Markdown with YAML frontmatter).