Command Palette
Search for a command to run...
When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition
Li Bohan ; Yuan Ye ; Liang Dingkang ; Liu Xiao ; Ji Zhilong ; Bai Jinfeng ; Liu Wenyu ; Bai Xiang

Abstract
Recently, most handwritten mathematical expression recognition (HMER) methodsadopt the encoder-decoder networks, which directly predict the markup sequencesfrom formula images with the attention mechanism. However, such methods mayfail to accurately read formulas with complicated structure or generate longmarkup sequences, as the attention results are often inaccurate due to thelarge 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 predictthe 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 jointoptimization and counting results are beneficial for correcting the predictionerrors of encoder-decoder models, and CAN consistently outperforms thestate-of-the-art methods. In particular, compared with an encoder-decoder modelfor HMER, the extra time cost caused by the proposed counting module ismarginal. The source code is available at https://github.com/LBH1024/CAN.
Code Repositories
Benchmarks
| Benchmark | Methodology | Metrics |
|---|---|---|
| handwritten-mathmatical-expression | CAN-DWAP | ExpRate: 57.00 |
| handwritten-mathmatical-expression | CAN-ABM | ExpRate: 57.26 |
| handwritten-mathmatical-expression-1 | CAN-DWAP | ExpRate: 56.06 |
| handwritten-mathmatical-expression-1 | CAN-ABM | ExpRate: 56.15 |
| handwritten-mathmatical-expression-2 | CAN-ABM | ExpRate: 55.96 |
| handwritten-mathmatical-expression-2 | CAN-DWAP | ExpRate: 54.88 |
| handwritten-mathmatical-expression-3 | CAN-DWAP | ExpRate: 67.31 |
| handwritten-mathmatical-expression-3 | CAN-ABM | ExpRate: 68.09 |
Build AI with AI
From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.