[Paper Review] P-Transformer: A Prompt-based Multimodal Transformer Architecture For Medical Tabular Data
P-Transformer is a prompt-based multimodal transformer architecture that integrates structured and unstructured medical tabular data—such as clinical notes and coded diagnoses—into a unified semantic space using pre-trained sentence encoders and medical prompts. It achieves state-of-the-art performance on three medical prediction tasks and demonstrates strong robustness to high levels of structured data corruption, outperforming SOTA baselines by 10.9% on RMSE and 11.0% on MAE in key benchmarks.
Medical tabular data, abundant in Electronic Health Records (EHRs), is a valuable resource for diverse medical tasks such as risk prediction. While deep learning approaches, particularly transformer-based models, have shown remarkable performance in tabular data prediction, there are still problems remaining for existing work to be effectively adapted into medical domain, such as ignoring unstructured free-texts and underutilizing the textual information in structured data. To address these issues, we propose PTransformer, a \underline{P}rompt-based multimodal \underline{Transformer} architecture designed specifically for medical tabular data. This framework consists of two critical components: a tabular cell embedding generator and a tabular transformer. The former efficiently encodes diverse modalities from both structured and unstructured tabular data into a harmonized language semantic space with the help of pre-trained sentence encoder and medical prompts. The latter integrates cell representations to generate patient embeddings for various medical tasks. In comprehensive experiments on two real-world datasets for three medical tasks, PTransformer demonstrated the improvements with 10.9%/11.0% on RMSE/MAE, 0.5%/2.2% on RMSE/MAE, and 1.6%/0.8% on BACC/AUROC compared to state-of-the-art (SOTA) baselines in predictability.
Motivation & Objective
- To address the under-utilization of textual information in structured medical tabular data, such as categorical features with clinical descriptors.
- To improve model robustness against data corruption in structured EHR data, which commonly occurs due to inconsistent data entry and system integration issues.
- To integrate unstructured clinical free-texts (e.g., progress notes, diagnoses) with structured data to enhance predictive performance and model resilience.
- To develop a unified, multimodal framework that leverages pre-trained language models and prompt engineering for effective representation learning in medical tabular data.
- To enable more reliable and generalizable predictions in real-world clinical settings where data quality is often compromised.
Proposed method
- A tabular cell embedding generator uses a pre-trained sentence encoder and domain-specific medical prompts to convert diverse data modalities—numerical, categorical, and free-text—into contextualized embeddings in a shared semantic space.
- Medical prompts are hand-crafted, interpretable text templates (e.g., 'The diagnosis is {value}.') that guide the sentence encoder to generate semantically rich representations of tabular cells.
- The framework employs a tabular transformer that aggregates cell-level embeddings into patient-level representations, capturing cross-feature dependencies across heterogeneous modalities.
- The model is trained end-to-end on medical tabular datasets with multi-task objectives, including regression and classification for clinical prediction tasks.
- Data corruption is simulated via random feature corruption at rates of 5%, 10%, 15%, and 20% to evaluate robustness, with performance measured using RMSE, MAE, BACC, and AUROC.
- The use of unstructured clinical text as a compensatory signal enhances model resilience when structured data is corrupted.
Experimental results
Research questions
- RQ1Can prompt-based learning effectively integrate unstructured clinical free-texts with structured tabular data to improve predictive performance in medical AI?
- RQ2How does the inclusion of textual semantics from categorical features (e.g., diagnosis, medication) improve model performance compared to standard embedding or one-hot encoding?
- RQ3To what extent can a multimodal transformer architecture maintain performance under high levels of data corruption in structured EHR fields?
- RQ4Does leveraging pre-trained language models through medical prompts lead to better generalization and robustness in real-world clinical settings?
- RQ5Can the integration of free-text data mitigate the negative impact of corrupted structured data in medical tabular prediction tasks?
Key findings
- P-Transformer achieved a 10.9% relative improvement in RMSE and 11.0% in MAE on the PASA(SD) task compared to the strongest SOTA baseline.
- On the MIMIC-III(LOS) task, the model improved RMSE by 0.5% and MAE by 2.2% over SOTA baselines.
- For the MIMIC-III(Mortality) task, P-Transformer achieved a 1.6% improvement in BACC and 0.8% in AUROC over SOTA models.
- The model demonstrated superior resilience to data corruption, with performance degradation curves increasing more slowly than baselines, especially at high corruption rates (20%).
- The performance gap between P-Transformer and baselines widened on the PASA dataset under corruption, suggesting that free-text data plays a key compensatory role in maintaining model stability.
- TransTab, which also uses free-text data, showed higher resilience than other baselines, reinforcing the hypothesis that unstructured text enhances robustness in the presence of structured data corruption.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.