cs.CVMar 13, 2026

SAIF: A Stability-Aware Inference Framework for Medical Image Segmentation with Segment Anything Model

Authors: Ke Wu, Shiqi Chen, Yiheng Zhong, Hengxian Liu, Yingxue Su, Yifang Wang, Junhao Jin, Guangyu Ren

Organizations: Xi’an Jiaotong-Liverpool University, Suzhou, China · University College London, London, United Kingdom · Anhui Jianzhu University, Hefei, China

Abstract

Segment Anything Model (SAM) enable scalable medical image segmentation but suffer from inference-time instability when deployed as a frozen backbone. In practice, bounding-box prompts often contain localization errors, and fixed threshold binarization introduces additional decision uncertainty. These factors jointly cause high prediction variance, especially near object boundaries, degrading reliability. We propose the Stability-Aware Inference Framework (SAIF), a training-free and plug-and-play inference framework that improves robustness by explicitly modeling prompt and threshold uncertainty. SAIF constructs a joint uncertainty space via structured box perturbations and threshold variations, evaluates each hypothesis using decision stability and boundary consistency, and introduces a stability-consistency score to filter unstable candidates and perform stability-weighted fusion in probability space. Experiments on Synapse, CVC-ClinicDB, Kvasir-SEG, and CVC-300 demonstrate that SAIF consistently improves segmentation accuracy and robustness, achieving state-of-the-art performance without retraining or architectural modification. Our anonymous code is released at https://anonymous.4open.science/r/SAIF.

Figures & tables

Explore similar work

CardsList
  1. Learning from Noisy Prompts: Saliency-Guided Prompt Distillation for Robust Segmentation with SAM

    Apr 25, 2026Jingxuan Kang, Ziqi Zhang, Shaoming Zheng +9Medical Imaging Foundation ModelsPromptable Image Segmentation

  2. Enhancing MedSAM with a Lightweight Box Predictor for Medical Image Segmentation

    Jun 3, 2026Amirhossein Movahedisefat, Amirreza Fateh, Mohammad Reza MohammadiInteractive Medical Image SegmentationMedical Imaging Foundation Models

  3. Focus on Background: Exploring SAM's Potential in Few-shot Medical Image Segmentation with Background-centric Prompting

    Mar 22, 2026Yuntian Bo, Yazhou Zhu, Piotr Koniusz +1Few-Shot Medical Image SegmentationPromptable Image Segmentation