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

面向手写数学表达式识别的注意力引导机制

Attention Guidance Mechanism for Handwritten Mathematical Expression Recognition

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)

Yutian Liu, Wenjun Ke, Jianguo Wei

AI总结:

针对手写数学表达式识别中的过解析、欠解析问题,提出含自引导和邻域引导的注意力引导机制,优化注意力权重,在多个CROHME数据集上取得优于现有SOTA的识别率。

摘要:

手写数学表达式识别(HMER)因数学表达式的复杂布局,是图像到文本任务中的难点,且存在过解析和欠解析等问题。为解决这些问题,以往的HMER方法通过利用历史对齐信息改进注意力机制,但该方法在解决欠解析问题上存在局限——它无法纠正对后续解码步骤才应解析的图像区域的错误注意力。这种错误注意力会导致注意力模块将未来上下文纳入当前解码步骤,进而扰乱对齐过程。针对该问题,我们提出一种注意力引导机制,显式抑制无关区域的注意力权重并增强对应区域的权重,从而阻止对预期上下文之外信息的访问。根据注意力引导的类型,我们设计了两种互补方法来优化注意力权重:协调多头注意力的自引导,以及整合相邻时间步注意力的邻域引导。实验表明,我们的方法优于现有最先进方法,在CROHME 2014/2016/2019数据集上分别取得了60.75%/61.81%/63.30%的表达式识别率。

英文摘要:

Handwritten mathematical expression recognition (HMER) is challenging in image-to-text tasks due to the complex layouts of mathematical expressions and suffers from problems including over-parsing and under-parsing. To solve these, previous HMER methods improve the attention mechanism by utilizing historical alignment information. However, this approach has limitations in addressing under-parsing since it cannot correct the erroneous attention on image areas that should be parsed at subsequent decoding steps. This faulty attention causes the attention module to incorporate future context into the current decoding step, thereby confusing the alignment process. To address this issue, we propose an attention guidance mechanism to explicitly suppress attention weights in irrelevant areas and enhance the appropriate ones, thereby inhibiting access to information outside the intended context. Depending on the type of attention guidance, we devise two complementary approaches to refine attention weights: self-guidance that coordinates attention of multiple heads and neighbor-guidance that integrates attention from adjacent time steps. Experiments show that our method outperforms existing state-of-the-art methods, achieving expression recognition rates of 60.75% / 61.81% / 63.30% on the CROHME 2014/ 2016/ 2019 datasets.

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

↑