Binary-Decomposed DCNN for Accelerating Computation and Compressing Model Without Retraining

Ryuji Kamiya, Takayoshi Yamashita, Mitsuru Ambai, Ikuro Sato, Yuji Yamauchi, Hironobu Fujiyoshi

Introduction

Deep Convolutional Neural Networks (DCNNs) have revolutionized computer vision but remain computationally expensive and memory-intensive. Deploying these models on mobile or embedded systems often necessitates model compression and acceleration. Traditional binarization techniques, while effective, typically require retraining the model from scratch. This paper introduces a Binary-Decomposed DCNN framework that enables the binarization of pre-trained models without retraining, achieving significant efficiency gains with minimal impact on accuracy.

Methodology

The core of the proposed approach is the conversion of real-valued weights and feature maps into binary representations, allowing the replacement of costly floating-point operations with efficient bitwise logic.

Weight Decomposition

Weight vectors are decomposed into a binary basis matrix ($M \in \{-1, 1\}$) and a scaling coefficient vector ($c$). This allows the original weights to be approximated by a linear combination of binary bases. This process is performed offline and does not require the original training data.

Feature Map Quantization

To handle dynamic inputs, a quantization sub-layer is introduced. This layer calculates the dynamic range of feature maps during inference and converts them into binary codes.

Overview of the Binary-Decomposed DCNN architecture, detailing the vectorization and decomposition process for weight filters and connected weights.

By utilizing both weight decomposition and feature map quantization, the network can perform convolutions and fully-connected operations using bitwise AND, XOR, and POPCNT instructions, which are highly optimized in modern CPU architectures like SSE 4.2.

Experimental Results

The effectiveness of the Binary-Decomposed DCNN was validated using several standard architectures on the ImageNet (ILSVRC 2012) dataset.

Comprehensive performance evaluation for AlexNet, VGG-16, and ResNet, illustrating the relationship between error rate, acceleration, and memory compression.

As shown in the results, the method provides a tunable trade-off between precision and efficiency by adjusting the basis rank ($k$) and bit depth ($Q$).

  • AlexNet: Achieved a 1.79x speedup and 81% compression with an error increase of only 1.20%.
  • VGG-16: Demonstrated a 2.07x speedup and 81% compression with a 2.16% increase in error.
  • ResNet-152: Reduced model size from 229 MB to approximately 45 MB while maintaining a 1.77x speedup.

Notably, the proposed method significantly outperforms training-required binarization methods like XNOR-Net in terms of accuracy preservation for off-the-shelf models.

Conclusion

The Binary-Decomposed DCNN offers a robust solution for deploying high-performance deep learning models on resource-limited hardware. By eliminating the need for retraining, it makes model optimization accessible for a wide range of production scenarios. While a small accuracy gap remains, the substantial gains in speed and memory efficiency make it a compelling choice for real-world applications.

Summary updated

BibTeX
@inproceedings{kamiya2017binary,
  author = {Ryuji Kamiya and Takayoshi Yamashita and Mitsuru Ambai and Ikuro Sato and Yuji Yamauchi and Hironobu Fujiyoshi},
  title = {{Binary-Decomposed DCNN for Accelerating Computation and Compressing Model Without Retraining}},
  booktitle = {Workshops @ ICCV},
  year = {2017},
  doi = {10.1109/iccvw.2017.133},
}
Figure