BARS: Joint Search of Cell Topology and Layout for Accurate and Efficient Binary ARchitectures

Tianchen Zhao, Xuefei Ning, Songyi Yang, Shuang Liang, Peng Lei, Jianfei Chen, Huazhong Yang, Yu WangarXiv 2020

Abstract

Binary Neural Networks (BNNs) offer extreme efficiency for edge deployment by using 1-bit weights and activations. However, they often suffer from significant accuracy degradation due to the "information bottleneck" caused by limited bit-width. This paper introduces BARS (Binarized ARchitecture Search), a framework that jointly optimizes internal cell topology and macro-level layout (width and depth). By tailoring the architecture to the unique data flow of binary networks, BARS discovers models that significantly outperform both hand-crafted and standard NAS-derived binary architectures while maintaining high efficiency.

Addressing the Information Bottleneck

The primary challenge in BNN design is the information bottleneck. Unlike floating-point (FP) networks where activations carry 32 bits of information, BNNs are restricted to 1 bit. Simply porting FP architectures like ResNet to the binary domain is suboptimal because these structures were not designed for such "thin" data streams.

Figure 1: Micro-level topology and macro-level layout optimization to alleviate the information bottleneck in BNNs.

As shown in Figure 1, BARS addresses this by optimizing at two levels:

  1. Micro-level Topology: Enhancing internal cell connectivity to maximize information flow.
  2. Macro-level Layout: Adjusting network width and depth to alleviate bottlenecks, particularly at sensitive operations like downsampling.

The BARS Framework

BARS employs a two-level differentiable Neural Architecture Search (NAS) approach designed specifically for the binary domain.

Figure 2: The BARS framework overview, comparing its search flow and search space with standard DARTS.

Macro and Micro Search Spaces

The framework searches for the optimal "sweet spot" in network layout (width and depth) across different stages. Unlike standard DARTS which often uses a fixed layout, BARS allows for varying cell types and widths. The micro search space is simplified for BNNs, focusing on Binary 3x3 Convolutions, Shortcuts, and None operations.

To prevent the common "collapse" in differentiable NAS—where the search prematurely favors easy-to-train shortcuts—BARS incorporates:

  • Gumbel-Softmax Sampling: Bridges the gap between continuous search parameters and discrete final architectures.
  • Entropy Regularization: Encourages exploration of diverse topologies before convergence.
  • Binarized Downsampling: A novel operation using concatenated strided convolutions and shortcuts to preserve information without relying on full-precision layers.

Key Insights and Results

The search process revealed several critical design principles for BNNs:

  • Prioritizing Width: Increasing network width is often more effective than increasing depth for BNNs. Wider layers prevent information loss that cannot be recovered by subsequent deeper layers.
  • Shortcut Density: The discovered architectures are "skip-heavy," utilizing shortcuts as high-speed lanes to bypass lossy binary convolutions.

Performance Benchmarks

BARS sets new state-of-the-art records for binary models:

  • CIFAR-10: BARS-B achieved 92.98% accuracy, a 1.5% improvement over previous BNN NAS methods with fewer operations.
  • ImageNet: BARS-D reached 54.6% accuracy, outperforming hand-crafted binary ResNet-18 by 6%.
  • Efficiency: These gains were achieved using only ~1/10th of the FLOPs required by other leading binary NAS studies.

Conclusion

BARS demonstrates that the key to high-performance BNNs lies in architectures designed specifically for binary data flow. By jointly searching for topology and layout, BARS effectively breaks the information bottleneck. While challenges remain in fully binarizing the first and last layers and further reducing search costs, BARS provides a robust foundation for efficient, high-accuracy edge AI.

Summary updated

BibTeX
@misc{zhao2020bars,
  author = {Tianchen Zhao and Xuefei Ning and Songyi Yang and Shuang Liang and Peng Lei and Jianfei Chen and Huazhong Yang and Yu Wang},
  title = {{BARS: Joint Search of Cell Topology and Layout for Accurate and Efficient Binary ARchitectures}},
  year = {2020},
  eprint = {2011.10804},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2011.10804},
}
Figure