Multi-Scale and Detail-Enhanced Segment Anything Model for Salient Object Detection
Shixuan Gao, Pingping Zhang, Tianyu Yan, Huchuan Lu
TL;DR
This work tackles the challenge of applying the Segment Anything Model (SAM) to Salient Object Detection (SOD) by addressing prompts dependency and missing fine-grained detail. It introduces Multi-Scale and Detail-Enhanced SAM (MDSAM), which integrates a Lightweight Multi-Scale Adapter (LMSA) to learn multi-scale representations with few parameters, a Multi-Level Fusion Module (MLFM) to fuse multi-level encoder features, and a Detail Enhancement Module (DEM) with a Multi-scale Edge Enhancement Module (MEEM) to recover fine edges. The approach reuses SAM weights while achieving strong SOD performance and broad generalization, including dog- or CAMO-like segmentation tasks and polyp segmentation, supported by extensive experiments on benchmark datasets and COD/polyp generalization settings. The authors provide a practical, efficient SAM-based framework for high-quality SOD and related segmentation tasks, with code released for reproducibility. The reported improvements are reflected in metrics such as $MAE$, $F^{max}_\beta$, $S_m$, and $E_m$ across datasets, underscoring the method's effectiveness and generalization.
Abstract
Salient Object Detection (SOD) aims to identify and segment the most prominent objects in images. Advanced SOD methods often utilize various Convolutional Neural Networks (CNN) or Transformers for deep feature extraction. However, these methods still deliver low performance and poor generalization in complex cases. Recently, Segment Anything Model (SAM) has been proposed as a visual fundamental model, which gives strong segmentation and generalization capabilities. Nonetheless, SAM requires accurate prompts of target objects, which are unavailable in SOD. Additionally, SAM lacks the utilization of multi-scale and multi-level information, as well as the incorporation of fine-grained details. To address these shortcomings, we propose a Multi-scale and Detail-enhanced SAM (MDSAM) for SOD. Specifically, we first introduce a Lightweight Multi-Scale Adapter (LMSA), which allows SAM to learn multi-scale information with very few trainable parameters. Then, we propose a Multi-Level Fusion Module (MLFM) to comprehensively utilize the multi-level information from the SAM's encoder. Finally, we propose a Detail Enhancement Module (DEM) to incorporate SAM with fine-grained details. Experimental results demonstrate the superior performance of our model on multiple SOD datasets and its strong generalization on other segmentation tasks. The source code is released at https://github.com/BellyBeauty/MDSAM.
