OCR Hinders RAG: Evaluating the Cascading Impact of OCR on Retrieval-Augmented Generation

Junyuan Zhang, Qintong Zhang, Bin Wang, Linke Ouyang, Zichen Wen, Ying Li, Ka-Ho Chow, Conghui He, Wentao Zhang · DOI

Introduction

Retrieval-Augmented Generation (RAG) has emerged as the industry standard for grounding Large Language Models (LLMs) in factual, domain-specific data. However, a critical and often overlooked component of the RAG pipeline is the ingestion layer—specifically, the Optical Character Recognition (OCR) process required to convert unstructured PDF documents into machine-readable text. This paper introduces OHRBench, a comprehensive benchmark designed to quantify how OCR imperfections cascade through RAG systems, ultimately degrading performance even when using state-of-the-art models.

OHRBench: A Comprehensive Multimodal Benchmark

To systematically study this phenomenon, the researchers developed OHRBench, which spans seven diverse real-world domains: Academic, Law, Finance, Newspaper, Manual, Textbook, and Administration. Unlike previous datasets that focus on simple text, OHRBench is specifically curated to test multimodal elements that frequently appear in professional documents, such as complex tables, mathematical formulas, and charts.

Overview of the OHRBench dataset, showcasing its 7 domains and diverse Q&A tasks involving complex layouts, charts, and formulas.

The benchmark consists of 8,561 document images and 8,498 human-verified Q&A pairs. These pairs are categorized into "Understanding" and "Reasoning" tasks, requiring the RAG system to not only find the correct information but also interpret it within the context of the document's layout and structure.

Methodology: Quantifying the Noise

The study employs a multi-stage evaluation framework to isolate the impact of different error types. The researchers categorized OCR noise into two primary forms:

  1. Semantic Noise: Direct errors in character recognition (e.g., misidentifying a digit in a financial table).
  2. Formatting Noise: Structural inconsistencies, such as representing a table in a messy or non-standard Markdown/LaTeX format.
The OHRBench evaluation framework, including dataset statistics, OCR solution categories, noise introduction methods, and the RAG evaluation flow.

By programmatically introducing these noises into human-verified "ground truth" data, the researchers could measure the specific failure points in both the retrieval (finding the relevant chunk) and generation (formulating the final answer) stages. The study evaluated three classes of OCR solutions: traditional pipeline-based systems (e.g., MinerU), end-to-end models (e.g., GOT), and Vision-Language Models (VLMs) like Qwen2.5-VL.

Key Insights: The Cascading Impact of Noise

The evaluation revealed several critical findings regarding the robustness of modern RAG pipelines:

  • The 14% Performance Gap: Even the highest-performing OCR solution (Qwen2.5-VL-72B) resulted in at least a 14% drop in RAG performance compared to using perfect ground-truth data. This suggests that current OCR technology remains a significant bottleneck for reliable AI applications.
  • Semantic Noise is a "RAG-Killer": Moderate levels of semantic noise can lead to a nearly 50% decline in performance. If a single critical value in a table is misread, the retriever often fails to identify the correct context, or the generator produces a hallucinated answer based on the corrupted input.
  • The "Reading Order" Bottleneck: A major challenge identified was the restoration of correct reading order, especially in multi-column layouts. Even advanced VLMs struggled with this, leading to abysmal F1 scores in complex layout scenarios.
  • VLM Dominance: Vision-Language Models generally outperformed specialized OCR pipelines. Their internal language priors allow them to "guess" the correct context even when visual signals are distorted, making them more robust to minor recognition errors.

Conclusion and Future Directions

The findings from OHRBench demonstrate that traditional OCR metrics, such as Edit Distance, are insufficient for predicting RAG success. A single character error in a critical formula or table cell can be more damaging than dozens of typos in a standard paragraph.

Future research must focus on developing "noise-robust" retrievers and LLMs that are specifically trained to handle the artifacts of OCR. Furthermore, solving the "Reading Order" problem remains essential for unlocking the full potential of RAG in technical and historical document processing. OHRBench provides the necessary foundation for tracking progress in these critical areas.

Summary updated

BibTeX
@inproceedings{zhang2025ocr,
  author = {Junyuan Zhang and Qintong Zhang and Bin Wang and Linke Ouyang and Zichen Wen and Ying Li and Ka-Ho Chow and Conghui He and Wentao Zhang},
  title = {{OCR Hinders RAG: Evaluating the Cascading Impact of OCR on Retrieval-Augmented Generation}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2025},
}
Figure