Automated LaTeX Code Generation from Handwritten Math Expressions Using Vision Transformer

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Sundararaj, Jayaprakash, Vyas, Akhil, Gonzalez-Maldonado, Benjamin
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916512463323136
author Sundararaj, Jayaprakash
Vyas, Akhil
Gonzalez-Maldonado, Benjamin
author_facet Sundararaj, Jayaprakash
Vyas, Akhil
Gonzalez-Maldonado, Benjamin
contents Transforming mathematical expressions into LaTeX poses a significant challenge. In this paper, we examine the application of advanced transformer-based architectures to address the task of converting handwritten or digital mathematical expression images into corresponding LaTeX code. As a baseline, we utilize the current state-of-the-art CNN encoder and LSTM decoder. Additionally, we explore enhancements to the CNN-RNN architecture by replacing the CNN encoder with the pretrained ResNet50 model with modification to suite the grey scale input. Further, we experiment with vision transformer model and compare with Baseline and CNN-LSTM model. Our findings reveal that the vision transformer architectures outperform the baseline CNN-RNN framework, delivering higher overall accuracy and BLEU scores while achieving lower Levenshtein distances. Moreover, these results highlight the potential for further improvement through fine-tuning of model parameters. To encourage open research, we also provide the model implementation, enabling reproduction of our results and facilitating further research in this domain.
format Preprint
id arxiv_https___arxiv_org_abs_2412_03853
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Automated LaTeX Code Generation from Handwritten Math Expressions Using Vision Transformer
Sundararaj, Jayaprakash
Vyas, Akhil
Gonzalez-Maldonado, Benjamin
Computer Vision and Pattern Recognition
Computation and Language
Transforming mathematical expressions into LaTeX poses a significant challenge. In this paper, we examine the application of advanced transformer-based architectures to address the task of converting handwritten or digital mathematical expression images into corresponding LaTeX code. As a baseline, we utilize the current state-of-the-art CNN encoder and LSTM decoder. Additionally, we explore enhancements to the CNN-RNN architecture by replacing the CNN encoder with the pretrained ResNet50 model with modification to suite the grey scale input. Further, we experiment with vision transformer model and compare with Baseline and CNN-LSTM model. Our findings reveal that the vision transformer architectures outperform the baseline CNN-RNN framework, delivering higher overall accuracy and BLEU scores while achieving lower Levenshtein distances. Moreover, these results highlight the potential for further improvement through fine-tuning of model parameters. To encourage open research, we also provide the model implementation, enabling reproduction of our results and facilitating further research in this domain.
title Automated LaTeX Code Generation from Handwritten Math Expressions Using Vision Transformer
topic Computer Vision and Pattern Recognition
Computation and Language
url https://arxiv.org/abs/2412.03853