HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

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

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

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

lbh1024/can
Official
pytorch
Mentioned in GitHub
qingzhenduyu/ical
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
handwritten-mathmatical-expressionCAN-DWAP
ExpRate: 57.00
handwritten-mathmatical-expressionCAN-ABM
ExpRate: 57.26
handwritten-mathmatical-expression-1CAN-DWAP
ExpRate: 56.06
handwritten-mathmatical-expression-1CAN-ABM
ExpRate: 56.15
handwritten-mathmatical-expression-2CAN-ABM
ExpRate: 55.96
handwritten-mathmatical-expression-2CAN-DWAP
ExpRate: 54.88
handwritten-mathmatical-expression-3CAN-DWAP
ExpRate: 67.31
handwritten-mathmatical-expression-3CAN-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.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
When Counting Meets HMER: Counting-Aware Network for Handwritten Mathematical Expression Recognition | Papers | HyperAI