Abstract
Weakly Supervised Object Localization (WSOL) aims to identify object boundaries using only image-level labels. Traditional discriminative methods often fail by focusing solely on the most distinctive object features. This paper introduces GenPromp, a generative approach that redefines localization as a conditional image denoising task. By leveraging the representative power of generative models, GenPromp captures the full spatial extent of objects, outperforming existing state-of-the-art methods by over 5% on standard benchmarks.
Introduction: The Partial Activation Problem
WSOL is a fundamental challenge in computer vision: locating an object (e.g., a "goldfish") when the model was only trained to recognize its presence. Conventional methods rely on Class Activation Maps (CAM) derived from discriminative classifiers. Because these classifiers only need to find the most unique features to succeed—such as a bird's beak or a dog's face—they often ignore the rest of the object's body. This results in "partial activation," where predicted bounding boxes are significantly smaller than the actual objects.
The GenPromp Framework
GenPromp shifts the paradigm from classification to reconstruction. Instead of asking what makes an image belong to a category, it asks how to reconstruct the object from noise.
Dual Prompt Embeddings
The model utilizes a dual-embedding strategy to guide the denoising process:
- Discriminative Embedding ($f_d$): Sourced from a pre-trained CLIP model, providing a semantic anchor for the category.
- Representative Embedding ($f_r$): A learnable embedding optimized during training. By forcing the model to denoise the image, it learns to represent the entire structure of the object to achieve accurate reconstruction.
Conditional Denoising and Aggregation
Formulated as a conditional image denoising task, GenPromp uses a Transformer encoder-decoder architecture. During inference, the model aggregates cross-attention maps across multiple layers of the U-Net and various diffusion timesteps ($t$). This multi-scale approach ensures that both fine-grained details and global structures are captured.
Key Insights: The Role of Generative Priors
The core advantage of GenPromp lies in the requirement for generative models to understand the full spatial extent of an object to reconstruct it. This inherently mitigates the partial activation problem.
Furthermore, the authors discovered that the diffusion timestep ($t$) serves as a critical hyperparameter for localization. Low noise levels (small $t$) produce clean backgrounds but may lead to partial activation, while high noise levels (large $t$) activate the full object but risk including background noise. Aggregating maps across these timesteps provides a robust, high-precision localization mask.
Experimental Results
GenPromp was evaluated on the CUB-200-2011 and ImageNet-1K datasets, setting new performance benchmarks:
- CUB-200-2011: Achieved 87.0% Top-1 Localization accuracy, a 5.2% improvement over the previous state-of-the-art ($C^2AM$).
- ImageNet-1K: Reached 65.2% Top-1 Localization accuracy, surpassing existing methods by 5.6%.
- GT-known Loc: When the object category is provided, GenPromp achieves 98.0% accuracy on CUB, demonstrating the extreme precision of generative activation maps in capturing object boundaries.
Conclusion and Future Work
While GenPromp offers a significant leap in localization accuracy, it introduces higher computational overhead due to the large generative backbone (Stable Diffusion). Future research will focus on optimizing inference speeds and memory efficiency through techniques like model distillation. Nonetheless, the success of GenPromp proves that generative modeling is a powerful alternative to discriminative approaches for weakly supervised tasks.
Summary updated