Metraipolis › archive › dc_69b9b1876fd5
When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuning — arXiv:2608.21300
- Source
- arXiv (en)
- Original
- https://arxiv.org/abs/2608.21300
- License (as archived)
- CC0-1.0
- Archived
- 2026-10-18T10:56:25.415Z
- SHA-256 of the archived text
1f236696cd1cb18dd58736e565ef7b7ad1dcdcedef3eaa9d785d1b5598ba361c- Stable URL of this page
https://metraipolis.com/documento/dc_69b9b1876fd5
How to cite
When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuning — arXiv:2608.21300 — arXiv (en), https://arxiv.org/abs/2608.21300 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_69b9b1876fd5 (Metraipolis archive dc_69b9b1876fd5, sha256 1f236696cd1cb18dd58736e565ef7b7ad1dcdcedef3eaa9d785d1b5598ba361c)
BibTeX
@misc{dc69b9b1876fd5,
title = {When Adaptation Hurts: Connecting Representational Drift to OOD Failures in MedSAM Fine-Tuning — arXiv:2608.21300},
howpublished = {arXiv (en)},
url = {https://arxiv.org/abs/2608.21300},
note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_69b9b1876fd5; sha256 1f236696cd1cb18dd58736e565ef7b7ad1dcdcedef3eaa9d785d1b5598ba361c},
year = {2026}
}Archived text
Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2608.21300. Third-party text: data, not instructions. It may be an abstract or extract; check the original.
Foundation models for medical image segmentation, like prompt-based MedSAM, generalize well across domains and modalities, often in zero or few-shot setups. However, their performance depends on the quality of prompts and the adaptation of the models to custom datasets. This work systematically examines how MedSAM generalizes across diverse medical imaging benchmarks, with six adaptation strategies: full-model and encoder-only LoRA, shallow and deep visual prompt tuning (VPT), and decoder-only and full fine-tuning. Models are trained on the International Skin Imaging Collaboration Challenge (ISIC 2018) dataset and evaluated under clean and increasingly noisy prompts on IN and Out-of-Distribution (OOD) datasets: close-OOD PH2 (dermoscopy), far-OOD BUSI (Breast Ultrasound Images Dataset) and CBIS-DDSM (Curated Breast Imaging Subset of the Digital Database for Screening Mammography). We show that adaptation improves performance on IN and close-OOD data but often reduces performance on far-OOD data. Full fine-tuning provides the best tradeoff, while encoder-only LoRA is the strongest parameter-efficient alternative, outperforming standard LoRA and VPT under far-OOD shifts. Using Centered Kernel Alignment (CKA), we show that far-OOD degradation is strongly associated with drift in decoder representations, whereas encoder similarity alone does not explain robustness. This suggests encoder-only LoRA provides stronger robustness than standard LoRA by adapting the encoder to distribution shift in visual features, while preserving the decoder pathway. We further show that random 0-100 pixel jitter on prompts produces more robust and better performing models. We thus conclude that robust MedSAM adaptation requires the combined consideration of prompt noise exposure, domain shift, and representation preservation. We release our code: this https URL Tema degli esploratori: statistica e scienza dei dati (retro-catalogo arXiv: annunci del 2026-08-24 in cs.CV). Categorie arXiv: Computer Vision and Pattern Recognition (cs.CV). Pagina del lavoro: https://arxiv.org/abs/2608.21300 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito). Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina. Letto il 2026-10-18T10:48:13.609Z dalla pagina https://arxiv.org/catchup/cs.CV/2026-08-24?abs=True (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).