TeXBLEU: Automatic Metric for Evaluate LaTeX Format

LaTeX is suitable for creating specially formatted documents in science, technology, mathematics, and computer science. Although the use of mathematical expressions in LaTeX format along with language models is increasing, there are no proper evaluation matrices to evaluate them. In this study, we propose TeXBLEU, a metric for evaluating mathematical expressions in the LaTeX format built on the n-gram-based BLEU metric widely used in translation tasks. The proposed TeXBLEU consists of a predefined tokenizer trained on the arXiv paper dataset and a fine-tuned embedding model with positional encoding. The TeXBLEU score was calculated by replacing BLUE’s modified precision score with the similarity of n-gram-based tokens. TeXBLEU showed improvements of 86%, 121%, and 610% over traditional evaluation metrics, such as BLEU, sacreBLEU, and Rouge, respectively, on the MathBridge dataset with 1,000 data points. The code is available at https://github.com/KyuDan1/TeXBLEU.

Authors

Institutions

Publication Details

Published
2025-03-12
DOI
https://doi.org/10.1109/icassp49660.2025.10888244
Citations
2
Primary Topic
Mathematics, Computing, and Information Processing
Type
article
Field-Weighted Citation Impact
3.01
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

TeXBLEU: Automatic Metric for Evaluate LaTeX Format

Nam-Joon Kim, Hyun Gon Ryu, Kyudan Jung, Seungjun Lee et al.
2 citations
Mathematics, Computing, and Information Processing
3.01
article

TeXBLEU: Automatic Metric for Evaluate LaTeX Format

Nam-Joon Kim, Hyun Gon Ryu, Kyudan Jung, Seungjun Lee, Hyuk-Jae Lee, Sieun Hyeon
article en
2 citations

Abstract

LaTeX is suitable for creating specially formatted documents in science, technology, mathematics, and computer science. Although the use of mathematical expressions in LaTeX format along with language models is increasing, there are no proper evaluation matrices to evaluate them. In this study, we propose TeXBLEU, a metric for evaluating mathematical expressions in the LaTeX format built on the n-gram-based BLEU metric widely used in translation tasks. The proposed TeXBLEU consists of a predefined tokenizer trained on the arXiv paper dataset and a fine-tuned embedding model with positional encoding. The TeXBLEU score was calculated by replacing BLUE’s modified precision score with the similarity of n-gram-based tokens. TeXBLEU showed improvements of 86%, 121%, and 610% over traditional evaluation metrics, such as BLEU, sacreBLEU, and Rouge, respectively, on the MathBridge dataset with 1,000 data points. The code is available at https://github.com/KyuDan1/TeXBLEU.

Seoul National University (KR), Chung-Ang University (KR)
Openalex Percentile: Top 10%
Mathematics, Computing, and Information Processing
3.01
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.