[Paper Review] GETAM: Gradient-weighted Element-wise Transformer Attention Map for Weakly-supervised Semantic segmentation
This paper proposes GETAM, the first transformer-based weakly-supervised semantic segmentation framework that uses gradient-weighted element-wise attention maps to generate precise, class-wise activation maps, overcoming the partial activation and shape distortion issues of traditional CAMs. By integrating a novel double-backward propagation scheme and activation-aware label completion with saliency maps, GETAM achieves state-of-the-art performance on PASCAL VOC and MS-COCO, outperforming both end-to-end and multi-stage methods with a single-stage training pipeline.
Weakly Supervised Semantic Segmentation (WSSS) is challenging, particularly when image-level labels are used to supervise pixel level prediction. To bridge their gap, a Class Activation Map (CAM) is usually generated to provide pixel level pseudo labels. CAMs in Convolutional Neural Networks suffer from partial activation ie, only the most discriminative regions are activated. Transformer based methods, on the other hand, are highly effective at exploring global context with long range dependency modeling, potentially alleviating the "partial activation" issue. In this paper, we propose the first transformer based WSSS approach, and introduce the Gradient weighted Element wise Transformer Attention Map (GETAM). GETAM shows fine scale activation for all feature map elements, revealing different parts of the object across transformer layers. Further, we propose an activation aware label completion module to generate high quality pseudo labels. Finally, we incorporate our methods into an end to end framework for WSSS using double backward propagation. Extensive experiments on PASCAL VOC and COCO demonstrate that our results beat the state-of-the-art end-to-end approaches by a significant margin, and outperform most multi-stage methods.m most multi-stage methods.
Motivation & Objective
- To address the limitations of Class Activation Maps (CAMs) in weakly-supervised semantic segmentation, particularly partial activation and poor shape localization.
- To explore the potential of vision transformers in WSSS by leveraging their global context modeling and long-range dependencies.
- To develop a novel attention visualization method that captures fine-grained, class-wise object activations across transformer layers.
- To generate high-quality pseudo-segmentation labels using activation-aware label completion guided by saliency maps.
- To enable end-to-end training for WSSS via a double-backward propagation mechanism, simplifying the pipeline compared to multi-stage approaches.
Proposed method
- Proposes Gradient-weighted Element-wise Transformer Attention Map (GETAM), which computes element-wise attention maps by weighting the dot product of query and key matrices with the squared gradient of the classification head.
- Aggregates attention maps across multiple transformer layers to reveal different object parts progressively, enhancing spatial consistency and shape accuracy.
- Introduces an activation-aware label completion module that fuses GETAM outputs with off-the-shelf saliency maps to refine foreground masks and discover background objects.
- Employs a double-backward propagation mechanism to backpropagate through both the segmentation head and the attention map generation process, enabling end-to-end training.
- Uses a ViT-Hybrid backbone to leverage the global receptive field and self-attention mechanisms of vision transformers for improved feature representation.
- Trains the entire framework end-to-end using image-level labels and pseudo labels generated via the proposed module, avoiding multi-stage training pipelines.
Experimental results
Research questions
- RQ1Can vision transformers produce more accurate and complete object activation maps than CNNs in weakly-supervised semantic segmentation?
- RQ2How can gradient information be effectively integrated into self-attention maps to improve localization precision and reduce noise?
- RQ3Can attention maps from multiple transformer layers be combined to reveal different parts of an object and improve shape reconstruction?
- RQ4Can activation-aware label completion with saliency maps generate higher-quality pseudo labels than standard CAM-based methods?
- RQ5Is it possible to achieve state-of-the-art performance in WSSS using a single-stage, end-to-end training framework based on vision transformers?
Key findings
- GETAM achieves 71.7% mIoU on the PASCAL VOC 2012 validation set and 72.3% on the test set, outperforming the previous SOTA method AALR by 7.8 percentage points.
- On the MS-COCO dataset, GETAM achieves 36.4% mIoU, making it the first end-to-end WSSS method to report results on this benchmark with competitive performance.
- GETAM surpasses multi-stage methods like URN and RIB on PASCAL VOC despite using a simpler, single-stage pipeline, demonstrating its efficiency and effectiveness.
- The method achieves state-of-the-art performance across different vision transformer backbones (ViT, DeiT, DeiT-Distilled), showing robustness to architecture choice.
- The double-backward propagation mechanism enables effective end-to-end training, eliminating the need for complex multi-stage pipelines used in prior SOTA methods.
- Visualizations show that GETAM produces more uniformly activated, shape-preserving attention maps compared to conventional CAMs, which are often over-smoothed and focused on discriminative regions.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.