arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.02592cs.CV
收藏

OCR 阻碍 RAG:评估 OCR 对检索增强生成的级联影响

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

Shanghai AI Laboratory(上海人工智能实验室);Peking University(北京大学);The University of HongKong(香港大学);Shanghai Jiaotong University(上海交通大学);Beihang University(北京航空航天大学)

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

AI总结:

该研究提出首个评估OCR对RAG级联影响的基准OHRBench,含7个领域的文档与问答对,识别两类OCR噪声并验证其与RAG性能的关联,发现现有OCR方案均难满足RAG知识库构建需求。

摘要:

检索增强生成(Retrieval-augmented Generation, RAG)通过整合外部知识来增强大语言模型(Large Language Models, LLMs),无需重新训练即可减少幻觉并融入最新信息。作为 RAG 的核心组成部分,外部知识库通常通过光学字符识别(Optical Character Recognition, OCR)从非结构化 PDF 文档中提取结构化数据构建而成。然而,由于 OCR 的预测并不完美,且结构化数据本身存在非均匀表示的固有特性,知识库不可避免地包含各类 OCR 噪声。本文提出了 OHRBench,这是首个用于理解 OCR 对 RAG 系统级联影响的基准测试。OHRBench 包含来自 7 个真实世界 RAG 应用领域的 8561 份精心筛选的非结构化文档图像,以及从文档多模态元素中提取的 8498 个问答对,对当前用于 RAG 的 OCR 解决方案构成了挑战。为更清晰地理解 OCR 对 RAG 系统的影响,我们识别出两类主要的 OCR 噪声:语义噪声和格式噪声,并通过施加扰动生成了一组两类噪声程度各不相同的结构化数据。借助 OHRBench,我们首先对当前 OCR 解决方案开展了全面评估,结果显示没有一种方案能够胜任为 RAG 系统构建高质量知识库的任务。随后我们系统评估了这两类噪声的影响,揭示了 OCR 噪声程度与 RAG 性能之间的趋势关系。我们的 OHRBench(包含 PDF 文档、问答对及真实结构化数据)已发布于:https://github.com/opendatalab/OHR-Bench

英文摘要:

Retrieval-augmented Generation (RAG) enhances Large Language Models (LLMs) by integrating external knowledge to reduce hallucinations and incorporate up-to-date information without retraining. As an essential part of RAG, external knowledge bases are commonly built by extracting structured data from unstructured PDF documents using Optical Character Recognition (OCR). However, given the imperfect prediction of OCR and the inherent non-uniform representation of structured data, knowledge bases inevitably contain various OCR noises. In this paper, we introduce OHRBench, the first benchmark for understanding the cascading impact of OCR on RAG systems. OHRBench includes 8,561 carefully selected unstructured document images from seven real-world RAG application domains, along with 8,498 Q&A pairs derived from multimodal elements in documents, challenging existing OCR solutions used for RAG. To better understand OCR's impact on RAG systems, we identify two primary types of OCR noise: Semantic Noise and Formatting Noise and apply perturbation to generate a set of structured data with varying degrees of each OCR noise. Using OHRBench, we first conduct a comprehensive evaluation of current OCR solutions and reveal that none is competent for constructing high-quality knowledge bases for RAG systems. We then systematically evaluate the impact of these two noise types and demonstrate the trend relationship between the degree of OCR noise and RAG performance. Our OHRBench, including PDF documents, Q&As, and the ground truth structured data are released at: https://github.com/opendatalab/OHR-Bench

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑