Drift-Gated Fusion: When Should a Risk Model Trust an Old Chest X-ray?

Hospital risk models increasingly combine two kinds of patient data: the electronic health record (EHR), a dense stream of vitals, labs and codes, and chest X-rays, which are taken only now and then. Adding the images often fails to help and sometimes hurts. A large EHR foundation model lost accuracy when X-rays were added. A benchmark of fourteen fusion methods found that, once realistic gaps in imaging were present, a plain EHR-only model was hard to beat. This proposal tests a specific explanation and a cheap fix. The explanation has two parts. First, fusion models treat an X-ray from yesterday, or from last year, as if it described the patient now. Second, much of the apparent "image" signal comes from the fact that someone ordered an X-ray, not from what the X-ray shows.

The fix is to tag every image with two numbers: how old it is, and how much the patient's EHR state has changed since it was taken. A small learned gate uses these, together with the disease being predicted, to decide how much weight the image gets. The fact that an image was ordered gets its own input, so the model can no longer fold that signal into the pixels. To a colleague, the idea fits in two sentences. Images should be trusted in proportion to how little the patient has changed since they were taken, and measuring that change from the EHR is cheaper and easier to inspect than regenerating a fresh image. Separately, we measure how much of today's "multimodal gain" is really the ordering pattern, because that pattern plausibly drives the fairness gaps reported for fusion models.

Core Claim

The claim is narrow and falsifiable. On MIMIC-IV linked to MIMIC-CXR, the benefit of adding a chest X-ray should shrink as the image gets older. The benefit should shrink faster when the EHR shows large change since acquisition. It should turn negative for an ungated fusion model at large staleness. A gate driven by EHR drift should keep the image's net contribution non-negative across all staleness levels. It should also match or beat image regeneration at a fraction of the cost.

We further claim that a meaningful share of the measured fusion gain under realistic missingness comes from the ordering signal alone. We also claim that separating this signal from the image content changes the demographic sensitivity gaps that fusion introduces.

Where This Sits

Three results motivate the work. Autoregressive EHR Foundation Models with Multimodal Inputs conditions a GPT-style EHR model on notes, ECGs and X-rays through gated cross-attention. Its zero-shot mortality AUROC is 0.8651 with EHR only and 0.8751 with notes added, but it drops to 0.8624 when X-rays are added. The authors attribute the drop to temporal sparsity, but they do not test that explanation. When Does Multimodal Learning Help in Healthcare? (CareBench) shows two things. Fusion helps mainly for conditions whose signal is spread across both modalities, such as heart failure and chronic obstructive pulmonary disease (COPD). In the 26,947-stay cohort where about 75% of stays lack images, an EHR-only Transformer is often hard to beat. CareBench also finds that fusion widens gaps in true positive rate (sensitivity) across racial groups. We treat these three findings as symptoms of a common cause and test that cause directly.

Two methods constrain the design. DDL-CXR names the staleness problem, which it calls asynchronicity. It solves the problem by generating a current latent X-ray with a diffusion model, conditioned on the earlier image and the EHR recorded in between. It reports mortality AUROC of 0.822 against 0.815 for EHR alone, with gains growing as images age. We share its diagnosis but test whether generation is necessary: our method only decides how far to trust the old image. DrFuse does two things. It splits representations into EHR-specific, X-ray-specific and shared parts, and it uses disease-aware attention to down-weight the less useful modality for each phenotype. It reports an 8% relative gain in precision-recall AUC under missing modalities. Its weighting depends on the disease, not on the age or relevance of a particular image. DrFuse also explicitly leaves open the selection bias created by who gets imaged. MedFuse supplies the simplest strong fusion recipe: separate encoders feeding a sequential LSTM. We reuse its encoders.

The longitudinal imaging work supplies the image encoder. BioViL-T splits X-ray features into a static part (the current state) and a temporal part (change since a prior image). Like all methods cited here, it is limited to two time points and uses no EHR. We use its encoder to represent change between consecutive prior images, extending the input to several prior studies per patient. CRONOS shows that "copy the last image" is a strong baseline when anatomy changes slowly: it reaches 8.38 normalized error on longitudinal glioma MRI, against 7.55 for CRONOS. This is the imaging version of our hypothesis that old images are often fine and sometimes badly wrong. The useful question is when.

Structured Evidence Routing is the closest attempt at inspectable longitudinal risk prediction. It uses a multi-agent LLM workflow and reaches 0.88 AUROC on pancreatic cancer in EHRSHOT, against 0.82 for CLMBR, a longitudinal EHR embedding model. It reads no images. We share its goal of evidence a clinician can check, but get there differently. Each image's gate value, together with its age and the EHR change behind it, is a short readable record of why the image was or was not used.

Method

For each prediction time $t$, a patient has up to $K$ prior chest X-rays, acquired at times $\tau_1 < \dots < \tau_K \le t$. These can come from the current stay or from earlier admissions, which MIMIC-CXR links across visits. Each image $i$ is encoded into $z_i$ with the BioViL-T encoder, which uses image $i-1$ as its prior so that $z_i$ carries both state and change features.

The EHR encoder is a Transformer over irregular time series, identical to the CareBench EHR-only baseline. It produces a state vector $h(s)$ from all EHR data up to any time $s$. The drift of image $i$ is $d_i = \lVert h(t) - h(\tau_i) \rVert$, measured in a space normalized during training. The gate is

$$ g_i = \sigma\big(w_k^\top [\log(1+t-\tau_i),\; d_i,\; d_i \log(1+t-\tau_i)] + b_k\big), $$

where $\sigma$ is the logistic function and $w_k, b_k$ are learned separately for each prediction target $k$, such as mortality or one of the 25 phenotypes. The image contribution passed to the fusion head is $\sum_i g_i z_i$, divided by $\sum_i g_i$ plus a small constant so that empty histories are handled.

Ordering information enters through a separate, ungated channel: the count of images and the time since the most recent order. This lets us measure the ordering signal and, if desired, remove it. The prediction head is a small MLP over the EHR state, the gated image summary and the ordering channel.

Training uses the ordinary task loss plus one auxiliary term borrowed in spirit from DDL-CXR. A small head predicts the BioViL-T temporal features of the next real image from $z_i$ and the EHR in between. This forces $h$ to encode the kinds of change that actually show up on X-rays, so that $d_i$ measures radiographically relevant drift rather than arbitrary EHR movement.

Research Program

The program has three parts. The first is a decomposition study that needs no new method. Using CareBench's cohorts and splits, we train four models of identical size. The first sees EHR only. The second adds only the ordering channel. The third adds ordering plus image content with no gate. The fourth adds image content where the pixels are swapped among patients with matching order-time patterns and matching stay length. This permutation keeps the ordering signal intact and destroys the image content.

The gap between the second and third models is the true pixel gain. The gap between the first and second is the ordering gain. We report both overall and separately for the "spread across modalities" conditions and the "localized" conditions that CareBench identifies.

The second part is the gated model, compared against strong fusion methods at equal compute. The third part re-runs CareBench's fairness analysis with and without the ordering channel, to test whether sensitivity gaps move with the ordering signal or with the image content.

Baselines

The naive reference point is the EHR-only Transformer in CareBench's base cohort, the model the benchmark reports as often hardest to beat. Beating it at all under 75% missingness is the minimum requirement. The second reference is last-image carry-forward: the same fusion head given the most recent X-ray with no age information. This is the clinical version of CRONOS's last-context-image baseline.

The strongest staleness-specific competitor is DDL-CXR. Its reported figure is mortality AUROC 0.822 against 0.815 for EHR only, on stays longer than 48 hours (DDL-CXR). We will rerun it from its released configuration on the same cohort and splits, and report wall-clock training and inference time alongside accuracy.

The strongest general missing-modality competitor is DrFuse, which CareBench reports as mitigating the imbalance in how much each modality carries. We use the CareBench implementation. MedFuse is included because it is simple and strong. Its reported partially-paired mortality AUROC of 0.874 and AUPRC of 0.594 (MedFuse) come from its own cohort definition and are not directly comparable, so we report our rerun.

For phenotyping, the reference number is CareBench's best-case fusion AUPRC of 0.495, against 0.472 without fusion. All learned baselines get the same image and EHR encoders where their architecture allows, the same number of hyperparameter trials, and the same early-stopping rule on the same validation split.

Two ablations isolate the key ingredient. One gate uses image age only and drops the drift term. The other uses drift only. Beating the strongest baseline means two things. First, a statistically reliable AUPRC improvement over DrFuse and DDL-CXR, judged by bootstrap confidence intervals over test stays, on the base cohort's phenotypes that are spread across modalities. Second, no loss relative to EHR-only on localized phenotypes such as sepsis.

Why not just…?

Why not just use the EHR-only model? For localized conditions this may be the right answer, and our design allows the gate to close entirely. CareBench's gains for heart failure and COPD show that images carry real signal for some targets. The open question is whether that signal survives once the ordering pattern is separated out, and the pixel-permutation control answers it directly. If true pixel gain is near zero everywhere, the honest conclusion is that X-ray fusion for these ICU tasks mostly encodes clinician suspicion, which would itself be a useful negative result.

Why not just add time-since-image as an input feature? This is the most serious threat. If the age-only ablation matches the drift gate, the contribution reduces to "tell the model how old the image is," and we will say so. We expect drift to matter because the same 24-hour gap means very different things for a stable patient and a deteriorating one. DDL-CXR's finding that carry-forward fails specifically when acute complications develop between images points the same way. The test is to stratify test stays by drift within fixed age bins. If the drift gate's advantage concentrates in high-drift stays, drift matters. If there is no advantage there, age alone suffices.

Why not just regenerate the current image, as DDL-CXR does? Generation may give the highest accuracy. Its costs are diffusion sampling, careful tuning of the noise schedule, and a synthetic image whose fidelity to the patient has not been audited by radiologists. If DDL-CXR beats the drift gate by more than the confidence interval, generation is worth its cost. If the two tie, a scalar gate is far easier to deploy and to explain. The head-to-head comparison at reported compute settles this.

Why not just rely on DrFuse's disease-aware attention? That attention learns which modality to favor for each disease. It cannot tell a fresh image from a stale one for the same disease. Plotting accuracy against image age within a phenotype will show whether DrFuse's gain decays with staleness while the gated model's does not.

Decisive Checks

Three results would settle the proposal. First, a curve of image gain against image age, split by drift tercile, for ungated fusion and for the gated model on the base cohort. The hypothesis predicts that ungated gain goes negative at high age and high drift, while gated gain stays at or above zero. Second, the decomposition table separating ordering gain from pixel gain, which tests whether the reported multimodal gains are mostly about who gets imaged. Third, true positive rate gaps across racial groups with and without the ordering channel. If the gaps that CareBench attributes to fusion shrink when the ordering channel is removed, while pixel-based gain is preserved, that would point to ordering patterns as the source of the fairness gaps.

As a sanity check that the image encoder captures change at all, we confirm the BioViL-T encoder's progression features on MS-CXR-T before relying on them. As an external probe, we test whether a gate learned in the ICU transfers to multi-admission histories, where images are months old. No reported result was found on Lacuna for fusion methods on multi-year imaging gaps in MIMIC, so this part is exploratory.