mlsanityData to 7 Oct 2026

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

arXiv 2203.02664 ↗First posted 5 Mar 2022cs.CVcited by 118

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 118 papers in the map (data through 7 Oct 2026). Builds on 46 of its 59 references that are in the map. First posted on arXiv 5 Mar 2022.

Builds on

46 of 59 references.

References · 46

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  4. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  5. 2017Graph Attention Networkscited by 8,854
  6. 2016Layer Normalizationcited by 5,579
  7. 2016DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFscited by 3,239
  8. 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,923
  9. 2015Learning Deep Features for Discriminative Localizationcited by 2,430
  10. 2021Vision Transformers for Dense Predictioncited by 1,789
  11. 2021ViViT: A Video Vision Transformercited by 1,610
  12. 2020Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformerscited by 1,368
34 more
  1. 2021Per-Pixel Classification is Not All You Need for Semantic Segmentationcited by 1,148
  2. 2016ScribbleSup: Scribble-Supervised Convolutional Networks for Semantic Segmentationcited by 330
  3. 2018Learning Pixel-level Semantic Affinity with Image-level Supervision for Weakly Supervised Semantic Segmentationcited by 321
  4. 2020Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentationcited by 299
  5. 2019Weakly Supervised Learning of Instance Segmentation with Inter-pixel Relationscited by 245
  6. 2020Causal Intervention for Weakly-Supervised Semantic Segmentationcited by 229
  7. 2017Object Region Mining with Adversarial Erasing: A Simple Classification to Semantic Segmentation Approachcited by 201
  8. 2016Seed, Expand and Constrain: Three Principles for Weakly-Supervised Image Segmentationcited by 198
  9. 2015Weakly- and Semi-Supervised Learning of a DCNN for Semantic Image Segmentationcited by 189
  10. 2016Wider or Deeper: Revisiting the ResNet Model for Visual Recognitioncited by 184
  11. 2020Single-Stage Semantic Segmentation from Image Labelscited by 167
  12. 2020Weakly-Supervised Semantic Segmentation via Sub-category Explorationcited by 145
  13. 2020Mining Cross-Image Semantics for Weakly Supervised Semantic Segmentationcited by 144
  14. 2021Anti-Adversarially Manipulated Attributions for Weakly and Semi-Supervised Semantic Segmentationcited by 134
  15. 2021Railroad is not a Train: Saliency as Pseudo-pixel Supervision for Weakly Supervised Semantic Segmentationcited by 127
  16. 2019Pixel-Adaptive Convolutional Neural Networkscited by 126
  17. 2021TS-CAM: Token Semantic Coupled Attention Map for Weakly Supervised Object Localizationcited by 122
  18. 2018On Regularized Losses for Weakly-supervised CNN Segmentationcited by 121
  19. 2021BBAM: Bounding Box Attribution Map for Weakly Supervised Semantic and Instance Segmentationcited by 104
  20. 2018Learning random-walk label propagation for weakly-supervised semantic segmentationcited by 101
  21. 2021Non-Salient Region Object Mining for Weakly Supervised Semantic Segmentationcited by 95
  22. 2019Reliability Does Matter: An End-to-End Weakly Supervised Semantic Segmentation Approachcited by 88
  23. 2021Leveraging Auxiliary Tasks with Affinity Learning for Weakly Supervised Semantic Segmentationcited by 77
  24. 2021Complementary Patch for Weakly Supervised Semantic Segmentationcited by 75
  25. 2021Context Decoupling Augmentation for Weakly Supervised Semantic Segmentationcited by 69
  26. 2021Reducing Information Bottleneck for Weakly Supervised Semantic Segmentationcited by 65
  27. 2020Group-Wise Semantic Mining for Weakly Supervised Semantic Segmentationcited by 52
  28. 2021Discriminative Region Suppression for Weakly-Supervised Semantic Segmentationcited by 50
  29. 2018Adaptive Affinity Fields for Semantic Segmentationcited by 48
  30. 2021Pseudo-mask Matters in Weakly-supervised Semantic Segmentationcited by 48
  31. 2021Affinity Attention Graph Neural Network for Weakly Supervised Semantic Segmentationcited by 47
  32. 2021Adaptive Affinity Loss and Erroneous Pseudo-Label Refinement for Weakly Supervised Semantic Segmentationcited by 22
  33. 2022Weakly-Supervised Semantic Segmentation with Visual Words Learning and Hybrid Poolingcited by 19
  34. 2021Towards Single Stage Weakly Supervised Semantic Segmentationcited by 5

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2022: 14; 2023: 43; 2024: 36; 2025: 17; 2026: 8.

118 papers.

Sort:

By area:

  1. 2023DiffuMask: Synthesizing Images with Pixel-level Annotations for Semantic Segmentation Using Diffusion Modelscited by 162
  2. 2022CLIP is Also an Efficient Segmenter: A Text-Driven Approach for Weakly Supervised Semantic Segmentationcited by 118
  3. 2023CLIP as RNN: Segment Countless Visual Concepts without Training Endeavorcited by 69
  4. 2023Token Contrast for Weakly-Supervised Semantic Segmentationcited by 64
  5. 2023Segment Anything Model (SAM) Enhanced Pseudo Labels for Weakly Supervised Semantic Segmentationcited by 53
  6. 2022A Survey on Label-efficient Deep Image Segmentation: Bridging the Gap between Weak Supervision and Dense Predictioncited by 46
  7. 2023CorrMatch: Label Propagation via Correlation Matching for Semi-Supervised Semantic Segmentationcited by 43
  8. 2022Max Pooling with Vision Transformers reconciles class and shape in weakly supervised semantic segmentationcited by 41
  9. 2022BoxTeacher: Exploring High-Quality Pseudo Labels for Weakly Supervised Instance Segmentationcited by 31
  10. 2023Foundation Model Assisted Weakly Supervised Semantic Segmentationcited by 31
  11. 2022Towards Label-efficient Automatic Diagnosis and Analysis: A Comprehensive Survey of Advanced Deep Learning-based Weakly-supervised, Semi-supervised and Self-supervised Techniques in Histopathological Image Analysiscited by 29
  12. 2023DeMT: Deformable Mixer Transformer for Multi-Task Learning of Dense Predictioncited by 27
38 more
  1. 2023Uncovering Prototypical Knowledge for Weakly Open-Vocabulary Semantic Segmentationcited by 27
  2. 2022Out-of-Candidate Rectification for Weakly Supervised Semantic Segmentationcited by 26
  3. 2023Semantic Image Segmentation: Two Decades of Researchcited by 26
  4. 2023Self Correspondence Distillation for End-to-End Weakly-Supervised Semantic Segmentationcited by 26
  5. 2022Box2Mask: Box-supervised Instance Segmentation via Level-set Evolutioncited by 22
  6. 2023WeakTr: Exploring Plain Vision Transformer for Weakly-supervised Semantic Segmentationcited by 22
  7. 2023MCTformer+: Multi-Class Token Transformer for Weakly Supervised Semantic Segmentationcited by 22
  8. 2022CAMANet: Class Activation Map Guided Attention Network for Radiology Report Generationcited by 21
  9. 2023An Alternative to WSSS? An Empirical Study of the Segment Anything Model (SAM) on Weakly-Supervised Semantic Segmentation Problemscited by 19
  10. 2023Image Augmentation with Controlled Diffusion for Weakly-Supervised Semantic Segmentationcited by 19
  11. 2023Weakly-Supervised Semantic Segmentation with Image-Level Labels: from Traditional Models to Foundation Modelscited by 19
  12. 2023TagCLIP: A Local-to-Global Framework to Enhance Open-Vocabulary Multi-Label Classification of CLIP Without Trainingcited by 19
  13. 2023Background Activation Suppression for Weakly Supervised Object Localization and Semantic Segmentationcited by 17
  14. 2024Spatial Structure Constraints for Weakly Supervised Semantic Segmentationcited by 17
  15. 2024DuPL: Dual Student with Trustworthy Progressive Learning for Robust Weakly Supervised Semantic Segmentationcited by 17
  16. 2024Hunting Attributes: Context Prototype-Aware Learning for Weakly Supervised Semantic Segmentationcited by 16
  17. 2024Prompt Categories Cluster for Weakly Supervised Semantic Segmentationcited by 16
  18. 2026VisionTrim: Unified Vision Token Compression for Training-Free MLLM Accelerationcited by 16
  19. 2023Emergent Open-Vocabulary Semantic Segmentation from Off-the-shelf Vision-Language Modelscited by 15
  20. 2024Adaptive Patch Contrast for Weakly Supervised Semantic Segmentationcited by 15
  21. 2024Image Augmentation Agent for Weakly Supervised Semantic Segmentationcited by 15
  22. 2023USAGE: A Unified Seed Area Generation Paradigm for Weakly Supervised Semantic Segmentationcited by 14
  23. 2024Separate and Conquer: Decoupling Co-occurrence via Decomposition and Representation for Weakly Supervised Semantic Segmentationcited by 14
  24. 2024Frozen CLIP: A Strong Backbone for Weakly Supervised Semantic Segmentationcited by 14
  25. 2024GLASS: Guided Latent Slot Diffusion for Object-Centric Learningcited by 14
  26. 2022Centralized Feature Pyramid for Object Detectioncited by 13
  27. 2023MARS: Model-agnostic Biased Object Removal without Additional Supervision for Weakly-Supervised Semantic Segmentationcited by 13
  28. 2023Cross-Modal Concept Learning and Inference for Vision-Language Modelscited by 12
  29. 2022eX-ViT: A Novel eXplainable Vision Transformer for Weakly Supervised Semantic Segmentationcited by 11
  30. 2022Background-Mixed Augmentation for Weakly Supervised Change Detectioncited by 11
  31. 2024Explaining Modern Gated-Linear RNNs via a Unified Implicit Attention Formulationcited by 11
  32. 2024Learning to Discover Forgery Cues for Face Forgery Detectioncited by 11
  33. 2023Top-K Pooling with Patch Contrastive Learning for Weakly-Supervised Semantic Segmentationcited by 10
  34. 2024MoRe: Class Patch Attention Needs Regularization for Weakly Supervised Semantic Segmentationcited by 9
  35. 2025Training-Free Class Purification for Open-Vocabulary Semantic Segmentationcited by 9
  36. 2023Scribble-Supervised RGB-T Salient Object Detectioncited by 8
  37. 2023Using Unreliable Pseudo-Labels for Label-Efficient Semantic Segmentationcited by 8
  38. 2023Semantic-Aware Dual Contrastive Learning for Multi-label Image Classificationcited by 8

50 most cited of 118 All 118 (JSON)