Which Modality Should a Rare Diagnosis Learn From?

When a model combines a patient's structured hospital record with a chest X-ray, training tends to lean on whichever input is easiest to learn from. In intensive care that is almost always the record: it is long, dense, and present for every patient. The X-ray is present for only a minority of patients. It gets crowded out, a problem called modality competition. Separately, many diagnoses are rare, and standard training ignores them in favor of common outcomes.

This note argues that these two failures compound in a specific way. A rare diagnosis whose evidence lives mainly in the weaker input, for example a structural cardiac or pulmonary finding visible on imaging, gets hit by both at once. It has too few positive examples to resist the dominant record, and the image that would identify it is often missing. We propose to measure this interaction directly, and then to correct it by deciding, separately for each diagnosis, how much each input's encoder should learn from that diagnosis. For rare diagnoses, that per-diagnosis decision is estimated by borrowing strength from related, more common diagnoses.

Core Claim

Existing fixes for multimodal imbalance operate on one global axis at a time. MultiFair boosts the gradients of whichever encoder lags overall, and also of whichever demographic group lags. DynCIM gates modalities using sample difficulty and global improvement ratios. Improving Multimodal Learning via Imbalanced Learning (ARL) argues the opposite: deliberately weight each modality inversely to its prediction variance rather than balancing them. None of these condition on the class label.

Our claim is that the right amount of modality balance is a property of the diagnosis, not of the dataset. That resolves the apparent contradiction between balancing methods and ARL. Down-weighting chest X-rays is correct for sepsis, where CareBench finds imaging adds nothing. It is wrong for heart failure and COPD, where CareBench finds the fusion gains concentrate.

The new element is to estimate a per-diagnosis modality reliability that is robust when a diagnosis has only a handful of positives. This matters because rare diagnoses are exactly where per-class estimates are noisiest. They are also where existing per-disease mechanisms, such as the auxiliary-classifier attention ranking in DrFuse, become unreliable. We then use that estimate to steer joint training.

We are explicit about what would falsify the premise. If modality suppression in jointly trained models does not grow as diagnoses get rarer, the compound problem does not exist and the method is unnecessary. The first experiment tests that.

Research Program

The work has three parts.

Part 1: build the long-tail evaluation. CareBench evaluates fusion of MIMIC-IV records with MIMIC-CXR images. It uses a Matched Cohort of 7,149 ICU stays with complete data and a realistic Base Cohort of 26,947 stays in which 75% of images are missing. Its phenotypes are relatively common conditions. We extend its label set downward in prevalence by adding diagnosis-code groups from MIMIC-IV, then bucket phenotypes by positive count. Every model receives a binary "an image was ordered" flag. Imaging is ordered when clinicians already suspect deterioration, so the flag is a known shortcut to acuity, and we want gains that do not come from it.

Part 2: the diagnostic study. For a standard jointly trained fusion model, we measure two quantities per phenotype on imaged patients.

The first is the X-ray's standalone reliability: the gain of an X-ray-only model in area under the precision-recall curve (AUPRC) over the phenotype's base rate. We use precision-recall because it reflects performance on rare positives better than ROC curves.

The second is how much the fused model actually uses the image: the drop in AUPRC when the image input is replaced by its missing-value encoding.

The hypothesis is that the gap between "useful" and "used" widens as prevalence falls. To isolate rarity from disease identity, we also run a controlled version. We take heart failure and COPD, the phenotypes CareBench identifies as image-dependent, and subsample their training positives to a sequence of shrinking prevalences, holding everything else fixed.

Part 3: the method. The model has an additive part plus an interaction part. Each modality encoder $m$ produces a per-phenotype logit $g_{c,m}$ for phenotype $c$. A small cross-modal interaction module adds a term $h_c$. During training, the gradient that phenotype $c$'s loss sends into encoder $m$ is multiplied by a weight $w_{c,m}$. These weights are chosen so that each encoder's share of learning for $c$ tracks an estimated reliability $\hat r_{c,m}$, rather than whatever share greedy optimization would produce.

The reliability $\hat r_{c,m}$ is the held-out unimodal AUPRC gain. It is estimated on patients who have both modalities, so that the comparison between modalities is not confounded by who gets imaged. For rare phenotypes it is shrunk toward the average of a related phenotype group, using diagnosis-code chapter or co-occurrence clusters:

$$\hat r_{c,m} = \frac{n_c\, r_{c,m} + \kappa\, \bar r_{G(c),m}}{n_c + \kappa}$$

Here $r_{c,m}$ is the raw per-phenotype estimate, $n_c$ is the number of positive training cases for $c$, $\bar r_{G(c),m}$ is the mean reliability of modality $m$ across phenotype $c$'s group, and $\kappa$ sets how many positives are needed before the phenotype's own estimate dominates. This is the standard empirical-Bayes form: it weights each estimate by its effective sample size.

The class-imbalance side is handled by a logit-adjusted loss, applied identically in all compared models. The contribution is therefore the per-diagnosis routing of gradients across modalities, not a new rare-class loss.

Baselines

Naive reference: EHR-only with a balanced loss. This is an EHR-only Transformer trained with the same logit-adjusted loss. CareBench reports that on the Base Cohort, multimodal models not built for missing data routinely underperform an EHR-only Transformer, so this is a real bar rather than a straw man. Beating it means higher macro-AUPRC in the rare buckets on the Base Cohort, not only on the Matched Cohort.

Strongest existing method: DrFuse. DrFuse separates features shared between record and image from features unique to each. It also learns per-disease attention through auxiliary unimodal classifiers and a ranking loss. It is built for exactly the missing-image regime, and it reports an 8% relative improvement in PRAUC over prior methods on data with missing modalities (DrFuse). On common phenotypes, CareBench reports the best fusion gains raising AUPRC from 0.472 to 0.495 (CareBench). We found no reported result on Lacuna for any method on prevalence-bucketed rare ICU phenotypes, so the rare-bucket numbers will be new.

We run DrFuse through the CareBench toolkit, adding our logit-adjusted loss and the image-ordered flag, with the same encoders and hyperparameter search budget as our method. Beating it means a statistically reliable rare-bucket AUPRC gain across seeds and patient-level bootstrap resamples, without losing ground on the common phenotypes.

Global modality balancing plus class reweighting. These baselines combine a balancing method with logit adjustment: InfoReg (as benchmarked in CareBench), MultiFair-style gradient boosting of the lagging encoder, and ARL-style inverse-variance modulation. They test whether stacking two existing global fixes already does the job.

Ablations isolating the key ingredient. We compare three variants of our method: with raw per-phenotype reliability and no shrinkage; with a single global reliability shared across all phenotypes; and with the interaction term $h_c$ removed.

Why not just…?

Why not just reweight the rare classes in a strong fusion model? Reweighting makes a rare phenotype's loss larger, but that larger gradient still flows mostly through whichever encoder already fits best, which here is the record encoder. Reweighting changes how much the model learns about a rare phenotype, not which input it learns it from. The DrFuse-with-logit-adjustment baseline tests this directly. The controlled subsampling of heart failure and COPD will show whether reweighting alone preserves image usage as positives shrink.

Why not just train separate unimodal models and fit per-diagnosis late-fusion weights, as PheME's ensemble does? This is the most serious threat. Separately trained encoders cannot compete with each other, and per-class stacking lets a rare diagnosis lean on the image. PheME shows ensemble consensus raising sickle-cell ROC AUC from 0.771 to 0.968 in a scarce-positive setting.

We expect stacking to have two weaknesses. First, its per-class weights are themselves fit on very few positives, which is the same noise problem our shrinkage addresses. Second, it cannot learn cross-modal interactions, which is where CareBench locates the heart-failure and COPD gains. We will run stacking with balanced unimodal training and shrinkage-regularized per-class weights. If it matches our method in the rare buckets, we will report that joint training is unnecessary there and that the shrinkage estimator is the real contribution.

Why not just apply ARL, since it already down-weights unreliable modalities? ARL's variance signal is global. In the Base Cohort the X-ray looks unreliable overall, largely because it is so often absent. Global down-weighting would therefore suppress it even for phenotypes where it is the main evidence. The diagnostic study tests this: if ARL's image usage on heart failure and COPD falls below the X-ray-only reliability, that confirms the failure.

Proposed Experiments

The first decisive check is the diagnostic study. We plot the gap between X-ray reliability and X-ray usage against phenotype prevalence, both across the natural long tail and in the controlled subsampling of heart failure and COPD. A flat curve ends the project.

The main comparison reports macro-AUPRC per prevalence bucket on both the Matched and Base cohorts for every baseline. For heart failure and COPD, we also report sensitivity at a fixed alert rate.

A fairness check. CareBench and MultiFair both find that fusion can widen true-positive-rate gaps across racial groups. We check whether per-diagnosis routing narrows or widens those gaps, since the rare-diagnosis positives a model recovers may concentrate in some groups.

A second modality pair. To test whether the effect generalizes beyond record-plus-image, we repeat the study on MIMIC-III with billing codes and clinical notes, over PheME's seven phenotypes, which include low-prevalence sickle cell anemia.

Two controls run throughout. First, removing the image-ordered flag must not erase our gains relative to baselines; if it does, the gains came from the acuity shortcut. Second, the shrinkage ablation must show its largest effect in the rarest bucket. If both hold, the result is a specific, testable statement: rare diagnoses need gradients routed to the input that actually carries their evidence, and that routing can be estimated reliably from related diagnoses.