[Paper Review] Improving Accuracy of Binary Neural Networks using Unbalanced Activation Distribution
This paper proposes that unbalanced binary activation distributions improve Binary Neural Network (BNN) accuracy, contrary to prior assumptions favoring balanced distributions. By shifting the threshold of the sign function in binary activation, the authors achieve significant accuracy gains in XNOR-Net and Bi-Real-Net with minimal computational cost, demonstrating that activation distribution skewness enhances representational capacity beyond gradient mismatch mitigation.
Binarization of neural network models is considered as one of the promising methods to deploy deep neural network models on resource-constrained environments such as mobile devices. However, Binary Neural Networks (BNNs) tend to suffer from severe accuracy degradation compared to the full-precision counterpart model. Several techniques were proposed to improve the accuracy of BNNs. One of the approaches is to balance the distribution of binary activations so that the amount of information in the binary activations becomes maximum. Based on extensive analysis, in stark contrast to previous work, we argue that unbalanced activation distribution can actually improve the accuracy of BNNs. We also show that adjusting the threshold values of binary activation functions results in the unbalanced distribution of the binary activation, which increases the accuracy of BNN models. Experimental results show that the accuracy of previous BNN models (e.g. XNOR-Net and Bi-Real-Net) can be improved by simply shifting the threshold values of binary activation functions without requiring any other modification.
Motivation & Objective
- To investigate the impact of activation distribution symmetry on BNN accuracy, challenging the assumption that balanced distributions are optimal.
- To address the persistent accuracy degradation in BNNs despite existing techniques like STE and weight scaling.
- To explore whether unbalanced activation distributions—common in ReLU-based networks—could improve BNN performance.
- To evaluate the effectiveness of threshold shifting in binary activation functions as a simple yet effective accuracy improvement method.
- To clarify the role of additional activation functions (e.g., PReLU) in BNNs by analyzing their effect on activation distribution.
Proposed method
- Proposes shifting the threshold of the sign function in binary activation from 0 to a learnable or fixed offset, creating unbalanced binary outputs.
- Uses a modified straight-through estimator (STE) to back-propagate gradients through the threshold-shifted sign function.
- Employs empirical analysis on ResNet-20 and other architectures to compare accuracy with and without threshold shifts.
- Introduces LeakyReLU with variable negative slope as a proxy to simulate unbalanced distributions and validate threshold shift effects.
- Compares models with and without additional activation functions (e.g., PReLU) to isolate the contribution of distribution skewness.
- Analyzes pre-activation distributions to visualize how threshold shifts and LeakyReLU alter mean and median, inducing asymmetry.
Experimental results
Research questions
- RQ1Does a shift in the threshold of the binary activation function improve BNN accuracy?
- RQ2Is the performance gain from threshold shifting due to the resulting unbalanced activation distribution?
- RQ3Why do additional activation functions like PReLU improve BNN accuracy—can it be attributed to distribution skewness?
- RQ4Can threshold shifting be effectively trained via back-propagation, or is it better treated as a hyperparameter?
- RQ5How does the skewness of activation distribution correlate with model accuracy in BNNs?
Key findings
- Shifting the threshold of the binary activation function from 0 to a non-zero value significantly improves test accuracy in BNNs without architectural changes.
- The accuracy improvement is consistent across multiple models, including XNOR-Net and Bi-Real-Net, with gains of up to 2.5% on CIFAR-10.
- The performance gain is attributed to the creation of unbalanced activation distributions, which better preserve information than symmetric distributions.
- Models with additional PReLU or LeakyReLU layers already exhibit unbalanced distributions, explaining part of their accuracy gains, and further threshold shifting degrades performance due to over-distortion.
- The threshold shift is not trainable via back-propagation; fixed or manually tuned shifts yield better results than end-to-end learning of the threshold.
- The unbalanced distribution effect is validated by comparing ReLU6 and hardtanh functions in full-precision settings, showing that skewness improves accuracy even without binarization.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.