HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

Handwritten Mathematical Expression Recognition via Attention Aggregation based Bi-directional Mutual Learning

Bian Xiaohang ; Qin Bo ; Xin Xiaozhe ; Li Jianwu ; Su Xuefeng ; Wang Yanfeng

Handwritten Mathematical Expression Recognition via Attention
  Aggregation based Bi-directional Mutual Learning

Abstract

Handwritten mathematical expression recognition aims to automaticallygenerate LaTeX sequences from given images. Currently, attention-basedencoder-decoder models are widely used in this task. They typically generatetarget sequences in a left-to-right (L2R) manner, leaving the right-to-left(R2L) contexts unexploited. In this paper, we propose an Attention aggregationbased Bi-directional Mutual learning Network (ABM) which consists of one sharedencoder and two parallel inverse decoders (L2R and R2L). The two decoders areenhanced via mutual distillation, which involves one-to-one knowledge transferat each training step, making full use of the complementary information fromtwo inverse directions. Moreover, in order to deal with mathematical symbols indiverse scales, an Attention Aggregation Module (AAM) is proposed toeffectively integrate multi-scale coverage attentions. Notably, in theinference phase, given that the model already learns knowledge from two inversedirections, we only use the L2R branch for inference, keeping the originalparameter size and inference speed. Extensive experiments demonstrate that ourproposed approach achieves the recognition accuracy of 56.85 % on CROHME 2014,52.92 % on CROHME 2016, and 53.96 % on CROHME 2019 without data augmentationand model ensembling, substantially outperforming the state-of-the-art methods.The source code is available in https://github.com/XH-B/ABM.

Code Repositories

XH-B/ABM
Official
pytorch

Benchmarks

BenchmarkMethodologyMetrics
handwritten-mathmatical-expressionABM
ExpRate: 56.85
handwritten-mathmatical-expression-1ABM
ExpRate: 52.92
handwritten-mathmatical-expression-2ABM
ExpRate: 53.96
handwritten-mathmatical-expression-3ABM
ExpRate: 65.93

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp
Handwritten Mathematical Expression Recognition via Attention Aggregation based Bi-directional Mutual Learning | Papers | HyperAI