[Paper Review] Binarized Convolutional Neural Networks with Separable Filters for Efficient Hardware Acceleration
This paper proposes BCNNw/SF, a binarized convolutional neural network with separable filters that leverages singular value decomposition (SVD) to reduce model size and computational cost. By decomposing binarized filters into rank-1 approximations, it achieves 17% memory reduction and 31.3% faster inference on FPGA, with minimal accuracy loss, enabling efficient hardware acceleration for mobile and embedded platforms.
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 push the boundaries of hardware-effective CNN design by proposing BCNN with Separable Filters (BCNNw/SF), which applies Singular Value Decomposition (SVD) on BCNN kernels to further reduce computational and storage complexity. To enable its implementation, 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 CIFAR-10 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.
Motivation & Objective
- Address the high memory and computational cost of binarized CNNs (BCNNs) in resource-constrained embedded and IoT systems.
- Reduce the model size and MAC operations of BCNNs without significant accuracy degradation.
- Enable efficient hardware acceleration of BCNNs through filter decomposition using singular value decomposition (SVD).
- Develop a differentiable training method that supports backpropagation through the SVD process for binarized filters.
- Implement and evaluate an FPGA-based accelerator for BCNNw/SF to demonstrate real-world performance gains.
Proposed method
- Apply singular value decomposition (SVD) to binarized 2D convolutional filters, approximating them as the outer product of two 1D vectors.
- Use a rank-1 SVD approximation to decompose each binarized filter into two 1D binary vectors, reducing the number of unique filters from $2^{d^2}$ to $2^{2d-1}$.
- Implement a 5-bit lookup table to encode the 32 unique $3\times3$ separable binary filters, reducing weight storage from 9 bits to 5 bits per filter.
- Replace 2D convolutions with two sequential 1D convolutions (vertical then horizontal), reducing MAC operations from 9 to 6 per output pixel.
- Propose two training methods: (1) Extended Straight-Through Estimator (eSTE) using batch normalization to regularize SVD-induced noise, and (2) Gradient over SVD using a closed-form gradient to backpropagate through the binarized filters.
- Implement the accelerator in C++ using Xilinx SDSoC, targeting a ZedBoard FPGA with on-chip RAMs for weights and feature maps, and use XOR-based MACs for efficiency.
Experimental results
Research questions
- RQ1Can SVD-based separable filters reduce the memory footprint and computational complexity of binarized CNNs without sacrificing accuracy?
- RQ2How can the gradient be backpropagated through the SVD decomposition when filters are binarized?
- RQ3Can the proposed method achieve significant speedup and memory savings in hardware acceleration for BCNNs?
- RQ4How do the two proposed training methods (eSTE and gradient over SVD) compare in terms of accuracy and training stability?
- RQ5To what extent can the FPGA-based accelerator for BCNNw/SF outperform standard BCNN in terms of latency and resource utilization?
Key findings
- BCNNw/SF achieves a 17.0% reduction in block RAM usage compared to standard BCNN on FPGA, primarily due to compressed filter representation using 5-bit encodings.
- The accelerator implementation shows a 31.3% reduction in execution time (1.46× speedup) for CIFAR-10 inference, attributed to reduced memory access from smaller weight storage.
- The LUT count increased slightly by 3.2% due to the additional decoder logic for 5-bit to 6-bit filter mapping, but other resources (FF, DSP) remained nearly unchanged.
- The eSTE method enables faster and simpler training by leveraging batch normalization to absorb SVD-induced noise, while the gradient-over-SVD method provides smoother learning and potentially better accuracy.
- The model maintains near-state-of-the-art accuracy on MNIST, CIFAR-10, and SVHN with only minor degradation, confirming the effectiveness of the approach.
- The FPGA implementation demonstrates that BCNNw/SF is viable for real-time inference on low-power embedded platforms, with minimal hardware overhead and significant performance gains.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.