When medical segmentation models are trained on data pooled from several hospitals, the labels are rarely uniform. One site provides careful masks. Another provides scribbles, which are a few strokes drawn inside each structure. A third provides only the tumor-diameter lines that radiologists record during routine reporting. Each annotator group also has its own boundary habits. A model trained on this mix learns two things it should not: how each hospital's scanner makes images look, and how each hospital's annotators draw. Because the two are tied to the same site, the model can use image appearance to guess which labeling habit to reproduce. On a new hospital it then produces an unpredictable blend of conventions.
We propose to separate these two sources of site dependence explicitly. Each source site gets a small "private" output head whose prediction is added to a shared "general" head. The private head soaks up that site's labeling convention, and only the general head is used on unseen hospitals. To stop the private heads from also learning scanner appearance, we mix low-level feature statistics across sites during training, so a site's labeling convention must be predicted under other sites' appearance. The core claim is that under heterogeneous weak supervision, cross-site performance is limited by the coupling between site appearance and site annotation protocol, not only by appearance shift. Separating labeling convention from appearance inside a multi-task network should recover much of the gap to densely supervised training.
Where this sits in prior work
The output-side decomposition comes from classical feature augmentation. Frustratingly Easy Domain Adaptation copies each feature into a shared slot and a domain-specific slot, so that a regularized linear learner puts consistent behavior in the shared weights and divergent behavior in the private ones. The applications most relevant to us used this split to isolate domain-specific label noise, not just input shift. Collier et al. used it to recover transfer losses across biomedical entity corpora, and Imamura et al. used it to bridge synthetic and real grammatical errors. We reuse that mechanism but move it into a deep segmentation network. We aim it at annotation protocol, and we drop the requirement for target-domain data: at test time the unseen site simply receives no private term. The known drawback of the method, that parameters grow linearly with the number of domains, matters little here. Each private head is a single small convolution, and the number of hospitals is small.
The appearance-side mechanism comes from MixStyle. MixStyle interpolates per-instance channel means and standard deviations between samples in early layers, which creates virtual styles; it reports 83.7% on PACS. It also documents that the same mixing corrupts class semantics in deep layers, which constrains us to apply it only in early blocks. The richer decompositions in XDomainMix and FIXED decide which feature dimensions to swap or interpolate using class-label gradients or invariant-feature extraction under full supervision. With scribbles or diameter lines those signals are noisy, so we deliberately use the label-free statistics mixing.
The closest existing system is MultiMatch. It treats each source domain as a local task with its own normalization layers and classifier, alongside a global task. It accepts pseudo-labels when local and global heads agree, and at test time fuses the global head with the most similar source's local head. It reports 81.57% on PACS and 62.57% on Office-Home with 10 labels per class. MultiMatch's local heads exist to absorb appearance differences in a semi-supervised classification setting where all labels share one convention.
Our private heads have a different job: they absorb label-convention differences. This changes three design choices. First, our private terms are additive residuals penalized toward zero, not independent classifiers. Second, they are trained on style-mixed features so that appearance cannot explain them. Third, they are discarded at test time rather than fused, because fusing a source's labeling habit into a new hospital's predictions is exactly the error we want to avoid.
Two other papers motivate the problem. Hermann et al. show that with few training domains, learning which domain-dependent features matter is underspecified. Their targeted augmentations, such as stain jitter and same-class copy-paste, lift Camelyon17-WILDS out-of-distribution accuracy from 75.3% to 90.5%. They also warn that blanket invariance discards useful domain context. We take that warning seriously. Our method does not force the shared representation to be domain-invariant. It only removes site-specific labeling behavior from the deployed predictor and randomizes low-level appearance. The scribble-supervision work of Can et al. reaches 88.0% Dice on ACDC cardiac MRI and 78.1% on NCI-ISBI prostate, only 2.9 and 4.5 points below full supervision. However, it was evaluated within a single site, and its refinement step relies on site-specific intensity edges. Koh et al. remind us that many generalization methods fail to beat plain pooled training on real shifts, so pooled training is our first baseline, not a straw man.
Core Claim and Method
A shared encoder $h$ produces features from an image $x$ of site $k$. Early encoder blocks apply cross-site statistics mixing, giving a mixed representation $\tilde h(x)$. Site $k$'s prediction and the training loss are
$$ f_k(x) = g(\tilde h(x)) + p_k(\tilde h(x)), \qquad \mathcal{L} = \sum_k \mathcal{L}_{\text{weak},k}\big(f_k(x), y_k\big) + \lambda \sum_k \lVert p_k \rVert^2 . $$
Here $g$ is the general segmentation head, $p_k$ is a lightweight private head for site $k$, $y_k$ is whatever weak label site $k$ provides, and $\lambda$ sets how expensive it is to explain something privately rather than generally. The weak losses depend on label type:
- partial cross-entropy on scribbled pixels;
- a diameter-consistency loss for RECIST-style lines, in which the predicted mask's longest axis should match the recorded diameter;
- standard cross-entropy where dense masks exist.
At test time on an unseen hospital we output $g$ alone. As in Daumé's construction, the penalty pushes everything sites agree on into $g$. The mixing ensures that what remains in $p_k$ cannot be keyed on site appearance, because during training $p_k$ must fit site $k$'s labels while the image carries another site's style.
Research Program
The program has three parts.
A controlled testbed with known conventions. We start from datasets with dense ground truth and impose a different annotation protocol on each source site. Protocols include scribbles generated following Can et al., masks systematically dilated or eroded by a site-specific margin, bounding boxes, and diameter lines. We can then vary how strongly protocol is tied to site, from all sites sharing one protocol to each site having a unique one. The prediction is that our method's advantage over pooled training grows with this coupling and vanishes when protocols are shared. If the advantage does not track coupling, the claimed mechanism is wrong.
Interpretability of the private heads. Because the imposed conventions are known, we can check whether $p_k$ recovers them. For example, a dilated-annotation site's private head should add a boundary ring of roughly the imposed width. A second check is that $p_k$'s output barely changes when an image is re-styled with another site's statistics, which would show it encodes protocol rather than appearance.
A natural-heterogeneity case. We train on DeepLesion CT (Yan et al.), whose labels are routine RECIST diameter lines, together with a densely or scribble-annotated source. We evaluate against the 1,000 manual lesion segmentations used by Agarwal et al.. Since the DeepLesion splits are not multi-institution, this case tests protocol separation rather than unseen-site generalization, and we will report it as such.
Baselines
Naive reference: pooled training. One U-Net is trained on all sites' weak labels with each site's appropriate weak loss, standard spatial and intensity augmentation, and no site heads. This is plain pooled training, which Koh et al. found hard to beat on real shifts.
Pooled training plus appearance randomization. This adds MixStyle in early blocks (Zhou et al.). For cardiac MRI it also adds the heavy intensity and resampling standardization of the UK Biobank cross-site study. This is the strongest competitor on the appearance axis.
Weak-label refinement. This is the CRF-and-uncertainty refinement pipeline of Can et al., applied to pooled data. It attacks label quality directly, without site structure.
MultiMatch-style adaptation. We adapt MultiMatch to segmentation: per-site normalization and independent heads, a global head, and confidence-based fusion at test time. This is the closest multi-task competitor.
All methods share the backbone, data, weak labels, epoch budget, and an equal hyperparameter search budget tuned on held-out source sites only. No target-site data is used for model selection.
Ablations isolating the two ingredients:
- private heads without mixing, where appearance and protocol stay confounded;
- mixing without private heads, which equals the second baseline;
- our model with test-time fusion of the nearest private head instead of the general head alone.
Reference numbers from the file. The dense-label upper reference for cardiac cross-site transfer is the UK Biobank-trained U-Net of the cross-site study, which reports zero-shot mean Dice of 0.90 left ventricle and 0.81 myocardium on ACDC, and 0.89 and 0.83 on BSCMR-AS. For weakly supervised training evaluated on an unseen site, we found no reported result on Lacuna. Beating the baselines therefore means three things on the held-out site:
- a statistically significant Dice gain over the strongest of the four baselines, across three seeds and all leave-one-site-out folds;
- closing at least half the gap between pooled weak training and dense training;
- no loss when protocols are shared across sites, where the method should reduce to pooled training.
Why not just…?
Why not just pool everything and randomize appearance harder? If annotation conventions are similar across sites, this is the right answer. Our coupling sweep includes that regime precisely so the threat is measured rather than argued away. The reason we expect it to fail under coupling is that appearance randomization cannot remove label disagreement. Two sites drawing boundaries 2 mm apart give contradictory targets for the same anatomy, and the pooled model averages them. Hermann et al.'s targeted augmentations act only on inputs and assume a consistent label convention, so they do not address this.
Why not just clean the weak labels first? Refinement such as the CRF pipeline of Can et al. fixes random noise near edges. It cannot fix a systematic convention, such as consistently generous margins, because the refined masks inherit the site's bias. That pipeline also relies on intensity edges that shift across scanners. We run it as a baseline, and we also stack it with our method, since the two are complementary.
Why not just use MultiMatch-style local and global heads? This is the real threat. Its local heads could absorb label conventions too. The differences we test are whether residual heads with a shrinkage penalty, trained under style mixing, keep conventions out of the shared head better than independent heads with separate normalization. We also test whether discarding private heads beats fusing them at test time. If the adapted MultiMatch matches us on every coupling level, then the contribution reduces to "site heads plus mixing," and we would report it that way.
Proposed Experiments
Cardiac MRI. Sites are drawn from UK Biobank, the six-site BSCMR-AS collection, and ACDC. Each training site is assigned a distinct weak protocol at controlled coupling levels. We evaluate leave-one-site-out with dense masks, reporting Dice and 95th-percentile boundary distance for left ventricle, myocardium, and right ventricle.
Prostate MRI. NCI-ISBI 2013, split by acquisition site, gives a second anatomy.
Histopathology. Camelyon17-WILDS provides a five-hospital classification analogue. Hospital-specific label noise is imposed on patch labels. Here the reported targets are 90.5% for targeted augmentations (Hermann et al.) and 80.9% for XDomainMix (Liu et al.), both with clean labels. We expect our method to narrow the noisy-to-clean gap, not to exceed these figures.
Decisive checks. Three results would decide the question:
- the gain over pooled-plus-mixing grows monotonically with protocol–site coupling and is near zero at no coupling;
- private-head outputs recover the imposed per-site margins and are insensitive to style swaps, whereas without mixing they are not;
- general-head-only inference beats nearest-site fusion on unseen sites.
Failing the first check would falsify the central claim.
References
- Frustratingly Easy Domain Adaptation
- The impact of near domain transfer on biomedical named entity recognition
- Grammar Error Correction Using Pseudo-Error Sentences and Domain Adaptation
- Domain Generalization with MixStyle
- Cross-Domain Feature Augmentation for Domain Generalization
- FIXED: Frustratingly Easy Domain Generalization with Mixup
- MultiMatch: Multi-task Learning for Semi-supervised Domain Generalization
- Out-of-Distribution Robustness via Targeted Augmentations
- Learning to Segment Medical Images with Scribble-Supervision Alone
- WILDS: A Benchmark of in-the-Wild Distribution Shifts
- DeepLesion: automated mining of large-scale lesion annotations and universal lesion detection with deep learning
- Weakly Supervised Lesion Co-Segmentation on Ct Scans
- Improving the generalizability of convolutional neural network-based segmentation on CMR images