Medical Image Segmentation: Foundation Model Adaptation versus Task-Specific Training
Emre Kutlusan, Yongmin Li
arXiv:2611.14519v1Medical image segmentation is one of those tasks that looks straightforward on paper and becomes very hard in practice. The goal is to outline anatomical structures or lesions in an image, pixel by pixel. In the clinic, that can support diagnosis, measurement, treatment planning, and follow-up. But the real challenge is not just getting a good score on one dataset. It is making a model work when the images come from a different hospital, a different scanner, a different acquisition protocol, or a different patient population. That distribution shift is often the main barrier to clinical use. This paper asks a timely question in that setting: if you have a new medical segmentation task, should you adapt a large pretrained foundation model, or should you train a task-specific model from scratch the way medical segmentation has traditionally been done? Foundation models are attractive because they are pretrained on enormous natural-image collections, far larger than any medical dataset. The hope is that they will transfer broadly and eventually replace the need to build a separate model for every task. But the authors argue that many existing comparisons do not really answer that question. They often test only on data drawn from the same distribution used for training, they often compare against a single baseline whose setup may not be strong, and they often report results at only one adaptation setting, which can hide whether a method is actually robust or just well tuned at one point. There is also a second question underneath the first: if you do adapt a foundation model, how much of it do you really need to adapt? Is a tiny update enough, or do you need to fine-tune almost everything? And does that depend on the method, or on the imaging domain itself? That distinction matters because different adaptation strategies have different costs, risks, and deployment implications. To study this, the paper compares an adapted foundation model with task-specific architectures trained from random initialization across three medical imaging domains: colonoscopy polyp segmentation, breast ultrasound, and dermoscopy for skin lesions. These domains are useful because they differ in modality, in the scale and appearance of the targets, and in how much training data is available. The experiments are also designed to separate two evaluation regimes. One is in-domain testing, meaning held-out data from the same source as training. The other is out-of-distribution testing, meaning independent datasets from other institutions that contributed nothing to training. That distinction is central, because in-domain performance is not the same thing as clinical robustness. The foundation model used here is DINOv2, specifically a small encoder with a minimal linear decoder. DINOv2 is a self-supervised vision model pretrained on a very large natural-image corpus, and the point of using it is to test whether representations learned without any segmentation supervision can still support dense medical prediction. The authors adapt it with a range of strategies, from tuning only bias terms to full fine-tuning. In between, they also use low-rank adaptation, or LoRA, which updates only a small low-rank component of selected weights. Across the sweep, the number of trainable parameters ranges from a few hundred to more than twenty million. The task-specific comparators are a plain U-Net and a residual U-Net, both trained under the nnU-Net recipe and tuned independently. That detail matters. The paper is careful not to compare the foundation model against a weak baseline. nnU-Net is important in medical segmentation because it is less a single architecture than a disciplined training and configuration procedure. It chooses network and training settings based on the dataset, and prior work has shown that many claimed improvements over U-Net disappear when the baseline is configured well. So the authors use strong, carefully tuned task-specific baselines rather than a simplistic version of U-Net. The experimental setup spans eight out-of-distribution test sets across the three domains, plus held-out in-domain tests. One of the polyp test sets, CVC-T, is also noted to duplicate images from another benchmark, which is an important data-hygiene warning for the community. The paper also evaluates several metrics, including Dice score, IoU, sensitivity, and Hausdorff distance, so the conclusions are not tied to a single measure. What do they find? The most important result is that the adapted foundation model generalizes better on every external dataset. Across all eight out-of-distribution test sets, it leads the task-specific models in the reported metrics. That is the strongest evidence in the paper for foundation-model adaptation: when the goal is cross-site robustness, adaptation helps. But the story changes when you look within the training distribution. On held-out data from the same source, the task-specific models remain competitive when training data are abundant. In those in-domain settings, the adapted foundation model does not show a consistent accuracy advantage at full training size. The task-specific models also delineate boundaries more precisely, while the foundation model more often misses small lesions. So the foundation model seems better at transferring across sites, but the scratch-trained models can still be very strong when the data are plentiful and the test distribution is familiar. The paper also examines how much adaptation is needed. Here the main finding is that only a small fraction of the foundation model needs to be updated to capture most of the benefit. In colonoscopy and breast ultrasound, moving from a frozen encoder to bias-only tuning already captures much of the gain. In the polyp experiments, LoRA at about 2.7 percent of the parameters matches or exceeds full fine-tuning in Dice score across all five polyp sets and across three random seeds. That is a striking result because it suggests that, at least for this domain, full fine-tuning is not necessary to get strong transfer. Even more interestingly, the amount of adaptation needed appears to be determined by the imaging domain rather than by the adaptation method. In other words, the target domain seems to govern the capacity requirement more than whether that capacity is delivered through LoRA, bias-only tuning, or full fine-tuning. That helps resolve a debate in the literature about whether parameter-efficient methods are mainly useful because they are low-capacity, or because some datasets simply need less adaptation than others. This paper’s answer is that the domain matters more. The authors also report a practical caution about benchmark interpretation. A widely used polyp test set was found to duplicate images from another benchmark. That does not invalidate the whole area, but it does show why cross-dataset evaluation and careful dataset auditing matter. If a test set overlaps with another benchmark, apparent generalization can be overstated. So what should we take away? First, if your deployment setting requires a model to work across hospitals or scanners, foundation-model adaptation is warranted. The evidence here is strongest in that out-of-distribution regime. Second, if you are adapting such a model, you do not necessarily need to fine-tune everything. A small amount of adaptation may be enough, and the right capacity should be chosen based on the target domain. Third, if you are comparing against task-specific training, you should use strong baselines and evaluate both in-domain and out-of-distribution. Otherwise, you may mistake a benchmark artifact for a real method advantage. The limitations are also important. The study covers three domains, which is broader than many prior works, but it is still not every medical imaging problem. The foundation model is DINOv2, so these conclusions do not automatically transfer to other pretrained models, especially models trained with different objectives or on different data. The task-specific baselines are strong, but they are still baselines, not every possible architecture. And while the paper shows that adaptation capacity is domain-dependent in these experiments, that is not a universal law; it is an empirical pattern observed across the studied settings. The broader message is that foundation models are not a simple replacement for task-specific training. They are especially compelling when generalization across sites is the priority. But if your data are abundant and your deployment is close to the training distribution, a well-configured task-specific model can still be highly competitive. In medical imaging, the right choice is not just about who wins on one benchmark. It is about where the model will be used, how much it must adapt, and whether the evaluation really reflects the clinical problem.
Also spotted that day
Previous daily papers