Test-time Adaptation for Foundation Medical Segmentation Model without Parametric Updates

Foundation medical segmentation models, with MedSAM being the most popular, have achieved promising performance across organs and lesions. However, MedSAM still suffers from compromised performance on specific lesions with intricate structures and appearance, as well as bounding box prompt-induced perturbations. Although current test-time adaptation (TTA) methods for medical image segmentation may tackle this issue, partial (e.g., batch normalization) or whole parametric updates restrict their effectiveness due to limited update signals or catastrophic forgetting in large models. Meanwhile, these approaches ignore the computational complexity during adaptation, which is particularly significant for modern foundation models. To this end, our theoretical analyses reveal that directly refining image embeddings is feasible to approach the same goal as parametric updates under the MedSAM architecture, which enables us to realize high computational efficiency and segmentation performance without the risk of catastrophic forgetting. Under this framework, we propose to encourage maximizing factorized conditional probabilities of the posterior prediction probability using a proposed distribution-approximated latent conditional random field loss combined with an entropy minimization loss. Experiments show that we achieve about 3\% Dice score improvements across three datasets while reducing computational complexity by over 7 times.
View on arXiv@article{chen2025_2504.02008, title={ Test-time Adaptation for Foundation Medical Segmentation Model without Parametric Updates }, author={ Kecheng Chen and Xinyu Luo and Tiexin Qin and Jie Liu and Hui Liu and Victor Ho Fun Lee and Hong Yan and Haoliang Li }, journal={arXiv preprint arXiv:2504.02008}, year={ 2025 } }