JOURNAL ARTICLE

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

Lixiang RuYibing ZhanBaosheng YuBo Du

Year: 2022 Journal:   2022 IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR) Pages: 16825-16834

Abstract

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.

Keywords:
Computer science Pascal (unit) Segmentation End-to-end principle Transformer Artificial intelligence Convolutional neural network Pattern recognition (psychology) Machine learning

Metrics

234
Cited By
16.02
FWCI (Field Weighted Citation Impact)
77
Refs
0.99
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Advanced Neural Network Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition
Domain Adaptation and Few-Shot Learning
Physical Sciences →  Computer Science →  Artificial Intelligence
Multimodal Machine Learning Applications
Physical Sciences →  Computer Science →  Computer Vision and Pattern Recognition

Related Documents

JOURNAL ARTICLE

Learning position information from attention: End-to-end weakly supervised crack segmentation with GANs

Ye LiuJun ChenJia-ao Hou

Journal:   Computers in Industry Year: 2023 Vol: 149 Pages: 103921-103921
JOURNAL ARTICLE

L2A: Learning Affinity From Attention for Weakly Supervised Continual Semantic Segmentation

Hao LiuYong ZhouBing LiuMing YanJoey Tianyi Zhou

Journal:   IEEE Transactions on Circuits and Systems for Video Technology Year: 2024 Vol: 35 (1)Pages: 315-328
JOURNAL ARTICLE

CPEWS: Contextual Prototype-Based End-to-End Weakly Supervised Semantic Segmentation

Xiaoyan ShaoJiaqi HanLingling LiXuezhuan ZhaoJingjing Yan

Journal:   Computers, materials & continua/Computers, materials & continua (Print) Year: 2025 Vol: 83 (1)Pages: 595-617
© 2026 ScienceGate Book Chapters — All rights reserved.