Boosting Segment Anything Model to Generalize Visually Non-Salient Scenarios

Guangqian Guo, Pengfei Chen, Yong Guo, Huafeng Chen, Boqiang Zhang, Shan Gao

TL;DR

This paper introduces VNS-SAM, a novel approach to significantly improve the Segment Anything Model's (SAM) performance on "visually non-salient" scenarios (low contrast between foreground and background). By incorporating a Mask-Edge Token Interactive decoder and a Non-Salient Feature Mining module, VNS-SAM enhances SAM's ability to perceive subtle details without sacrificing its generalizability, while also introducing a comprehensive VNS-SEG dataset for better benchmarking.

What Problem Does This Paper Address?

The Segment Anything Model (SAM) has revolutionized zero-shot image segmentation with its impressive capabilities. However, SAM, like many other models, struggles in "visually non-salient" (VNS) scenarios. These are situations where the foreground object has very low contrast with its background, making it difficult to discern boundaries and details. Examples include camouflaged objects, medical images with subtle tissue differences, or images taken in low-light conditions. In these cases, SAM often produces inaccurate masks, missing crucial details or incorrectly segmenting the background. This limitation significantly hinders SAM's real-world applicability in many challenging domains.

Methods

VNS-SAM builds upon the existing SAM architecture and introduces two key innovations:

  • Mask-Edge Token Interactive (METI) Decoder: This module enhances SAM's decoder to better understand VNS characteristics. It introduces a pair of learnable "VNS-tokens" – a VNS-mask token and a VNS-edge token. These tokens interact with SAM's original tokens and image embeddings within the decoder layers. The VNS-edge token specifically helps propagate edge and texture information to the VNS-mask token, improving the perception of subtle boundaries. The decoder is also enhanced with a "dual-level prediction enhancement" that applies hierarchical supervision and prediction refinement across multiple decoder layers.
  • Non-Salient Feature Mining (NSFM) Module: This lightweight module is designed to extract more informative low-level features from SAM's image encoder. It leverages a Haar wavelet decomposition to separate features into high-frequency (rich in texture and edge information) and low-frequency components. The most informative of these components are then selected and aggregated to create enhanced VNS-edge and VNS-mask features, which are fed into the prediction layers.

Crucially, VNS-SAM freezes the original SAM weights and only trains the newly added parameters, making it efficient to adapt.

Datasets

The authors introduce a new, unified dataset called VNS-SEG.

  • Training Set: Comprises over 23,000 image-mask pairs, sourced from existing datasets (like COD10K, CAMO for camouflage; Kvasir, ClinicDB for polyps) and synthesized data (e.g., low-light images generated using CycleGAN).
  • Evaluation Set: Consists of 11 subsets across 4 VNS scenarios, divided into "seen" (data similar to training) and "unseen" (real-world scenarios not explicitly in training) sets. This allows for a comprehensive evaluation of zero-shot transfer capabilities.

Key Insights and Ideas

  • The Power of Edge Information: The paper strongly emphasizes that low-level features, particularly edge information, are critical for segmenting objects in low-contrast scenarios. VNS-SAM's METI decoder directly leverages this by explicitly incorporating edge tokens.
  • Unified Approach for Diverse VNS Scenarios: Instead of creating task-specific models for each VNS scenario (e.g., camouflage, low-light), VNS-SAM aims to learn a generalized understanding of "visually non-salient" characteristics. This unified approach is more efficient and potentially more robust.
  • Dataset is Key: The creation of the VNS-SEG dataset is a significant contribution. It addresses the lack of comprehensive benchmarks for VNS scenarios and allows models to learn more robust features across a wider range of challenging conditions.
  • Marginal Cost, Significant Gain: VNS-SAM achieves substantial performance improvements with only a small increase in parameters and computational cost, highlighting its efficiency.

Key Results

  • Superior Performance on VNS Scenarios: VNS-SAM consistently outperforms the baseline SAM and other advanced models like HQ-SAM (even when fine-tuned) across various VNS datasets and prompting strategies (point, box, noise-box). For instance, on the challenging unseen subset CDS2K, VNS-SAM shows significant improvements in IoU and BIoU, especially with fewer point prompts.
  • Strong Zero-Shot Generalization: The model demonstrates excellent performance on the "unseen" evaluation sets, indicating its ability to generalize to novel VNS scenarios not encountered during training.
  • Competitive Efficiency: VNS-SAM adds only about 9.8M parameters and can be trained in approximately 4 hours on 4x RTX 4090 GPUs. Its inference speed is comparable to SAM.
  • Effective Component Contributions: Ablation studies confirm that each component (VNS-tokens, DPE, NSFM) contributes positively to the overall performance, with the VNS-edge token showing particular effectiveness for boundary accuracy (BIoU).

Limitations and Future Work

  • Computational Overhead: While marginal, VNS-SAM does introduce additional parameters and computational requirements compared to the base SAM.
  • Future Work: The authors hope that the VNS-SEG dataset will inspire further research into more powerful segmentation models specifically designed for VNS scenarios. They also suggest exploring more advanced techniques for feature extraction and interaction within the decoder. The paper also implicitly suggests that further research could focus on even more challenging VNS scenarios or exploring the model's performance on video data.

Summary updated

BibTeX
@misc{guo2026boosting,
  author = {Guangqian Guo and Pengfei Chen and Yong Guo and Huafeng Chen and Boqiang Zhang and Shan Gao},
  title = {{Boosting Segment Anything Model to Generalize Visually Non-Salient Scenarios}},
  year = {2026},
  eprint = {2601.00537},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2601.00537},
}

Loading related content...

Figure