[Paper Review] Training Bit Fully Convolutional Network for Fast Semantic Segmentation
This paper proposes Bit Fully Convolutional Networks (BFCN), a low-bit-width fully convolutional network with 1-bit weights and 2-bit activations that enables fast semantic segmentation via bit-convolution operations. By replacing 32-bit floating-point operations with bitwise operations and popcount computations, BFCN achieves 7.8x inference speedup on CPU and less than 1% FPGA resource usage while maintaining competitive performance, reaching 62.8% mean IoU on PASCAL VOC 2012 and 57.4% on Cityscapes—comparable to full-precision models.
Fully convolutional neural networks give accurate, per-pixel prediction for input images and have applications like semantic segmentation. However, a typical FCN usually requires lots of floating point computation and large run-time memory, which effectively limits its usability. We propose a method to train Bit Fully Convolution Network (BFCN), a fully convolutional neural network that has low bit-width weights and activations. Because most of its computation-intensive convolutions are accomplished between low bit-width numbers, a BFCN can be accelerated by an efficient bit-convolution implementation. On CPU, the dot product operation between two bit vectors can be reduced to bitwise operations and popcounts, which can offer much higher throughput than 32-bit multiplications and additions. To validate the effectiveness of BFCN, we conduct experiments on the PASCAL VOC 2012 semantic segmentation task and Cityscapes. Our BFCN with 1-bit weights and 2-bit activations, which runs 7.8x faster on CPU or requires less than 1\% resources on FPGA, can achieve comparable performance as the 32-bit counterpart.
Motivation & Objective
- To address the high computational and memory demands of fully convolutional networks (FCNs) in real-time and embedded applications.
- To enable efficient inference of FCNs on resource-constrained devices such as CPUs and FPGAs through low-bit-width quantization of weights and activations.
- To develop a novel training strategy that minimizes performance degradation from quantization in semantic segmentation tasks.
- To demonstrate that low-bit FCNs can achieve competitive accuracy while drastically reducing model size and inference latency.
Proposed method
- The BFCN uses 1-bit weights and 2-bit activations, enabling computation via XNOR and popcount operations instead of floating-point multiplications.
- A bit-convolution kernel is implemented using bitwise XOR and population count (popcount) operations to accelerate inference on CPUs and FPGAs.
- The network employs residual blocks in the reconstruction path to better preserve feature representation in low-bit-width settings.
- A linear bit-width decay schedule is introduced during training, gradually reducing bit-width from 8 to 1 or 2 to stabilize training and reduce quantization error.
- The model is fine-tuned from an ImageNet-pretrained ResNet-50 with bounded weights and activations to improve convergence and performance.
- The framework supports integration with other acceleration techniques such as low-rank approximation and CRF post-processing.
Experimental results
Research questions
- RQ1Can fully convolutional networks be effectively quantized to 1-bit weights and 2-bit activations without significant performance drop in semantic segmentation?
- RQ2How can low-bit-width networks be trained effectively to minimize performance degradation from quantization?
- RQ3To what extent can bit-convolution operations accelerate inference on CPUs and FPGAs compared to standard 32-bit operations?
- RQ4Does the use of residual blocks and bit-width decay improve the performance of low-bit FCNs compared to standard binarized networks?
- RQ5Can low-bit FCNs maintain competitive accuracy on challenging datasets like PASCAL VOC 2012 and Cityscapes while drastically reducing model size and latency?
Key findings
- The 1-2 BFCN achieves 62.8% mean IoU on PASCAL VOC 2012 and 57.4% on Cityscapes, which is within 7.4% and 7.8% of the 32-bit baseline, respectively.
- On CPU, the 1-2 BFCN runs 7.8x faster than the 32-bit counterpart, with inference time reduced from 9681 ms to 1237 ms on Tegra K1.
- The 1-2 BFCN uses only 4.3 MB of parameter storage, a 32x reduction compared to the 137.7 MB of the 32-bit model.
- On FPGA, the 1-2 BFCN consumes less than 1% of the resources required by a 32-bit model, demonstrating strong hardware efficiency.
- The 2-bit BFCN with residual reconstruction and linear bit-width decay achieves 67.0% mean IoU on VOC 2012, a 7.4% improvement over the vanilla variant.
- Performance degradation is most pronounced on fine-grained and rare classes (e.g., bottle, sofa, train), while large, frequent classes (e.g., sky, car) remain highly accurate.
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.