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

Bi-Real Net:通过改进的表示能力和高级训练算法增强1位CNN的性能

Bi-Real Net: Enhancing the Performance of 1-bit CNNs With Improved Representational Capability and Advanced Training Algorithm

Hong Kong University of Science and Technology(香港科技大学);Tencent AI lab(腾讯人工智能实验室);Huazhong University of Science and Technology(华中科技大学)

Zechun Liu, Baoyuan Wu, Wenhan Luo, Xin Yang, Wei Liu, Kwang-Ting Cheng

摘要:

在这项工作中,我们研究了1位卷积神经网络(CNN),其中的权重和激活都是二进制的。虽然有效,但与大规模数据集上的对应实值CNN模型(如ImageNet)相比,当前1位CNN的分类准确性要差得多。为了最小化1位和实值CNN模型之间的性能差距,我们提出了一种新的模型,称为Bi-Real net,它通过身份捷径将真实激活(在1位卷积和/或BatchNorm层之后,在符号函数之前)连接到连续块的激活。因此,与标准的1位CNN相比,双实数网络的表示能力显著增强,并且计算上的额外成本可以忽略不计。此外,我们还开发了一种特定的训练算法,包括1位CNN的三种技术创新。首先,我们推导出一个紧逼近的不可微的符号函数的导数关于激活。其次,我们提出了一个幅度感知梯度的权重更新的权重参数。第三,我们使用clip函数而不是ReLU函数来预训练实值CNN模型,以更好地初始化Bi-Real网络。在ImageNet上的实验表明,采用该算法训练的18层和34层Bi-Real网络分别达到了56.4%和62.2%的top-1准确率。与现有技术相比(例如,XNOR Net),Bi-Real网络实现了高达10%的top-1精度,节省了更多的内存和更低的计算成本。关键词:二进制神经网络,1-bit CNN,1-layer-per-block

英文摘要:

In this work, we study the 1-bit convolutional neural networks (CNNs), of which both the weights and activations are binary. While being efficient, the classification accuracy of the current 1-bit CNNs is much worse compared to their counterpart real-valued CNN models on the large-scale dataset, like ImageNet. To minimize the performance gap between the 1-bit and real-valued CNN models, we propose a novel model, dubbed Bi-Real net, which connects the real activations (after the 1-bit convolution and/or BatchNorm layer, before the sign function) to activations of the consecutive block, through an identity shortcut. Consequently, compared to the standard 1-bit CNN, the representational capability of the Bi-Real net is significantly enhanced and the additional cost on computation is negligible. Moreover, we develop a specific training algorithm including three technical novelties for 1- bit CNNs. Firstly, we derive a tight approximation to the derivative of the non-differentiable sign function with respect to activation. Secondly, we propose a magnitude-aware gradient with respect to the weight for updating the weight parameters. Thirdly, we pre-train the real-valued CNN model with a clip function, rather than the ReLU function, to better initialize the Bi-Real net. Experiments on ImageNet show that the Bi-Real net with the proposed training algorithm achieves 56.4% and 62.2% top-1 accuracy with 18 layers and 34 layers, respectively. Compared to the state-of-the-arts (e.g., XNOR Net), Bi-Real net achieves up to 10% higher top-1 accuracy with more memory saving and lower computational cost. Keywords: binary neural network, 1-bit CNNs, 1-layer-per-block

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

↑