arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.02643cs.CLcs.CV
收藏

一种用于数学表达式在线手势识别的Transformer结构

A Transformer Architecture for Online Gesture Recognition of Mathematical Expressions

University of Pisa(比萨大学);University College Dublin(都柏林大学学院)

Mirco Ramo, Guénolé C. M. Silvestre

摘要:

Transformer架构提供了一个强大的框架,作为一个端到端的模型,用于从对应于手写笔画的在线手写手势中构建表达式树。特别地,注意力机制被成功地用于编码、学习和执行表达式的底层语法,从而创建被正确解码为精确的数学表达式树的潜在表示,从而为消融的输入和看不见的字形提供鲁棒性。第一次,编码器被馈送有可能形成无限大的词汇表的时空数据令牌,其发现在线手势识别之外的应用。一个新的监督数据集的在线手写手势的训练模型提供了通用的手写识别任务,并提出了一个新的度量的输出表达式树的语法正确性的评估。一个适合于边缘推断的小型Transformer模型被成功训练到94%的平均归一化Levenshtein准确度,从而导致94%的预测的有效后缀RPN树表示。

英文摘要:

The Transformer architecture is shown to provide a powerful framework as an end-to-end model for building expression trees from online handwritten gestures corresponding to glyph strokes. In particular, the attention mechanism was successfully used to encode, learn and enforce the underlying syntax of expressions creating latent representations that are correctly decoded to the exact mathematical expression tree, providing robustness to ablated inputs and unseen glyphs. For the first time, the encoder is fed with spatio-temporal data tokens potentially forming an infinitely large vocabulary, which finds applications beyond that of online gesture recognition. A new supervised dataset of online handwriting gestures is provided for training models on generic handwriting recognition tasks and a new metric is proposed for the evaluation of the syntactic correctness of the output expression trees. A small Transformer model suitable for edge inference was successfully trained to an average normalised Levenshtein accuracy of 94%, resulting in valid postfix RPN tree representation for 94% of predictions.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑