Binarized Convolutional Neural Networks with Separable Filters for Efficient Hardware Acceleration

Jeng-Hau Lin, Tianwei Xing, Ritchie Zhao, Zhiru Zhang, Mani B. Srivastava, Zhuowen Tu, Rajesh K. Gupta

Abstract

State-of-the-art convolutional neural networks are enormously costly in both compute and memory, demanding massively parallel GPUs for execution. Such networks strain the computational capabilities and energy available to embedded and mobile processing platforms, restricting their use in many important applications. In this paper, we propose BCNN with Separable Filters (BCNNw/SF), which applies Singular Value Decomposition (SVD) on BCNN kernels to further reduce computational and storage complexity. We provide a closed form of the gradient over SVD to calculate the exact gradient with respect to every binarized weight in backward propagation. We verify BCNNw/SF on the MNIST, CIFAR-10, and SVHN datasets, and implement an accelerator for CIFAR10 on FPGA hardware. Our BCNNw/SF accelerator realizes memory savings of 17% and execution time reduction of 31.3% compared to BCNN with only minor accuracy sacrifices.

Introduction: Squeezing the Giant

Modern Convolutional Neural Networks (CNNs) are resource-intensive, often requiring high-end GPUs and significant power, which limits their deployment on Internet-of-Things (IoT) or mobile platforms. Binarized Neural Networks (BNNs) mitigate this by restricting weights and activations to +1 and -1, replacing floating-point multiplications with efficient XNOR operations. However, BNNs can still be large for complex tasks. This research introduces BCNNw/SF, which further optimizes binarized filters by exploiting their internal structure through Separable Filters (SF).

Methodology

The core innovation is applying Singular Value Decomposition (SVD) to binarized kernels to create a rank-1 approximation. A 2D $d \times d$ filter is decomposed into two 1D vectors (a $d \times 1$ column and a $1 \times d$ row). To integrate this into training, the authors proposed two strategies:

  1. Extended Straight-Through Estimator (eSTE): Treats the rank-1 approximation as noise, relying on batch normalization for regularization and standard STE for gradient propagation.
  2. Gradient over SVD: A mathematically rigorous approach using an analytic closed-form gradient for the SVD process, allowing exact gradient updates to weights before decomposition.
Flowchart of the two proposed training strategies: (a) eSTE and (b) Gradient over SVD.

For hardware implementation on a Xilinx FPGA, the researchers utilized Look-Up Tables (LUTs). Since the number of unique binarized rank-1 filters is small, they can be pre-calculated, avoiding real-time SVD during inference.

Key Insights

  • Reduced Search Space: A standard $3 \times 3$ binarized filter has $2^9 = 512$ possible configurations. In contrast, a rank-1 separable $3 \times 3$ binarized filter has only 32 unique possibilities. This reduction enables high compression and efficient LUT usage.
  • Width over Depth: When accuracy drops due to binarization and filter separation, "widening" the network (adding more channels) is more effective at recovering performance than increasing "depth" (adding more layers).
  • Mathematical Stability: The "Gradient over SVD" method proved more stable than eSTE, resulting in fewer fluctuations in validation accuracy and more reliable convergence.

Experimental Results

The approach was evaluated on MNIST, CIFAR-10, and SVHN. A hardware implementation on a Zedboard (Xilinx XC7Z020 FPGA) demonstrated significant gains:

  • Execution Speed: The BCNNw/SF accelerator achieved a 1.46x speedup (31.3% reduction in runtime) per image.
  • Memory Savings: It realized a 17% reduction in Block RAM usage, addressing a common FPGA bottleneck.
  • Accuracy: On CIFAR-10, while the base BCNNw/SF saw a ~2.7% accuracy drop, a "wider" version achieved an error rate of 11.68%, nearly matching the original BNN's 11.40%.
Training loss and validation accuracy comparing standard BCNN with wider and deeper BCNNw/SF variants.

Conclusion

BCNNw/SF offers a promising path for deploying deep learning on resource-constrained hardware. While the aggressive binarization and rank-1 approximation introduce noise that can impact accuracy on complex datasets, the efficiency gains are substantial. Future work may explore integrating probabilistic methods or more inherently efficient architectures like Inception-style structures to further optimize these models.

Summary updated

BibTeX
@inproceedings{lin2017binarized,
  author = {Jeng-Hau Lin and Tianwei Xing and Ritchie Zhao and Zhiru Zhang and Mani B. Srivastava and Zhuowen Tu and Rajesh K. Gupta},
  title = {{Binarized Convolutional Neural Networks with Separable Filters for Efficient Hardware Acceleration}},
  booktitle = {Workshops @ CVPR},
  year = {2017},
  url = {https://openreview.net/forum?id=H1EcCC-ubS},
}
Figure