Abstract
Binary Neural Networks (BNNs) offer significant potential for deploying deep learning models on resource-constrained devices by representing weights and activations with a single bit. However, the rigid nature of binarization often leads to severe accuracy degradation. This paper introduces ReActNet, a novel BNN architecture that narrows the performance gap between 1-bit models and high-precision counterparts. By rethinking activation distributions and introducing learnable "reshape and shift" functions (RSign and RPReLU), ReActNet achieves ResNet-level accuracy on ImageNet with a fraction of the computational cost.
Introduction
Binary Neural Networks represent weights and activations using only 1 bit (-1 or +1), enabling massive memory savings (up to 32x) and significant speedups (up to 58x on CPUs) through bitwise XNOR and popcount operations. Despite these advantages, BNNs traditionally suffer from a "severe accuracy degradation." For instance, the classic XNOR-Net achieves approximately 51% accuracy on ImageNet, whereas a real-valued ResNet-18 reaches nearly 69%.
The authors identify that binarization is extremely sensitive to distribution shifts. A minor shift in a real-valued feature map near zero can result in a completely different binary output, which destroys the informativeness of the features. ReActNet addresses this by providing the network with explicit mechanisms to center and reshape data before it is binarized.
Methodology
ReActNet introduces three primary innovations to optimize the accuracy-efficiency trade-off:
1. High-Performance Baseline
The architecture utilizes a MobileNetV1-style backbone modified with identity shortcuts to bypass 1-bit convolutions. To handle downsampling without relying on expensive real-valued convolutions, the authors duplicate and concatenate input channels, ensuring the network remains hardware-friendly.
2. Generalized Activation Functions (ReAct)
Standard BNNs use rigid functions like Sign and PReLU, which cannot adapt to varying data distributions. ReActNet replaces these with:
- RSign (ReAct-Sign): Adds a learnable, channel-wise threshold ($\alpha_i$), allowing the network to learn the optimal "cutoff" point for binarization.
- RPReLU (ReAct-PReLU): Generalizes the PReLU function by adding learnable shifts ($\gamma_i$ and $\zeta_i$) before and after the non-linearity. This enables the network to explicitly reshape the distribution to capture more representative features.
3. Distributional Loss
Instead of standard cross-entropy, the authors employ a simple KL-divergence loss. This forces the binary network's output distribution to match that of a pre-trained real-valued "teacher" network. Unlike complex distillation methods, this approach requires no architectural similarity between the teacher and student models.
Experimental Results
The proposed methods were evaluated on the ImageNet (ILSVRC12) dataset. The results demonstrate that managing activation distributions is critical for 1-bit performance. The learnable parameters in RSign and RPReLU are negligible (only 4 parameters per channel), providing a massive accuracy boost (~7%) without increasing computational complexity (OPs).
ReActNet sets new benchmarks for 1-bit networks:
- ReActNet-A: Achieves 69.4% top-1 accuracy with only 87M OPs, outperforming the previous state-of-the-art (Real-to-Binary Net) by 4.0% while being nearly twice as efficient.
- ReActNet-C: By incorporating some real-valued convolutions in downsampling layers, it reaches 71.4% top-1 accuracy, surpassing the accuracy of the real-valued ResNet-18 baseline (69.3%).
Conclusion and Future Work
ReActNet demonstrates that the accuracy gap in BNNs is largely a distributional problem. By introducing RSign and RPReLU, the network can "center" data before it is crushed into binary values. While ReActNet achieves ResNet-level accuracy, a small gap (~3%) remains compared to its specific real-valued MobileNetV1 counterpart. Future research may explore applying these operations to object detection or investigating even more aggressive compression techniques, such as sub-1-bit networks.
Summary updated