Medical image segmentation models that work well at the hospital where they were built often fail at a new hospital, because the new scanner renders the same anatomy with different brightness, contrast and shading. Most existing remedies change the model. They nudge its internal normalization layers or retrain it on unlabeled local scans. For a cleared medical device that is often not an option, because changing the weights creates a new device that needs re-validation. Changing the weights can also erase what the model learned before. We propose the opposite move. The deployed network stays completely frozen, and each incoming scan is passed through a small, tightly restricted image transform that makes it look like what the network expects. That transform is a per-scan intensity remapping curve plus a smooth, slowly varying brightness field. It is fitted at the hospital without source data and without labels.
The idea borrows a lesson from machine translation about domain mismatch, the performance drop when a model trained on one kind of data meets another. That lesson is that preserving domain-specific structure and learning to interpolate between known domains beats forcing everything into one shared representation. The model vendor, who still has the multi-scanner training data, pretrains the transform predictor so that it learns to map scans from a held-out scanner toward the rest. This is the "leave one domain out" recipe moved from language to scanners. At the hospital, only the frozen segmenter and this predictor are shipped. No patient images go with them. A short per-scan refinement then runs on one volume at a time. The model's weights never change, so performance on earlier sites cannot regress, and the restricted transform family limits how far the method can distort the anatomy.
Core Claim
For shifts between scanners and protocols within a modality, a frozen 3D segmenter can recover most of the accuracy gained by weight-updating test-time adaptation. The adaptation is done entirely in input space, with three ingredients. The first is a constrained transform family made of a learned 1D intensity lookup curve and a low-frequency multiplicative bias field. The second is a vendor-side predictor of that transform, trained by leaving out one scanner at a time. The third is a per-scan objective that rewards prediction stability under intensity perturbations and plausible multi-organ volume relations, instead of rewarding low entropy.
Three things would be new together. The adaptation is unsupervised and source-free. It targets volumetric segmentation. And it leaves the predictor fully locked, with forgetting ruled out by construction. We also claim the constraint on the transform is load-bearing. An unconstrained image-to-image adapter can "paint" anatomy to satisfy the frozen network. This is the medical-imaging analogue of the hallucination problem seen in translation.
Where This Sits
The proposal rests on four kinds of prior work: papers that motivate it, a paper whose recipe it adapts, papers that constrain its design, and the closest existing system it must clearly separate from.
Motivation. AMOS built a 15-organ abdominal CT/MRI benchmark from eight scanners. It reports that models lose over 20% on MRI from scanners unseen in training, even with joint multi-modality training. Regulating AI Adaptation audited FDA-cleared devices and found only 6 of 416 retrained after approval. Its chest X-ray experiments show that site-specific fine-tuning recovers up to 0.23 AUC locally but costs the original site 0.176 AUC on average, and as much as 0.268. Together these define the regime: shifts are large, and weights are effectively locked.
Recipe. Domain Generalisation of NMT: Fusing Adapters with Leave-One-Domain-Out Training trains a fusion layer while hiding each batch's own domain adapter. This forces the layer to approximate an unseen domain from the others, and it beats domain-invariant training on unseen domains (+0.8 BLEU on average). We reuse the hiding trick, not the adapter-fusion architecture. Our predictor is trained to produce input transforms for a scanner it was never shown. That work never adapts at test time and never touches images. We do both.
Constraints. The test-time adaptation methods Tent and UBNA adapt by changing normalization parameters or statistics. Tent minimizes the entropy of the model's predictions, and both need batches of test data. Test-Time Adaptation with Shape Moments shows that plain entropy minimization yields anatomically impossible masks on medical scans. It fixes this with organ-volume, centroid and compactness priors, but still updates the normalization layers' scale and shift parameters. Improved post-hoc probability calibration shows that out-of-domain MRI predictions are confidently wrong (ECE 14.48% to 16.78% for the prior method). Its useful signal is local sensitivity to intensity perturbations. These results rule out an entropy-only objective, so we use perturbation consistency as the main signal. From the shape-moment work we take only volume-ratio relations, extended across organs, because fixed centroids break for irregular abdominal organs.
Closest system. Adapt the Data, Not the Model places a trainable adapter in front of a frozen clinical time-series predictor and reports +14.1 AUCPR on acute kidney injury prediction. It is the nearest relative, but it differs in three ways that matter here. It needs target labels, it stores a bank of source exemplars, and it works on 1D signals with an unrestricted network. Our method is label-free and keeps no source exemplars. It works on 3D volumes, and its transform family is deliberately physical. That paper also found that the adapter increased Wasserstein distance to the source. This suggests the target is "what the frozen model handles well," not "what source data looks like," and our objective follows that reading.
Research Program
The transform applied to a target volume $x$ is
$$\tilde{x} = g_\theta\big(x \cdot b_\phi\big),$$
where $b_\phi$ is a smooth positive field parameterized by a few low-order spline coefficients, modeling coil and bias inhomogeneity. $g_\theta$ is a 1D intensity lookup curve with about 32 control points. It is optionally monotone, and non-monotone when we stress-test cross-modality shifts. Together $\theta$ and $\phi$ have a few hundred numbers per scan. Because $g$ acts on intensity values and $b$ varies only over large spatial scales, neither can create or move an edge. This is the fidelity guarantee that an unconstrained adapter lacks.
On the vendor side, a small 3D encoder reads a downsampled scan and predicts $(\theta, \phi)$. It is trained with supervision through the frozen segmenter, on source scanners, leaving one scanner out per batch. The segmentation loss is backpropagated through the frozen model, and the scan is drawn from the held-out scanner. The encoder therefore learns to correct shifts it has not seen, which is the leave-one-domain-out idea moved from language domains to scanners. A label-free variant of this pretraining is an ablation.
On the hospital side, the predicted transform initializes a refinement of a few dozen gradient steps on that single scan, with the segmenter still frozen. The objective has two terms. The first is a consistency term: the frozen model's predictions on $\tilde{x}$ should agree with its predictions on small random gamma, contrast and noise perturbations of $\tilde{x}$. The second is a soft penalty that keeps log volume ratios between organ pairs within ranges the vendor computed from source label maps and ships as a few hundred summary numbers. Entropy appears only as an ablation. The program produces the method, a released set of leave-one-scanner-out splits on AMOS, and an analysis of which kinds of shift a physically constrained transform can and cannot absorb.
Baselines
The do-nothing reference is the frozen segmenter applied to raw target scans. We also report standard per-volume intensity normalization (z-scoring and percentile clipping), so the gains are measured against ordinary preprocessing, not against a deliberately weak pipeline.
The strongest simple input-space competitor is histogram matching of each target scan to a source reference histogram shipped by the vendor. It costs nothing and uses comparable summary statistics, so if our learned curve does not beat it, the vendor pretraining and per-scan objective are not worth having.
The strongest existing method is shape-moment test-time adaptation (Test-Time Adaptation with Shape Moments). It reports 80.0% Dice on MMWHS MRI→CT against a 38.8% unadapted baseline and 75.7% for AdaMI, and 80.2% Dice on NCI-ISBI prostate. We will run it ourselves with our backbone, using the same per-scan step budget and the same validation-scanner hyperparameter search as our method. We also report Tent (Tent) and UBNA (UBNA) under identical single-volume, slice-batched conditions. The file gives no Tent number on medical benchmarks, only that it trails shape-moment adaptation on MMWHS.
As an offline, cohort-level upper reference we run ProtoContra-SFDA (Source-Free Domain Adaptation for Medical Image Segmentation via Prototype-Anchored Feature Alignment and Contrastive Learning). It reports 86.1% Dice on CHAOS/MICCAI MRI→CT and 89.2% CT→MRI, but it retrains feature weights.
No reported result found on Lacuna for any test-time adaptation method on AMOS unseen-scanner MRI. For that setting we establish all baselines ourselves.
What counts as success. Beating histogram matching on every split. Landing within about two Dice points of shape-moment adaptation on within-modality cross-scanner splits while leaving every weight untouched. Showing zero change on source-scanner test sets, where shape-moment and Tent variants are measured for drift. We do not expect to beat shape-moment adaptation on CT↔MRI. That is reported as a stress test, not a claim.
Ablations. - Remove leave-one-scanner-out pretraining by starting refinement from the identity transform. - Replace leave-one-out training with joint training on all scanners. - Swap consistency for entropy. - Drop the volume-ratio prior. - Replace the constrained transform with an unconstrained residual 3D U-Net adapter, to test whether the restriction is load-bearing.
Why not just…?
Why not just histogram-match each scan to a source reference? This is the real threat, because much of MRI scanner shift is intensity non-standardization. Histogram matching aligns global intensity distributions, but a scan's distribution also depends on its anatomy and field of view. Matching it can therefore push organs toward the wrong intensities, and it cannot correct spatial bias fields. Our method optimizes for what the frozen model handles well, which the time-series input-adaptation result suggests differs from matching source statistics. If histogram matching comes within a point of our method on AMOS cross-scanner MRI, we will report that the learned pieces are unnecessary and narrow the claim to bias-field correction.
Why not just run shape-moment test-time adaptation, since it already works on single scans? It does work, and it is our strongest accuracy baseline. It changes normalization parameters, though, and the regulatory audit shows that weight changes are what deployed devices avoid. Weight updates also carry forgetting risk, measured at 0.176 AUC on average in that audit. Its fixed centroids also struggle with irregular abdominal organs. Our experiments measure the accuracy cost of staying locked against it directly. If that cost exceeds a few Dice points, the honest conclusion is that locked deployment pays a measurable price.
Why not just train with heavy intensity augmentation so no adaptation is needed? AMOS's over-20% unseen-scanner drop already comes from strong multi-site training pipelines, which suggests that augmentation alone does not close the gap. We test this anyway. The frozen segmenter in every condition is trained with aggressive gamma, contrast and bias-field augmentation. If our input adaptation adds nothing on top of it, the method fails.
Why not just use an unconstrained image-to-image adapter, as the time-series work does? Without labels, a flexible adapter can lower the consistency loss by inventing or erasing structures. We test this with the unconstrained-adapter ablation. We measure edge displacement between input and transformed scan, and count false-positive organ components the adapter introduces. The constrained family should show neither.
Proposed Experiments and Decisive Checks
The main testbed is AMOS. The segmenter is trained on CT plus MRI from a subset of scanners, and every MRI scanner is held out in turn, which directly targets the reported unseen-scanner collapse. We report mean Dice over 15 organs, separately for small irregular organs (adrenals, duodenum), along with surface distance and ECE. Secondary testbeds are NCI-ISBI cross-site prostate and MMWHS MRI→CT, where published shape-moment numbers anchor comparison. CHAOS/MICCAI is the cross-modality stress test.
Five checks decide the outcome:
- Does the method beat histogram matching on held-out scanners?
- Is the gap to shape-moment adaptation small on within-modality shift?
- Is source-scanner accuracy exactly preserved while the weight-updating baselines drift?
- Does removing leave-one-out pretraining or the transform constraint cause clear losses?
- Does calibration improve rather than degrade, given that entropy-driven methods risk reinforcing confident errors?
A negative answer to the first or third question would falsify the proposal as stated.
References
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation
- Regulating AI Adaptation: An Analysis of AI Medical Device Updates
- Domain Generalisation of NMT: Fusing Adapters with Leave-One-Domain-Out Training
- Tent: Fully Test-Time Adaptation by Entropy Minimization
- Unsupervised BatchNorm Adaptation (UBNA): A Domain Adaptation Method for Semantic Segmentation Without Using Source Domain Representations
- Test-Time Adaptation with Shape Moments for Image Segmentation
- Improved Post-hoc Probability Calibration for Out-of-Domain MRI Segmentation
- Adapt the Data, Not the Model: Input-Space Adaptation for Frozen Time-Series Predictors
- Source-Free Domain Adaptation for Medical Image Segmentation via Prototype-Anchored Feature Alignment and Contrastive Learning