Handwritten Mathematical Expression Recognition with Bidirectionally Trained Transformer

Wenqi Zhao, Liangcai Gao, Zuoyu Yan, Shuai Peng, Lin Du +1 more
5/6/2021
87 citations
cs.CV
transformer-attention

Official code: Green-Wood/BTTR (129 stars, Python, MIT, PyTorch, last commit 2024-01-22).

Abstract

Encoder-decoder models have made great progress on handwritten mathematical expression recognition recently. However, it is still a challenge for existing methods to assign attention to image features accurately.

Show full abstract

Moreover, those encoder-decoder models usually adopt RNN-based models in their decoder part, which makes them inefficient in processing long $\LaTeX{}$ sequences. In this paper, a transformer-based decoder is employed to replace RNN-based ones, which makes the whole model architecture very concise. Furthermore, a novel training strategy is introduced to fully exploit the potential of the transformer in bidirectional language modeling. Compared to several methods that do not use data augmentation, experiments demonstrate that our model improves the ExpRate of current state-of-the-art methods on CROHME 2014 by 2.23%. Similarly, on CROHME 2016 and CROHME 2019, we improve the ExpRate by 1.92% and 2.28% respectively.

View on arXivView PDF

Code Implementations(1)

Green-Wood/BTTROfficial100%
PyTorchMIT

Official implementation for ICDAR 2021 best poster paper "Handwritten Mathematical Expression Recognition with Bidirectionally Trained Transformer"

12951Python, Jupyter NotebookApr 20, 20212 years agoMIT
deep-learninghandwritten-text-recognitionicdar2021latexmath-recognition+3 more

Similar Papers

Cite this paper

@article{zhao2021handwritten,
  title  = {Handwritten Mathematical Expression Recognition with Bidirectionally Trained Transformer},
  author = {Wenqi Zhao and Liangcai Gao and Zuoyu Yan and Shuai Peng and Lin Du and Ziyin Zhang},
  year   = {2021},
  eprint = {2105.02412},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2105.02412}
}

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

Discussion