From Structured Data to Clinical Notes: Robust Clinical Decision Support with Fine-Tuned LLMs

Frederike Lübeck, Jonas Bernhard Wildberger, Frederik Träuble, Maximilian Mordig, Sergios Gatidis, Andreas Krause, Bernhard SchölkopfFMSD @ ICML 2025

TL;DR

This paper tackles the critical gap between structured data used for training clinical AI models and the unstructured clinical notes encountered in real-world practice. They demonstrate that fine-tuning Large Language Models (LLMs) on structured patient data allows them to generalize effectively to unstructured clinical notes for cardiovascular disease (CVD) risk prediction, achieving performance comparable to specialized tabular models and showing robustness to missing information.

What Problem Does This Paper Address?

Clinical decision support systems powered by machine learning hold immense promise, but their practical adoption is hampered by a significant data mismatch. Many powerful datasets, like the UK Biobank, are highly structured and consistent, making them ideal for training traditional machine learning models. However, the reality of clinical practice is dominated by unstructured text – doctor's notes, patient histories, etc. This discrepancy means models trained on clean, structured data often fail when deployed in the messy, real-world clinical environment. The core question this paper addresses is: Can we train models on structured data and have them reliably perform on unstructured clinical notes during inference?

Methods

The researchers employed a fine-tuning approach using Large Language Models (LLMs). They started with pre-trained, general-purpose LLMs (specifically, instruction-tuned versions of models like Mistral-7B) and fine-tuned them on structured patient data from the UK Biobank for the task of predicting 10-year cardiovascular disease (CVD) risk.

Key methodological aspects include:

  • Structured Representations: Patient data from UK Biobank was serialized into detailed, text-based descriptions.
  • Unstructured Clinical Notes Generation: Since real-world unstructured clinical note datasets linked to outcomes are scarce, they used LLMs to synthesize a corpus of free-text patient descriptions that mimic clinical notes. This was done by prompting an LLM to generate summaries based on the structured patient features.
  • Parameter-Efficient Fine-Tuning (PEFT): To manage the computational cost of fine-tuning large LLMs, they utilized Low-Rank Adaptation (LoRA). This technique injects lightweight adapter modules into the transformer architecture, updating only a small fraction of the model's parameters.
  • Binary Classification in Token Space: The CVD risk prediction task was framed as a binary classification problem within the LLM's token space, where the model predicts the likelihood of a "Yes" or "No" answer to the question: "Will this patient experience a major cardiovascular event in the next ten years?"

Datasets

  • UK Biobank: This large-scale, longitudinal biomedical database served as the primary source of structured patient data for training and evaluation. The dataset contains detailed health information on over half a million individuals.
  • Synthesized Clinical Notes (UKB-notes): To simulate real-world unstructured clinical notes, the researchers used LLMs to generate a corpus of free-text patient descriptions based on the structured UK Biobank data. This synthesized dataset was used for evaluating the model's performance on unstructured inputs.

Key Insights and Ideas

  • LLMs bridge the structured-unstructured gap: The most significant insight is that LLMs, when fine-tuned on structured data, can effectively generalize to unstructured clinical notes. This suggests LLMs can act as a powerful bridge between curated research datasets and the messy reality of clinical documentation.
  • Robustness to missing data: The fine-tuned LLMs demonstrated greater resilience to incomplete patient records compared to traditional tabular models like LGBM. This is attributed to the LLM's ability to handle missing information implicitly by simply omitting it from the textual description, without requiring explicit imputation.
  • Data efficiency for adaptation: The LLM fine-tuned on structured data showed remarkable data efficiency when adapting to unstructured inputs, requiring significantly fewer examples to reach comparable performance compared to an LLM trained from scratch solely on clinical notes.
  • Competitive performance with specialized models: The LLM-based approach achieved performance on par with specialized tabular machine learning models (like LGBM) in structured data settings, which is impressive given that LGBM is specifically optimized for tabular inputs.

Key Results

  • Structured Data Performance: In an idealized setting with structured data, the fine-tuned LLM achieved performance comparable to state-of-the-art tabular ML models (e.g., LGBM) for CVD risk prediction, with an AUROC of 0.738 when using base risk factors.
  • Unstructured Data Performance: When evaluated on synthesized unstructured clinical notes, the fine-tuned LLM maintained strong predictive accuracy. In a zero-shot setting, it achieved an AUROC of 0.685, which improved to 0.697 with minimal adaptation (just 10 examples).
  • Comparison to Scratch Training: An LLM trained from scratch solely on the synthesized clinical notes required over 100 times more data (>1000 points) to reach comparable performance to the fine-tuned LLM.
  • Robustness: The fine-tuned LLM showed more robust performance when confronted with missing values compared to LGBM.

Limitations and Future Work

  • Geographic Bias: The study used data from a UK-based research cohort, which may not fully represent global demographic or clinical diversity. Therefore, the findings are a methodological proof of concept and not intended for direct clinical use.
  • Synthetic Data: The use of synthetically generated clinical notes is a limitation. While prior work supports their validity, real-world datasets with authentic clinical text are needed for further validation.
  • Future Directions: The authors suggest that this work opens promising avenues for further research, particularly in validating these findings on diverse, real-world clinical datasets and exploring the LLM's ability to handle the inherent complexities and nuances of everyday healthcare documentation.

Summary updated

BibTeX
@inproceedings{lubeck2025from,
  author = {Frederike Lübeck and Jonas Bernhard Wildberger and Frederik Träuble and Maximilian Mordig and Sergios Gatidis and Andreas Krause and Bernhard Schölkopf},
  title = {{From Structured Data to Clinical Notes: Robust Clinical Decision Support with Fine-Tuned LLMs}},
  booktitle = {FMSD @ ICML},
  year = {2025},
  url = {https://openreview.net/forum?id=Wd05qNxADz},
}
Figure