Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

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

About

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.

Wenqi Zhao, Liangcai Gao• 2022

Related benchmarks

TaskDatasetResultRank
Handwritten Mathematical Expression RecognitionCROHME 2016 (test)
Expression Rate (Exp)59.81
164
Handwritten Mathematical Expression RecognitionCROHME 2014 (test)
Expression Rate (Exp)59.33
156
Handwritten Mathematical Expression RecognitionCROHME 2019 (test)
Expression Rate (Exp)62.97
107
Handwritten Mathematical Expression RecognitionCROHME 2014
Error Rate58.57
47
Handwritten Mathematical Expression RecognitionCROHME 2016
Expression Rate60.06
40
Handwritten Mathematical Expression RecognitionCROHME 2019
ExpRate62.97
39
Handwritten Mathematical Expression RecognitionHME100K
ExpRate68.12
17
Handwritten Mathematical Expression RecognitionHME100K 1.0 (test)
Expression Rate0.6812
9
Handwritten Mathematical Expression RecognitionM2E multi-line (test)
ExpRate56.2
8
Handwritten Mathematical Expression RecognitionHME100K (test)
FPS5.23
3
Showing 10 of 10 rows

Other info

Code

Follow for update