Lune

ACM MM2022Top-tier venue

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 Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • From Pixel to Precision: Enhancing Handwritten Mathematical Expression Recognition with Image-Level Reward cites A Tree-Structured Decoder for Image-to-Markup Generation
  • Language Model is Suitable for Correction of Handwritten Mathematical Expressions Recognition cites A Tree-Structured Decoder for Image-to-Markup Generation
  • SSAN: A Symbol Spatial-Aware Network for Handwritten Mathematical Expression Recognition cites A Tree-Structured Decoder for Image-to-Markup Generation
  • Language-Agnostic Representation Learning of Source Code from Structure and Context cites Global Relational Models of Source Code
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Language Model is Suitable for Correction of Handwritten Mathematical Expressions RecognitionZui Chen, Jiaqi Han, Chaofan Yang, Yi ZhouEMNLP 2023 · 9 citations
  2. SSAN: A Symbol Spatial-Aware Network for Handwritten Mathematical Expression RecognitionHaoran Zhang, Xiangdong Su, Xingxiang Zhou, Guanglai GaoAAAI 2025 · 4 citations
  3. 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
  4. Neural–Evolutionary Symbolic Regression with Global Constraints: Constraint-Aware Decoding and Reward ShapingXiangdong Wu, wenjun wu, Ziyu Wei, Bingrun Chen et al.ICML 2026
  5. Run, Don't Walk: Chasing Higher FLOPS for Faster Neural NetworksJierun Chen, Shiu-Hong Kao, Hao He, Weipeng Zhuo et al.CVPR 2023

Builds on8

  1. Global Relational Models of Source CodeVincent J. Hellendoorn, Charles Sutton, Rishabh Singh, Petros Maniatis et al.ICLR 2020 · 252 citations
  2. TreeGen: A Tree-Based Transformer Architecture for Code GenerationZeyu Sun, Qihao Zhu, Yingfei Xiong, Yican Sun et al.AAAI 2020 · 196 citations
  3. 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
  4. Tree-Structured Attention with Hierarchical AccumulationXuan-Phi Nguyen, Shafiq R. Joty, Steven C. H. Hoi, Richard SocherICLR 2020 · 79 citations
  5. 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

  1. 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
  2. Structure-aware Mathematical Expression Recognition with Sequence-Level ModelingMinli Li, Peilin Zhao, Yifan Zhang, Shuaicheng Niu et al.ACM MM 2021 · 4 citations
  3. TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression RecognitionJianhua Zhu, Wenqi Zhao, Yu Li, Xingjian Hu et al.AAAI 2025 · 14 citations
  4. An Expression Tree Decoding Strategy for Mathematical Equation GenerationWenqi Zhang, Yongliang Shen, Qingpeng Nong, Zeqi Tan et al.EMNLP 2023 · 3 citations
  5. 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
Dusk over the sea between two cliffs drawn in fine vertical lines