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

二值化神经网络:训练权重和激活约束为+1或-1的深度神经网络

Binarized Neural Networks: Training Deep Neural Networks with Weights and Activations Constrained to +1 or -1

Université de Montréal(蒙特利尔大学);Technion - Israel Institute of Technology(以色列理工学院);Columbia University(哥伦比亚大学)

Matthieu Courbariaux, Itay Hubara, Daniel Soudry, Ran El-Yaniv, Yoshua Bengio

摘要:

介绍了一种训练二值化神经网络(BNN)的方法--在运行时具有二值权值和激活的神经网络。在训练时,二进制权重和激活用于计算参数梯度。在前向过程中,BNN大大减少了内存大小和访问,并将大多数算术运算替换为逐位运算,预计这将大大提高功率效率。为了验证BNN的有效性,我们在Torch 7和Theano框架上进行了两组实验。在这两个数据集上,BNN在MNIST、CIFAR-10和SVHN数据集上都取得了接近最先进的结果。最后但并非最不重要的是,我们编写了一个二进制矩阵乘法GPU内核,使用它可以运行我们的MNIST BNN比使用未优化的GPU内核快7倍,而不会损失任何分类精度。用于训练和运行我们的BNN的代码可以在线获得。

英文摘要:

We introduce a method to train Binarized Neural Networks (BNNs) - neural networks with binary weights and activations at run-time. At training-time the binary weights and activations are used for computing the parameters gradients. During the forward pass, BNNs drastically reduce memory size and accesses, and replace most arithmetic operations with bit-wise operations, which is expected to substantially improve power-efficiency. To validate the effectiveness of BNNs we conduct two sets of experiments on the Torch7 and Theano frameworks. On both, BNNs achieved nearly state-of-the-art results over the MNIST, CIFAR-10 and SVHN datasets. Last but not least, we wrote a binary matrix multiplication GPU kernel with which it is possible to run our MNIST BNN 7 times faster than with an unoptimized GPU kernel, without suffering any loss in classification accuracy. The code for training and running our BNNs is available on-line.

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

↑