Papers › Image Over Text: Transforming Formula Recognition Evaluation with Character Detection Matching

Image Over Text: Transforming Formula Recognition Evaluation with Character Detection Matching

5 Sep 2024CVPR 2025 1arXiv:2409.03643archive 2025-07-28

Bin Wang, Fan Wu, Linke Ouyang, Zhuangcheng Gu, Rui Zhang, Renqiu Xia, Bo Zhang, Conghui He

Formula recognition presents significant challenges due to the complicated structure and varied notation of mathematical expressions. Despite continuous advancements in formula recognition models, the evaluation metrics employed by these models, such as BLEU and Edit Distance, still exhibit notable limitations. They overlook the fact that the same formula has diverse representations and is highly sensitive to the distribution of training data, thereby causing unfairness in formula recognition evaluation. To this end, we propose a Character Detection Matching (CDM) metric, ensuring the evaluation objectivity by designing an image-level rather than a LaTeX-level metric score. Specifically, CDM renders both the model-predicted LaTeX and the ground-truth LaTeX formulas into image-formatted formulas, then employs visual feature extraction and localization techniques for precise character-level matching, incorporating spatial position information. Such a spatially-aware and character-matching method offers a more accurate and equitable evaluation compared with previous BLEU and Edit Distance metrics that rely solely on text-based character matching. Experimentally, we evaluated various formula recognition models using CDM, BLEU, and ExpRate metrics. Their results demonstrate that the CDM aligns more closely with human evaluation standards and provides a fairer comparison across different models by eliminating discrepancies caused by diverse formula representations. Code is available at https://github.com/opendatalab/UniMERNet/tree/main/cdm.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2409.03643")

Code

Syntology Ran 8 of 10 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 1 ran · fixture could not drive it; 4 ran with no contract checked.

By repository: official repository: 10 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

opendatalab/unimernet officialmentioned in papermentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

10 samples harvested; 8 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

1ran · violated contract
2ran · our draft was wrong
1ran · fixture could not drive it
4ran
2unverified

Licence: 0 of the 10 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from opendatalab/unimernet. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

apply_to_sample opendatalab/unimernet/unimernet/datasets/data_utils.py official repository ran Apache-2.0 (permissive) · 992489a59b9e08d0 · report
getAttMap opendatalab/unimernet/unimernet/common/gradcam.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 7d214655954e2bc6 · report
is_url opendatalab/unimernet/unimernet/common/utils.py official repository ran · violated contract Apache-2.0 (permissive) · 4d1d9c47619920ba · report
main_process opendatalab/unimernet/unimernet/common/dist_utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 98589643273920ba · report
move_to_cuda opendatalab/unimernet/unimernet/datasets/data_utils.py official repository ran Apache-2.0 (permissive) · f0d0d2447408bb09 · report
node_to_dict opendatalab/unimernet/unimernet/common/config.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 791c72070c0b1cfb · report
prepare_sample opendatalab/unimernet/unimernet/datasets/data_utils.py official repository ran Apache-2.0 (permissive) · 9d94c9c2524f4a1b · report
tile opendatalab/unimernet/unimernet/models/base_model.py official repository ran fingerprinted Apache-2.0 (permissive) · cb33571427334815 · report
all_gather_with_grad opendatalab/unimernet/unimernet/models/base_model.py official repository unverified Apache-2.0 (permissive) · 0ec9fc2025c16f65 · report
download_cached_file opendatalab/unimernet/unimernet/common/dist_utils.py official repository unverified Apache-2.0 (permissive) · 643539116e049080 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections