CoMER: Modeling Coverage for Transformer-based Handwritten Mathematical Expression Recognition

Wenqi Zhao, Liangcai Gao
7/10/2022
cs.CV

No official code found. Best implementation: Green-Wood/CoMER (135 stars, PyTorch, last commit 2022-09-12).

Abstract

The Transformer-based encoder-decoder architecture has recently made significant advances in recognizing handwritten mathematical expressions. However, the transformer model still suffers from the lack of coverage problem, making its expression recognition rate (ExpRate) inferior to its RNN counterpart. Coverage information, which records the alignment information of the past steps, has proven effective in the RNN models. In this paper, we propose CoMER, a model that adopts the coverage information in the transformer decoder. Specifically, we propose a novel Attention Refinement Module (ARM) to refine the attention weights with past alignment information without hurting its parallelism. Furthermore, we take coverage information to the extreme by proposing self-coverage and cross-coverage, which utilize the past alignment information from the current and previous layers. Experiments show that CoMER improves the ExpRate by 0.61%/2.09%/1.59% compared to the current state-of-the-art model, and reaches 59.33%/59.81%/62.97% on the CROHME 2014/2016/2019 test sets.

View on arXivView PDF

Code Implementations(1)

Green-Wood/CoMERCommunity100%
PyTorch

Official implementation for ECCV 2022 paper "CoMER: Modeling Coverage for Transformer-based Handwritten Mathematical Expression Recognition"

13523HTML, PerlJul 10, 20224 years ago
deep-learningeccv2022encoder-decoderhandwritten-text-recognitionlatex+4 more

Similar Papers

Cite this paper

@article{zhao2022comer,
  title  = {CoMER: Modeling Coverage for Transformer-based Handwritten Mathematical Expression Recognition},
  author = {Wenqi Zhao and Liangcai Gao},
  year   = {2022},
  eprint = {2207.04410},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2207.04410v2}
}

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/2207.04410.svg)](https://codeofpaper.com/paper/2207.04410)

Discussion