Skip to main content
QUICK 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 Science被引用 3
一句话总结

本文提出一种用于密集预测任务(如语义分割)的二值化神经网络,引入了多分支并行上采样方法和低复杂度的二值化注意力机制。通过在上采样过程中保持特征保真度并实现高效的注意力计算,该方法在Cityscapes数据集上实现了97.41%的mIOU,性能与全精度网络相当,同时保持了二值化网络的速度和压缩优势。

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.

研究动机与目标

  • 为解决在语义分割等密集预测任务中应用二值化神经网络(BNNs)时出现的精度下降问题。
  • 克服标准上采样方法(如双线性/最近邻插值)在BNN中因二值量化导致性能下降的局限性。
  • 在BNN中实现高效的注意力机制,尽管全精度形式下计算成本高昂,但对分割性能至关重要。
  • 在保持BNN的速度与模型压缩优势的同时,实现在密集预测基准上的竞争力精度。

提出的方法

  • 设计一种多分支并行上采样结构,将同一特征图通过多个二值分支处理后合并,无需速度损失即可近似全精度上采样。
  • 采用并行策略实现注意力机制,在多个特征层级上并行计算二值化注意力,以保持性能的同时降低计算复杂度。
  • 通过一次计算结合多分布策略,高效计算二值化网络中的注意力,相比全精度注意力将复杂度降低最多达100倍。
  • 将groupNet结构适配至BNN,提升编码器-解码器架构中信息保留能力,以支持密集预测任务。
  • 采用混合训练策略:在前向传播中使用全精度操作完成上采样与注意力计算,推理阶段再进行量化,从而最小化精度损失。
  • 在Cityscapes、KITTI Road和ECSSD数据集上验证方法,采用mIOU和计算指标与全精度及多值量化模型进行对比。

实验结果

研究问题

  • RQ1是否可通过专门设计的上采样方法缓解二值量化在密集预测任务中引起的精度下降?
  • RQ2能否在不牺牲性能或速度的前提下,将注意力机制从全精度网络有效迁移至二值化网络?
  • RQ3骨干网络二值化与解码器头设计对语义分割中BNN整体精度的影响如何?
  • RQ4所提出的多分支并行结构在精度与效率方面是否优于标准的二值化上采样与注意力机制?

主要发现

  • 所提出的多分支并行上采样在Cityscapes可行驶区域子集上达到97.41%的mIOU,较全精度上采样(94.70%)高出2.71个百分点。
  • 二值化注意力机制将计算复杂度降低100倍,同时保持与全精度注意力相当的性能。
  • 在ECSSD数据集上,该方法在显著目标检测任务中取得显著提升,表明其泛化能力不仅限于自动驾驶任务。
  • 消融实验表明,所提出的上采样与注意力机制均至关重要,其中注意力机制相比基线二值化注意力带来2.71%的mIOU增益。
  • 瓶颈分析显示,骨干网络二值化是限制精度的主要因素,而非所提出的上采样或注意力模块。
  • 最终模型在仅0.79×10^9 FLOPs和1.32 MB内存下实现97.41%的mIOU,充分体现了强大的压缩与加速优势。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。