Binarized Neural Architecture Search for Efficient Object Recognition

Hanlin Chen, Li'an Zhuo, Baochang Zhang, Xiawu Zheng, Jianzhuang Liu, Rongrong Ji, David S. Doermann, Guodong Guo

TL;DR

This paper introduces Binarized Neural Architecture Search (BNAS), a novel method for automatically designing highly efficient neural networks by searching within a space of binarized operations. BNAS significantly reduces search costs and improves performance on embedded devices, achieving comparable accuracy to full-precision models with drastically compressed models and faster search times than existing methods.

What Problem Does This Paper Address?

The paper tackles the growing demand for efficient deep learning models on resource-constrained edge devices. While Neural Architecture Search (NAS) has been successful in automating the design of powerful neural networks, these models are often computationally expensive and memory-intensive, making them unsuitable for edge deployment. Binarized Neural Networks (BNNs) offer a promising solution by drastically reducing model size and computational cost, but designing effective BNN architectures has remained a significant challenge. Traditional NAS methods applied to BNNs struggle with learning inefficiencies, vast search spaces, and performance degradation on real-world data. This paper aims to bridge this gap by developing a NAS framework specifically for binarized networks that is both efficient and effective.

Methods

The core of this work is the Binarized Neural Architecture Search (BNAS) framework. Key innovations include:

  • Operation Space Reduction: To combat the computational burden of searching in a binarized space, BNAS employs a performance-based strategy to prune less promising operations. This significantly shrinks the search space.
  • Channel Sampling: This technique further reduces computational cost by selectively sampling channels within the search process.
  • Upper Confidence Bound (UCB) for 1-bit BNAS: For the most extreme case of 1-bit BNNs, the authors introduce a bandit-based strategy using UCB to better balance exploration and exploitation during the search, improving performance.
  • Warm-up with PC-DARTS: The search process begins with a warm-up phase using Partially-Connected DARTS (PC-DARTS) to establish an initial set of promising operations.
  • Unified Optimization Framework: The paper reformulates the optimization of BNNs, considering both binarized kernels and amplitude matrices, and integrates this into the NAS framework.

Datasets

The following datasets were used for training and/or evaluation:

  • CIFAR-10: A standard image classification dataset for training and evaluating architectures.
  • ImageNet (ILSVRC12): A larger and more diverse dataset used for evaluating the transferability of the learned architectures.
  • CASIA-WebFace: A face recognition dataset used for training and evaluating models on face recognition tasks.
  • LFW (Labeled Faces in the Wild), CFP (Celebrities in Frontal-Profile), AgeDB: Datasets used for evaluating face recognition performance.

Key Insights and Ideas

  • BNAS is more than just binarizing existing NAS: The paper highlights that directly applying NAS to binarized networks is challenging due to unique optimization issues. BNAS introduces specific strategies to address these.
  • Performance-based pruning is crucial for efficiency: The strategy of abandoning less promising operations based on performance significantly reduces the search space and cost, making BNAS practical.
  • UCB is vital for extreme binarization (1-bit): The introduction of UCB is shown to be effective in improving the performance of 1-bit BNNs, which are particularly susceptible to training difficulties.
  • BNAS architectures favor larger receptive fields: The discovered architectures often incorporate operations that lead to larger receptive fields, which seems beneficial for binarized networks.
  • Generalizability of BNAS: The method demonstrates strong performance not only on image classification but also on face recognition tasks, and its learned architectures transfer well to different datasets.

Key Results

  • CIFAR-10: BNAS achieved an accuracy of 96.53%, comparable to full-precision NAS models (e.g., 97.22% for a specific NAS model) but with significantly compressed models.
  • Search Efficiency: BNAS was 40% faster than the state-of-the-art PC-DARTS in search time.
  • ImageNet: BNAS achieved competitive results, with a full-precision model reaching 71.3% Top-1 accuracy and a 1-bit model achieving 64.3% Top-1 accuracy, outperforming other human-designed binarized networks.
  • Face Recognition: BNAS models achieved performance comparable to full-precision ResNet models on LFW, CFP, and AgeDB datasets, while using significantly fewer parameters. For example, on LFW, BNAS achieved 98.57% accuracy with a much smaller model than ResNet-18.
  • 1-bit BNAS Improvement: The UCB-enhanced 1-bit BNAS showed a significant accuracy improvement of up to 1.66% compared to previous methods.

Limitations and Future Work

  • Performance Gap: While BNAS significantly reduces the gap between binarized and full-precision models, a slight performance difference still exists, particularly on challenging datasets like ImageNet.
  • Hyperparameter Sensitivity: The performance of BNAS might be sensitive to the choice of hyperparameters, such as the number of epochs for warm-up and the exploration term in UCB.
  • Future Work: The paper suggests further exploration into optimizing binarized networks and expanding the search space to include more complex operations. The authors also imply that their method could be further improved by exploring different bandit strategies or more advanced pruning techniques.

Summary updated

BibTeX
@article{chen2021binarized,
  author = {Hanlin Chen and Li'an Zhuo and Baochang Zhang and Xiawu Zheng and Jianzhuang Liu and Rongrong Ji and David S. Doermann and Guodong Guo},
  title = {{Binarized Neural Architecture Search for Efficient Object Recognition}},
  journal = {Int. J. Comput. Vis.},
  year = {2021},
  doi = {10.1007/s11263-020-01379-y},
}
Figure