Automated machine learning (AutoML) systems for medical image segmentation pick a whole recipe: how to resample and normalize scans, how to sample training patches, which network to use, and how to train it. They make that choice by scoring each candidate recipe on held-out scans from the same hospital. That is the wrong target. The recipe is then deployed at other hospitals, where different scanners, patients, and tracers can halve its accuracy. In the AutoPET II challenge, pipelines trained at one site reached a median Dice of 0.7355 in-domain but only 0.3239 on pediatric scans and 0.1840 on a different radiotracer, with very large false-positive volumes (AutoPET II). The same challenge found that an oracle choosing the best submission per case would have done far better than any single submission. Different recipes fail differently under shift, and the gains are left on the table because nothing picks well among them.
We propose to fix the selection signal rather than the network. The question is which score, computable from a single training site, ranks candidate pipelines in the order of their true performance at unseen sites. We will measure this directly, then put the best-validated score into a multi-fidelity pipeline search in place of in-domain cross-validation. Put briefly: AutoML for medical segmentation currently optimizes the wrong number. We will find out which number predicts external performance, and search on that.
Core Claim
The claim has two parts, and the first can falsify the second.
The first part is a measurement. Across a pool of self-configured segmentation pipelines, in-domain cross-validation Dice is a weak predictor of external-site Dice once the recipes are reasonably good. It is especially weak for the knobs that interact with scanner physics: intensity clipping and normalization, target voxel spacing, foreground oversampling, and augmentation strength.
The second part is a method. A pessimistic score over physically motivated synthetic shifts predicts external performance substantially better. That score takes the worst case across simulated intensity, resolution, noise, and uptake perturbations, and includes false-positive volume. Used as the search objective, it selects pipelines that are more robust at unseen sites, at the same search budget.
If the first part fails, meaning in-domain ranking already tracks external ranking well, then the method is pointless. We would report that as the main result.
Positioning Against Prior Work
The method comes from the pipeline-automation line of work. nnU-Net sets preprocessing, patch size, topology, and training schedule from heuristics on a "dataset fingerprint." Auto-nnU-Net replaces those heuristics with a joint architecture-and-hyperparameter search, using a multi-fidelity optimizer called Regularized PriorBand. It reports 77.04% mean Dice on the Medical Segmentation Decathlon (MSD) and finds, through a variance analysis, that foreground oversampling and learning rate matter far more than encoder type.
We reuse that search machinery. Both systems select on in-distribution cross-validation, and neither was evaluated at external sites. We change the objective and the evaluation, not the search algorithm.
The motivating evidence comes from multi-site benchmarks. AutoPET II documents the collapse under shift and the oracle-ensemble headroom. AMOS reports drops of more than 20% on MRI from unseen scanners.
The closest methodological neighbors search for robust architectures in natural images. NAS-OoD trains an adversarial generator of shifts against a differentiable architecture search. G-NAS guides detection-head search with a loss derived from neural tangent kernel theory. Both treat architecture as the lever and work in 2D with a fixed data pipeline. The Auto-nnU-Net variance result points the other way for medical segmentation. We therefore search the preprocessing and sampling pipeline jointly with architecture, and we explicitly test whether architecture search adds anything under shift.
Two methods supply ingredients. CompStyle trains a single-source prostate model with fractal image mixing and adversarial style perturbation, lifting external Dice from about 24–29% to about 64–77%. We use its style perturbations as one family of synthetic shifts and also as a fixed-augmentation competitor. Shift Identification detects and classifies deployment shift without labels, combining output-based tests with feature-distance tests on self-supervised features. We borrow its feature-distance statistic as a candidate label-free proxy. That paper stops at monitoring a deployed model; we instead test whether such signals can choose which model to deploy.
Research Program
We first build a pipeline pool on top of the nnU-Net configuration space, extended with the knobs we expect to interact with shift. These are intensity clipping percentiles, the normalization scheme (per-image z-score versus dataset-level), target spacing, foreground oversampling ratio, augmentation intensity ranges, and optional CompStyle-type style perturbation. The Auto-nnU-Net topology grammar is added as a separable factor.
For each benchmark we sample on the order of 150–200 configurations. Each is trained at reduced fidelity, with fewer epochs, and a subset is trained to full fidelity so we can check that the rankings survive the fidelity change. The main cost risk is 3D training volume, and multi-fidelity training is how we manage it.
For each trained pipeline we compute three families of candidate proxies. The first is in-domain cross-validation Dice. The second is synthetic-shift scores. These come from applying simulated perturbations to held-out source scans: bias fields, intensity remapping, resampling to other spacings, noise, MRI motion and spike artifacts, and, for PET, altered uptake distributions and standardized-uptake-value scaling. We record both the mean and the worst case, and track Dice together with false-positive volume. The third family is label-free statistics on unlabeled external scans, when such scans are permitted: prediction stability under test-time augmentation and feature-distance measures. We keep this third family in a separate track, because it assumes access to unlabeled target data.
The analysis measures the Kendall rank correlation between each proxy and true external performance, per target domain. Proxy weights are fit only on development benchmarks and then frozen before AutoPET. Finally, we plug the frozen proxy into PriorBand as the objective and compare search outcomes at an equal trial budget.
Baselines
The naive reference point is vanilla nnU-Net with its default heuristics, trained on the single source site. AutoPET II identified it as the most common and consistently robust starting point. It costs no search, so any search method must beat it to justify its compute.
The strongest existing automated method is Auto-nnU-Net selecting on in-domain cross-validation. It gets the identical search space, optimizer, trial count, and GPU-hours as our method, and differs only in the objective. It reports 77.04% mean MSD Dice in-domain. No reported external-site result for it was found on Lacuna, so we will generate that number ourselves. On AutoPET, the external reference is the top challenge team: overall DSC 0.5038, mean false-positive volume 87.84 mL, median DSC 0.3239 on pediatric scans and 0.1840 on PSMA scans (AutoPET II).
The strongest fixed robustness method is nnU-Net with CompStyle-type augmentation (CompStyle), trained once with its published settings. Its reported single-source prostate external Dice is about 64–77%.
We also compare against a top-5 ensemble of in-domain-selected pipelines and against an oracle that picks the pipeline with the best external score. The oracle is an upper bound only.
The ablations each isolate one ingredient. The first uses the shift-aware objective with architecture fixed to the default U-Net, which tests whether architecture search matters under shift. The second uses the objective without the worst-case aggregation. The third drops the false-positive term.
Beating the in-domain-selected search means two things. The first is a higher mean external Dice, averaged over target domains, with bootstrap confidence intervals over scans excluding zero. The second is no increase in false-positive volume on the tracer-shift domain. Beating CompStyle-augmented nnU-Net means exceeding it on external Dice at equal training compute per final model.
Why not just…?
Why not just use vanilla nnU-Net? It is robust relative to custom architectures, and in AutoPET II it was the default choice for most teams. Even so, the best such pipelines reached only 0.3239 and 0.1840 median Dice on the pediatric and PSMA domains. Nothing in its heuristics sees shift. The default is included as the zero-cost baseline. If our search cannot beat it, the proposal fails.
Why not just select on in-domain validation, since better models are usually better everywhere? This is the most serious threat, and the first experiment exists to settle it. If in-domain and external rankings correlate strongly across the pool, the proxy adds nothing and we will say so. The AutoPET oracle headroom, together with the modest gains from majority voting, suggests that pipelines differ in ways in-domain scores do not capture. That is suggestive evidence, not proof.
Why not just add strong domain-generalization augmentation and skip search? CompStyle-type augmentation is a genuine competitor, given its large reported prostate gains. We make it a searchable option and also a fixed baseline. If the fixed version matches the searched result, the conclusion is that the augmentation, not the selection, is doing the work.
Why not just ensemble? AutoPET II reports that simple majority-vote ensembles gave only marginal improvement. We still include a top-5 ensemble, since ensembling may combine with better selection rather than compete with it.
Why not just use a foundation model? Auto-nnU-Net outperformed MedSAM2 on 9 of 10 MSD tasks. That comparison is in-domain only, so it does not settle the question under shift, but it does not favor dropping task-specific pipelines.
Proposed Experiments
We use three development settings. The first trains on MSD Task 05 prostate and tests on the external prostate sets used by CompStyle. The second trains on a subset of AMOS scanners and tests on held-out AMOS scanners, including unseen MRI scanners. The third uses the CompStyle cardiac synthetic-artifact protocol. The primary held-out test is AutoPET II: train on the 1,014 Tübingen FDG scans and evaluate on UKT-Patho, LMU, UKE-Pediatric, and LMU-PSMA. The proxy design is frozen before AutoPET results are viewed. Metrics are Dice, false-positive and false-negative volume in mL, and, for prostate, average surface distance.
The decisive checks come in sequence. The first is whether the synthetic worst-case proxy achieves a higher rank correlation with external Dice than in-domain cross-validation on AutoPET. We treat this as a hypothesis test with bootstrap intervals over pipelines. The second is whether searching on that proxy closes a meaningful fraction of the gap between the in-domain-selected pipeline and the oracle-selected pipeline. The third is whether the gain survives the architecture-fixed ablation. If it does, that would extend the "architecture is overrated" finding to the shifted setting. If it does not, it would support the architecture-first view of NAS-OoD and G-NAS for medical data.
A negative result on the first check stands as a reportable finding: selection is not the bottleneck, and effort belongs in training-time robustness.
References
- AutoPET Challenge on Fully Automated Lesion Segmentation in Oncologic PET/CT Imaging, Part 2: Domain Generalization
- nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentation
- Auto-nnU-Net: Towards Automated Medical Image Segmentation
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation
- NAS-OoD: Neural Architecture Search for Out-of-Distribution Generalization
- G-NAS: Generalizable Neural Architecture Search for Single Domain Generalization Object Detection
- Complex Style Image Transformations for Domain Generalization in Medical Images
- Automatic Dataset Shift Identification to Support Safe Deployment of Medical Imaging AI