arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2211.15595cs.CVcs.AI
收藏

FsaNet:用于语义分割的频率自注意力

FsaNet: Frequency Self-attention for Semantic Segmentation

Central South University(中南大学);Chalmers University of Technology(查尔姆斯理工大学)

Fengyu Zhang, Ashkan Panahi, Guangjun Gao

AI总结:

提出频率自注意力机制FsaNet,通过仅处理低频分量降低计算复杂度,在语义分割中达到与全频相当或更优性能,并显著节省内存和计算资源。

摘要:

考虑到图像的频谱特性,我们提出了一种新的自注意力机制,其计算复杂度大幅降低,可达线性级别。为了更好地保留边缘同时促进对象内部的相似性,我们提出了在不同频带上进行个性化处理的方法。特别地,我们研究了一种仅对低频分量进行处理的情况。通过消融研究,我们表明即使不重新训练网络,低频自注意力也能达到与全频自注意力非常接近甚至更好的性能。据此,我们设计并嵌入了新颖的即插即用模块到CNN网络的头部,称之为FsaNet。该频率自注意力1)仅需少量低频系数作为输入,2)在数学上可等价于具有线性结构的空间域自注意力,3)同时简化了令牌映射(1×1卷积)阶段和令牌混合阶段。我们表明,与常规自注意力相比,频率自注意力节省了87.29%~90.04%的内存,96.13%~98.07%的FLOPs,以及97.56%~98.18%的运行时间。与其他基于ResNet101的自注意力网络相比,我们的方法在Cityscape测试数据集上取得了新的最先进结果(83.0% mIoU),并在ADE20k和VOCaug上取得了有竞争力的结果。我们的方法还可以增强用于COCO上实例分割的MASK R-CNN。此外,利用所提出的模块,Segformer可以在不同规模的一系列模型上得到提升,并且Segformer-B5甚至可以在不重新训练的情况下得到改进。代码可在https://github.com/zfy-csu/FsaNet获取。

英文摘要:

Considering the spectral properties of images, we propose a new self-attention mechanism with highly reduced computational complexity, up to a linear rate. To better preserve edges while promoting similarity within objects, we propose individualized processes over different frequency bands. In particular, we study a case where the process is merely over low-frequency components. By ablation study, we show that low frequency self-attention can achieve very close or better performance relative to full frequency even without retraining the network. Accordingly, we design and embed novel plug-and-play modules to the head of a CNN network that we refer to as FsaNet. The frequency self-attention 1) requires only a few low frequency coefficients as input, 2) can be mathematically equivalent to spatial domain self-attention with linear structures, 3) simplifies token mapping ($1\times1$ convolution) stage and token mixing stage simultaneously. We show that frequency self-attention requires $87.29\% \sim 90.04\%$ less memory, $96.13\% \sim 98.07\%$ less FLOPs, and $97.56\% \sim 98.18\%$ in run time than the regular self-attention. Compared to other ResNet101-based self-attention networks, \ourM achieves a new \sArt result ($83.0\%$ mIoU) on Cityscape test dataset and competitive results on ADE20k and VOCaug. \ourM can also enhance MASK R-CNN for instance segmentation on COCO. In addition, utilizing the proposed module, Segformer can be boosted on a series of models with different scales, and Segformer-B5 can be improved even without retraining. Code is accessible at \url{https://github.com/zfy-csu/FsaNet

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑