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

从注意力中学习亲和度:基于Transformers的端到端弱监督语义分割

Learning Affinity from Attention: End-to-End Weakly-Supervised Semantic Segmentation with Transformers

Wuhan University(武汉大学);JD Explore Academy(京东探索研究院);The University of Sydney(悉尼大学)

Lixiang Ru, Yibing Zhan, Baosheng Yu, Bo Du

摘要:

基于图像标签的弱监督语义分割是一项重要而又具有挑战性的任务。由于培训效率高,WSSS的端到端解决方案越来越受到社会的关注。然而,目前的方法主要是基于卷积神经网络,并不能很好地探索全局信息,从而往往导致不完整的目标区域。针对上述问题,本文引入了Transformers,自然地整合全局信息,为端到端WSSS生成更多完整的初始伪标签。基于Transformers中的自注意与语义亲和度之间的内在一致性,提出了一个从注意中学习亲和度(Affinity from Attention,AFA)模块,用于从Transformers中的多头自注意(Multi-head self-attention,MHSA)中学习语义亲和度。然后利用学习的亲和度来细化用于分割的初始伪标签。此外,为了有效地获得可靠的亲和标签监督AFA和确保本地一致性的伪标签,我们设计了一个像素自适应细化模块,结合低级别的图像外观信息,以改善伪标签。我们进行了大量的实验,我们的方法在PASCAL VOC 2012和MS COCO 2014数据集上分别实现了66.0%和38.9%的mIoU,显著优于最近的端到端方法和几个多阶段竞争对手。代码可在https://github.com/rulixiang/afa上获得。

英文摘要:

Weakly-supervised semantic segmentation (WSSS) with image-level labels is an important and challenging task. Due to the high training efficiency, end-to-end solutions for WSSS have received increasing attention from the community. However, current methods are mainly based on convolutional neural networks and fail to explore the global information properly, thus usually resulting in incomplete object regions. In this paper, to address the aforementioned problem, we introduce Transformers, which naturally integrate global information, to generate more integral initial pseudo labels for end-to-end WSSS. Motivated by the inherent consistency between the self-attention in Transformers and the semantic affinity, we propose an Affinity from Attention (AFA) module to learn semantic affinity from the multi-head self-attention (MHSA) in Transformers. The learned affinity is then leveraged to refine the initial pseudo labels for segmentation. In addition, to efficiently derive reliable affinity labels for supervising AFA and ensure the local consistency of pseudo labels, we devise a Pixel-Adaptive Refinement module that incorporates low-level image appearance information to refine the pseudo labels. We perform extensive experiments and our method achieves 66.0% and 38.9% mIoU on the PASCAL VOC 2012 and MS COCO 2014 datasets, respectively, significantly outperforming recent end-to-end methods and several multi-stage competitors. Code is available at https://github.com/rulixiang/afa.

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

↑