Reproduce “Know Your Attention Maps: Class-specific Token Masking for Weakly Supervised Semantic Segmentation” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Joelle Hanna, Damian Borth

Researchers from the University of St. Gallen developed an end-to-end weakly supervised semantic segmentation method that modifies Vision Transformers to produce class-specific attention maps, enabling the generation of high-quality pseudo-masks using only image-level labels. This approach achieved 73.5% mIoU on the Pascal VOC 2012 test set and outperformed fully supervised methods on the DFC2020 remote sensing dataset.

Key insights

  • Modified ViT self-attention mechanisms can directly generate high-quality, class-specific pseudo-masks for WSSS in an end-to-end, single-stage pipeline, bypassing the need for CAMs.
  • Explicitly associating `[CLS]` tokens with specific classes, combined with a random masking strategy, effectively forces ViT attention heads to specialize in learning distinct class features.
  • Architectural additions like the `[REG]` token and attention head pruning are crucial for refining attention maps, leading to more precise object boundaries and cleaner segmentation pseudo-masks.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.