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

TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition

About

Handwritten Mathematical Expression Recognition (HMER) has extensive applications in automated grading and office automation. However, existing sequence-based decoding methods, which directly predict $\LaTeX$ sequences, struggle to understand and model the inherent tree structure of $\LaTeX$ and often fail to ensure syntactic correctness in the decoded results. To address these challenges, we propose a novel model named TAMER (Tree-Aware Transformer) for handwritten mathematical expression recognition. TAMER introduces an innovative Tree-aware Module while maintaining the flexibility and efficient training of Transformer. TAMER combines the advantages of both sequence decoding and tree decoding models by jointly optimizing sequence prediction and tree structure prediction tasks, which enhances the model's understanding and generalization of complex mathematical expression structures. During inference, TAMER employs a Tree Structure Prediction Scoring Mechanism to improve the structural validity of the generated $\LaTeX$ sequences. Experimental results on CROHME datasets demonstrate that TAMER outperforms traditional sequence decoding and tree decoding models, especially in handling complex mathematical structures, achieving state-of-the-art (SOTA) performance.

Jianhua Zhu, Wenqi Zhao, Yu Li, Xingjian Hu, Liangcai Gao• 2024

Related benchmarks

TaskDatasetResultRank
Handwritten Mathematical Expression RecognitionCROHME 2016 (test)
Expression Rate (Exp)60.26
164
Handwritten Mathematical Expression RecognitionCROHME 2014 (test)
Expression Rate (Exp)61.36
156
Handwritten Mathematical Expression RecognitionCROHME 2019 (test)
Expression Rate (Exp)61.97
107
Handwritten Mathematical Expression RecognitionCROHME 2014--
47
Handwritten Mathematical Expression RecognitionCROHME 2016
Expression Rate60.26
40
Handwritten Mathematical Expression RecognitionCROHME 2019
ExpRate62.97
39
Handwritten Mathematical Expression RecognitionCROHME 2023 (test)
Expression Rate56.91
11
Mathematical Expression RecognitionMathWriting 1.0 (val)
CER5.96
9
Mathematical Expression RecognitionMathWriting 1.0 (test)
CER6.5
9
Handwritten Mathematical Expression RecognitionHME100K (test)
FPS4.5
3
Showing 10 of 10 rows

Other info

Code

Follow for update