Attention Guidance Mechanism for Handwritten Mathematical Expression Recognition

Yutian Liu, Wenjun Ke, Jianguo Wei
3/4/2024
cs.CV

No confident code implementation found for this paper. 4 possible matches can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 4 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{liu2024attention,
  title  = {Attention Guidance Mechanism for Handwritten Mathematical Expression Recognition},
  author = {Yutian Liu and Wenjun Ke and Jianguo Wei},
  year   = {2024},
  eprint = {2403.01756},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2403.01756v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2403.01756.svg)](https://codeofpaper.com/paper/2403.01756)

Discussion