When a segmentation model must learn a new structure from a single annotated scan, it learns that one patient's version of the structure: how the target looks on that scanner, with that contrast setting, in that brain. Models that adapt to new classes this way often fail on the next hospital's scans. Few-shot image classification has a well-tested fix called variance transfer. A model with only a few examples of a rare class copies the spread of feature vectors, specifically the covariance, from similar well-represented classes. It then samples synthetic examples from that spread. That fix assumes the rare class has a close cousin among the common ones. Brain lesions such as white matter hyperintensities do not. A lesion is not a variant of gray matter, cerebrospinal fluid, or healthy white matter.
We propose to borrow a different kind of variation. The shape and texture of a lesion share nothing with healthy tissue. The way any tissue's appearance shifts jointly across MRI sequences (T1 versus FLAIR) from one subject or scanner to another is largely a property of the acquisition, so it should be shared across classes. The method has three steps. Estimate this between-subject, cross-sequence covariance from abundant healthy-tissue labels. Use it to perturb the single lesion example inside a cross-attention segmenter, the module where query-scan features look up the annotated support scan. Measure whether this closes the cross-site gap and repairs the overconfidence that Dice-heavy training is known to cause.
Core Claim
Our claim is that, for irregular pathologies, the useful statistic to transfer is the between-subject covariance of tissue means across MRI sequences, pooled over all base tissues. The within-class spread of the semantically nearest base class, which is what Free Lunch for Few-shot Learning: Distribution Calibration and Calibrating Higher-Order Statistics for Few-Shot Class-Incremental Learning with Pre-trained Vision Transformers transfer, is the wrong choice in this setting. Those methods pick donor classes by prototype similarity and borrow their within-class covariance over pooled image vectors. Both choices break down for lesions. The research file records that A Unified Framework for Generalized Low-Shot Medical Image Segmentation With Scarce Data (MRE-Net), which represents each class as several prototype modes plus spatial coordinate priors, explicitly struggles on white matter hyperintensities because they lack anatomical regularity. That is direct evidence that borrowing structure from anatomy fails here. Separately, Deeply supervised network for white matter hyperintensities segmentation with transfer learning reports a Dice drop from 82.3% on the MICCAI WMH challenge data to 75.3% on the independent MACC set even with full supervision and heavy pixel augmentation. This suggests the dominant error is acquisition shift, which is the component we transfer.
Concretely, let $\mu_{c,s} \in \mathbb{R}^D$ be the mean encoder feature of base tissue $c$ in subject $s$. Here $D$ stacks the per-sequence feature channels, so off-diagonal blocks capture how T1 and FLAIR features co-vary. Let $\bar\mu_c$ be its average over subjects. The transferred statistic is
$$\Sigma_{\text{acq}} = \frac{1}{|C|}\sum_{c \in C} \frac{1}{|S|-1}\sum_{s \in S}(\mu_{c,s}-\bar\mu_c)(\mu_{c,s}-\bar\mu_c)^\top,$$
where $C$ is the set of base tissues and $S$ the base subjects. During episodic training and at test time, the lesion support features $f$ (the per-voxel feature vectors of the annotated example) are shifted by a single shared offset $\epsilon \sim \mathcal{N}(0, \lambda\Sigma_{\text{acq}})$. The scalar $\lambda$ is tuned on validation sites. The offset is shared because acquisition shift moves a whole tissue together; it does not jitter voxels independently. This keeps the spatial layout of the support mask intact, which is how we carry variance transfer from pooled vectors to dense maps, an extension the file lists as largely unexplored. To keep the $D \times D$ storage manageable, $\Sigma_{\text{acq}}$ is stored as a low-rank-plus-diagonal factorization.
Research Program
The segmenter follows Few Shot Medical Image Segmentation with Cross Attention Transformer (CAT-Net). That model fuses the support mask into early backbone layers and runs bidirectional masked cross-attention between support and query features. It reports 66.59%, 75.18%, and 79.03% Dice on Abd-CT, Abd-MRI, and Card-MRI. We reuse its structure and change three things.
The first change concerns how sequences enter the network, which is where the early-fusion direction plays its role. Each MRI sequence gets its own shallow stem, so that per-sequence features exist as separate blocks for $\Sigma_{\text{acq}}$ to couple. The streams are then merged early through a gated cross-sequence attention step, in which FLAIR queries T1 and the reverse. The gate follows An Interpretable Framework for Drug-Target Interaction with Gated Cross Attention: the output is a learned mix $g$ of attended context and original features. That work showed such gating keeps a weaker stream from being washed out, improving Davis MSE from 0.438 to 0.393. Our concern is the reverse of the usual intuition. Bright lesion signal lives in FLAIR, while T1 dominates the anatomical structure. Without a gate, the structural T1 stream could swamp the faint lesion boundary. We treat the gate as an ablated component, not a core claim.
The second change is the perturbed support pass. Each episode samples $K$ offsets $\epsilon$, runs $K$ perturbed support passes, and averages the query losses. This is distribution calibration done implicitly inside attention rather than by training a separate classifier on synthetic vectors.
The third change is the loss, where the hybrid-loss direction serves as both training objective and measured outcome. Training uses binary cross-entropy plus Dice, since the file's evidence from Wu et al. and from Spinal Cord Gray Matter-White Matter Segmentation on Magnetic Resonance AMIRA Images with MD-GRU shows that neither term alone handles structures occupying less than 1% of a volume. Dice-weighted training is reported to produce overconfident pixel probabilities. Averaging predictions over plausible acquisition shifts is a principled way to soften that. We therefore test whether variance transfer changes the best cross-entropy-to-Dice weighting, and whether it lowers calibration error at a fixed weighting. The file identifies this optimization question as unstudied.
The analysis has two parts. First, we check the premise directly: for healthy tissues, is the between-subject cross-sequence covariance similar across classes, more similar than the within-class covariances are? We measure this with principal-angle overlap of top eigenvectors. Where WMH labels exist, we also check whether lesion means co-vary across subjects along the same directions. If lesions do not share these directions, the method has no reason to work, and we report that.
Baselines
The naive reference point is CAT-Net-style one-shot segmentation with no variance transfer. All sequences are stacked as input channels, as Horváth et al. did with eight inversion-recovery contrasts. Training uses the same hybrid loss, episode count, and backbone as our method. This measures the plain gap between the annotated support site and an unseen site.
The strongest existing few-shot dense competitor is CAT-Net run with our per-sequence stems and gated attention but without perturbation. It is the closest published support-query cross-attention design for medical few-shot segmentation, and it isolates the transfer component exactly. We also run MRE-Net-style multi-prototype metric segmentation. The research file gives no number for it on WMH, only the authors' stated failure mode, and it provides a non-attention competitor that also models intra-class variation. No reported result found on Lacuna for one-shot or few-shot WMH segmentation by any method. The only WMH figures in the file are fully supervised: 82.3% Dice on MICCAI WMH and 75.3% on MACC from Wu et al. We use these as an upper reference, not as a target to beat.
The key ablations replace $\Sigma_{\text{acq}}$ while keeping everything else fixed: same $K$, the same $\lambda$ search budget per variant, and the same three seeds. The first replacement is the within-class covariance of the cosine-nearest base tissue, in the style of Yang et al. and Goswami et al. The second is isotropic noise with a matched total variance (trace). The third is class-agnostic perturbation of feature means and standard deviations in the spirit of Vicinal Feature Statistics Augmentation for Federated 3D Medical Volume Segmentation (VFDA). VFDA reported 73.16% versus 72.11% for FedNorm and 72.28% with MixUp on FeTS 2021. The fourth is $\Sigma_{\text{acq}}$ with its cross-sequence off-diagonal blocks zeroed. Our method beats the field if it improves held-out-site Dice by more than the seed-to-seed spread over the unperturbed CAT-Net variant, and also beats the trace-matched isotropic and nearest-class variants. Matching the isotropic variant would mean the gain comes from noise magnitude, not from the transferred structure.
Why not just…?
Why not just use stronger intensity and contrast augmentation in pixel space? It is the cheapest option and must be tuned seriously. We search contrast, bias-field, and gamma jitter per sequence with the same budget we give $\lambda$. The available evidence is mixed rather than decisive. Wu et al. used extensive pixel augmentation and still lost seven Dice points across sites, and VFDA's feature-statistics augmentation edged out MixUp on FeTS. Both gaps are modest. Per-sequence pixel jitter changes the sequences independently, while $\Sigma_{\text{acq}}$ encodes how they shift together. If tuned pixel augmentation matches us, the joint structure is not needed. The zeroed-off-diagonal ablation and the augmentation baseline will together settle this.
Why not just borrow from the nearest base class, as distribution calibration already does? Doing so is the obvious way to combine the literature, and it is the hypothesis we argue against. MRE-Net's own failure on irregular lesions, together with Gap 5 in the file, suggests prototype similarity picks a donor that does not share the lesion's variation. If nearest-class borrowing performs as well as ours on WMH, our central claim is wrong. We run it head to head.
Why not just add class-agnostic feature-statistics noise like VFDA, with no covariance at all? This alternative is a real threat, because our own premise says the useful variation is mostly class-agnostic. The difference is that VFDA perturbs each channel's mean and variance independently and estimates the spread from batches, not from labeled tissues. The cross-sequence coupling and the use of tissue labels are what we add. If the VFDA-style variant matches ours, we will report the simpler method as the answer.
Why not just concatenate the sequences at the input instead of gated cross-sequence attention? Channel stacking reached 0.90 Dice on SCGM in Horváth et al. and may well suffice when nothing is degraded. CalibNet and the frame-event tracker of Zhang et al. show gains from attention-based fusion mainly under degraded inputs. We therefore treat stacking as the naive baseline and also test with one sequence artificially degraded. If stacking matches gated attention under clean conditions, we will say so.
Proposed Experiments
The main protocol is leave-one-site-out one-shot segmentation on MICCAI WMH, with T1 and FLAIR from Utrecht, Amsterdam, and Singapore. The annotated support case comes from the training sites and query volumes from the held-out site. We repeat this with 1, 3, and 5 support cases. Base tissue statistics come from MRBrainS18 healthy-tissue labels (gray matter, white matter, cerebrospinal fluid), so the novel class never contributes to $\Sigma_{\text{acq}}$. As a check that we do not harm regular anatomy, we also run the CAT-Net Abd-MRI and Card-MRI protocols with tissue-pooled covariance and compare against CAT-Net's reported 75.18% and 79.03% Dice. These are single-sequence data, so only the within-sequence covariance applies there. Metrics are Dice and 95th-percentile Hausdorff distance, lesion-wise detection rate (small lesions dominate clinical error), and expected calibration error of voxel probabilities. Calibration error is also measured across three cross-entropy-to-Dice weightings.
Two checks decide the outcome. First, held-out-site Dice must favor $\Sigma_{\text{acq}}$ over both the trace-matched isotropic and the nearest-class covariance. Without that, the "borrow acquisition, not anatomy" claim fails regardless of any gain over the unperturbed baseline. Second, the eigenvector-overlap analysis must show that healthy-tissue between-subject directions also explain lesion between-subject variation better than chance. If Dice improves without this overlap, the gain is regularization, not transfer, and we will say so. A secondary result would be calibration error falling at a fixed Dice weighting. That would show variance transfer counteracts Dice-induced overconfidence, which no paper in the file has examined.
References
- Free Lunch for Few-shot Learning: Distribution Calibration
- Calibrating Higher-Order Statistics for Few-Shot Class-Incremental Learning with Pre-trained Vision Transformers
- A Unified Framework for Generalized Low-Shot Medical Image Segmentation with Scarce Data
- Deeply supervised network for white matter hyperintensities segmentation with transfer learning
- Few Shot Medical Image Segmentation with Cross Attention Transformer
- An Interpretable Framework for Drug-Target Interaction with Gated Cross Attention
- Spinal Cord Gray Matter-White Matter Segmentation on Magnetic Resonance AMIRA Images with MD-GRU
- Vicinal Feature Statistics Augmentation for Federated 3D Medical Volume Segmentation