Skip to main content
QUICK REVIEW

[Paper Review] The Binary Quantized Neural Network for Dense Prediction via Specially Designed Upsampling and Attention

Xingyu Ding, Lianlei Shan|arXiv (Cornell University)|May 28, 2024
Neural Networks and ApplicationsComputer Science3 citations
TL;DR

This paper proposes a binary quantized neural network for dense prediction tasks like semantic segmentation, introducing a multi-branch parallel upsampling method and a low-complexity binary attention mechanism. By preserving feature fidelity during upsampling and enabling efficient attention computation, the method achieves 97.41% mIOU on Cityscapes—competitive with full-precision networks—while maintaining the speed and compression advantages of binary networks.

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.

Motivation & Objective

  • To address the accuracy drop in binary neural networks (BNNs) when applied to dense prediction tasks like semantic segmentation.
  • To overcome the limitations of standard upsampling methods (e.g., bilinear/nearest-neighbor) in BNNs, which degrade performance due to binary quantization.
  • To enable efficient attention mechanisms in BNNs, which are computationally expensive in full-precision form but essential for segmentation performance.
  • To maintain the speed and model compression advantages of BNNs while achieving competitive accuracy on dense prediction benchmarks.

Proposed method

  • Designs a multi-branch parallel upsampling structure that processes the same feature map through multiple binary branches before merging, approximating full-precision upsampling without speed loss.
  • Applies a parallel strategy to the attention mechanism, computing binary attention across multiple feature levels to preserve performance while reducing computational complexity.
  • Uses a one-time calculation with multi-distribution strategy to efficiently compute attention in binary networks, reducing complexity by up to 100× compared to full-precision attention.
  • Adapts the groupNet structure to BNNs, enabling better information retention in encoder-decoder architectures for dense prediction.
  • Employs a hybrid training strategy where full-precision operations are used during forward pass for upsampling and attention, then quantized for inference, minimizing accuracy loss.
  • Validates the method on Cityscapes, KITTI Road, and ECSSD datasets using mIOU and computational metrics to compare with full-precision and multi-valued quantized models.

Experimental results

Research questions

  • RQ1Can a specially designed upsampling method mitigate the accuracy degradation caused by binary quantization in dense prediction tasks?
  • RQ2Can the attention mechanism be effectively transferred from full-precision networks to binary networks without sacrificing performance or speed?
  • RQ3What is the impact of backbone binarization versus decoder head design on the overall accuracy of BNNs in semantic segmentation?
  • RQ4Does the proposed multi-branch parallel structure outperform standard binary upsampling and attention in terms of accuracy and efficiency?

Key findings

  • The proposed multi-branch parallel upsampling achieves 97.41% mIOU on the Cityscapes driveable area set, outperforming full-precision upsampling (94.70%) by 2.71 percentage points.
  • The binary attention mechanism reduces computational complexity by a factor of 100 while maintaining performance comparable to full-precision attention.
  • On the ECSSD dataset, the method achieves a significant improvement in salient object detection, demonstrating generalization beyond autonomous driving tasks.
  • Ablation studies confirm that both the proposed upsampling and attention mechanisms are critical, with the attention mechanism contributing a 2.71% mIOU gain over baseline binary attention.
  • Bottleneck analysis shows that backbone binarization is the primary factor limiting accuracy, not the proposed upsampling or attention modules.
  • The final model achieves 97.41% mIOU with only 0.79×10^9 FLOPs and 1.32 MB memory, demonstrating strong compression and acceleration benefits.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.