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

用Transformers谈数学语言

Attending to Mathematical Language with Transformers

U.S. Bank(美国合众银行)

Artit Wangperawong

摘要:

数学表达式的生成,评估和训练神经网络模型的基础上的Transformer架构。表达和它们的目标被分析为字符级序列转导任务,其中编码器和解码器建立在注意力机制上。训练了三个模型来理解和评估数学中的符号变量和表达式:(1)没有递归或卷积的自关注和前馈Transformer,(2)具有递归的通用Transformer,以及(3)具有递归和自适应计算时间的自适应通用Transformer。在评估表达式与目标值的匹配方面,模型的测试准确率分别达到76.1%、78.8%和84.9%。对于推断错误的情况,结果与目标仅相差一个或两个字符。这些模型特别学会了对分配给符号变量的变量数字的正、负十进制数进行加、减、乘。

英文摘要:

Mathematical expressions were generated, evaluated and used to train neural network models based on the transformer architecture. The expressions and their targets were analyzed as a character-level sequence transduction task in which the encoder and decoder are built on attention mechanisms. Three models were trained to understand and evaluate symbolic variables and expressions in mathematics: (1) the self-attentive and feed-forward transformer without recurrence or convolution, (2) the universal transformer with recurrence, and (3) the adaptive universal transformer with recurrence and adaptive computation time. The models respectively achieved test accuracies as high as 76.1%, 78.8% and 84.9% in evaluating the expressions to match the target values. For the cases inferred incorrectly, the results differed from the targets by only one or two characters. The models notably learned to add, subtract and multiply both positive and negative decimal numbers of variable digits assigned to symbolic variables.

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

↑