[Paper Review] Constrained Sampling for Class-Agnostic Weakly Supervised Object Localization
This paper proposes a class-agnostic, constrained sampling method for weakly supervised object localization using self-supervised Vision Transformers to generate high-resolution, threshold-free pseudo-labels. By leveraging attention maps from [cls] tokens and applying Otsu thresholding to select multiple object proposals, the approach produces precise foreground and background masks that enable end-to-end training with cross-entropy loss, achieving state-of-the-art performance on CUB-200-2011 with a 90.9% MaxBoxAccV2 mean score.
Self-supervised vision transformers can generate accurate localization maps of the objects in an image. However, since they decompose the scene into multiple maps containing various objects, and they do not rely on any explicit supervisory signal, they cannot distinguish between the object of interest from other objects, as required in weakly-supervised object localization (WSOL). To address this issue, we propose leveraging the multiple maps generated by the different transformer heads to acquire pseudo-labels for training a WSOL model. In particular, a new discriminative proposals sampling method is introduced that relies on a pretrained CNN classifier to identify discriminative regions. Then, foreground and background pixels are sampled from these regions in order to train a WSOL model for generating activation maps that can accurately localize objects belonging to a specific class. Empirical results on the challenging CUB benchmark dataset indicate that our proposed approach can outperform state-of-art methods over a wide range of threshold values. Our method provides class activation maps with a better coverage of foreground object regions w.r.t. the background.
Motivation & Objective
- To address the coarse localization and threshold sensitivity of traditional CAM methods in weakly supervised object localization.
- To improve localization accuracy by generating precise, high-resolution pseudo-labels without per-image threshold tuning.
- To enable class-agnostic localization using only image-level labels through attention-based pixel sampling.
- To enhance robustness and boundary alignment using conditional random field and auxiliary losses.
- To achieve state-of-the-art performance on the CUB-200-2011 benchmark using a novel pseudo-labeling pipeline.
Proposed method
- Utilizes self-supervised Vision Transformers to generate attention maps from the [cls] token of the last transformer layer.
- Selects the first four attention maps and their average to form five candidate maps for object proposal generation.
- Applies Otsu thresholding to each of the five maps to produce binary masks and extract up to n bounding boxes per image.
- Generates image crops with Gaussian blur to suppress background regions outside each bounding box for classifier inference.
- Selects the best proposal based on classifier confidence and corresponding attention map, defining foreground and background regions via top n% and bottom n% activation pixels.
- Trains the localization head using standard cross-entropy loss on the resulting pseudo-labels, with optional CRF and conditional losses for boundary refinement.
Experimental results
Research questions
- RQ1Can attention maps from self-supervised Vision Transformers be used to generate reliable, class-agnostic pseudo-labels for weakly supervised object localization?
- RQ2Can constrained sampling from multiple attention maps reduce dependency on per-image threshold selection in CAM-based localization?
- RQ3Does the proposed method improve localization accuracy compared to state-of-the-art CAM-based approaches on standard benchmarks?
- RQ4Can auxiliary losses like CRF and conditional loss enhance boundary alignment and robustness of pseudo-labels?
- RQ5To what extent does the method eliminate the need for manual thresholding while maintaining or improving localization performance?
Key findings
- The proposed method achieves a 90.9% mean MaxBoxAccV2 score on the CUB-200-2011 dataset, outperforming all prior state-of-the-art methods.
- The method achieves 97.0% MaxBoxAcc on VGG, significantly exceeding the previous SOTA of 91.5% from F-CAM.
- Activation score distributions show clear separation between foreground and background regions, eliminating the need for per-image thresholding.
- The use of multiple attention maps enables detection of multiple objects per image, increasing robustness to partial or multi-object scenes.
- Incorporating CRF and conditional random field losses improves boundary alignment and map robustness despite noisy pseudo-labels.
- The method is class-agnostic and operates with only two-channel pseudo-labels (foreground/background), simplifying training and inference.
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.