Proceedings

ReDi-FM: Frozen Foundation Model for Continual Test-Time Adaptation in Medical Image Segmentation

Download BibTeX Cite

Proceedings of the Thirty-Fifth International Joint Conference on Artificial Intelligence. Main Track. Pages 1252-1260.

https://doi.org/10.24963/ijcai.2026/140

Abstract

Continual test-time adaptation (CTTA) adapts a pre-trained medical segmentation model online to an unlabeled target stream whose distribution changes over time. However, most existing CTTA methods rely on pseudo-labeling and self-supervised objectives, which inevitably yield noisy supervision under domain shifts. To mitigate this limitation, we introduce off-the-shelf Vision Foundation Models (VFMs) as external knowledge sources. Zero-shot VFMs are insufficient for medical segmentation because they lack medical semantics, yet they contain rich and heterogeneous generic knowledge. To exploit such external knowledge, we propose Reciprocal Distillation with a Frozen Foundation Model (ReDi-FM), a novel framework with two core components: using structure-aware prompts from the source model to guide the frozen VFM to generate target-adapted supervision, and distilling the resulting knowledge back into the adapting model. For robust distillation, we introduce two complementary objectives: uncertainty-driven hard distillation for precise guidance in ambiguous regions, and hard class-balanced soft distillation for richer supervision of under-represented and challenging structures. A consensus-aware gate further stabilizes adaptation when the two teachers disagree. Extensive experiments on multi-domain medical segmentation benchmarks demonstrate that ReDi-FM outperforms state-of-the-art CTTA methods. Code is available at https://github.com/M4cheal/ReDi-FM.

  1. [Bernal et al., 2015] Jorge Bernal, F Javier Sánchez, Glo- ria Fernández-Esparrach, Debora Gil, Cristina Rodríguez, and Fernando Vilariño. Wm-dova maps for accurate polyp highlighting in colonoscopy: Validation vs. saliency maps from physicians. Computerized medical imaging and graphics, 43:99-111, 2015.
  2. [Bloch et al., 2015] N Bloch, A Madabhushi, H Huisman, J Freymann, J Kirby, M Grauer, A Enquobahrie, C Jaffe, L Clarke, and K Farahani. Nci-isbi 2013 challenge: Au- tomated segmentation of prostate structures. The Cancer Imaging Archive, 2015.
  3. [Chen et al., 2024a] Haotian Chen, Yonghui Xu, Yanyu Xu, Yixin Zhang, and Lizhen Cui. Test-time medical im- age segmentation using clip-guided sam adaptation. In 2024 IEEE International Conference on Bioinformatics and Biomedicine (BIBM), pages 1866-1873. IEEE, 2024.
  4. [Chen et al., 2024b] Ziyang Chen, Yongsheng Pan, Yiwen Ye, Mengkang Lu, and Yong Xia. Each test image de- serves a specific prompt: Continual test-time adaptation for 2d medical image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 11184-11193, 2024.
  5. [Fang et al., 2022] Huihui Fang, Fei Li, Huazhu Fu, Junde Wu, Xiulan Zhang, and Yanwu Xu. Dataset and evalua- tion algorithm design for goals challenge. In International Workshop on Ophthalmic Medical Image Analysis, pages 135-142. Springer, 2022.
  6. [Fumero et al., 2011] Francisco Fumero, Silvia Alayón, José L Sanchez, Jose Sigut, and M Gonzalez-Hernandez. Rim-one: An open retinal image database for optic nerve evaluation. In 2011 24th international symposium on computer-based medical systems (CBMS), pages 1-6. IEEE, 2011.
  7. [Guan and Liu, 2021] Hao Guan and Mingxia Liu. Domain adaptation for medical image analysis: a survey. IEEE Transactions on Biomedical Engineering, 69(3):1173- 1185, 2021.
  8. [Jha et al., 2019] Debesh Jha, Pia H Smedsrud, Michael A Riegler, Pål Halvorsen, Thomas De Lange, Dag Johansen, and Håvard D Johansen. Kvasir-seg: A segmented polyp dataset. In International conference on multimedia model- ing, pages 451-462. Springer, 2019.
  9. [Kirillov et al., 2023] Alexander Kirillov, Eric Mintun, Nikhila Ravi, Hanzi Mao, Chloe Rolland, Laura Gustafson, Tete Xiao, Spencer Whitehead, Alexander C Berg, Wan-Yen Lo, et al. Segment anything. In Pro- ceedings of the IEEE/CVF international conference on computer vision, pages 4015-4026, 2023.
  10. [Koleilat et al., 2024] Taha Koleilat, Hojat Asgariandehko- rdi, Hassan Rivaz, and Yiming Xiao. Medclip-sam: Bridg- ing text and image towards universal medical image seg- mentation. In International conference on medical im- age computing and computer-assisted intervention, pages 643-653. Springer, 2024.
  11. [Koleilat et al., 2025] Taha Koleilat, Hojat Asgariandehko- rdi, Hassan Rivaz, and Yiming Xiao. Medclip-samv2: To- wards universal text-driven medical image segmentation. Medical Image Analysis, page 103749, 2025.
  12. [Konwer et al., 2025] Aishik Konwer, Zhijian Yang, Erhan Bas, Cao Xiao, Prateek Prasanna, Parminder Bhatia, and Taha Kass-Hout. Enhancing sam with efficient prompt- ing and preference optimization for semi-supervised med- ical image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 20990-21000, 2025.
  13. [Lemaître et al., 2015] Guillaume Lemaître, Robert Martí, Jordi Freixenet, Joan C Vilanova, Paul M Walker, and Fab- rice Meriaudeau. Computer-aided detection and diagnosis for prostate cancer based on mono and multi-parametric mri: a review. Computers in biology and medicine, 60:8- 31, 2015.
  14. [Li et al., 2024] Jingjing Li, Zhiqi Yu, Zhekai Du, Lei Zhu, and Heng Tao Shen. A comprehensive survey on source- free domain adaptation. IEEE Transactions on Pat- tern Analysis and Machine Intelligence, 46(8):5743-5762, 2024.
  15. [Litjens et al., 2014] Geert Litjens, Robert Toth, Wendy Van De Ven, Caroline Hoeks, Sjoerd Kerkstra, Bram Van Gin- neken, Graham Vincent, Gwenael Guillard, Neil Birbeck, Jindang Zhang, et al. Evaluation of prostate segmentation algorithms for mri: the promise12 challenge. Medical im- age analysis, 18(2):359-373, 2014.
  16. [Liu et al., 2020] Quande Liu, Qi Dou, and Pheng-Ann Heng. Shape-aware meta-learning for generalizing prostate mri segmentation to unseen domains. In In- ternational conference on medical image computing and computer-assisted intervention, pages 475-485. Springer, 2020.
  17. [Liu et al., 2024a] Jiaming Liu, Ran Xu, Senqiao Yang, Ren- rui Zhang, Qizhe Zhang, Zehui Chen, Yandong Guo, and Shanghang Zhang. Continual-mae: Adaptive distribu- tion masked autoencoders for continual test-time adapta- tion. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 28653- 28663, 2024.
  18. [Liu et al., 2024b] Jiaming Liu, Senqiao Yang, Peidong Jia, Renrui Zhang, Ming Lu, Yandong Guo, Wei Xue, and Shanghang Zhang. Vida: Homeostatic visual domain adapter for continual test time adaptation. In International Conference on Learning Representations, volume 2024, pages 48396-48417, 2024.
  19. [Ma et al., 2024] Jun Ma, Yuting He, Feifei Li, Lin Han, Chenyu You, and Bo Wang. Segment anything in medi- cal images. Nature communications, 15(1):654, 2024.
  20. [Ma et al., 2025a] Ke Ma, Jiaqi Tang, Bin Guo, Fan Dang, Sicong Liu, Zhui Zhu, Lei Wu, Cheng Fang, Ying-Cong Chen, Zhiwen Yu, et al. Surgeon: Memory-adaptive fully test-time adaptation via dynamic activation spar- sity. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 30514- 30523, 2025.
  21. [Ma et al., 2025b] Qinghe Ma, Jian Zhang, Zekun Li, Lei Qi, Qian Yu, and Yinghuan Shi. Steady progress beats stag- nation: Mutual aid of foundation and conventional models in mixed domain semi-supervised medical image segmen- tation. In Proceedings of the Computer Vision and Pattern Recognition Conference, pages 5175-5185, 2025.
  22. [Maharana et al., 2025] Sarthak Kumar Maharana, Baoming Zhang, and Yunhui Guo. Palm: Pushing adaptive learn- ing rate mechanisms for continual test-time adaptation. In Proceedings of the AAAI Conference on Artificial Intelli- gence, volume 39, pages 19378-19386, 2025.
  23. [Ngoc Lan et al., 2021] Phan Ngoc Lan, Nguyen Sy An, Dao Viet Hang, Dao Van Long, Tran Quang Trung, Nguyen Thi Thuy, and Dinh Viet Sang. Neounet: Towards accurate colon polyp segmentation and neoplasm detec- tion. In International Symposium on Visual Computing, pages 15-28. Springer, 2021.
  24. [Niu et al., 2023] Shuaicheng Niu, Jiaxiang Wu, Yifan Zhang, Zhiquan Wen, Yaofo Chen, Peilin Zhao, and Mingkui Tan. Towards stable test-time adaptation in dynamic wild world. arXiv preprint arXiv:2302.12400, 2023.
  25. [Orlando et al., 2020] José Ignacio Orlando, Huazhu Fu, João Barbosa Breda, Karel Van Keer, Deepti R Bathula, Andrés Diaz-Pinto, Ruogu Fang, Pheng-Ann Heng, Jey- oung Kim, JoonHo Lee, et al. Refuge challenge: A unified framework for evaluating automated methods for glau- coma assessment from fundus photographs. Medical im- age analysis, 59:101570, 2020.
  26. [Sankaranarayanan et al., 2018] Swami Sankaranarayanan, Yogesh Balaji, Arpit Jain, Ser Nam Lim, and Rama Chel- lappa. Learning from synthetic data: Addressing domain shift for semantic segmentation. In Proceedings of the IEEE conference on computer vision and pattern recog- nition, pages 3752-3761, 2018.
  27. [Silva et al., 2014] Juan Silva, Aymeric Histace, Olivier Ro- main, Xavier Dray, and Bertrand Granado. Toward embed- ded detection of polyps in wce images for early diagnosis of colorectal cancer. International journal of computer as- sisted radiology and surgery, 9(2):283-293, 2014.
  28. [Sivaswamy et al., 2014] Jayanthi Sivaswamy, SR Kr- ishnadas, Gopal Datt Joshi, Madhulika Jain, and A Ujjwaft Syed Tabish. Drishti-gs: Retinal image dataset for optic nerve head (onh) segmentation. In 2014 IEEE 11th international symposium on biomedical imaging (ISBI), pages 53-56. IEEE, 2014.
  29. [Tang et al., 2024] Song Tang, Wenxin Su, Mao Ye, and Xi- atian Zhu. Source-free domain adaptation with frozen multimodal foundation model. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pages 23711-23720, 2024.
  30. [Wang et al., 2020] Dequan Wang, Evan Shelhamer, Shaoteng Liu, Bruno Olshausen, and Trevor Darrell. Tent: Fully test-time adaptation by entropy minimization. arXiv preprint arXiv:2006.10726, 2020.
  31. [Wang et al., 2022] Qin Wang, Olga Fink, Luc Van Gool, and Dengxin Dai. Continual test-time domain adaptation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pages 7201-7211, 2022.
  32. [Wang et al., 2023a] Jinke Wang, Xiang Li, and Yuanzhi Cheng. Towards an extended efficientnet-based u-net framework for joint optic disc and cup segmentation in the fundus image. Biomedical Signal Processing and Control, 85:104906, 2023.
  33. [Wang et al., 2023b] Yan Wang, Jian Cheng, Yixin Chen, Shuai Shao, Lanyun Zhu, Zhenzhou Wu, Tao Liu, and Haogang Zhu. Fvp: Fourier visual prompting for source- free unsupervised domain adaptation of medical image segmentation. IEEE Transactions on Medical Imaging, 42(12):3738-3751, 2023.
  34. [Xie et al., 2021] Enze Xie, Wenhai Wang, Zhiding Yu, An- ima Anandkumar, Jose M Alvarez, and Ping Luo. Seg- former: Simple and efficient design for semantic segmen- tation with transformers. Advances in neural information processing systems, 34:12077-12090, 2021.
  35. [Yang et al., 2024] Danni Yang, Jiayi Ji, Yiwei Ma, Tianyu Guo, Haowei Wang, Xiaoshuai Sun, and Rongrong Ji. Sam as the guide: Mastering pseudo-label refinement in semi-supervised referring expression segmentation. arXiv preprint arXiv:2406.01451, 2024.
  36. [Zhang et al., 2010] Zhuo Zhang, Feng Shou Yin, Jiang Liu, Wing Kee Wong, Ngan Meng Tan, Beng Hai Lee, Jun Cheng, and Tien Yin Wong. Origa-light: An online reti- nal fundus image database for glaucoma analysis and re- search. In 2010 Annual international conference of the IEEE engineering in medicine and biology, pages 3065- 3068. IEEE, 2010.
  37. [Zhang et al., 2023] Jian Zhang, Lei Qi, Yinghuan Shi, and Yang Gao. Domainadaptor: A novel approach to test- time adaptation. In Proceedings of the IEEE/CVF Inter- national Conference on Computer Vision, pages 18971- 18981, 2023.

References were extracted automatically from the PDF and may contain errors.

Welcome Future Conferences AI Journal Division IJCAI Proceedings About IJCAI IJCAI Awards