A Tree-Based Structure-Aware Transformer Decoder for Image-To-Markup Generation
Shuhan Zhong, Sizhe Song, Guanyao Li, S.-H. Gary Chan
Abstract
Image-to-markup generation aims at translating an image into markup (structured language) that represents both the contents and the structural semantics corresponding to the image. Recent encoder-decoder based approaches typically employ string decoders to model the string representation of the target markup, which cannot effectively capture the rich embedded structural information. In this paper, we propose TSDNet, a novel Tree-based Structure-aware Transformer Decoder NETwork to directly generate the tree representation of the target markup in a structure-aware manner. Specifically, our model learns to sequentially predict the node attributes, edge attributes, and node connectivities by multi-task learning. Meanwhile, we introduce a novel tree-structured attention to our decoder such that it can directly operate on the partial tree generated in each step to fully exploit the structural information. TSDNet doesn't rely on any prior assumptions on the target tree structure, and can be jointly optimized with encoders in an end-to-end fashion. We evaluate the performance of our model on public image-to-markup generation datasets, and demonstrate its ability to learn the complicated correlation from the structural information in the target markup with significant improvement over state-of-the-art methods by up to 5.6% in mathematical expression recognition and up to 35.34% in chemical formula recognition.
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 b725b60e-163e-4223-9e62-86f1f6d70941Cited by top-tier papers5
- Language Model is Suitable for Correction of Handwritten Mathematical Expressions RecognitionZui Chen, Jiaqi Han, Chaofan Yang, Yi ZhouEMNLP 2023 · 9 citations
- SSAN: A Symbol Spatial-Aware Network for Handwritten Mathematical Expression RecognitionHaoran Zhang, Xiangdong Su, Xingxiang Zhou, Guanglai GaoAAAI 2025 · 4 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
- Neural–Evolutionary Symbolic Regression with Global Constraints: Constraint-Aware Decoding and Reward ShapingXiangdong Wu, wenjun wu, Ziyu Wei, Bingrun Chen et al.ICML 2026
- Run, Don't Walk: Chasing Higher FLOPS for Faster Neural NetworksJierun Chen, Shiu-Hong Kao, Hao He, Weipeng Zhuo et al.CVPR 2023
Builds on7
- Global Relational Models of Source CodeVincent J. Hellendoorn, Charles Sutton, Rishabh Singh, Petros Maniatis et al.ICLR 2020 · 252 citations
- TreeGen: A Tree-Based Transformer Architecture for Code GenerationZeyu Sun, Qihao Zhu, Yingfei Xiong, Yican Sun et al.AAAI 2020 · 196 citations
- Language-Agnostic Representation Learning of Source Code from Structure and ContextDaniel Zügner, Tobias Kirschstein, Michele Catasta, Jure Leskovec et al.ICLR 2021 · 131 citations
- Tree-Structured Attention with Hierarchical AccumulationXuan-Phi Nguyen, Shafiq R. Joty, Steven C. H. Hoi, Richard SocherICLR 2020 · 79 citations
- A Tree-Structured Decoder for Image-to-Markup GenerationJianshu Zhang, Jun Du, Yongxin Yang, Yi-Zhe Song et al.ICML 2020 · 68 citations
Related papers
- 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
- Structure-aware Mathematical Expression Recognition with Sequence-Level ModelingMinli Li, Peilin Zhao, Yifan Zhang, Shuaicheng Niu et al.ACM MM 2021 · 4 citations
- TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression RecognitionJianhua Zhu, Wenqi Zhao, Yu Li, Xingjian Hu et al.AAAI 2025 · 14 citations
- An Expression Tree Decoding Strategy for Mathematical Equation GenerationWenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan et al.EMNLP 2023 · 3 citations
- Handwritten Chemical Structure Image to Structure-Specific Markup Using Random Conditional Guided DecoderJinshui Hu, Hao Wu, Mingjun Chen, Chenyu Liu et al.ACM MM 2023 · 2 citations
