基于转换器的数学语言模型在手写体数学表达式识别中的应用
A Transformer-based Math Language Model for Handwritten Math Expression Recognition
摘要:
手写的数学表达式(HME)在其解释中包含模糊性,即使有时对于人类也是如此。几个数学符号在书写风格上非常相似,例如点和逗号或0、0和o,这对于HME识别系统来说是一个挑战,需要在不使用上下文信息的情况下进行处理。针对这一问题,提出了一种基于转换器的数学语言模型(TMLM)。基于自注意力机制,通过输入标记与先前标记的关系来计算标记序列中输入标记的高级表示。因此,TMLM可以捕获数学表达式(ME)中的符号和关系之间的长依赖性和相关性。我们使用CROHME 2016中提供的约70,000个LaTeX序列的语料库训练了所提出的语言模型。TMLM实现了4.42的复杂度,它优于以前的数学语言模型,即,基于N-gram和递归神经网络的语言模型。此外,我们结合TMLM到一个随机的上下文无关文法为基础的HME识别系统,使用加权参数重新排名前10名的最佳候选人。CROHME 2016和CROHME 2019测试集的表达率分别提高了2.97和0.83个百分点。
英文摘要:
Handwritten mathematical expressions (HMEs) contain ambiguities in their interpretations, even for humans sometimes. Several math symbols are very similar in the writing style, such as dot and comma or 0, O, and o, which is a challenge for HME recognition systems to handle without using contextual information. To address this problem, this paper presents a Transformer-based Math Language Model (TMLM). Based on the self-attention mechanism, the high-level representation of an input token in a sequence of tokens is computed by how it is related to the previous tokens. Thus, TMLM can capture long dependencies and correlations among symbols and relations in a mathematical expression (ME). We trained the proposed language model using a corpus of approximately 70,000 LaTeX sequences provided in CROHME 2016. TMLM achieved the perplexity of 4.42, which outperformed the previous math language models, i.e., the N-gram and recurrent neural network-based language models. In addition, we combine TMLM into a stochastic context-free grammar-based HME recognition system using a weighting parameter to re-rank the top-10 best candidates. The expression rates on the testing sets of CROHME 2016 and CROHME 2019 were improved by 2.97 and 0.83 percentage points, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。