PMG-SAM: Boosting Auto-Segmentation of SAM with Pre-Mask Guidance
The Segment Anything Model (SAM), a foundational vision model, struggles with fully automatic segmentation of specific objects. Its "segment everything" mode, reliant on a grid-based prompt strategy, suffers from localization blindness and computational redundancy, leading to poor performance on tasks like Dichotomous Image Segmentation (DIS). To address this, we propose PMG-SAM, a framework that introduces a Pre-Mask Guided paradigm for automatic targeted segmentation. Our method employs a dual-branch encoder to generate a coarse global Pre-Mask, which then acts as a dense internal prompt to guide the segmentation decoder. A key component, our proposed Dense Residual Fusion Module (DRFM), iteratively co-refines multi-scale features to significantly enhance the Pre-Mask's quality. Extensive experiments on challenging DIS and Camouflaged Object Segmentation (COS) tasks validate our approach. On the DIS-TE2 benchmark, PMG-SAM boosts the maximal F-measure from SAM's 0.283 to 0.815. Notably, our fully automatic model's performance surpasses even the ground-truth bounding box prompted modes of SAM and SAM2, while using only 22.9 M trainable parameters (58.8% of SAM2-Tiny). PMG-SAM thus presents an efficient and accurate paradigm for resolving the localization bottleneck of large vision models in prompt-free scenarios.
Authors
- Yu Liu (ORCID: https://orcid.org/0000-0002-2067-9175)
- Xiaoyan Jiang (ORCID: https://orcid.org/0000-0001-8620-6488)
- Yongbin Gao
- Zhijun Fang
- Jixue Gao
- Anjie Wang
Institutions
- Leiden University (NL)
- Shanghai University of Engineering Science (CN)
- Donghua University (CN)
- Peking University (CN)
- University of Applied Sciences Leiden (NL)
Publication Details
- Journal
- Sensors
- Published
- 2026-01-06
- DOI
- https://doi.org/10.3390/s26020365
- Citations
- 1
- Primary Topic
- Advanced Neural Network Applications
- Type
- article
- Field-Weighted Citation Impact
- 46.84