HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition

Zhu Jianhua ; Zhao Wenqi ; Li Yu ; Hu Xingjian ; Gao Liangcai

TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression
  Recognition

Abstract

Handwritten Mathematical Expression Recognition (HMER) has extensiveapplications in automated grading and office automation. However, existingsequence-based decoding methods, which directly predict $\LaTeX$ sequences,struggle to understand and model the inherent tree structure of $\LaTeX$ andoften fail to ensure syntactic correctness in the decoded results. To addressthese challenges, we propose a novel model named TAMER (Tree-Aware Transformer)for handwritten mathematical expression recognition. TAMER introduces aninnovative Tree-aware Module while maintaining the flexibility and efficienttraining of Transformer. TAMER combines the advantages of both sequencedecoding and tree decoding models by jointly optimizing sequence prediction andtree structure prediction tasks, which enhances the model's understanding andgeneralization of complex mathematical expression structures. During inference,TAMER employs a Tree Structure Prediction Scoring Mechanism to improve thestructural validity of the generated $\LaTeX$ sequences. Experimental resultson CROHME datasets demonstrate that TAMER outperforms traditional sequencedecoding and tree decoding models, especially in handling complex mathematicalstructures, achieving state-of-the-art (SOTA) performance.

Code Repositories

qingzhenduyu/tamer
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
handwritten-mathmatical-expressionTAMER
ExpRate: 61.23
handwritten-mathmatical-expression-1TAMER
ExpRate: 60.26
handwritten-mathmatical-expression-2TAMER
ExpRate: 61.97
handwritten-mathmatical-expression-3TAMER
ExpRate: 68.52

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
TAMER: Tree-Aware Transformer for Handwritten Mathematical Expression Recognition | Papers | HyperAI