Introduction
Semantic segmentation—the task of assigning a category label to every pixel in an image—is a cornerstone of computer vision but remains computationally intensive. While Fully Convolutional Networks (FCNs) provide high accuracy, their reliance on massive floating-point operations (FLOPs) and high-resolution feature maps makes deployment on resource-constrained embedded devices, such as drones or mobile phones, extremely challenging. Researchers from Megvii Inc. have introduced Bit Fully Convolutional Networks (BFCN) to address this by quantizing models down to 1- or 2-bit weights and activations, achieving significant speedups with minimal accuracy loss.
Methodology
The authors propose three primary innovations to enable high-performance low-bit segmentation:
1. Bit-Convolution Implementation
By quantizing weights and activations to 1 or 2 bits, standard floating-point multiplications are replaced with bitwise XNOR and popcount operations. On CPUs and FPGAs, this shift drastically reduces the computational overhead and memory bandwidth requirements.
2. Residual Reconstruction Blocks
A critical finding in this research was that standard convolutions in the upsampling (reconstruction) layers of an FCN perform poorly when quantized. To mitigate this, the authors replaced these layers with residual blocks. These blocks allow the network to better preserve spatial context and recover fine-grained information that might otherwise be lost during aggressive quantization.
3. Bit-width Decay Training
To avoid the catastrophic accuracy drops typically associated with binarizing complex networks, the authors developed a "bit-width decay" strategy. Instead of training a 2-bit network from scratch, they use a staged approach: training first at 8-bit, then 4-bit, and finally 2-bit. This allows the model to gradually adapt to the "noise" of quantization, preventing it from getting trapped in poor local minima.
Experimental Results
The BFCN was evaluated on the PASCAL VOC 2012 and Cityscapes datasets. Key findings include:
- Efficiency: A 1-bit weight / 2-bit activation (1-2 BFCN) model achieved a 7.8x speedup on a Tegra K1 CPU. Furthermore, parameter storage was reduced from 137.7 MB to just 4.3 MB, a 32x reduction.
- Accuracy Trade-off: On PASCAL VOC 2012, the 32-bit baseline achieved 69.8% mIoU. The 2-bit BFCN maintained a strong 67.0% mIoU, representing only a ~2.8% performance dip despite the massive reduction in complexity.
- Hardware Suitability: On FPGA hardware, the 2-bit model utilized less than 1% of the resources required by the full-precision counterpart.
Discussion and Conclusion
The study demonstrates that FCNs are excellent candidates for quantization because their large feature maps make memory savings particularly impactful. The authors found that "balanced" bit-widths (e.g., 2-bit weights and 2-bit activations) generally outperform asymmetric configurations with similar computational costs.
While BFCNs are highly effective for general segmentation, they still face challenges with fine-grained details and small objects (e.g., bottles). Future work may involve integrating Conditional Random Fields (CRFs) to sharpen object boundaries or employing class-balancing techniques to improve the recognition of rare categories in low-bit regimes.
Summary updated