Introduction
Deep learning models have achieved state-of-the-art performance across various domains, yet their deployment on edge devices—such as mobile phones, IoT sensors, and wearables—remains constrained by limited computational resources. Network binarization, the process of reducing weights and activations to a single bit, represents the most extreme form of model compression. Theoretically, it offers up to a 32× reduction in storage and a 64× boost in speed. However, the field has historically suffered from narrow evaluations focused primarily on image classification and a reliance on theoretical metrics that do not translate to real-world hardware.
BiBench is introduced as the first rigorous, large-scale benchmark designed to bridge the gap between theoretical research and practical deployment. By evaluating milestone algorithms across diverse tasks, architectures, and hardware backends, BiBench provides a systematic framework for understanding the true potential and limitations of 1-bit quantization.
The BiBench Framework
To provide a fair and comprehensive evaluation, BiBench decouples binarization algorithms from the neural architectures they modify. The benchmark evaluates eight milestone algorithms—including BNN, XNOR-Net, ReActNet, and FDA—across six distinct evaluation tracks:
- Learning Tasks: Evaluation across multiple modalities (Vision, Text, Speech).
- Neural Architectures: Testing on CNNs, Transformers, and MLPs.
- Corruption Robustness: Assessing performance on noisy or corrupted data.
- Training Consumption: Measuring the computational cost of the training process.
- Theoretical Complexity: Calculating FLOPs and memory footprints.
- Hardware Inference: Measuring actual latency and throughput on real-world chips.
To ensure statistical reliability, the authors unified training pipelines and utilized a "Quadratic Mean" metric, preventing outlier results from skewing the overall assessment of an algorithm's versatility.
Multi-Modal Evaluation
BiBench spans nine datasets across four modalities, moving beyond simple image classification:
- 2D Vision: CIFAR-10 and ImageNet for classification; Pascal VOC and MS COCO for object detection.
- 3D Vision: ModelNet40 for classification and ShapeNet for segmentation.
- Natural Language Processing: The GLUE benchmark for natural language understanding.
- Speech Processing: Google Speech Commands for keyword spotting.
- Robustness: CIFAR-10-C, featuring 15 types of synthetic corruptions.
Empirical Insights
The Transformer Challenge
While binarization has seen success in Convolutional Neural Networks (CNNs) and Multi-Layer Perceptrons (MLPs), Transformers present a significant challenge. The attention mechanism appears highly sensitive to the information loss inherent in 1-bit activations. Currently, no binarization algorithm reaches even 70% of full-precision accuracy on NLP tasks, highlighting a critical area for future research.
Binarization as a Noise Filter
An unexpected finding is that binarized models often exhibit higher robustness to data corruption than their full-precision counterparts. The extreme discretization of values into -1 and 1 acts as a natural filter for small perturbations and synthetic noise, suggesting that binarization may offer security benefits alongside efficiency gains.
The Importance of the Operator
The study reveals that the specific mathematical "operator" used to approximate gradients during training (e.g., Soft Gradient Approximation) is the strongest predictor of success. The choice of operator often influences final accuracy more significantly than the underlying model architecture itself.
Hardware Performance and Efficiency
BiBench highlights a significant gap between theoretical and practical efficiency. While the theoretical speedup of binarization is 64×, real-world hardware inference on ARM CPUs typically achieves a ~5.45× speedup and a ~15.6× saving in storage.
Interestingly, binarization provides a higher relative speedup on low-power, legacy chips (such as older Kirin or Snapdragon processors) compared to high-end chips. High-performance hardware is already optimized for parallelizing floating-point operations, whereas binarization's bitwise operations shine in resource-constrained environments where floating-point units are less efficient.
Conclusion and Future Work
BiBench demonstrates that while algorithms like FDA and ReActNet are versatile top performers, the path to widespread deployment requires overcoming several hurdles. Current inference libraries, such as Larq and daBNN, are largely limited to ARM architectures and often lack support for the advanced scaling factors required by modern binarization techniques.
Future research should focus on developing specialized binarization strategies for Transformers, creating hardware-friendly operators that maintain model generality, and expanding library support across a broader range of hardware backends. By open-sourcing BiBench, the authors provide a foundation for the community to move toward standardized, real-world evaluation of 1-bit neural networks.
Summary updated