Introduction
Binary Neural Networks (BNNs) represent a significant frontier in mobile AI, offering the potential to replace power-hungry floating-point multiplications with efficient bitwise XNOR operations. However, most existing BNNs are simply binarized versions of architectures like ResNet or MobileNet, which were originally optimized for high-precision arithmetic. This paper introduces BNAS, the first Neural Architecture Search (NAS) framework specifically tailored for the unique constraints and behaviors of binary networks.
The Challenge of Binary NAS
Standard NAS methods, such as DARTS, often fail when applied to binary search spaces. They tend to collapse toward parameter-free layers like identity or pooling because binary layers are inherently harder to train and provide noisier gradients. Furthermore, architectural components that excel in floating-point (FP) contexts can be detrimental in binary ones.
A primary example is the separable convolution. While it is a cornerstone of efficient FP models, the authors found that its nested structure causes quantization errors to accumulate rapidly. As shown in the table below, binarizing separable convolutions leads to a catastrophic drop in accuracy, often reaching near-random levels (10% on CIFAR-10).
The BNAS Framework
To overcome these hurdles, BNAS introduces three core innovations:
- Refined Search Space ($S_B$): The search space is pruned of problematic layers like separable convolutions. Conversely, the "Zeroise" layer—which effectively disconnects a path—is included. In BNNs, Zeroise acts as a crucial regularizer by removing paths that contribute more quantization noise than useful signal.
- Quantization-Aware Cell Template ($T_B$): Unlike standard templates that rely on intra-cell skip connections, BNAS incorporates inter-cell skip connections. These connections link the outputs of multiple previous cells, creating a "gradient highway" that bypasses noisy binary layers and stabilizes the training process.
- Diversity Regularizer: To prevent the search from prematurely converging on "easy" non-learnable layers, an entropy-based penalty is added to the objective function. This encourages the exploration of diverse learnable binary layers during the early stages of the search.
Experimental Results
The authors evaluated BNAS on CIFAR-10 and ImageNet, comparing the searched architectures against both handcrafted binarized models and state-of-the-art binary networks.
As illustrated in the performance plot, BNAS variants consistently outperform traditional models across various computational budgets. On CIFAR-10, BNAS-A achieved 92.70% accuracy, surpassing a binarized ResNet18 by nearly 4%. On the more challenging ImageNet dataset, BNAS-D reached 57.69% top-1 accuracy, a substantial +6.49% improvement over the ResNet18 baseline. Notably, even the smallest variant, BNAS-Mini, outperformed much larger models while maintaining a significantly lower FLOP count.
Conclusion
BNAS demonstrates that the optimal architecture for a binary network is fundamentally different from its floating-point counterpart. By redesigning the search space and cell templates to be "quantization-aware," BNAS successfully discovers architectures that mitigate quantization error and stabilize gradient flow. This work paves the way for more efficient and accurate AI deployment on resource-constrained edge devices.
Summary updated