Models that combine tumor slide images with a patient's genetic profile now predict cancer grade and survival better than either data source alone. Most of them, however, are trained and tested on The Cancer Genome Atlas (TCGA), a cancer dataset assembled from dozens of contributing hospitals. Image models trained on TCGA can identify the contributing hospital from staining and scanner artifacts alone. This note proposes a training loss for these fused models that removes the part of each class's spread caused by the hospital that produced the sample, while leaving in place the part caused by real biological differences between tumors.
The setting is low-rank fusion. This is a cheap way to model multiplicative image-times-gene interactions by summing a few products of one-dimensional projections, without building the full outer product of the two feature vectors. In that space, the proposal pulls each class's per-hospital average toward a shared class average. It does not pull every sample toward a single class center. The claim is that this targeted penalty transfers better to hospitals unseen in training than the standard "make each class compact" losses. It should also keep fine biological structure, such as differences in survival among patients with the same tumor grade, that a single-center loss would flatten.
Core Claim and Why It Is Different
Two lines of work set up the problem. The first concerns cross-entropy, the standard classification loss. It stops improving once classes are separable, which leaves same-class features widely scattered, as shown by Taha et al.. Center-style losses fix this by pulling features toward a class centroid, the per-class average feature (Ku; contrastive-center loss of Qi et al.; angular margins in L-Softmax). The closest work, Feature Centroid Contrast Learning (FCCL), applies this pull-push idea in medical imaging. It keeps a running-average centroid for each class, normalizes features to unit length, pulls each embedding toward its class centroid, and pushes it away from the others. This improves transfer to unseen scanners without any target-hospital data. FCCL is image-only, uses one centroid per class, and its authors report that biological shifts such as patient sex remain hard.
The second line is parameter-efficient fusion. LMF reduces the cost of fusing modalities from exponential to linear in their number. PONET shrinks Pathomic Fusion's roughly 175M parameters to about 2.8M. MOAB stacks outer arithmetic operations for glioma grading. None of these constrain how the fused features are arranged geometrically, and none evaluate on hospitals held out from training. Yet Dehkharghanian et al. show that TCGA image features reveal the contributing hospital (70% accuracy for an ImageNet DenseNet; F1 0.86 for KimiaNet on dominant institutions).
The obvious combination is FCCL attached to an LMF head. Our concern is that it suppresses the wrong thing. The spread within a class mixes two sources: hospital artifacts, which should be removed, and biological heterogeneity, which should be kept. That second source includes molecular subtypes and differences in survival within a grade. With $z$ the unit-normalized fused embedding of a sample of class $c$, $\mu_{c,s}$ the centroid of class $c$ among training samples from hospital $s$, $\mu_c$ the overall class centroid, and $\pi_s$ the fraction of class-$c$ samples from hospital $s$, the within-class variance splits exactly into
$$\mathbb{E}\|z-\mu_c\|^2=\sum_s \pi_s\|\mu_{c,s}-\mu_c\|^2+\sum_s \pi_s\,\mathbb{E}_{s}\|z-\mu_{c,s}\|^2 .$$
FCCL-style losses shrink the whole left side. We penalize only the first term on the right, the between-hospital part. A margin-based push away from other classes' centroids keeps the classes separable. The second term, the spread within a hospital, is left to cross-entropy.
Research Program
The mechanism also applies inside the fusion. In LMF, each rank-$r$ component is the product $\langle w_x^{(r)},x\rangle\langle w_y^{(r)},y\rangle$ of an image projection and a gene projection. Hospital artifacts enter mainly through the image projection, and multiplication by the gene projection can amplify them. We therefore apply the between-hospital penalty at two levels. One is the fused embedding. The other is the vector of per-component image scores $\langle w_x^{(r)},x\rangle$, conditioned on class.
The program has three parts. First, we build the method: an LMF head over a ConvNeXt histology encoder and an MLP genomic encoder, matching MOAB's backbones. Class-and-hospital centroids are tracked with running averages. Hospitals with too few samples of a class are merged into an "other" pool, because small groups make centroid estimates noisy. Hospital identity is read from the TCGA tissue-source-site code.
Second, we analyze where hospital information lives. We train linear probes that predict the hospital from each rank component. We then ask how this leakage grows with the rank $R$. Our hypothesis is that higher rank buys accuracy on familiar hospitals at the cost of more hospital leakage, and that the penalty lets a model use higher rank without that leakage. This ties the parameter-explosion question to the robustness question.
Third, we test whether biological structure survives. Pathomic Fusion's glioma cohort carries survival labels as well as grade. We measure how well the embedding ranks survival among patients of the same grade, using the concordance index (c-index). This is structure that a single-centroid loss should erase and our loss should keep.
Baselines
The naive reference is concatenating image and gene features and training with cross-entropy. MOAB and Pathomic Fusion report that this underperforms interaction-based fusion. It tells us how much any interaction modeling buys under hospital shift. Single-modality models on histology alone and genomics alone set the floor and show how much hospital leakage each modality brings.
The strongest published methods on this task are MOAB and Pathomic Fusion. On TCGA glioma grading, MOAB reports F1-micro 0.766 and F1-macro 0.697, against 0.730 F1-micro for Pathomic Fusion (MOAB). These are internal random splits. We found no reported result on Lacuna for any multimodal glioma model on hospital-held-out splits, so we will rerun both under our splits. We will first reproduce MOAB's internal numbers to within noise, which confirms the pipeline before moving to new splits. Plain LMF with cross-entropy is the direct parent of our method.
The decisive ablation is LMF with FCCL's total-variance centroid loss, using identical encoders, normalization, temperature, and push term. It isolates our one change: penalizing between-hospital variance instead of total variance. A second ablation compares the penalty on the fused embedding alone against the penalty on the fused embedding plus the per-component image scores. We also run LMF with a domain-adversarial hospital classifier, which tries to make features uninformative about hospital, because it is the most natural competitor that also uses hospital labels.
For fairness, all methods share encoders, data, and the epoch budget. Each gets the same number of hyperparameter trials, selected on a validation set drawn from training hospitals only, never from held-out ones. We report mean and spread over five seeds and several hospital-held-out folds. Beating the field means two things together: higher macro-F1 on held-out hospitals than both MOAB and LMF+FCCL, beyond seed variance, and a within-grade survival c-index no worse than plain LMF. Higher F1 alone does not count.
Why not just…?
Why not just use FCCL on the fused embedding? This is the main threat. If single-centroid pulling transfers as well and does not hurt within-grade survival ranking, the decomposition is unnecessary. FCCL's own report that biological shifts resist centroid regularization (FCCL) suggests it oversmooths, but that is not proof. The LMF+FCCL ablation, scored on both held-out-hospital F1 and within-grade c-index, settles it. If the two match on both, we drop the claim.
Why not just run domain-adversarial training against hospital labels? Adversarial alignment removes hospital information without regard to class, and it can mix classes together (Xu et al.). FCCL beat DANN and CDAN, two standard domain-adaptation methods, on its benchmarks. That comparison was in a different setting where those methods saw unlabeled target data, so we run the comparison here rather than assume the outcome. Our penalty is a class-conditional matching of first moments. It is simpler and more stable than adversarial training but weaker in principle, because it only matches averages. If adversarial training wins on F1, we will report that.
Why not just stain-normalize the slides and keep plain LMF? Stain normalization addresses color, but Dehkharghanian et al. attribute hospital predictability to scanner and processing signatures as well as stain. We include stain-normalized LMF as a baseline and measure hospital-probe accuracy after normalization. If normalization alone removes the leakage and closes the gap to held-out hospitals, the loss is not needed.
Why not just use full Kronecker fusion? At roughly 175M parameters on 769 patients, it overfits (PONET). We include it only as Pathomic Fusion, without further tuning.
Proposed Experiments
The primary benchmark is TCGA-GBMLGG three-class grading: 769 patients, 1,505 regions of interest, and 80 genomic features. Folds are formed by holding out whole tissue source sites. Secondary metrics are three. The first is the drop from internal to held-out-hospital performance. The second is hospital-probe accuracy on the frozen fused embedding and on each rank component. The third is within-grade survival c-index. The Grade II versus III confusion rate gets separate attention, since MOAB identifies this as the hardest pair.
As a sanity check that our FCCL reimplementation is faithful, we rerun its EyePACS setting. FCCL reports a target score of 0.767, against 0.734 for the baseline, with the metric not named in our file. A secondary replication on TCGA-KIRC survival uses survival risk groups as classes.
The decisive outcome is a joint result on held-out hospitals. Our method should show lower hospital-probe accuracy than LMF+FCCL, a preserved within-grade c-index where LMF+FCCL loses it, and higher held-out macro-F1. If hospital leakage falls but F1 does not improve, then hospital shortcuts were not what limited transfer, and that is itself a reportable finding.
References
- Boosting Standard Classification Architectures Through a Ranking Regularizer
- Face Recognition Based on MTCNN and Convolutional Neural Network
- Contrastive-center loss for deep neural networks
- Large-Margin Softmax Loss for Convolutional Neural Networks
- Contrastive Centroid Supervision Alleviates Domain Shift in Medical Image Classification
- Efficient Low-rank Multimodal Fusion With Modality-Specific Factors
- Deep Biological Pathway Informed Pathology-Genomic Multimodal Survival Prediction
- Pathomic Fusion: An Integrated Framework for Fusing Histopathology and Genomic Features for Cancer Diagnosis and Prognosis
- MOAB: Multi-Modal Outer Arithmetic Block For Fusion Of Histopathological Images And Genetic Data For Brain Tumor Grading
- Biased Data, Biased AI: Deep Networks Predict the Acquisition Site of TCGA Images
- Rethinking Joint Maximum Mean Discrepancy for Visual Domain Adaptation