提出图像级字符匹配评估法,让公式识别评测更公平准确
Image Over Text: Transforming Formula Recognition Evaluation with Character Detection Matching
- 用图像匹配代替文本比对,结合空间位置信息进行字符级评估
- 在多个模型上测试显示,该方法与人工评价更一致
- 适合关注公式识别公平性评估的研究者和开发者
公式识别因数学表达式结构复杂、符号多样而面临挑战。尽管模型持续进步,现有评估指标如BLEU和编辑距离仍存在明显局限:它们忽略同一公式存在多种表示形式,且对训练数据分布敏感,导致评价不公平。为此,我们提出字符检测匹配(CDM)指标,通过图像级而非LaTeX级的评分方式提升评估客观性。具体地,将模型预测的LaTeX与真实LaTeX均渲染为图像,利用视觉特征提取与定位技术实现精确的字符级匹配,并融入空间位置信息。该空间感知的字符匹配方法相比仅依赖文本字符匹配的旧指标,能提供更准确、更公平的评估。实验表明,使用CDM评估多个公式识别模型时,其结果更贴近人工评价标准,有效消除不同公式表达形式带来的偏差。代码已开源:https://github.com/opendatalab/UniMERNet/tree/main/cdm。
原文摘要 · Abstract (English)
Formula recognition presents significant challenges due to the complicated structure and varied notation of mathematical expressions. Despite continuous advancements in formula recognition models, the evaluation metrics employed by these models, such as BLEU and Edit Distance, still exhibit notable limitations. They overlook the fact that the same formula has diverse representations and is highly sensitive to the distribution of training data, thereby causing unfairness in formula recognition evaluation. To this end, we propose a Character Detection Matching (CDM) metric, ensuring the evaluation objectivity by designing an image-level rather than a LaTeX-level metric score. Specifically, CDM renders both the model-predicted LaTeX and the ground-truth LaTeX formulas into image-formatted formulas, then employs visual feature extraction and localization techniques for precise character-level matching, incorporating spatial position information. Such a spatially-aware and character-matching method offers a more accurate and equitable evaluation compared with previous BLEU and Edit Distance metrics that rely solely on text-based character matching. Experimentally, we evaluated various formula recognition models using CDM, BLEU, and ExpRate metrics. Their results demonstrate that the CDM aligns more closely with human evaluation standards and provides a fairer comparison across different models by eliminating discrepancies caused by diverse formula representations. Code is available at https://github.com/opendatalab/UniMERNet/tree/main/cdm.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。