arXiv:2610.13510cs.AIOct 2026

Manuscript Offprint

arXiv:2610.13510

Retrieval-Augmented Multimodal Language Model with Heterogeneous Evidence Integration for Clinical Prognosis

Hamza Shafiq, Jialu Tang, Ting Dang, Jun Hu, Aaqib Saeed

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Hamza Shafiq

Eindhoven University of Technology

m.h.shafiq@tue.nl

Jialu Tang

Eindhoven University of Technology

j.tang@tue.nl

Ting Dang

University of Melbourne

Ting.Dang@unimelb.edu.au

Jun Hu

Eindhoven University of Technology

j.hu@tue.nl

Aaqib Saeed

Eindhoven University of Technology

a.saeed@tue.nl

Abstract

Clinical prognosis requires integrating heterogeneous evidence from structured measurements, physiological waveforms, longitudinal history, and population context. Multimodal language models provide a natural framework for this integration, but standard approaches often serialize structured measurements as text, treat encounters independently, and lack a mechanism for incorporating representations of clinically similar patients. We introduce PRISM (Population-Retrieved Inference for Structured Multimodal Prognosis), which represents heterogeneous evidence through per-feature numerical tokenization, recency-weighted aggregation of longitudinal ECGs, and a dual-modality population memory bank. Retrieval operates in representation space: the model receives mean-pooled embeddings of nearest training-cohort encounters, while no individual retrieved record enters the prompt. On the 1,443-task MDS-ED benchmark (MIMIC-IV), PRISM attains the strongest reported figures across all four task groups: 86.2% Diagnosis, 93.1% Deterioration, 91.8% ICU admission, and 92.8% Mortality AUROC. These figures use a 96-hour pre-arrival window that the reported baselines did not receive. Under the benchmark input window alone, PRISM reaches 0.8895 AUROC, compared with 0.8937 for UniPACT and 0.8889 for MDS-ED. A matched-input compact fusion model receiving the same five evidence streams and frozen upstream encoders reaches 0.7652 AUROC, compared with 0.9092 for PRISM. Ablations show that replacing the numerical EHR pathway with full text serialization reduces AUROC by 3.66 points, removing the additional 96-hour pre-arrival history reduces it by 1.97 points, and zeroing retrieval reduces it by 0.99 points. Random-neighbor controls show a 0.97-point macro-average advantage for genuine retrieval; however, a paired task-level sign test does not establish a uniform task-level advantage (p = 0.067). On the external MC-MED cohort, supervised fine-tuning yields 0.8611 overall AUROC, compared with 0.8227 for locally trained gradient boosting and 0.7841 for source-only PRISM. These findings support heterogeneous evidence integration and supervised external adaptation.

1 Introduction

Clinical prognosis requires integrating multiple sources of patient information. Predicting whether a patient will deteriorate, require intensive care, or die in hospital demands the simultaneous interpretation of contin-uous physiological waveforms, dense panels of laboratory analytes and vital signs, longitudinal acquisition histories, and the implicit epidemiological priors that experienced clinicians carry from thousands of prior cases (Smith et al., 2013; Raghunath et al., 2020). Large language models have emerged as a compelling backbone for this integration: their capacity for cross-modal attention over heterogeneous token sequences offers, in principle, a unified substrate for fusing structured and unstructured clinical data into coherent prognostic judgments (Singhal et al., 2023). In practice, however, current multimodal clinical LLMs leave substantial predictive signal unrecovered due to three structural limitations in how they represent, contextualize, and reason over clinical evidence.

The most immediate of these concerns how structured clinical data enters the model. Systems that fuse waveform encoders with language model backbones (Liu et al., 2023; Li et al., 2023; Tang et al., 2026; Pham et al., 2025) typically rely on textualization: laboratory values, vital signs, and demographics are serialized into natural-language strings and consumed through the tokenizer. This conversion does not explicitly preserve the ordinal and ratio-scale structure of numerical measurements at the input boundary. A troponin of 0.11 ng/mL and a troponin of 0.01 ng/mL become sequences of subword tokens whose clinical distance is opaque to the embedding layer (Gorishniy et al., 2021). Analytes such as troponin, lactate, and creatinine, among the strongest independent predictors of acute deterioration and in-hospital mortality (Ahmed et al., 2014; Kruse et al., 2011), are either collapsed into coarse text summaries or discarded entirely. The resulting token sequence therefore carries the values without an explicit encoding of their numerical geometry.

A related limitation concerns the temporal dimension. Serial changes in a patient's ECG carry independent prognostic information beyond any single acquisition (Lehmacher et al., 2020): a new ST deviation against a previously normal baseline has different clinical meaning than the same morphology in a patient with chronic abnormalities. Yet current multimodal systems encode only the index-visit waveform (Tang et al., 2026; Zhao et al., 2025; Pham et al., 2025), treating each encounter as if it were the patient's first and forfeiting the prognostic signal embedded in longitudinal change. This is a particularly costly omission given that ECG foundation models have shown that waveform representations encode risk information well beyond traditional diagnostic categories (Raghunath et al., 2020; Li et al., 2025; Tsai et al., 2023).

Finally, a language model without an explicit retrieval mechanism cannot consult representations of similar patients in the target population. Such representations may provide useful context beyond the current encounter. Retrieval-augmented generation has proven effective for grounding language models in external text corpora (Lewis et al., 2020) and has been applied to clinical NLP with knowledge graphs (Zhu et al., 2024). We study retrieval from structured patient populations, where the retrieved evidence consists of learned encounter representations.

We introduce PRISM (Population-Retrieved Inference for Structured Multimodal Prognosis) 1^{1}, a multimodal architecture that supplies a language model with population-level context while representing structured clinical measurements explicitly. Rather than treating the language model as a self-contained reasoner that must absorb all clinical context through its tokenizer, PRISM equips it with three external capacities: a dense numerical encoder that represents every clinical feature as an individual learned token, a temporal aggregation mechanism that distills longitudinal waveform history into a compact representation under exponential recency weighting, and a population retrieval module that supplies representations of historically similar patients as non-parametric context. Each capacity is realized through a dedicated component: an FT-Transformer (Gorishniy et al., 2021) for structured EHR encoding, an exponential recency-weighting module for ECG history aggregation, and a dual-modality population memory bank over ECG and EHR embeddings. Their outputs are projected as soft tokens into a shared sequence consumed by a medical language model (i.e., MedGemma (Sellergren et al., 2025)) fine-tuned with low-rank adaptation (Hu et al., 2022), and a single trained model answers all 1,443 task questions, each in its own forward pass, without task-specific output heads. The mechanisms we build on are established individually, and per-feature numerical encoding in particular is standard practice in tabular and relational deep learning (Gorishniy et al., 2021). What we contribute is their composition into a single tokenized interface over heterogeneous clinical evidence, together with an empirical account of how performance changes as individual evidence streams are removed or replaced across task groups.

1^{1}Code: https://github.com/hamzashafiq28/PRISM.

We evaluate PRISM on the MDS-ED benchmark (Lopez Alcaraz et al., 2025), the most comprehensive multimodal clinical prognosis benchmark available, comprising 1,443 binary prediction tasks over raw 12-lead ECG waveforms and 470 structured clinical variables from MIMIC-IV (Johnson et al., 2023). PRISM attains the strongest reported figures across all four task groups: 86.24% on Diagnosis (1,428 ICD-10 tasks), 93.12% on Deterioration (6 tasks), 91.79% on ICU admission (2 tasks), and 92.82% on Mortality (7 tasks). Counting tasks whose lower 95% confidence bound exceeds an AUROC of 0.80, the criterion used by UniPACT, PRISM qualifies on 1,145 of 1,443 tasks (79.3%) against 883 for UniPACT (61.2%) and 623 for MDS-ED (43.2%), gains of 262 and 522 tasks respectively. Controlled ablations quantify the corresponding changes: full text serialization in place of the numerical EHR pathway is -3.66 AUROC points, removing the pre-arrival window -1.97, removing the current ECG -1.61, removing longitudinal history -1.22, and zeroing retrieval -0.99. We additionally evaluate external transfer and supervised adaptation on MC-MED (Kansal et al., 2025), with controlled locally trained baselines. Fine-tuned PRISM has the highest overall point estimate in this external comparison, and supplementary temporal validation compares PRISM with compact fusion baselines and retrieval controls. Our principal contributions are:

  • We propose PRISM, a multimodal architecture for clinical prognosis that unifies dense numerical encoding of structured clinical records, temporal aggregation of longitudinal waveform history, and population-level retrieval-augmented generation within a single language model reasoning framework. Against a 5.9M-parameter fusion model receiving the same five input streams and frozen encoders, PRISM improves AUROC by 14.40 points, and by 13.33 points against the strongest compact three-stream configuration. These gains compare complete model configurations under the controls described in Section 4.5.

  • We show that replacing the compact numerical soft-token pathway with full text serialization of the same structured record reduces AUROC by 3.66 points, with the largest differences on diagnosis tasks that depend strongly on continuous-valued laboratory measurements.

  • We introduce a temporal history aggregator that pools prior-visit ECG embeddings under exponential recency weighting. On the 122 encounters where pooling is operative, the learned rule has the highest point estimate among the tested alternatives: +0.67 AUROC points over the best fixed decay, +1.10 over uniform averaging, and up to +2.33 over single-acquisition selection.

  • We extend retrieval-augmented generation from text corpora to empirical patient populations by indexing per-encounter ECG and EHR embeddings and injecting mean-pooled neighbor representations as additional soft-token context. Retrieval operates entirely in representation space, so the model gains population context while no individual retrieved record enters the prompt.

References (35)