[Paper Review] BiBench: Benchmarking and Analyzing Network Binarization
BiBench provides a comprehensive benchmark to compare 8 binarization algorithms across multiple tasks, architectures, corruptions, training settings, and hardware, revealing operator-level impacts on accuracy and efficiency.
Network binarization emerges as one of the most promising compression approaches offering extraordinary computation and memory savings by minimizing the bit-width. However, recent research has shown that applying existing binarization algorithms to diverse tasks, architectures, and hardware in realistic scenarios is still not straightforward. Common challenges of binarization, such as accuracy degradation and efficiency limitation, suggest that its attributes are not fully understood. To close this gap, we present BiBench, a rigorously designed benchmark with in-depth analysis for network binarization. We first carefully scrutinize the requirements of binarization in the actual production and define evaluation tracks and metrics for a comprehensive and fair investigation. Then, we evaluate and analyze a series of milestone binarization algorithms that function at the operator level and with extensive influence. Our benchmark reveals that 1) the binarized operator has a crucial impact on the performance and deployability of binarized networks; 2) the accuracy of binarization varies significantly across different learning tasks and neural architectures; 3) binarization has demonstrated promising efficiency potential on edge devices despite the limited hardware support. The results and analysis also lead to a promising paradigm for accurate and efficient binarization. We believe that BiBench will contribute to the broader adoption of binarization and serve as a foundation for future research. The code for our BiBench is released https://github.com/htqin/BiBench .
Motivation & Objective
- Define practical requirements and evaluation tracks for network binarization in production.
- Assess how binarized operators influence accuracy, efficiency, and deployability across tasks and architectures.
- Evaluate robustness to corruption and hardware deployment feasibility of binarized networks.
- Provide insights and guidelines to design accurate and efficient binarization algorithms.
Proposed method
- Select 8 influential operator-level binarization algorithms spanning scaling factors, parameter redistribution, and gradient approximation.
- Benchmark these algorithms on 9 datasets, 13 neural architectures, 2 deployment libraries, 14 hardware chips, and varied hyperparameters.
- Define 6 evaluation tracks (Learning Task, Neural Architecture, Corruption Robustness, Training Consumption, Theoretical Complexity, Hardware Inference) with unified metrics.
- Use full-precision baselines to compute mean relative accuracies and quadratic means as overall metrics per track.
- Implement training/inference pipelines in PyTorch with standardized pretraining, finetuning, and ONNX export for evaluation.
Experimental results
Research questions
- RQ1How does binarization accuracy vary across different learning tasks and data modalities?
- RQ2How does the choice of neural architecture (CNNs, transformers, MLPs) affect binarization performance?
- RQ3What is the impact of data corruption on binarized networks compared to full-precision models?
- RQ4What are the practical training costs and hardware deployment feasibility for binarized networks?
- RQ5Is there a general design paradigm for effective binarized operators that balances accuracy and efficiency?
Key findings
- Binarized operators critically influence performance, with large accuracy differences across tasks (e.g., GLUE vs ShapeNet) for the same algorithms.
- Transformer-based architectures are particularly challenging to binarize, while CNNs and MLPs can reach a higher fraction of full-precision accuracy.
- Binarized networks can exhibit robustness to corruption comparable to full-precision models on CIFAR10-C, and sometimes exceed them depending on the algorithm.
- Training cost is variable; some algorithms are hyperparameter-stable, while others incur substantial training time due to gradient-approximation techniques.
- On edge devices, hardware deployment is limited by available inference libraries, yet binarization shows substantial potential for storage and inference speedups when supported.
- The FDA and ReActNet approaches provide stability advantages across CNNs and transformers, indicating a practical operator-design paradigm.
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.