用视觉语言模型自动检测文档解析中的28类细粒度错误
DOCR-Inspector: Fine-Grained and Automated Evaluation of Document Parsing with VLM
- 通过VLM-as-a-Judge机制识别28种错误类型,实现精细化评估
- 在882个真实文档上测试,性能优于Gemini 2.5 Pro等商用模型
- 可指导结果优化,适合需要高精度文档处理的开发者
文档解析旨在将非结构化PDF图像转化为半结构化数据,推动信息数字化。尽管视觉语言模型(VLM)已显著提升该任务,但在真实场景中实现可靠高质量解析仍具挑战。现有方法常依赖标准基准上的表现排名,但这些基准存在数据集特异性偏差,导致模型排名不一致且与实际表现相关性弱。此外,基准指标仅提供整体得分,难以揭示输出中的具体错误模式。为此,本文提出DOCR-Inspector,将文档解析评估形式化为细粒度错误检测与分析。基于VLM-as-a-Judge,DOCR-Inspector分析文档图像及其解析输出,识别所有错误并归类至28种预定义类型,生成全面质量评估。为支持此能力,构建了包含20万样本的DOCRcase-200K数据集,并提出Chain-of-Checklist推理范式以实现解析质量评估的层级结构。为实证验证,引入包含882个真实文档解析案例的DOCRcaseBench,附有人工标注。实验表明,DOCR-Inspector-7B在该基准上优于Gemini 2.5 Pro等商用模型及主流开源模型。进一步实验显示,其评估结果能有效指导解析结果优化,使DOCR-Inspector兼具实用评估工具与系统改进驱动力。模型与代码已公开:https://github.com/ZZZZZQT/DOCR-Inspector。
原文摘要 · Abstract (English)
Document parsing aims to transform unstructured PDF images into semi-structured data, facilitating the digitization and utilization of information in diverse domains. While vision language models (VLMs) have significantly advanced this task, achieving reliable, high-quality parsing in real-world scenarios remains challenging. Common practice often selects the top-performing model on standard benchmarks. However, these benchmarks may carry dataset-specific biases, leading to inconsistent model rankings and limited correlation with real-world performance. Moreover, benchmark metrics typically provide only overall scores, which can obscure distinct error patterns in output. This raises a key challenge: how can we reliably and comprehensively assess document parsing quality in the wild? We address this problem with DOCR-Inspector, which formalizes document parsing assessment as fine-grained error detection and analysis. Leveraging VLM-as-a-Judge, DOCR-Inspector analyzes a document image and its parsed output, identifies all errors, assigns them to one of 28 predefined types, and produces a comprehensive quality assessment. To enable this capability, we construct DOCRcase-200K for training and propose the Chain-of-Checklist reasoning paradigm to enable the hierarchical structure of parsing quality assessment. For empirical validation, we introduce DOCRcaseBench, a set of 882 real-world document parsing cases with manual annotations. On this benchmark, DOCR-Inspector-7B outperforms commercial models like Gemini 2.5 Pro, as well as leading open-source models. Further experiments demonstrate that its quality assessments provide valuable guidance for parsing results refinement, making DOCR-Inspector both a practical evaluator and a driver for advancing document parsing systems at scale. Model and code are released at: https://github.com/ZZZZZQT/DOCR-Inspector.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。