English

When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition

Computer Vision and Pattern Recognition 2022-07-26 v1 Artificial Intelligence

Abstract

Recently, most handwritten mathematical expression recognition (HMER) methods adopt the encoder-decoder networks, which directly predict the markup sequences from formula images with the attention mechanism. However, such methods may fail to accurately read formulas with complicated structure or generate long markup sequences, as the attention results are often inaccurate due to the large variance of writing styles or spatial layouts. To alleviate this problem, we propose an unconventional network for HMER named Counting-Aware Network (CAN), which jointly optimizes two tasks: HMER and symbol counting. Specifically, we design a weakly-supervised counting module that can predict the number of each symbol class without the symbol-level position annotations, and then plug it into a typical attention-based encoder-decoder model for HMER. Experiments on the benchmark datasets for HMER validate that both joint optimization and counting results are beneficial for correcting the prediction errors of encoder-decoder models, and CAN consistently outperforms the state-of-the-art methods. In particular, compared with an encoder-decoder model for HMER, the extra time cost caused by the proposed counting module is marginal. The source code is available at https://github.com/LBH1024/CAN.

Keywords

Cite

@article{arxiv.2207.11463,
  title  = {When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition},
  author = {Bohan Li and Ye Yuan and Dingkang Liang and Xiao Liu and Zhilong Ji and Jinfeng Bai and Wenyu Liu and Xiang Bai},
  journal= {arXiv preprint arXiv:2207.11463},
  year   = {2022}
}

Comments

ECCV 2022

R2 v1 2026-06-25T01:10:02.193Z