DiPS: Discriminative pseudo-label sampling with self-supervised transformers for weakly supervised object localization

Shakeeb Murtaza, Soufiane Belharbi, Marco Pedersoli, Aydin Sarraf, Eric Granger

Abstract

Not available

Introduction

Weakly Supervised Object Localization (WSOL) aims to identify and locate objects within an image using only image-level labels, bypassing the need for expensive, manually-annotated bounding boxes. Traditionally, this field has been dominated by Class Activation Mapping (CAM) techniques. However, CAM-based methods suffer from a fundamental limitation: they tend to focus exclusively on the most discriminative parts of an object—such as the beak of a bird or the wheels of a car—rather than the entire object extent. This occurs because the classification loss is satisfied once the most salient feature is identified.

In contrast, Self-Supervised Transformers (SSTs), such as DINO, generate highly detailed attention maps that capture the full structure of objects. However, these maps are class-agnostic, meaning they cannot distinguish between different categories in a scene. DiPS (Discriminative Pseudo-label Sampling) bridges this gap by leveraging the structural richness of SSTs and the semantic guidance of a classifier to generate high-quality pseudo-labels for localization.

Methodology

The DiPS framework operates through a two-stage process: Proposal Generation and Model Training.

1. Discriminative Proposal Sampling

The process begins by extracting multiple class-agnostic attention maps from a frozen, pre-trained SST. These maps are binarized to create a pool of potential object regions, or "proposals." To assign semantic meaning to these proposals, DiPS utilizes an external pre-trained classifier. By blurring the image area outside of a specific proposal and measuring the classifier's confidence for the target class, the system "scores" the proposal's relevance. The top-K scoring proposals are retained as a diverse pool of candidates representing the target object.

2. Training with Stochastic Pseudo-labels

Rather than training on a single, static bounding box, DiPS employs a stochastic training strategy. At each training step, the model randomly selects one proposal from the top-K pool. This prevents the model from overfitting to a single noisy region and encourages the network to explore the full extent of the object.

The architecture consists of a Transformer-based encoder with two distinct heads: a classification head and a CNN-based decoder for localization. To ensure the predicted maps align with physical image boundaries, a Conditional Random Field (CRF) loss is applied, encouraging sharpness and adherence to edges and color gradients.

Experimental Evaluation

The authors evaluated DiPS across four diverse datasets to test its versatility and robustness:

  • CUB-200-2011: A fine-grained dataset focused on bird species.
  • ILSVRC (ImageNet): The standard benchmark for large-scale visual recognition.
  • OpenImages: A complex dataset featuring multiple objects per scene.
  • TelDrone: A real-world industrial dataset from Ericsson involving high-resolution 4K drone imagery of cell towers.

Key Results and Insights

DiPS established new state-of-the-art (SOTA) benchmarks across all tested datasets, demonstrating significant improvements over both traditional CAM and recent transformer-based methods.

  • Superior Accuracy: On the CUB dataset, DiPS achieved a 91.5% MaxBoxAccV2, a substantial leap over previous SOTA methods like SCM (89.9%) and TS-CAM (76.7%). On the industrial TelDrone dataset, it reached 92.4% MaxBoxAccV2, outperforming TS-CAM by nearly 20 percentage points.
  • Pixel-level Precision: On OpenImages, DiPS achieved 74.9% PxAP (Pixel-wise Average Precision), surpassing F-CAM.
  • Localization vs. Classification: The research highlights that localization and classification objectives can be antagonistic. DiPS mitigates this by using a frozen encoder and separate heads, preventing the classification task from "shrinking" the localization output.
  • Robustness: Unlike CAM-based methods, which are highly sensitive to the thresholds used for bounding box generation, DiPS produces maps with consistent intensities and sharp boundaries, making them more reliable for practical applications.

Conclusion and Future Work

DiPS demonstrates that combining the structural awareness of self-supervised models with the semantic knowledge of classifiers can overcome the inherent limitations of weakly supervised localization. By treating proposal selection as a stochastic sampling process, the model learns to identify entire objects rather than just their most discriminative fragments.

Despite its success, the method relies on the quality of an external classifier; if the classifier is biased, the pseudo-labels may follow suit. Additionally, while inference is efficient, the initial proposal harvesting phase introduces pre-processing overhead. Future research may focus on improving multi-instance modeling to better distinguish between multiple objects of the same class in complex scenes.

Summary updated

BibTeX
@article{murtaza2023dips,
  author = {Shakeeb Murtaza and Soufiane Belharbi and Marco Pedersoli and Aydin Sarraf and Eric Granger},
  title = {{DiPS: Discriminative pseudo-label sampling with self-supervised transformers for weakly supervised object localization}},
  journal = {Image and Vision Computing},
  year = {2023},
}
Figure