BNAS v2: Learning Architectures for Binary Networks with Empirical Improvements

Dahyun Kim, Kunal Pratap Singh, Jonghyun ChoiarXiv 2021

Introduction

Binary Neural Networks (BNNs) represent a significant frontier in efficient deep learning, replacing standard 32-bit floating-point multiplications with 1-bit bitwise XNOR and popcount operations. While this offers massive potential for deployment on resource-constrained hardware, BNNs typically suffer from a substantial accuracy gap compared to their full-precision counterparts. A primary reason for this is the reliance on architectures like ResNet, which were optimized for high-precision parameters.

Existing Neural Architecture Search (NAS) methods, such as DARTS or SNAS, fail to bridge this gap. When these frameworks are applied to the binary domain, the resulting architectures often fail to train effectively. As illustrated in the training trajectories, standard NAS methods often see their accuracy collapse to near-random levels when binarized, highlighting the need for a search framework tailored to the unique constraints of 1-bit quantization.

Training and testing accuracy curves demonstrate that standard NAS methods like DARTS, SNAS, and GDAS fail to converge when binarized, whereas BNAS maintains stable learning.

Methodology: Binary Network Architecture Search (BNAS)

The authors propose BNAS, a framework designed to handle the high quantization noise inherent in BNNs. The methodology focuses on three core pillars: search space redesign, structural stability, and optimized training protocols.

Binary-Robust Search Space

The BNAS search space ($S_B$) departs from traditional NAS by removing depthwise separable convolutions. While efficient in floating-point networks, their nested structure compounds quantization errors in BNNs, often leading to performance no better than random guessing. Conversely, BNAS incorporates the Zeroise layer. In BNNs, if a floating-point signal is near zero, its binarized version can introduce significant noise. The Zeroise layer allows the network to bypass these noisy paths, effectively acting as a signal filter.

Structural Innovations

To improve gradient flow and stability, BNAS introduces Inter-Cell Skip Connections. Unlike standard templates that only utilize skip connections within individual cells, BNAS allows connections to span across multiple cells. This architectural choice enables gradients to bypass the quantization noise of several binary layers, leading to more robust optimization. Additionally, a Diversity Regularizer based on entropy is employed during the search phase to prevent the algorithm from prematurely collapsing into parameter-free layers like MaxPool.

The Underfitting Paradox and Minimal Regularization

A key insight of this work is that searched BNNs often suffer from underfitting rather than overfitting. Analysis shows that training accuracy is frequently lower than test accuracy for these models. To address this, the authors propose a "minimal regularization" scheme, removing standard techniques like weight decay and color jitter. This allows the low-capacity binary model to fit the training data more effectively, ultimately improving generalization.

Experimental Results

BNAS was evaluated on CIFAR-10 and ImageNet (ILSVRC 2012) to assess its efficiency and scalability.

CIFAR-10 Performance

On CIFAR-10, BNAS architectures consistently outperform handcrafted binarized models. For instance, BNAS-A achieves an accuracy of 92.70%, surpassing binarized ResNet-18 (88.82%) and WideResNet-40 (91.58%) while maintaining a significantly lower computational footprint in terms of FLOPs.

Comparison of test accuracy vs. FLOPs on CIFAR-10. BNAS variants (Mini, A, B, C) consistently achieve higher accuracy than other binarized baselines at similar or lower computational costs.

ImageNet Scalability

The superiority of BNAS extends to large-scale datasets. BNAS-D achieves 57.69% Top-1 accuracy on ImageNet, representing a +6.49% improvement over a binarized ResNet-18 backbone. By further refining the training process with minimal regularization and extended epochs, the authors reached a state-of-the-art Top-1 accuracy of 64.63%, significantly outperforming previous binary architecture benchmarks.

Conclusion

BNAS v2 demonstrates that the "holy grail" of efficient binary networks requires more than just binarizing existing architectures; it requires a fundamental redesign of the search process itself. By accounting for quantization noise through specialized search spaces and structural skip connections, and by addressing the underfitting paradox with minimal regularization, BNAS sets a new standard for high-performance, low-bitwidth deep learning.

Summary updated

BibTeX
@misc{kim2021bnas,
  author = {Dahyun Kim and Kunal Pratap Singh and Jonghyun Choi},
  title = {{BNAS v2: Learning Architectures for Binary Networks with Empirical Improvements}},
  year = {2021},
  eprint = {2110.08562},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2110.08562},
}
Figure