用数字排列对训练的神经网络实现算术运算
Performing Arithmetic Using a Neural Network Trained on Digit Permutation Pairs
摘要:
在本文中,一个神经网络进行训练,以执行简单的算法,使用图像的级联手写数字对。用由两个并排的手写数字组成的图像训练卷积神经网络,其中图像的标签是组合图像中包含的两个数字的总和。至关重要的是,该网络在训练过程中不存在的排列对上进行了测试,以观察网络是否可以学习加法任务,而不是简单地将图像映射到标签。使用MNIST作为图像的基础,针对数字0-9的长度为2的所有可能的置换对生成数据集,其中针对每个置换对生成一千个样本。为了测试网络,从以前看不见的排列对生成的样本被输入到训练好的网络中,并测量其预测。结果是令人鼓舞的,与网络实现了超过90%的准确性,对一些排列训练/测试分裂。这表明网络首先学习数字识别,然后根据识别的两个数字进行进一步的加法任务。据作者所知,以前的工作没有集中在学习数学运算以这种方式。
英文摘要:
In this paper a neural network is trained to perform simple arithmetic using images of concatenated handwritten digit pairs. A convolutional neural network was trained with images consisting of two side-by-side handwritten digits, where the image's label is the summation of the two digits contained in the combined image. Crucially, the network was tested on permutation pairs that were not present during training in an effort to see if the network could learn the task of addition, as opposed to simply mapping images to labels. A dataset was generated for all possible permutation pairs of length 2 for the digits 0-9 using MNIST as a basis for the images, with one thousand samples generated for each permutation pair. For testing the network, samples generated from previously unseen permutation pairs were fed into the trained network, and its predictions measured. Results were encouraging, with the network achieving an accuracy of over 90% on some permutation train/test splits. This suggests that the network learned at first digit recognition, and subsequently the further task of addition based on the two recognised digits. As far as the authors are aware, no previous work has concentrated on learning a mathematical operation in this way.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。