NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

INSTA-BNN: Binary Neural Network with INSTAnce-aware Threshold

Changhun Lee, Hyungjun Kim, Eunhyeok Park, Jae-Joon Kim

Abstract

Binary Neural Networks (BNNs) have emerged as a promising solution for reducing the memory footprint and compute costs of deep neural networks, but they suffer from quality degradation due to the lack of freedom as activations and weights are constrained to the binary values. To compensate for the accuracy drop, we propose a novel BNN design called Binary Neural Network with INSTAnce-aware threshold (INSTA-BNN), which controls the quantization threshold dynamically in an input-dependent or instance-aware manner. According to our observation, higher-order statistics can be a representative metric to estimate the characteristics of the input distribution. INSTA-BNN is designed to adjust the threshold dynamically considering various information, including higher-order statistics, but it is also optimized judiciously to realize minimal overhead on a real device. Our extensive study shows that INSTA-BNN outperforms the baseline by 3.0% and 2.8% on the ImageNet classification task with comparable computing cost, achieving 68.5% and 72.2% top-1 accuracy on ResNet-18 and MobileNetV1 based models, respectively.

Introduction

Binary Neural Networks (BNNs) represent the extreme of network quantization, compressing 32-bit floating-point weights and activations into 1-bit values (+1 or -1). This offers up to a 32× reduction in memory and significant potential for hardware acceleration via bitwise operations. However, the rigid nature of binary quantization often leads to substantial accuracy loss.

A primary source of this degradation is the use of static quantization thresholds. Standard BNNs typically use a fixed sign function (threshold at zero) to binarize activations. Even models that learn a threshold during training keep it static during inference. This approach ignores a critical reality: activation distributions vary significantly across different input instances. As shown in Figure 1, the mean, standard deviation, and skewness of activations change based on the input image. A static threshold fails to adapt to these per-instance fluctuations, leading to information loss.

Activation distributions vary significantly across different input instances, showing changes in mean, standard deviation, and skewness.

Methods: Instance-Aware Thresholding

To address the limitations of static thresholding, we propose INSTA-BNN, which introduces dynamic, instance-aware thresholds.

Higher-Order Statistics and the Cubic Proxy

While previous adaptive methods focused primarily on the mean of activations, we demonstrate that higher-order statistics like variance and skewness (asymmetry) are equally critical for capturing input characteristics. However, calculating these statistics independently for every layer is computationally prohibitive for edge devices.

We introduce a "cubic proxy"—the expected value of the cube of the input ($E[x^3]$)—as a computationally efficient alternative. Mathematically, $E[x^3]$ captures information from the mean, variance, and skewness simultaneously. As illustrated in Figure 2, incorporating $E[x^3]$ provides performance gains comparable to or better than explicitly calculating multiple individual statistics, but with significantly lower overhead.

Extracted figure from page 3 of INSTA-BNN: Binary Neural Network with INSTAnce-aware Threshold

INSTA-Th and INSTA-PReLU

The instance-aware logic is integrated into two key components:

  1. INSTA-Th: This module dynamically shifts the threshold of the Sign function based on the cubic statistic of the input feature map.
  2. INSTA-PReLU: An instance-aware version of the Parametric ReLU that adapts its non-linear behavior on the fly, further increasing the network's representational capacity.

Hardware Optimization

To ensure real-time viability, INSTA-BNN employs two optimization strategies. First, Selective Use: INSTA modules are primarily applied to deeper layers where feature maps are smaller, maximizing accuracy gains while minimizing FLOPs. Second, Statistic Reuse: We observed high correlation between statistics of adjacent layers, allowing for the reuse of calculated values to reduce redundant operations.

Results

INSTA-BNN was evaluated on the ImageNet (ILSVRC12) benchmark using ResNet-18 and MobileNetV1 architectures.

  • Accuracy Boost: INSTA-BNN achieved 68.5% top-1 accuracy on ResNet-18 (+3.0% over baseline) and 72.2% on MobileNetV1 (+2.8% over baseline), outperforming existing state-of-the-art BNNs like DyBNN and Real-to-Binary.
  • Real-World Speed: When tested on a Google Pixel 3 mobile device, the ResNet-18 variant showed only a 2ms (6%) increase in latency compared to the baseline, demonstrating that the cubic proxy is highly efficient for real-world deployment.

Conclusion

INSTA-BNN demonstrates that instance-aware thresholding is a powerful mechanism for closing the accuracy gap in Binary Neural Networks. By leveraging higher-order statistics through an efficient cubic proxy, INSTA-BNN achieves state-of-the-art performance with negligible computational overhead, making it a highly practical solution for high-performance deep learning on edge hardware.

Summary updated

BibTeX
@inproceedings{lee2022insta,
  author = {Changhun Lee and Hyungjun Kim and Eunhyeok Park and Jae-Joon Kim},
  title = {{INSTA-BNN: Binary Neural Network with INSTAnce-aware Threshold}},
  booktitle = {IEEE/CVF International Conference on Computer Vision},
  year = {2022},
  url = {https://openreview.net/forum?id=VuPYLJFASb},
}
Figure