TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition
Jianhua Zhu, Wenqi Zhao, Yu Li, Xingjian Hu, Liangcai Gao
Abstract
Handwritten Mathematical Expression Recognition (HMER) has extensive applications in automated grading and office automation. However, existing sequence-based decoding methods, which directly predict L A T E X sequences, struggle to understand and model the inherent tree structure of L A T E X 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 L A T E X 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.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 278a634e-4758-4a2b-9c63-3c2f64c374f0Cited by top-tier papers3
- Uni-MuMER: Unified Multi-Task Fine-Tuning of Vision-Language Model for Handwritten Mathematical Expression RecognitionYu Li, Jin Jiang, Jianhua Zhu, Shuai Peng et al.NeurIPS 2025 · 7 citations
- From Pixel to Precision: Enhancing Handwritten Mathematical Expression Recognition with Image-Level RewardZe Liu, Kai Zhang, Xianquan Wang, Shuochen Liu et al.CVPR 2026 · 2 citations
- Complex Mathematical Expression Recognition: Benchmark, Large-Scale Dataset and Strong BaselineWeikang Bai, Yongkun Du, Yuchen Su, Yazhen Xie et al.AAAI 2026 · 2 citations
Builds on4
- Syntax-Aware Network for Handwritten Mathematical Expression RecognitionYe Yuan, Xiao Liu, Wondimu Dikubab, Hui Liu et al.CVPR 2022 · 74 citations
- Handwritten Mathematical Expression Recognition via Attention Aggregation Based Bi-directional Mutual LearningXiaohang Bian, Bo Qin, Xiaozhe Xin, Jianwu Li et al.AAAI 2022 · 70 citations
- A Tree-Structured Decoder for Image-to-Markup GenerationJianshu Zhang, Jun Du, Yongxin Yang, Yi-Zhe Song et al.ICML 2020 · 68 citations
- TDv2: A Novel Tree-Structured Decoder for Offline Mathematical Expression RecognitionChangjie Wu, Jun Du, Yunqing Li, Jianshu Zhang et al.AAAI 2022 · 23 citations
Related papers
- Language Model is Suitable for Correction of Handwritten Mathematical Expressions RecognitionZui Chen, Jiaqi Han, Chaofan Yang, Yi ZhouEMNLP 2023 · 9 citations
- Graph-to-Graph: Towards Accurate and Interpretable Online Handwritten Mathematical Expression RecognitionJin-Wen Wu, Fei Yin, Yan-Ming Zhang, Xu-Yao Zhang et al.AAAI 2021 · 39 citations
- Read Ten Lines at One Glance: Line-Aware Semi-Autoregressive Transformer for Multi-Line Handwritten Mathematical Expression RecognitionWentao Yang, Zhe Li, Dezhi Peng, Lianwen Jin et al.ACM MM 2023 · 6 citations
- SSAN: A Symbol Spatial-Aware Network for Handwritten Mathematical Expression RecognitionHaoran Zhang, Xiangdong Su, Xingxiang Zhou, Guanglai GaoAAAI 2025 · 4 citations
- Art4Math: Handwritten Mathematical Expression Recognition via Multimodal Sketch GroundingYang Zhou, Jin Wang, Yuxiao Zhang, Kaixiang Huang et al.ACM MM 2025
