Medical segmentation networks trained at one hospital often fail at another because each scanner leaves its own fine-grained signature on the image: noise patterns, sharpening, intensity scaling. On the AMOS abdominal benchmark, models lose more than 20 points of mean Dice on MRI scanners they never saw during training (AMOS). Much of this scanner signature lives in high spatial frequencies, but so does the boundary detail that clinicians care about. Current fixes such as texture randomization blur both together, and they pay for it with accuracy on the original hospital's data (CompStyle).
3D content generation faced a similar problem for a different reason. Memory costs grow with the cube of resolution, so the field learned to split the job in two. A coarse model gets the global structure right, and a second generative model learns to carry coarse shapes to fine ones. We propose to reuse that split on purpose in medicine. The image network sees only a deliberately low-resolution, intensity-normalized volume, where most scanner-specific texture is gone. Fine boundary detail is then restored in label space, meaning a model that transforms the predicted organ masks themselves. That model is trained on ground-truth anatomy, which does not depend on the scanner. In short, the resolution bottleneck becomes a tool for invariance, and detail is recovered from anatomical shape knowledge instead of from scanner-dependent pixels.
Core Claim
Our claim is that a segmentation pipeline can be made robust across scanners without losing in-domain accuracy. It needs two parts. The first is a coarse image model whose input resolution is low enough to remove vendor texture. The second is a mask-to-mask refiner that learns the transport from shift-corrupted coarse predictions to fine anatomical masks. The refiner gets only limited, texture-suppressed access to the full-resolution image. We expect this combination to shrink the unseen-scanner gap on AMOS MRI and on multi-center prostate MRI more than texture randomization does. We also expect it to avoid the in-domain penalty that randomization pays and to cut the complete-failure cases (0% Dice) that cascaded models show on pathological organs.
The method comes from DetailGen3D. That work learns a "data-dependent rectified flow", a model that learns a straight-line velocity field carrying coarse shapes to fine shapes, instead of generating from random noise. The flow runs in the compressed code space of a 3D autoencoder, and nearest-neighbour matching keeps each coarse token aligned with its fine counterpart. In DetailGen3D, the coarse shapes come from reconstruction models and the target is visual sharpness. Here, the coarse shapes are segmentations damaged by domain shift, and the target is anatomical correctness.
Research Program
The coarse stage is a standard 3D U-Net configured by nnU-Net. Its input is resampled to a fixed spacing roughly four times coarser than native, with per-volume intensity normalization. It outputs soft organ probabilities at that coarse spacing. We will sweep the input resolution. We expect a sweet spot: too fine lets scanner texture back in, and too coarse loses small organs beyond recovery.
The refiner has two pieces. The first is a 3D autoencoder over one-hot label volumes, trained only on source-domain ground-truth masks. The second is a rectified flow in its code space. Let $z_0$ be the code of the upsampled coarse prediction, $z_1$ the code of the true fine mask, and $z_t = (1-t)z_0 + t z_1$ for $t \in [0,1]$. We train a velocity network $v_\theta$ with
$$ \mathcal{L} = \mathbb{E}_{t}\,\big\| v_\theta(z_t, t, c) - (z_1 - z_0) \big\|^2 , $$
where $c$ is an optional conditioning signal from the full-resolution image.
The central design question is what $c$ should be. We compare three options. The first is no image signal at all. The second is the raw image. The third is a texture-suppressed edge map: local gradient orientation with locally normalized magnitude, which keeps where boundaries are but not how bright or noisy the scanner renders them.
Training pairs must reflect the errors that domain shift actually causes. We therefore generate $z_0$ by running the coarse network on source images corrupted with the acquisition perturbations studied by CompStyle: style jitter, spike artifacts, bias fields, and changes in slice thickness. This follows the logic of ErrorNet, which injects realistic topological errors so that a corrector learns to undo them. ErrorNet does this in 2D retinal images with a deterministic residual predictor. We move to 3D multi-organ volumes and use a generative transport.
Unlike the rigid bounding-box handoff in the 3D coarse-to-fine cascade, the refiner sees the whole coarse label volume. It can therefore redraw an organ that the coarse stage mislocated, instead of refining inside a wrong crop.
The research file also motivates this design in two other ways. Deep Poincaré Map shows that segmentation driven by boundary geometry transfers across scanners: it reaches 0.74 Dice zero-shot from SCD to STACOM, versus 0.66 and 0.51 for earlier transfer methods. However, it works only on 2D slices and needs a seed point. Probabilistic 3D surface reconstruction shows that shape priors can fill in missing through-plane detail, but its prior is linear (PCA). Our learned transport is a nonlinear alternative to that prior.
DetailGen3D itself imposes one constraint. Its refiner cannot produce features smaller than the autoencoder's token size. We therefore report results per organ and treat small structures, such as the adrenal glands and duodenum, as the stress test.
Baselines
Naive reference. An nnU-Net 3D full-resolution model trained on source data and applied unchanged to the target domain. AMOS reports that a standard 3D-UNet reaches 89.04% mDice on its CT test set and drops by more than 20% mDice on unseen MRI scanners (AMOS). Beating this reference only matters if in-domain CT accuracy stays within about one Dice point of it.
Strongest robustness competitor. CompStyle-style fractal mixing plus adversarial style perturbation. We reimplement it inside the same nnU-Net backbone so that the backbone does not confound the comparison. On the prostate transfer from the Medical Decathlon to NCI-ISBI-2013, I2CVB and PROMISE12, CompStyle reports roughly 64–77% Dice where its baselines fell to about 24–29% (CompStyle). Beating it means higher mean target Dice together with a smaller in-domain drop.
Strongest cascade. The nnU-Net cascade and the ResDSN coarse-to-fine cascade. The latter reports 80.56% average DSC on the JHMI pathological pancreas data but still has 0% failure cases (3D coarse-to-fine). Here the key measure is the number of complete failures, not only mean Dice.
We found no reported result on Lacuna for nnU-Net on the AMOS unseen-MRI split or the prostate out-of-domain sets, so we will run these baselines ourselves.
Fairness. Every method gets the same training data, the same backbone, the same total GPU budget, and the same number of hyperparameter trials. Hyperparameters are selected on held-out source scans only. The ablations isolate each ingredient in turn: the coarse network alone (upsampled), the refiner applied to a full-resolution coarse stage, the three conditioning options, and a deterministic 3D mask-refinement U-Net trained on identical corrupted pairs.
Why not just…?
Why not just run nnU-Net with heavier intensity augmentation? This is the default a clinical team would try. The >20% mDice drop reported by AMOS comes from standard pipelines that already use intensity augmentation, which suggests augmentation alone does not close the gap. We include nnU-Net with aggressive augmentation as a baseline. If it matches our result, the proposal fails on its main claim.
Why not just use CompStyle? CompStyle already shows that removing texture helps. Our argument is only that it throws boundary detail away along with texture, and its own authors acknowledge an in-domain penalty (CompStyle). This is a real threat. If CompStyle matches us on target Dice and on in-domain accuracy for small organs, the label-space refiner adds nothing. We also test CompStyle combined with our refiner, since the two may be complementary.
Why not just use a deterministic mask-refinement network, like a 3D ErrorNet? This is the most serious alternative, because the flow's generative machinery may be unnecessary. The deterministic refiner trained on the same corrupted pairs is therefore a core ablation, not an afterthought. We expect the flow to help most where coarse errors have several plausible fixes, such as a missing organ or a merged pair of organs. There, a deterministic regressor tends to average toward a blurred mask. If the deterministic refiner matches the flow, we will report the decoupling as the contribution and recommend the simpler refiner.
Why not just downsample the input and upsample the output? That is exactly our coarse-only ablation. It tests whether the resolution bottleneck alone explains the gains. We expect it to be robust but poor on boundary distance and on small organs.
Proposed Experiments
Main transfer: AMOS CT to MRI. We train on AMOS CT only and on a subset of the eight scanners, then test on the held-out MRI scanners. We report mDice, 95th-percentile Hausdorff distance, surface distance, and per-organ Dice.
Prostate transfer. Following CompStyle, we train on the Medical Decathlon prostate data and test on NCI-ISBI-2013, I2CVB and PROMISE12.
Artifact robustness. Spike artifacts on ACDC test robustness to acquisition artifacts.
Pathological anatomy. On JHMI pathological pancreas, we count 0%-Dice failures to test whether whole-volume refinement recovers from coarse mislocalization.
2D sanity check. SCD to STACOM places us against the Deep Poincaré Map's 0.74 Dice.
Decisive checks. Three results decide whether the idea holds.
- On unseen AMOS MRI scanners, the full method must close a substantial share of the >20-point gap. It must also beat CompStyle-in-nnU-Net while staying within one Dice point of the naive reference on in-domain CT.
- The texture-suppressed edge conditioning must beat raw-image conditioning out of domain but not in domain. This pattern would confirm that the gain comes from keeping texture out of the fine stage.
- The input-resolution sweep must show an interior optimum. A monotone curve would mean the "bottleneck as invariance" story is wrong.
If the flow does not beat the deterministic refiner on multi-hypothesis error cases, we drop the generative component.
References
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation
- Complex Style Image Transformations for Domain Generalization in Medical Images
- DetailGen3D: Generative 3D Geometry Enhancement via Data-Dependent Flow
- nnU-Net: Self-adapting Framework for U-Net-Based Medical Image Segmentation
- ErrorNet: Learning Error Representations from Limited Data to Improve Vascular Segmentation
- A 3D Coarse-to-Fine Framework for Volumetric Medical Image Segmentation
- The Deep Poincaré Map: A Novel Approach for Left Ventricle Segmentation
- Probabilistic 3D Surface Reconstruction from Sparse MRI Information