The Binary Quantized Neural Network for Dense Prediction via Specially Designed Upsampling and Attention
Xingyu Ding, Lianlei Shan, Guiqin Zhao, Meiqi Wu, Wenzhang Zhou, Wei Li
TL;DR
This work tackles the challenge of deploying binary neural networks for dense prediction by addressing the upsampling and attention bottlenecks that typically degrade accuracy. It introduces a multi-branch parallel upsampling module and a binary attention mechanism to preserve discriminative power while maintaining the acceleration benefits of binarization. The approach binarizes weights and activations with learned scaling and uses a two-part attention framework to enable efficient, effective attention in a binary setting, achieving substantial speedups (up to about 137.9×) and strong accuracy on Cityscapes, KITTI Road, and ECSSD. Overall, the method demonstrates that carefully designed binary upsampling and attention can enable practical, high-performance dense prediction with significantly reduced storage and compute requirements.
Abstract
Deep learning-based information processing consumes long time and requires huge computing resources, especially for dense prediction tasks which require an output for each pixel, like semantic segmentation and salient object detection. There are mainly two challenges for quantization of dense prediction tasks. Firstly, directly applying the upsampling operation that dense prediction tasks require is extremely crude and causes unacceptable accuracy reduction. Secondly, the complex structure of dense prediction networks means it is difficult to maintain a fast speed as well as a high accuracy when performing quantization. In this paper, we propose an effective upsampling method and an efficient attention computation strategy to transfer the success of the binary neural networks (BNN) from single prediction tasks to dense prediction tasks. Firstly, we design a simple and robust multi-branch parallel upsampling structure to achieve the high accuracy. Then we further optimize the attention method which plays an important role in segmentation but has huge computation complexity. Our attention method can reduce the computational complexity by a factor of one hundred times but retain the original effect. Experiments on Cityscapes, KITTI road, and ECSSD fully show the effectiveness of our work.
