atlas

Research map / Architectures and efficiency / Attention and transformers

TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition

AAAI 2025 · Architectures and efficiency › Attention and transformers · approach: Efficient language transformers · 16 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

TAMER adds a tree-aware module to a CoMER-style Transformer that jointly predicts LaTeX sequences and parent-child tree structure, plus a tree-scoring step in beam search, reaching SOTA ExpRate on CROHME 2014/2016/2019 without data augmentation.

Problem

Sequence-based decoders for handwritten mathematical expression recognition (HMER) predict LaTeX directly, so they under-model the tree structure of expressions and often produce syntactically invalid output such as unmatched braces.

Approach

Add a Tree-Aware Module on top of the Transformer decoder that predicts a parent-child score matrix over characters, train it jointly with the sequence loss, and at inference rescore beam-search candidates with the tree structure score, keeping parallel Transformer training.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add the Tree-Aware Module (ablation)CoMER · CROHME 2014/2016/2019 testExpRate: 58.38 -> 60.39; 56.98 -> 59.08; 59.12 -> 61.32Helped
add Tree Structure Prediction Scoring (ablation)TAM · CROHME 2014/2016/2019 testExpRate: 60.39 -> 61.23; 59.08 -> 60.26; 61.32 -> 61.97Helped
add Fusion Module (ablation)TAMER · HME100KExpRate: 68.52 -> 69.50Helped
add Tree-Aware Module and Tree Scoring (ablation)CoMER · CROHME 2014/2016/2019 testExpRate: 58.38 -> 61.23; 56.98 -> 60.26; 59.12 -> 61.97Helped
use Tree Structure Prediction Scoring during inference (ablation)TAMER · CROHME 2014 testFPS: 9.45 -> 6.75Hurt
add the Tree-Aware ModuleCoMER · CROHME 2014 test, structural complexity 5 or higherExpRate: 5.31%Helped
add the Tree-Aware Module and tree-based joint trainingCoMER · CROHME 2014/2016/2019 testExpRate: 2.85%; 3.28%; 2.85%Helped
add the Tree-Aware ModuleCoMER · CROHME 2014, structural complexity above 5bracket matching accuracy: more than 15%Helped
add the Tree-Aware ModuleCoMER · CROHME 2014/2016/2019 and HME100K, complex structuresbracket matching accuracy: 92.65%; 96.86%; 94.74%; 93%Helped

Surprising findings

Limitations

Experimental setup

Datasets: CROHME 2014 CROHME 2016 CROHME 2019 HME100K

Benchmarks: CROHME 2014 CROHME 2016 CROHME 2019 HME100K

Metrics: ExpRate <=1 error <=2 errors bracket matching accuracy

Baselines: CoMER ICAL NAMER GCN CAN-ABM ABM SAN TDv2 DenseWAP-TD BTTR

Builds on: CoMER DenseNet Transformer BTTR ICAL

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy