TeXBLEU: Automatic Metric for Evaluate LaTeX Format
Authors:
Open Access
- 6 April 2025
- conference paper
- Published by Institute of Electrical and Electronics Engineers (IEEE)
- p. 1-5
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.Keywords
All Related Versions
This publication has 23 references indexed in Scilit:
- MathReader : Text-to-Speech for Mathematical Documents2025
- A study on the evaluation of tokenizer performance in natural language processingApplied Artificial Intelligence, 2023
- An Editing Process for Blind or Visually Impaired EditorsIEEE Transactions on Professional Communication, 2021
- Web-ALAP: A Web-based LaTeX Editor for Blind Individuals2020
- How to evaluate machine translation: A review of automated and human metricsNatural Language Engineering, 2019
- ALAP2019
- A Structured Review of the Validity of BLEUComputational Linguistics, 2018
- Estimating Embedding Vectors for Queries2016
- Data Preprocessing in Data Mining2015
- N-Gram Similarity and Distance2005