[Paper Review] Towards Lossless Binary Convolutional Neural Networks Using Piecewise Approximation
This paper proposes a Piecewise Approximation (PA) scheme for multiple binary convolutional neural networks that segments full-precision weights and activations into pieces, each approximated by a scaling coefficient, enabling parallel bitwise operations while reducing accuracy loss. The method achieves a top-1 accuracy gap of only ~1.0% on ImageNet compared to full-precision ResNet, outperforming prior single and multiple binary CNNs with lower memory and FLOPs than Bi-Real Net.
Binary Convolutional Neural Networks (CNNs) can significantly reduce the number of arithmetic operations and the size of memory storage, which makes the deployment of CNNs on mobile or embedded systems more promising. However, the accuracy degradation of single and multiple binary CNNs is unacceptable for modern architectures and large scale datasets like ImageNet. In this paper, we proposed a Piecewise Approximation (PA) scheme for multiple binary CNNs which lessens accuracy loss by approximating full precision weights and activations efficiently and maintains parallelism of bitwise operations to guarantee efficiency. Unlike previous approaches, the proposed PA scheme segments piece-wisely the full precision weights and activations, and approximates each piece with a scaling coefficient. Our implementation on ResNet with different depths on ImageNet can reduce both Top-1 and Top-5 classification accuracy gap compared with full precision to approximately 1.0%. Benefited from the binarization of the downsampling layer, our proposed PA-ResNet50 requires less memory usage and two times Flops than single binary CNNs with 4 weights and 5 activations bases. The PA scheme can also generalize to other architectures like DenseNet and MobileNet with similar approximation power as ResNet which is promising for other tasks using binary convolutions. The code and pretrained models will be publicly available.
Motivation & Objective
- To address the high accuracy degradation in single and multiple binary CNNs when deployed on large-scale datasets like ImageNet.
- To develop a method that maintains parallelism of bitwise operations for inference efficiency while improving approximation accuracy over existing multiple binary CNNs.
- To reduce the accuracy gap between full-precision and binary networks without sacrificing computational or memory efficiency.
- To generalize the approach across diverse architectures such as ResNet, DenseNet, and MobileNet.
Proposed method
- The PA scheme segments the full-precision range of weights and activations into multiple contiguous pieces.
- Each piece is approximated by a learned scaling coefficient, enabling efficient and differentiable approximation during forward and backward passes.
- The method uses a piecewise linear function to represent full-precision values, allowing for parallel bitwise operations in inference.
- The approach integrates binarization of 1×1 downsampling layers to further reduce memory and FLOPs.
- The scheme is trained end-to-end using a loss function that minimizes residual error across all pieces.
- It supports multiple bases for weights and activations (e.g., 4 and 5 respectively), enabling fine-grained approximation.
Experimental results
Research questions
- RQ1Can a piecewise approximation scheme reduce accuracy degradation in multiple binary CNNs while preserving the efficiency of bitwise operations?
- RQ2How does the PA scheme compare to single binary CNNs and other multiple binary CNNs in terms of accuracy and computational efficiency on ImageNet?
- RQ3To what extent can the PA scheme generalize across different CNN architectures like ResNet, DenseNet, and MobileNet?
- RQ4What is the impact of binarizing downsampling layers on memory usage and FLOPs in the PA framework?
Key findings
- The PA-ResNet50 model reduces the Top-1 and Top-5 accuracy gap compared to full-precision ResNet to approximately 1.0% on ImageNet.
- With 4 weight bases and 5 activation bases, PA-ResNet50 achieves lower memory usage and only two times the FLOPs compared to Bi-Real Net, despite being deeper.
- The PA scheme outperforms ABC-Net and other multiple binary CNNs in accuracy while maintaining parallelism of bitwise operations.
- The method generalizes well to other architectures, achieving similar approximation power on DenseNet and MobileNet as on ResNet.
- PA-ResNet50 consumes only 40.33 Mbit of memory and reduces FLOPs by nearly 3 times compared to full-precision ResNet50.
- On customized hardware, the latency cost of PA-Net increases by only 4T_mul + 4T_add + T_com compared to Bi-Real Net, indicating strong efficiency potential.
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.