arXiv:1802.08530 · 中英对照阅读
Training wide residual networks for deployment using a single bit for each weight
中文速览
把深度神经网络的权重压到每个参数只占 1 bit,往往会让图像识别变差;研究者想缩小这种轻量模型与普通高精度模型之间的差距。他们用宽残差网络训练模型,让权重在计算时取正负两种值,并为每一层加上由初始化标准差决定的固定缩放,同时配合重启式学习率安排训练;对于容易过拟合的任务,还尝试不学习批归一化中的缩放和偏移参数。结果显示,CIFAR-10、CIFAR-100 等数据集上的 1 bit 模型错误率大幅下降,CIFAR 上约为此前结果的一半,并且接近同网络的高精度版本;训练速度也不必变慢。这样一来,模型能以更少的存储和计算资源部署到嵌入式设备,同时保留较高的识别准确率。
摘要
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/.
术语表
- deep neural network (DNN)
- 深度神经网络(DNN)
- 1-bit-per-weight
- 每个权重 1 比特
- weight binarization
- 权重二值化
- sign function
- 符号函数
- scaling factor
- 缩放因子
- standard deviation
- 标准差
- wide residual network (Wide ResNet)
- 宽残差网络(Wide ResNet)
- convolutional neural network (CNN)
- 卷积神经网络(CNN)
- full-precision weights
- 全精度权重
- batch normalization
- 批归一化
- scale and offset parameters
- 缩放与偏移参数
- warm-restart learning-rate schedule
- 热重启学习率调度
- CIFAR-10
- CIFAR-10
- CIFAR-100
- CIFAR-100
- ImageNet
- ImageNet
- MNIST
- MNIST
- SVHN
- SVHN
- ImageNet32
- ImageNet32
- ResNet
- 残差网络(ResNet)
- FLOPs
- 浮点运算次数(FLOPs)
- global average pooling
- 全局平均池化
- skip connection
- 跳跃连接
- model compression
- 模型压缩
- pruning
- 剪枝
- quantization
- 量化
- forward propagation
- 前向传播
- inference
- 推理
- convolution operation
- 卷积运算