arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1802.08530cs.LGcs.CVcs.NEstat.ML
收藏

训练广泛的剩余网络部署使用一个单一的位为每个权重

Training wide residual networks for deployment using a single bit for each weight

University of California, San Diego(加利福尼亚大学圣地亚哥分校);Consilium Technology(康思利姆科技公司);University of South Australia(南澳大学)

Mark D. McDonnell

摘要:

为了在资源受限的嵌入式硬件上快速高效地部署经过训练的深度神经网络,理想情况下,每个学习的权重参数都应该使用单个位来表示和存储。错误率通常增加时,这一要求是强加的。在这里,我们报告了多个数据集上出错率的大幅改善,对于部署了1位/权重的深度卷积神经网络。使用宽残差网络作为我们的主要基线,我们的方法通过在训练中应用符号函数来简化现有的二值化权重的方法;我们为每一层应用比例因子,其恒定的未学习值等于用于初始化的特定于层的标准差。对于CIFAR-10、CIFAR-100和ImageNet,以及每权重1位需要少于10 MB参数内存的模型,我们分别实现了3.9%、18.5%和26.0% / 8.5%(Top-1 / Top-5)的出错率。我们还考虑了MNIST,SVHN和ImageNet 32,分别实现了0.27%,1.9%和41.3% / 19.1%的每权重1位测试结果。对于CIFAR,我们的出错率减半以前报告的值,并在约1%的错误率为相同的网络与全精度的权重。对于过拟合的网络,我们还通过不学习批量归一化尺度和偏移参数来显着改善出错率。这适用于全精度和每权重1位网络。使用热重启学习率调度,我们发现每权重1位的训练速度与全精度网络一样快,准确度比标准时间表更高,并且在CIFAR-10/100的62次训练中达到了峰值性能的98%-99%。有关MATLAB,Keras和PyTorch中的完整训练代码和训练模型,请参阅https://github.com/McDonnell-Lab/1-bit-per-weight/。

英文摘要:

For fast and energy-efficient deployment of trained deep neural networks on resource-constrained embedded hardware, each learned weight parameter should ideally be represented and stored using a single bit. Error-rates usually increase when this requirement is imposed. Here, we report large improvements in error rates on multiple datasets, for deep convolutional neural networks deployed with 1-bit-per-weight. Using wide residual networks as our main baseline, our approach simplifies existing methods that binarize weights by applying the sign function in training; we apply scaling factors for each layer with constant unlearned values equal to the layer-specific standard deviations used for initialization. For CIFAR-10, CIFAR-100 and ImageNet, and models with 1-bit-per-weight requiring less than 10 MB of parameter memory, we achieve error rates of 3.9%, 18.5% and 26.0% / 8.5% (Top-1 / Top-5) respectively. We also considered MNIST, SVHN and ImageNet32, achieving 1-bit-per-weight test results of 0.27%, 1.9%, and 41.3% / 19.1% respectively. For CIFAR, our error rates halve previously reported values, and are within about 1% of our error-rates for the same network with full-precision weights. For networks that overfit, we also show significant improvements in error rate by not learning batch normalization scale and offset parameters. This applies to both full precision and 1-bit-per-weight networks. Using a warm-restart learning-rate schedule, we found that training for 1-bit-per-weight is just as fast as full-precision networks, with better accuracy than standard schedules, and achieved about 98%-99% of peak performance in just 62 training epochs for CIFAR-10/100. For full training code and trained models in MATLAB, Keras and PyTorch see https://github.com/McDonnell-Lab/1-bit-per-weight/ .

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

↑