Introduction
Optical Character Recognition (OCR) has undergone a paradigm shift with the advent of Vision-Language Models (VLMs). While these models demonstrate impressive average accuracy on standard benchmarks, they often operate as "black boxes" in production environments. In high-stakes domains such as legal archiving or medical record extraction, the primary concern is not the model's aggregate performance but the reliability of a specific output. The OCR-Quality dataset addresses this "reliability gap" by providing 1,000 human-annotated document pages designed to evaluate OCR quality beyond simple character error rates.
Methodology
The construction of the OCR-Quality dataset followed a rigorous three-stage pipeline to ensure data integrity and annotation precision.
- Data Curation: The authors selected 1,000 diverse PDF pages, converting them into high-resolution (300 DPI) PNG images. This ensures that the visual input provided to both the OCR engine and the human annotators is pristine, minimizing errors caused by image degradation.
- OCR Generation: The dataset utilizes outputs from Qwen2.5-VL-72B, a state-of-the-art VLM. A specialized prompt was employed to instruct the model to preserve document structure, manage multi-column layouts, and render scientific notation using LaTeX.
- Human Annotation: Annotators used a custom Gradio-based interface to perform side-by-side comparisons of the original images and the VLM-generated text. Each page was scored on a 4-level scale (1 to 4) based on character accuracy, layout fidelity, and the correctness of mathematical expressions.
Dataset Composition
The dataset comprises a rich variety of document types, including academic papers, textbooks, e-books, and general educational materials. It covers multiple languages, specifically Chinese (ZH), English (EN), and Multilingual (ML) content.
The data is publicly hosted on HuggingFace in Parquet format, containing embedded images, extracted text, and the corresponding human-assigned quality scores.
Quality Assessment Results
The human annotations reveal a nuanced picture of current VLM capabilities. While over half of the outputs were deemed "Excellent," a significant portion contained errors that could compromise downstream tasks.
As shown in the table above, 50.7% of the samples achieved a score of 1 (Excellent), indicating near-perfect transcription and layout preservation. However, 10.4% were rated as 4 (Poor), characterized by significant hallucinations or structural collapse.
The authors also benchmarked automated "judge" models to see if they could replicate human scoring. GPT-4o achieved an F1 score of 40.0. Interestingly, a method called Consensus Entropy—which measures the level of agreement between multiple different models—outperformed individual model judges with an F1 score of 48.0. This suggests that model disagreement is a powerful proxy for identifying low-quality OCR.
Key Insights and the "Reliability Gap"
A critical finding of this work is the difficulty of identifying "Good" (Score 2) outputs. Automated judges can easily spot perfect matches or total failures, but they struggle with minor errors like a missing comma or slight spacing issues. This highlights the "Reliability Gap": even top-tier VLMs fail in predictable but damaging ways, such as collapsing table structures or generating "gibberish" when faced with highly complex layouts.
Limitations and Future Directions
While the OCR-Quality dataset is a significant step forward, the authors acknowledge several areas for expansion:
- Scale: 1,000 samples provide a baseline, but larger datasets (5K-10K) are needed to train robust "judge" models.
- Model Diversity: The current dataset relies solely on Qwen2.5-VL outputs; future iterations will include other models like GPT-4o or Claude to capture different error patterns.
- Subjectivity: Moving from single-annotator to multi-annotator scoring will allow for the analysis of inter-annotator agreement.
- Language Scope: Expansion into scripts beyond English and Chinese (e.g., Arabic or Cyrillic) is planned.
By providing a ground-truth dataset for quality assessment, this work enables the development of systems that "know when they don't know," ultimately leading to more reliable document processing pipelines.
Summary updated