Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

Translating Math Formula Images to LaTeX Sequences Using Deep Neural Networks with Sequence-level Training

About

In this paper we propose a deep neural network model with an encoder-decoder architecture that translates images of math formulas into their LaTeX markup sequences. The encoder is a convolutional neural network (CNN) that transforms images into a group of feature maps. To better capture the spatial relationships of math symbols, the feature maps are augmented with 2D positional encoding before being unfolded into a vector. The decoder is a stacked bidirectional long short-term memory (LSTM) model integrated with the soft attention mechanism, which works as a language model to translate the encoder output into a sequence of LaTeX tokens. The neural network is trained in two steps. The first step is token-level training using the Maximum-Likelihood Estimation (MLE) as the objective function. At completion of the token-level training, the sequence-level training objective function is employed to optimize the overall model based on the policy gradient algorithm from reinforcement learning. Our design also overcomes the exposure bias problem by closing the feedback loop in the decoder during sequence-level training, i.e., feeding in the predicted token instead of the ground truth token at every time step. The model is trained and evaluated on the IM2LATEX-100K dataset and shows state-of-the-art performance on both sequence-based and image-based evaluation metrics.

Zelun Wang, Jyh-Charn Liu• 2019

Related benchmarks

TaskDatasetResultRank
Image ClassificationImageNet-1K
Top-1 Acc79.9
836
Image ClassificationImageNet-1k (val)
Top-1 Accuracy79.9
512
Action RecognitionUCF101
Accuracy38.7
365
Image ClassificationImageNet 1k (test)
Top-1 Accuracy79.9
359
Object DetectionCOCO
mAP34.7
107
3D Object ClassificationModelNet40--
62
Semantic segmentationScanNet
mIoU72.6
59
Gesture RecognitionDVSGesture
Top-1 Accuracy0.934
16
Object DetectionGen1
mAP27.3
10
Multi-modal PerceptionnuScenes
mAP67.4
6
Showing 10 of 10 rows

Other info

Follow for update