AIm2Markup: Structured Target Representations for Image-to-Markup Mathematical Expression Recognition
Purpose: This study investigates how LaTeX, simplified Presentation MathML, and Typst targets affect recognition accuracy and structural fidelity in mathematical expression recognition. Methods: We introduce three aligned AIm2Markup datasets containing identical equation images paired with targets generated from the same source equations under specified conversion and normalization procedures. Six encoder-decoder configurations, including scratch-trained and pretrained models, are evaluated using normalized Edit Distance, BLEU, normalized Tree Edit Distance (nTED), Exact Match, and structural similarity measures. Results: Across the evaluated models, MathML achieves the lowest overall Edit Distance and nTED and the highest BLEU and Exact Match in most configurations. Typst generally provides competitive performance with LaTeX among the scratch-trained models, while representation rankings vary across architectures and metrics. Complexity-stratified analysis shows that highly complex expressions are more difficult across representations and that mean nTED and threshold-based nTED can yield different representation rankings. The OCR-pretrained TrOCR-Qwen exhibits a distinct pattern, with stronger LaTeX performance in several exact-match and threshold-based evaluations. Conclusion: Target representation affects token-level accuracy and structural fidelity. These findings support treating target representation as a design choice alongside model architecture, pretraining, and training strategy.
Authors
- Clayton T. Morrison (ORCID: https://orcid.org/0000-0002-3606-0078)
- Eungjoo Lee (ORCID: https://orcid.org/0000-0001-6386-8470)
- Gaurav Sharma
Institutions
- University of Arizona (US)
Publication Details
- Journal
- Research Square
- Published
- 2026-12-01
- DOI
- https://doi.org/10.21203/rs.3.rs-10936207/v1
- Primary Topic
- Handwritten Text Recognition Techniques
- Type
- preprint