Attention-Based Batch Normalization for Binary Neural Networks
Open Access
Abstract
Batch normalization (BN) is crucial for achieving state-of-the-art binary neural networks (BNNs). Unlike full-precision neural networks, BNNs restrict activations to discrete values , which requires a renewed understanding and research of the role and significance of the BN layers in BNNs. Many studies notice this phenomenon and try to explain it. Inspired by these studies, we introduce the self-attention mechanism into BN and propose a novel Attention-Based Batch Normalization (ABN) for Binary Neural Networks. Also, we present an ablation study of parameter trade-offs in ABN, as well as an experimental analysis of the effect of ABN on BNNs. Experimental analyses show that our ABN method helps to capture image features, provide additional activation-like functions, and increase the imbalance of the activation distribution, and these features help to improve the performance of BNNs. Furthermore, we conduct image classification experiments over the CIFAR10, CIFAR100, and TinyImageNet datasets using BinaryNet and ResNet-18 network structures. The experimental results demonstrate that our ABN consistently outperforms the baseline BN across various benchmark datasets and models in terms of image classification accuracy. In addition, ABN exhibits less variance on the CIFAR datasets, which suggests that ABN can improve the stability and reliability of models.
Keywords
Funding Information
- the Natural Science Foundation of Heilongjiang Province (JJ2019LH2160)
- the Fundamental Research Funds for the Central Universities (3072021CFT0602)
This publication has 16 references indexed in Scilit:
- An in-Memory-Computing Binary Neural Network Architecture with In-Memory Batch NormalizationIEEE Access, 2024
- Optimizing Data Flow in Binary Neural NetworksSensors, 2024
- ReActNet: Towards Precise Binary Neural Network with Generalized Activation Functions2020
- Rethinking the Distribution Gap of Person Re-identification with Camera-Based Batch Normalization2020
- CBAM: Convolutional Block Attention Module2018
- Two at Once: Enhancing Learning and Generalization Capacities via IBN-Net2018
- Group Normalization2018
- Adaptive Batch Normalization for practical domain adaptationPattern Recognition, 2018
- XNOR-Net: ImageNet Classification Using Binary Convolutional Neural Networks2016
- Deep Residual Learning for Image Recognition2016