When a segmentation model trained on one kind of scan, such as contrast-enhanced MRI, is moved to another, such as non-contrast MRI or CT, the standard fix is three steps. First, translate the labeled source images so they look like the target modality. Second, train a segmenter on the translated images. Third, run self-training: label the unlabeled target scans with the model's confident predictions and retrain on those guesses. This recipe wins benchmark challenges. In the crossMoDA challenge every top team used it, yet results have stalled near 88% Dice (crossMoDA 2021–2023), with the smallest structures lagging most.
We argue that part of this plateau is a class-imbalance problem hiding inside self-training. Tiny structures like the cochlea, small tumors, or the pulmonary artery occupy a minute fraction of voxels. On a shifted modality the model's probabilities for them are diffuse and low. Confidence thresholds therefore keep too few of their voxels, so the pseudo-labels systematically shrink these structures, and each retraining round learns the shrinkage.
The proposal rests on a simple observation. A structure's physical size in cubic millimetres does not depend on the scanner, while its voxel count does. We therefore use the distribution of physical volumes measured from source labels as an anchor that corrects pseudo-label shrinkage on the target modality.
Core Claim
In unsupervised cross-modality segmentation, foreground–background imbalance interacts with domain shift to produce a measurable, class-dependent under-segmentation bias in self-training pseudo-labels. Constraining pseudo-label volumes to a population prior expressed in physical units removes much of that bias without target labels.
The method has two parts. The prior is the per-class distribution of physical volumes from source annotations. It is converted to each target scan's voxel spacing and used both to pick how many voxels per class enter the pseudo-label and as a soft loss during retraining. Two things would be new. The first is a diagnosis that the self-training stage, not translation, is where imbalance bites. The second is the use of the physical-volume prior as the correction signal. Neither appears in the closest work.
Three papers in the file come closest, and each addresses a different kind of imbalance:
- Mind The Gap defines "local imbalance" as uneven transfer difficulty across anatomy and reweights features using a pixel-wise domain discriminator. It never treats label or voxel-frequency imbalance, and it assumes target class frequencies match the source.
- IADA handles domain shift plus label shift with class-balanced alignment and target-calibrated thresholds. It does so only for binary 2D embryo classification.
- Logit-Adjusted TTA shows that test-time adaptation drifts toward majority classes and corrects this with estimated class priors. It works at the whole-image level on natural-image corruptions.
Our work moves prior correction to dense 3D segmentation across radiological modalities. It also replaces an online estimate of the class prior, which is unreliable when the foreground is under 1% of voxels, with an anatomical prior that transfers by construction.
Research Program
Diagnosis. The first stage tests the premise directly. We reproduce the standard pipeline: CycleGAN or CUT translation, then nnU-Net, then iterative pseudo-labeling. We use it on crossMoDA 2021 (ceT1→hrT2, vestibular schwannoma and cochlea), on MMWHS cardiac MRI→CT, and on CHAOS MRI→CT abdomen.
For every class and every self-training round we record the signed volume error of the pseudo-labels against held-out target ground truth, used for analysis only. We plot that error against the structure's voxel fraction. The hypothesis predicts negative volume error that grows with smaller voxel fraction and compounds over rounds.
Xu et al.'s Balance loss paper shows that soft-probability false positives create a training bias proportional to the gap in pixel counts between classes. We therefore also track soft volume against hard (thresholded) volume. Under domain shift, diffuse soft mass in the background should inflate this gap, which no prior work has measured across modalities. If small classes are not under-segmented, the proposal's premise fails and we stop here.
Method. For class $c$, source annotations give physical volumes from which we take quantiles $q_c^{lo}, q_c^{hi}$ in mm³. For a target scan with voxel volume $\Delta$ and predicted probabilities $p_c(v)$, we add the penalty
$$ L_{vol} = \sum_c d\left(\Delta \sum_v p_c(v),\; [q_c^{lo}, q_c^{hi}]\right)^2, $$
where $d(\cdot, I)$ is the distance from a value to the interval $I$, which is zero inside it.
Pseudo-label selection works in the same units. For each scan and class we rank voxels by $p_c(v)$ and keep the top $k_c$, choosing $k_c$ so that $\Delta k_c$ is the model's hard-volume estimate clipped into the prior interval. The confidence cutoff thus becomes per-class and per-scan, set by anatomy rather than by a global number.
For classes with wide size distributions, such as tumors, the interval is loose and the constraint is mostly inactive. That is a deliberate stress test. We also attempt a tumor-specific variant that conditions the prior on a coarse size estimate from a first-pass prediction.
Known failure modes. Two physiological effects violate size invariance and limit the anchor. Cardiac phase changes left-ventricle cavity volume. Partial field of view truncates organs, especially in abdominal MRI. We handle truncation by computing the prior only over the imaged extent, using the source scans' cropping statistics. We report cardiac chambers separately, because this is where Su et al. already note that shape genuinely changes across protocols.
Scope. Size-constrained losses are a known idea in weakly supervised segmentation outside this file. Our contribution is not the penalty form. It is the diagnosis of imbalance-driven shrinkage in cross-modality self-training, and the observation that physical volume is the quantity that survives the modality change.
Baselines
Naive reference. A source-only nnU-Net applied to target scans, plus the same model after translation without self-training. On MMWHS MRI→CT, Mind The Gap reports 17.12% Dice without adaptation and 56.61% with CycleGAN. These anchor the low end.
Standard pipeline (strongest competitor). The challenge-winning pipeline of translation, nnU-Net and fixed-threshold self-training. The crossMoDA 2021 report gives the winning team's median Dice as 88.4% for VS and 85.7% for cochleas, against a supervised oracle of 92.5% and 87.7%.
This is the strongest competitor because our method changes only its third stage. We re-run it ourselves with identical translated images, architecture, number of self-training rounds, and GPU budget. We hold its confidence threshold and our quantile choice to the same tuning budget on a source-side validation split, so no target labels are used for either. Beating it means a statistically significant gain in cochlea Dice and in small-structure volume error across three seeds, without lowering VS Dice. Because the cochlear gap to the oracle is only about two points, we treat a one-point median gain with lower volume error as meaningful. We consider the hypothesis confirmed only if that gain is accompanied by the predicted reduction in diagnosed shrinkage.
Cardiac and abdominal comparison. On MMWHS MRI→CT and CHAOS we compare to Mind The Gap's reported 82.42% and 90.38% Dice. We also compare to our own re-run of Mind The Gap's feature-mask reweighting placed inside the same self-training loop. The question is whether transfer-hardness weighting and volume anchoring are complementary.
Imbalance-side baselines. Three alternatives use the same pipeline:
- self-training with the Balance loss, which reports 66.8 against 59.8 Dice for cross-entropy on KiTS19 tumors in single-modality training;
- per-class confidence thresholds tuned on source validation;
- a voxel-level port of logit-adjusted entropy minimization, whose image-level result is 34.4% all-class accuracy on ImageNet-C at imbalance ratio 0.1.
Ablations. Three ablations isolate the key ingredient:
- a prior in raw voxel counts instead of mm³, which tests whether the physical unit matters;
- the volume loss without volume-based selection, and the reverse;
- an oracle prior built from true target volumes, which bounds what any prior-based correction can achieve.
Why not just…?
Why not just use a class-imbalance loss such as the Balance loss during self-training? These losses rebalance gradients given correct labels. Our premise is that the pseudo-labels themselves are already too small for rare structures, and a reweighted loss faithfully fits that wrong target. Xu et al. evaluated only within single modalities, so there is no evidence either way under shift. The direct comparison and the diagnosis stage will show whether the loss alone reverses pseudo-label shrinkage. If it does, the volume anchor is unnecessary, and we would report that.
Why not just set per-class confidence thresholds? This is the most serious threat, because it is cheap and could recover most of the gain. Its weakness is that a threshold tuned on the source tells you nothing about how probabilities are calibrated on the shifted target. The right cutoff for the cochlea on hrT2 is unknown without target labels. The volume anchor instead fixes the quantity, not the cutoff. We give the threshold baseline the same tuning budget. If it matches us on cochlea and pulmonary-artery Dice, we will conclude that the contribution is the diagnosis, not the method.
Why not just estimate target class priors online, as in logit-adjusted test-time adaptation? Weerasinghe et al. estimate priors from the model's own predictions, and they note this estimate lags and depends on tuning. In segmentation, that self-estimate inherits exactly the shrinkage we want to remove. The anatomical prior comes from outside the biased model. The voxel-level port tests whether this distinction matters in practice.
Why not just use a better translator, such as a diffusion model? AdaptDiff and LMIDiffusion improve image fidelity, for example 81.94% against 73.16% unadapted Dice on OCTA-500. Better images may reduce the shrinkage, and that is a plausible competing explanation. We will repeat the diagnosis with diffusion-translated crossMoDA images. If the volume bias disappears, the plateau is a translation problem and our anchor is redundant there.
Proposed Experiments and Decisive Checks
The datasets are crossMoDA 2021 for the primary small-structure test, MMWHS MRI→CT for cardiac structures with mixed size and known shape change, and CHAOS MRI→CT for large organs as a control where we expect little gain.
Metrics are per-class Dice, signed physical-volume error, tumor-level detection recall, and 95th-percentile surface distance. Results are reported per class rather than averaged, because averaging hides exactly the small classes at issue.
We also run a controlled imbalance sweep. We subsample source scans so that tumor-size distributions are skewed toward large lesions. This tests whether the anchor degrades gracefully when the prior is misspecified, and whether the standard pipeline's small-tumor recall collapses faster than ours.
Three outcomes would decide the question. The first is whether diagnosed pseudo-label shrinkage correlates with voxel fraction; if it does not, we abandon the hypothesis. The second is whether the mm³ prior beats the voxel-count prior, which tests the core insight. The third is whether the gain over tuned per-class thresholds is concentrated on the cochlea and pulmonary artery and is absent on the liver, which is the pattern our explanation predicts and the alternatives do not.
References
- crossMoDA Challenge: Evolution of Cross-Modality Domain Adaptation Techniques for Vestibular Schwannoma and Cochlea Segmentation from 2021 to 2023
- Mind the Gap: Alleviating Local Imbalance for Unsupervised Cross-Modality Medical Image Segmentation
- Addressing Domain Shift via Imbalance-Aware Domain Adaptation in Embryo Development Assessment
- Logit-Adjusted Test-Time Adaptation under Partial Class Imbalance
- A Unified Loss for Handling Inter-Class and Intra-Class Imbalance in Medical Image Segmentation
- CrossMoDA 2021 challenge: Benchmark of Cross-Modality Domain Adaptation techniques for Vestibular Schwnannoma and Cochlea Segmentation
- AdaptDiff: Cross-Modality Domain Adaptation via Weak Conditional Semantic Diffusion for Retinal Vessel Segmentation
- Diffusion based Zero-shot Medical Image-to-Image Translation for Cross Modality Segmentation