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

“BNN - BN =?“:训练二元神经网络而不需要批量归一化

"BNN - BN = ?": Training Binary Neural Networks without Batch Normalization

University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Science and Technology of China(中国科学技术大学);Cornell University(康奈尔大学);Carnegie Mellon University(卡内基梅隆大学)

Tianlong Chen, Zhenyu Zhang, Xu Ouyang, Zechun Liu, Zhiqiang Shen, Zhangyang Wang

摘要:

批量归一化(BN)是一个关键的促进者,被认为是最先进的二进制神经网络(BNN)的基本。然而,BN层的计算成本很高,并且通常使用非二进制参数来实现,这为BNN训练的有效实现留下了障碍。它还在每个批次内的样本之间引入了不期望的依赖性。受批量归一化自由(BN-Free)训练的最新进展的启发,我们将他们的框架扩展到训练BNN,并首次证明可以从BNN训练和推理机制中完全删除BNs。通过插入和自定义技术,包括自适应梯度裁剪,尺度权重标准化,和专门的瓶颈块,一个无BN的BNN是能够保持竞争力的准确性相比,其BN为基础的同行。大量的实验验证了我们的建议在不同的BNN骨干和数据集的有效性。例如,在从最先进的ReActNets中删除BN之后,仍然可以使用我们提出的方法进行训练,分别在CIFAR-10,CIFAR-100和ImageNet上实现92.08%,68.34%和68.0%的准确率,边际性能下降(CIFAR上为0.23%~0.44%,ImageNet上为1.40%)。代码和预训练模型可在https://github.com/VITA-Group/BNN_NoBN上获得。

英文摘要:

Batch normalization (BN) is a key facilitator and considered essential for state-of-the-art binary neural networks (BNN). However, the BN layer is costly to calculate and is typically implemented with non-binary parameters, leaving a hurdle for the efficient implementation of BNN training. It also introduces undesirable dependence between samples within each batch. Inspired by the latest advance on Batch Normalization Free (BN-Free) training, we extend their framework to training BNNs, and for the first time demonstrate that BNs can be completed removed from BNN training and inference regimes. By plugging in and customizing techniques including adaptive gradient clipping, scale weight standardization, and specialized bottleneck block, a BN-free BNN is capable of maintaining competitive accuracy compared to its BN-based counterpart. Extensive experiments validate the effectiveness of our proposal across diverse BNN backbones and datasets. For example, after removing BNs from the state-of-the-art ReActNets, it can still be trained with our proposed methodology to achieve 92.08%, 68.34%, and 68.0% accuracy on CIFAR-10, CIFAR-100, and ImageNet respectively, with marginal performance drop (0.23%~0.44% on CIFAR and 1.40% on ImageNet). Codes and pre-trained models are available at: https://github.com/VITA-Group/BNN_NoBN.

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

↑