arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2404.16573cs.CV
收藏

用于语义分割的通过变化窗口注意力实现的多尺度表示

Multi-Scale Representations by Varying Window Attention for Semantic Segmentation

Artificial Intelligence School(人工智能学院);Beijing University of Posts and Telecommunications(北京邮电大学)

Haotian Yan, Ming Wu, Chuang Zhang

AI总结:

针对语义分割中多尺度表示的尺度不足和感受野失活问题,提出变化窗口注意力(VWA)及其多尺度解码器VWFormer,通过重缩放策略在不增加计算成本的前提下显著提升了分割性能。

摘要:

多尺度学习是语义分割的核心。我们可视化了典型多尺度表示的有效感受野(ERF),并指出了学习它们时的两个风险:尺度不足和感受野失活。为了解决这些问题,我们提出了一种新颖的多尺度学习器,即变化窗口注意力(VWA)。VWA利用局部窗口注意力(LWA),并将LWA解耦为查询窗口和上下文窗口,允许上下文的尺度发生变化,以便查询能够学习多尺度的表示。然而,将上下文变化至大尺度窗口(放大比率R)会显著增加内存占用和计算成本(比LWA大R^2倍)。我们提出了一种简单但专业的重新缩放策略,在不损害性能的情况下将额外产生的成本降至零。因此,VWA使用与LWA相同的成本克服了局部窗口的感受野限制。此外,基于VWA并采用各种MLP,我们引入了一个多尺度解码器(MSD),即VWFormer,以改善语义分割的多尺度表示。VWFormer实现了与最具计算友好性的MSD(如FPN和MLP decoder)相媲美的效率,但性能远超任何MSD。例如,使用近一半的UPerNet计算量,VWFormer在ADE20K上比其高出1.0%-2.5%的mIoU。在几乎没有额外开销(约10G FLOPs)的情况下,配备了VWFormer的Mask2Former提升了1.0%-1.3%。代码和模型可在https://github.com/yan-hao-tian/vw获取。

英文摘要:

Multi-scale learning is central to semantic segmentation. We visualize the effective receptive field (ERF) of canonical multi-scale representations and point out two risks in learning them: scale inadequacy and field inactivation. A novel multi-scale learner, varying window attention (VWA), is presented to address these issues. VWA leverages the local window attention (LWA) and disentangles LWA into the query window and context window, allowing the context's scale to vary for the query to learn representations at multiple scales. However, varying the context to large-scale windows (enlarging ratio R) can significantly increase the memory footprint and computation cost (R^2 times larger than LWA). We propose a simple but professional re-scaling strategy to zero the extra induced cost without compromising performance. Consequently, VWA uses the same cost as LWA to overcome the receptive limitation of the local window. Furthermore, depending on VWA and employing various MLPs, we introduce a multi-scale decoder (MSD), VWFormer, to improve multi-scale representations for semantic segmentation. VWFormer achieves efficiency competitive with the most compute-friendly MSDs, like FPN and MLP decoder, but performs much better than any MSDs. For instance, using nearly half of UPerNet's computation, VWFormer outperforms it by 1.0%-2.5% mIoU on ADE20K. With little extra overhead, ~10G FLOPs, Mask2Former armed with VWFormer improves by 1.0%-1.3%. The code and models are available at https://github.com/yan-hao-tian/vw

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

↑