SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2408.08578 · 2024

TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2408.08578.json · badge: /api/ran/2408.08578.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
qingzhenduyu/tamer canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
data_iterator Ran
ran; our contract draft was wrong, not the code
qingzhenduyu/tamer/tamer/datamodule/datamodule.py
pointer only (licence: NONE) · get_code("51c4f1ba8cbc8fef")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_data Ran
ran; our contract draft was wrong, not the code
qingzhenduyu/tamer/tamer/datamodule/datamodule.py
pointer only (licence: NONE) · get_code("6ef73ec3051b3eb0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

findendmatrix Ran
ran, honoured the contract we drafted
qingzhenduyu/tamer/tamer/datamodule/latex2gtd.py
pointer only (licence: NONE) · get_code("a7b95b6cf187938e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

findnextbracket Ran
ran, honoured the contract we drafted
qingzhenduyu/tamer/tamer/datamodule/latex2gtd.py
pointer only (licence: NONE) · get_code("70ca7d9a779e6f15")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rotate_every_two Ran
ran; our contract draft was wrong, not the code
qingzhenduyu/tamer/tamer/model/pos_enc.py
pointer only (licence: NONE) · get_code("e06d2f5f2824ecc6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

collate_fn Not yet run
unverified (harvested, no recorded run)
qingzhenduyu/tamer/tamer/datamodule/datamodule.py
pointer only (licence: NONE) · get_code("9f2e3298b5be99e0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

latex2Tree Not yet run
unverified (harvested, no recorded run)
qingzhenduyu/tamer/tamer/datamodule/latex2gtd.py
pointer only (licence: NONE) · get_code("bffcd3c331e624f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, qingzhenduyu/tamer when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (2 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
rotate_every_two 2 other papers
2 dated earlier
2105.02412 (2021-05)
Handwritten Mathematical Expression Recognition with Bidirectionally Trained Transformer
2407.07764 (2024-07)
PosFormer: Recognizing Complex Handwritten Mathematical Expression with Position Forest Transformer
collate_fn 1 other paper
1 dated earlier
2407.07764 (2024-07)
PosFormer: Recognizing Complex Handwritten Mathematical Expression with Position Forest Transformer

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Handwritten Mathematical Expression Recognition (HMER) has extensive applications in automated grading and office automation. However, existing sequence-based decoding methods, which directly predict $\LaTeX$ sequences, struggle to understand and model the inherent tree structure of $\LaTeX$ 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 $\LaTeX$ 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2408.08578")
get_code_for_paper("2408.08578")
have("2408.08578")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2408.08578.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2408.08578.svg)](https://syntology.ai/paper/2408.08578)

Connect an agent — have() is free.