Binarizing MobileNet via Evolution-Based Searching

Hai Phan, Zechun Liu, Dang Huynh, Marios Savvides, Kwang-Ting Cheng, Zhiqiang Shen

Binary Neural Networks (BNNs) represent weights and activations with just 1 bit (-1 or +1), offering massive savings in memory and computation. However, binarizing "compact" architectures like MobileNet is notoriously difficult. This paper presents a novel way to binarize MobileNet by replacing problematic depth-wise convolutions with optimized group convolutions, using an evolutionary search strategy to find the perfect balance for each layer.

The Representation Bottleneck in Binary MobileNet

MobileNet relies on depth-wise separable convolutions, where a filter only looks at one input channel at a time. In a binary 3x3 depth-wise layer, the output can only take one of 10 integer values (between -9 and 9). This "narrow value range" severely limits the network's ability to represent complex features, often leading to training divergence or poor accuracy.

Comparison of output value ranges and training stability between depth-wise and group convolutions.

As shown in the figure above, group convolution acts as a "representation buffer." By allowing multiple channels to interact, it widens the range of possible output values compared to depth-wise convolution. This stabilizes training and significantly increases the expressive power of the binary network.

Methodology: A Three-Stage Pipeline

The authors propose using Group Convolutions as a tunable bridge between depth-wise and full convolutions. To find the optimal configuration, they employ a three-stage pipeline:

  1. Randomized Pre-training with Weight Sharing: A baseline network is trained where the number of groups in each layer is randomized at every iteration. This makes the filters robust and capable of preserving information regardless of the specific group structure used later.
  2. Evolutionary Search: Using a genetic algorithm, the authors search for the optimal number of groups for each of the 13 layers in the MobileNet backbone. The goal is to maximize accuracy while staying under a strict computational budget (FLOPs).
  3. Re-training: Once the optimal "heterogeneous" group structure is found, the model is trained from scratch to reach its peak performance.
The three-stage pipeline: (a) Randomized pre-training, (b) Evolutionary group convolution searching, and (c) Final network re-training.

Key Insights and Search Efficiency

The search revealed that a "one-size-fits-all" approach to groups is sub-optimal. The evolutionary algorithm tended to assign fewer groups (more connectivity) to earlier layers to preserve essential input information, while using more groups in later layers to save on computation. Unlike traditional Neural Architecture Search (NAS), which can require thousands of GPU hours, this evolutionary search on a constrained group-space took only about 29 hours on a single GPU.

Results and Performance

The primary benchmark used was ImageNet (ILSVRC2012). The proposed method achieved several key milestones:

  • State-of-the-Art Accuracy: The best model achieved 60.09% Top-1 accuracy on ImageNet, outperforming previous leaders like CI-BCNN (59.9%) and MoBiNet (54.4%).
  • Significant Compression: Compared to the original full-precision MobileNet, these binary versions are 4x to 17x faster in terms of FLOPs while maintaining respectable accuracy.
  • Stability: The group convolution approach showed much steadier convergence during training compared to binary depth-wise versions, which are prone to diverging.

Conclusion and Future Work

While 60.09% is a breakthrough for BNNs, an accuracy gap remains compared to full-precision MobileNet (~70%+). Future work may expand the search space to include kernel sizes and expansion ratios. Additionally, while theoretical FLOP savings are high, realizing these gains in practice requires specialized hardware kernels (like XNOR and Popcount) that are not always fully optimized in standard deep learning frameworks.

Summary updated

BibTeX
@inproceedings{phan2020binarizing,
  author = {Hai Phan and Zechun Liu and Dang Huynh and Marios Savvides and Kwang-Ting Cheng and Zhiqiang Shen},
  title = {{Binarizing MobileNet via Evolution-Based Searching}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2020},
  doi = {10.1109/cvpr42600.2020.01343},
}
Figure