Know Your Attention Maps: Class-specific Token Masking for Weakly Supervised Semantic Segmentation
Not on the map. Why?
Abstract (arXiv)
Weakly Supervised Semantic Segmentation (WSSS) is a challenging problem that has been extensively studied in recent years. Traditional approaches often rely on external modules like Class Activation Maps to highlight regions of interest and generate pseudo segmentation masks. In this work, we propose an end-to-end method that directly utilizes the attention maps learned by a Vision Transformer (ViT) for WSSS. We propose training a sparse ViT with multiple [CLS] tokens (one for each class), using a random masking strategy to promote [CLS] token - class assignment. At inference time, we aggregate the different self-attention maps of each [CLS] token corresponding to the predicted labels to generate pseudo segmentation masks. Our proposed approach enhances the interpretability of self-attention maps and ensures accurate class assignments. Extensive experiments on two standard benchmarks and three specialized datasets demonstrate that our method generates accurate pseudo-masks, outperforming related works. Those pseudo-masks can be used to train a segmentation model which achieves results comparable to fully-supervised models, significantly reducing the need for fine-grained labeled data.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 26 of its 34 references that are in the map. First posted on arXiv 9 Jul 2025.
Builds on
26 of 34 references.
References · 26
- 2017Attention Is All You Needcited by 60,361
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2014Microsoft COCO: Common Objects in Contextcited by 17,608
- 2023Segment Anythingcited by 8,234
- 2021Emerging Properties in Self-Supervised Vision Transformerscited by 6,968
- 2015Learning Deep Features for Discriminative Localizationcited by 2,436
- 2016The Concrete Distribution: A Continuous Relaxation of Discrete Random Variablescited by 1,148
- 2023Vision Transformers Need Registerscited by 871
- 2019Analyzing Multi-Head Self-Attention: Specialized Heads Do the Heavy Lifting, the Rest Can Be Prunedcited by 856
- 2017Learning Sparse Neural Networks through L0 Regularizationcited by 583
- 2021Semi-Supervised Semantic Segmentation with Cross Pseudo Supervisioncited by 463
14 more
- 2016ScribbleSup: Scribble-Supervised Convolutional Networks for Semantic Segmentationcited by 331
- 2018Learning Pixel-level Semantic Affinity with Image-level Supervision for Weakly Supervised Semantic Segmentationcited by 321
- 2020Self-supervised Equivariant Attention Mechanism for Weakly Supervised Semantic Segmentationcited by 300
- 2016Simple Does It: Weakly Supervised Instance and Semantic Segmentationcited by 227
- 2017Object Region Mining with Adversarial Erasing: A Simple Classification to Semantic Segmentation Approachcited by 201
- 2022Multi-class Token Transformer for Weakly Supervised Semantic Segmentationcited by 138
- 2022Learning Affinity from Attention: End-to-End Weakly-Supervised Semantic Segmentation with Transformerscited by 118
- 2019Box-driven Class-wise Region Masking and Filling Rate Guided Loss for Weakly Supervised Semantic Segmentationcited by 98
- 2022Class Re-Activation Maps for Weakly-Supervised Semantic Segmentationcited by 75
- 2022Scribble-Supervised LiDAR Semantic Segmentationcited by 69
- 2023Segment Anything Model (SAM) Enhanced Pseudo Labels for Weakly Supervised Semantic Segmentationcited by 53
- 2022Max Pooling with Vision Transformers reconciles class and shape in weakly supervised semantic segmentationcited by 41
- 2020DDANet: Dual Decoder Attention Network for Automatic Polyp Segmentationcited by 31
- 2024DuPL: Dual Student with Trustworthy Progressive Learning for Robust Weakly Supervised Semantic Segmentationcited by 17
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026GeoSANE: Learning Geospatial Representations from Models, Not Datacited by 2
- 2026ModuSeg: Decoupling Object Discovery and Semantic Retrieval for Training-Free Weakly Supervised Segmentationcited by 0
- 2026DiCLIP: Diffusion Model Enhances CLIP's Dense Knowledge for Weakly Supervised Semantic Segmentationcited by 0
- 2026DiCLIP: Diffusion Model Enhances CLIP's Dense Knowledge for Weakly Supervised Semantic Segmentation6 May 2026
- 2026ModuSeg: Decoupling Object Discovery and Semantic Retrieval for Training-Free Weakly Supervised Segmentation8 Apr 2026
- 2026GeoSANE: Learning Geospatial Representations from Models, Not Data24 Mar 2026