SAM-aware Test-time Adaptation for Universal Medical Image Segmentation.
Jianghao Wu, Yicheng Wu, Yutong Xie, Wenjia Bai, You Zhang, Feilong Tang, Yulong Li, Imran Razzak,
Key points
From the paper's conclusion- Extensive experiments on eight public medical image segmentation tasks, covering six grayscale and two color (endoscopic) tasks, demonstrate that SAM-TTA consistently outperforms state-of-the-art test-time adaptation methods.
Abstract
Leveraging the Segment Anything Model (SAM) for medical image segmentation remains challenging due to its limited adaptability across diverse medical domains. Although fine-tuned variants, such as MedSAM, improve performance in scenarios similar to the training modalities or organs, they may lack generalizability to unseen data. To overcome this limitation, we propose SAM-aware Test-time Adaptation (SAM-TTA), a computationally efficient and flexible framework that preserves SAM's inherent generalization ability while enhancing segmentation accuracy for medical images. SAM-TTA tackles two major challenges: (1) input-level discrepancy caused by channel mismatches between natural and medical images, and (2) semantic-level discrepancy due to different object characteristics in natural versus medical images (e.g., with clear boundaries vs. ambiguous structures). To this end, we introduce two complementary components: a self-adaptive Bèzier Curve-based Transformation (SBCT), which maps single-channel medical images into SAM-compatible three-channel images via a few learnable parameters to be optimized at test time; and IoU-guided Multi-scale Adaptation (IMA), which leverages SAM's intrinsic IoU scores to enforce high output confidence, dualscale prediction consistency, and intermediate feature consistency, to improve semantic-level alignment. Extensive experiments on eight public medical image segmentation tasks, covering six grayscale and two color (endoscopic) tasks, demonstrate that SAM-TTA consistently outperforms state-of-the-art test-time adaptation methods. Notably, on six grayscale datasets, SAM-TTA even surpasses fully fine-tuned models, achieving significant Dice improvements (i.e., average 4.8% and 7.4% gains over MedSAM and SAM-Med2D) and establishing a new paradigm for universal medical image segmentation. Code is available at https://github.com/JianghaoWu/SAM-TTA.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Segment Anything Models for medical image segmentation: From native capabilities to clinical requirements.Computerized medical imaging and graphics : the official journal of the Computerized Medical Imaging Society · 2026
- SCMamba-SAM: transferring knowledge from natural images to medical tasks.Frontiers in neurology · 2026
- MedicoSAM: Robust Improvement of SAM for Medical ImagingIEEE Transactions on Medical Imaging · 2025
- Autoadaptive medical segment anything modelScientific Reports · 2026
- MedSAM-U: Uncertainty-Guided Auto Multi-Prompt Adaptation for Reliable MedSAMIEEE Transactions on Circuits and Systems for Video Technology · 2025
- SAM-SP: SAM-guided semantic alignment and pseudo-label fine-tuning for scribble-supervised medical image segmentationBiomedical Signal Processing and Control · 2026