When a segmentation network trained on one kind of medical scan, such as contrast-enhanced T1 MRI, is run on another, such as high-resolution T2 MRI, its confidence scores stop meaning what they meant during training. A probability of 0.9 on the source scanner may correspond to a coin flip on the target scanner. Small structures are hit hardest because one spurious blob can destroy their overlap score. In the CrossMoDA benchmark, rigid cochleas transfer well, while tumors suffer boundary leakage and "ghost" false-positive segmentations (CrossMoDA 2021). The usual remedy is self-training, where the model's own confident target predictions become pseudo-labels. That remedy leans on exactly the confidence threshold that no longer transfers, and it gets worse when only a handful of source scans are labeled.
We propose to replace that threshold with an a contrario test, a detection rule from classical image analysis that accepts a structure only if it would be very unlikely to arise from background alone. The test should be re-fitted on the unlabeled target scans themselves. The key quantity is the number of false alarms (NFA): the probability that a candidate would appear under a background-only "null" model, multiplied by the number of candidates tested. Accepting only candidates with NFA below $\epsilon$ bounds the expected number of accepted background structures per volume by $\epsilon$. That bound holds only if the null model describes the data the test runs on. Our claim is that a null fitted per modality, on unlabeled target-domain deep features, yields a pseudo-label acceptance rule that transfers across modalities without any target labels. Confidence thresholds and source-calibrated rules do not transfer this way. The result should be fewer ghost segmentations and better few-shot cross-modality accuracy on small structures.
Core Claim and What Is New
Deep a contrario methods already show that a statistical background test helps a great deal when labels are scarce. On the infrared target dataset NUAA-SIRST with only 15 training images, an object-level NFA head lifted YOLOv7-tiny's F1-score from 50.7% to 85.0% (A Contrario Paradigm for Yolo-Based Infrared Small Target Detection). In the same regime, Deep-NFA improved average precision by over 15%. Both papers work within a single 2D modality. Their background model is learned and applied on the same sensor, and they never ask whether the false-alarm bound survives a change of imaging physics.
Going the other way, Meta-hallucinator tackles 1-shot and 4-shot MR-to-CT cardiac segmentation. It controls false positives only through self-ensembling consistency, which makes the model agree with itself rather than with the image. The closest blueprint for our test statistic is GLAD-style deep-feature modeling for video change detection. That work fits a Gaussian mixture to ResNet features and scores whole blobs by NFA, which halves object-level false positives on CDNet. We reuse its blob-level design. Our contribution is to move it into a 3D cross-modality self-training loop, with the null re-estimated per target modality.
The proposal makes three specific changes to this prior work. First, the null is fitted on target-domain features and not on source features or training labels. Second, the test runs on connected components proposed by the segmentation network, not on individual pixels. This sidesteps the fragmentation that Deep-NFA's authors report for larger objects, because the network supplies whole candidates and the test only accepts or rejects them. Third, the test acts as a pseudo-label gate inside self-training, and is also applied once more at inference.
Research Program
The base segmenter is a 3D nnU-Net, chosen to match the CrossMoDA top teams. It is trained on $k \in \{1, 5, 10\}$ labeled ceT1 scans. Source images receive non-generative intensity augmentation, specifically the Bézier-curve style mapping of Dual Normalization together with AugMix. This choice follows the evidence in Limitations of Synthetic Data Generation that generative synthesis fails to beat AugMix when data are scarce. We also keep one arm with CycleGAN translation, so that we do not prejudge the issue.
On the unlabeled hrT2 scans, the network proposes candidate components for each class at several probability levels. For each target volume we then fit a background model. This is a Gaussian mixture over decoder features, estimated from voxels outside a dilation of all candidates. Excluding a neighborhood around each query in this way follows the non-local logic of How to Reduce Anomaly Detection in Images to Anomaly Detection in Noise.
For a candidate component $C$ with $|C|$ voxels, let $s(C)$ be the mean negative log-likelihood of its features under the background model. Its NFA is
$$\text{NFA}(C) = N_{\text{tests}} \cdot P_{H_0}\big(s \ge s(C) \,\big|\, |C|\big),$$
where $N_{\text{tests}}$ counts all candidates over the probability levels and sizes examined in that volume. The tail probability $P_{H_0}$ is obtained by sampling random connected regions of the same size from background voxels. Sampling avoids assuming that voxels are independent, which deep features violate. Components with $\text{NFA} < 1$ become pseudo-labels, and the network is retrained on the source labels plus these accepted target pseudo-labels for two or three rounds. At inference, the same gate removes unaccepted components.
This design involves no target labels and no threshold tuning on target data. The only free choice is $\epsilon$, which is fixed at 1 by convention, as in LSD.
Baselines
The naive reference point is the source-only nnU-Net with Bézier and AugMix augmentation, applied directly to hrT2 with argmax decoding and no self-training. It shows how much transfer the augmentation alone buys at each $k$.
The strongest existing method on this question is the CrossMoDA-winning recipe: image-to-image translation followed by nnU-Net and self-training with confidence-thresholded pseudo-labels. With all 105 ceT1 labels, the top team (Samoyed) reported median Dice of 88.4% on vestibular schwannoma and 85.7% on cochleas, against a fully supervised ceiling of 92.5% and 87.7% (CrossMoDA 2021). We found no reported result on Lacuna for CrossMoDA with only 1 to 10 labeled source scans. We will therefore rerun this recipe ourselves at each $k$, using the same backbone, the same unlabeled target pool, the same number of self-training rounds, and the same GPU budget. Its confidence threshold gets the same tuning budget as any choice we make: a grid tuned on the 32-scan validation set, which deliberately favors the baseline. The full-data numbers serve as an upper anchor.
For few-shot cross-modality transfer we also run Meta-hallucinator. It reports a 6.7% Dice and 0.9 mm average-surface-distance improvement over the mean-teacher adaptation method MT-UDA in the 4-shot MR-to-CT setting on MM-WHS. The file does not give absolute values.
Two ablations isolate the key ingredient. The first fits the background model on source-domain features and applies it unchanged to target scans, which tests whether per-modality re-estimation is what matters. The second drops the multiple-testing factor $N_{\text{tests}}$, which tests whether the statistical correction matters or any likelihood score would do.
We count the method as beating these baselines if it improves median tumor Dice by at least 3 points over the tuned confidence-threshold self-training at $k \le 5$, and if it halves false-positive components per volume. Both differences must be measured over three seeds with a paired test across the 137 test scans.
Why not just…?
Why not just tune the softmax or entropy threshold for pseudo-labels? This is the main competitor, and it is the strongest arm in our Baselines. The structural objection is that the threshold has to be chosen somewhere. On source data it is miscalibrated for the target. On target data it requires labeled target scans, which the setting forbids, and our baseline only gets them through validation-set tuning that a real deployment would lack. If the tuned threshold matches the a contrario gate, the honest conclusion is that the gate's value is removing the need for target labels, not improving accuracy. We will report it that way.
Why not just keep the largest connected component per hemisphere? For vestibular schwannoma, which is usually a single lesion on one side, this cheap rule is a real threat to the ghost-segmentation argument. We include it as a baseline both at inference and as a pseudo-label filter. The a contrario gate should differ in two cases. It can reject a component outright when no tumor is present, which the largest-component rule never does, so it always keeps something. It also generalizes to structures with variable counts. We test the first case directly on contralateral tumor-free hemispheres. If the largest-component rule matches us on tumor Dice and on false alarms per volume, the proposal's claim narrows to the cochlea and multi-structure settings.
Why not just fine-tune a foundation segmenter such as SAM with meta-learning? SSM-SAM outperforms prior few-shot methods by 10.21% Dice on ABD-30 CT. Even so, it still leaks at low-contrast boundaries, and it offers no rejection mechanism for target-domain artifacts. The gate is complementary rather than competing, so we will apply it on top of SSM-SAM's outputs on the CT/MRI abdominal pair. This shows whether the gate's gain persists with a stronger proposer.
Proposed Experiments and Decisive Checks
The primary benchmark is CrossMoDA, with ceT1 as source and hrT2 as target, $k \in \{1, 5, 10\}$ labeled source scans, the 105 unlabeled hrT2 scans, and the 32 validation and 137 test scans. Metrics are median and mean Dice, average surface distance, and false-positive components per volume. The secondary benchmark is MM-WHS with MR as source and CT as target at 1 and 4 shots, for direct comparison with Meta-hallucinator. Cardiac chambers are large, so this tests whether proposing whole components really avoids the fragmentation reported for Deep-NFA.
The decisive check is whether the false-alarm guarantee transfers at all. On tumor-free target regions, namely contralateral hemispheres in CrossMoDA and lesion-masked volumes, we count accepted components per volume. Under a correctly specified null this count should average at most $\epsilon = 1$ across $\epsilon \in \{0.1, 1, 10\}$, because that is exactly what the NFA bound promises. We compare the target-fit null against the source-fit null. If the target-fit null keeps the count near $\epsilon$ while the source-fit null exceeds it by a wide margin, the central claim holds. If both exceed it, then Gaussian-mixture modeling of deep features is too crude for 3D MRI, and we will say so rather than report Dice gains alone.
The second check plots, as a function of $k$, the pseudo-label precision of the gate against the tuned threshold. Prior single-modality results predict that the gate's advantage should be largest at $k = 1$, and the cross-modality setting gives no reason to expect otherwise.
References
- CrossMoDA 2021 challenge: Benchmark of Cross-Modality Domain Adaptation techniques for Vestibular Schwnannoma and Cochlea Segmentation
- A Contrario Paradigm for Yolo-Based Infrared Small Target Detection
- Deep-NFA: A deep a contrario framework for tiny object detection
- Meta-hallucinator: Towards Few-Shot Cross-Modality Cardiac Image Segmentation
- Statistical Modeling of Deep Features to Reduce False Alarms in Video Change Detection
- Generalizable Cross-modality Medical Image Segmentation via Style Augmentation and Dual Normalization
- Limitations of Synthetic Data Generation in Specialized Data-Scarce Domains
- How to Reduce Anomaly Detection in Images to Anomaly Detection in Noise
- LSD: a Line Segment Detector
- Self-Sampling Meta SAM: Enhancing Few-Shot Medical Image Segmentation With Meta-Learning