[Paper Review] WeakSAM: Segment Anything Meets Weakly-supervised Instance-level Recognition
WeakSAM introduces a novel framework that integrates the Segment Anything Model (SAM) with weakly-supervised learning to enable automatic, category-aware object detection and instance segmentation using only image-level labels. By leveraging classification clues as prompts for SAM and introducing adaptive PGT generation and RoI drop regularization, WeakSAM achieves state-of-the-art performance with 7.4% and 8.5% average improvements on WSOD and WSIS benchmarks, respectively.
Weakly supervised visual recognition using inexact supervision is a critical yet challenging learning problem. It significantly reduces human labeling costs and traditionally relies on multi-instance learning and pseudo-labeling. This paper introduces WeakSAM and solves the weakly-supervised object detection (WSOD) and segmentation by utilizing the pre-learned world knowledge contained in a vision foundation model, i.e., the Segment Anything Model (SAM). WeakSAM addresses two critical limitations in traditional WSOD retraining, i.e., pseudo ground truth (PGT) incompleteness and noisy PGT instances, through adaptive PGT generation and Region of Interest (RoI) drop regularization. It also addresses the SAM's problems of requiring prompts and category unawareness for automatic object detection and segmentation. Our results indicate that WeakSAM significantly surpasses previous state-of-the-art methods in WSOD and WSIS benchmarks with large margins, i.e. average improvements of 7.4% and 8.5%, respectively. The code is available at \url{https://github.com/hustvl/WeakSAM}.
Motivation & Objective
- To address the limitations of traditional weakly-supervised object detection (WSOD), including pseudo ground truth (PGT) incompleteness and noisy PGT instances.
- To overcome SAM’s reliance on human prompts and category unawareness by enabling automatic, classification-guided prompting.
- To build a unified framework for weakly-supervised instance-level recognition that extends from object detection to instance segmentation.
- To improve the effectiveness and efficiency of WSOD and WSIS by leveraging pre-learned world knowledge from SAM.
Proposed method
- Using classification clues from a weakly-supervised network as automatic prompts for SAM to generate high-recall, class-aware region proposals.
- Introducing adaptive PGT generation to address PGT incompleteness by refining object proposals based on confidence and diversity.
- Applying Region of Interest (RoI) drop regularization to reduce noise in PGT instances during retraining by randomly dropping RoIs during optimization.
- Extending the framework to weakly-supervised instance segmentation (WSIS) by refining PGTs with SAM to generate pseudo instance masks.
- Employing a two-stage pipeline: first generating proposals via SAM with classification prompts, then retraining detection/segmentation heads using refined PGTs.
- Utilizing both anchor-based (e.g., Faster R-CNN) and query-based (e.g., DINO) detectors to validate generalization across architectures.
Experimental results
Research questions
- RQ1Can SAM be effectively repurposed for automatic, category-aware instance-level recognition without human interaction?
- RQ2How can the limitations of pseudo ground truth (PGT) incompleteness and noise in traditional WSOD retraining be mitigated?
- RQ3Can the integration of SAM’s zero-shot segmentation capability with weakly-supervised classification improve performance in WSOD and WSIS?
- RQ4To what extent does adaptive PGT generation and RoI drop regularization enhance WSOD retraining stability and accuracy?
Key findings
- WeakSAM achieves a 7.4% average improvement over previous SOTA methods on WSOD benchmarks, with a 22.2% AP50 gain on PASCAL VOC 2007 using DINO retraining.
- On the PASCAL VOC 2012 WSIS benchmark, WeakSAM with Mask R-CNN retraining outperforms prior methods, achieving the best reported results.
- The proposed WeakSAM prompts (using peak CAM and cross-attention points) increase Recall at IoU=0.90 by 5.1% and AP50 by 9.7% over baseline Selective Search.
- Ablation studies confirm that adaptive PGT generation improves AP50 by +3.4% and RoI drop regularization by +3.4% on Faster R-CNN, with similar gains on DINO.
- WeakSAM with Mask2Former achieves state-of-the-art performance on COCO 2017 val/test sets, demonstrating strong generalization to modern query-based architectures.
- The framework successfully extends from WSOD to WSIS, showing that SAM can be used to generate high-quality pseudo instance segmentation labels from image-level supervision.
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.