NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

A Case Study Exploring the Current Landscape of Synthetic Medical Record Generation with Commercial LLMs

Yihan Lin, Zhirong Yu, Simon A. LeeCHIL 2025

TL;DR

This paper investigates the effectiveness of commercial Large Language Models (LLMs) in generating synthetic Electronic Health Records (EHRs). The study finds that while LLMs can produce realistic synthetic data for a limited number of features, they struggle to maintain data fidelity and inter-feature correlations as the dimensionality increases, impacting their generalizability for downstream healthcare tasks.

What Problem Does This Paper Address?

The generation of synthetic Electronic Health Records (EHRs) is a critical area for advancing healthcare AI. Synthetic EHRs offer a way to create privacy-preserving, harmonized datasets that can be used for research and development without compromising patient confidentiality. This is particularly important given the sensitive nature of medical data and the challenges of data sharing. However, a major hurdle in this field is ensuring that synthetic EHRs can reliably generalize across different healthcare institutions, which often have distinct data schemas and patient populations. This paper addresses this challenge by evaluating how well current commercial LLMs can generate synthetic EHRs that maintain realistic distributions and correlations, especially as the complexity (dimensionality) of the data increases.

Methods

The researchers explored four main strategies for generating synthetic EHRs using commercial LLMs:

  • Naive Generation: The LLM is given a sample of real data and asked to generate new records without explicit instructions on schema or constraints. This serves as a baseline.
  • Schema-Constrained Generation: The LLM is provided with explicit instructions about the data types, relationships, and constraints defined by the EHR schema.
  • Conditional Generation: This approach involves sequentially generating features, where each new feature is conditioned on the previously generated ones. This aims to capture dynamic dependencies between features, mimicking real-world clinical relationships (e.g., age influencing heart rate).
  • Group-Based Generation: This strategy involves conditioning the generation process on demographic subgroups (e.g., race, gender). The goal is to ensure that the synthetic data reflects group-specific distributions and medical patterns.

The generated synthetic data was then evaluated using an XGBoost model for a prediction task (ICU mortality). Key metrics used for evaluation included KL Divergence (to measure fidelity to real data distributions), AUC (Area Under the Receiver Operating Characteristic Curve), and AUPRC (Area Under the Precision-Recall Curve) for assessing downstream model performance. Privacy was assessed using Membership Inference Attacks (MIAs).

Datasets

The primary dataset used in this study was the eICU Collaborative Research Database (Pollard et al., 2018). This is a multi-center dataset containing deidentified health data from over 200,000 ICU admissions in the United States between 2014 and 2015. The paper does not introduce any new benchmarks but uses the eICU dataset to evaluate the performance of LLM-generated synthetic data in a real-world healthcare context.

Key Insights and Ideas

  • The "Sweet Spot" for Dimensionality: The study found that LLMs perform best when generating synthetic data for a limited number of features (around 10). Beyond this point, performance degrades significantly. This suggests a critical trade-off between capturing data richness and maintaining model fidelity.
  • High Dimensionality is the Enemy: As the number of features increases (from 10 to 15, 20, and eventually all 83 features), the LLMs struggle to preserve realistic distributions and inter-feature correlations. This leads to "adverse features" that introduce noise and hinder downstream model performance.
  • Conditional and Group-Based Generation Offer Improvements: Both conditional and group-based generation strategies generally outperform the naive approach, showing lower KL divergence and better downstream performance. This highlights the benefit of providing LLMs with more structured guidance.
  • Privacy Trade-off with Dimensionality: While lower-dimensional synthetic datasets offer stronger privacy guarantees against membership inference attacks, higher-dimensional datasets become increasingly vulnerable. This suggests that as LLMs generate more complex data, privacy risks can escalate.
  • Sample Size Matters, but Not Infinitely: Increasing the sample size of synthetic data generally improves performance and fidelity, up to a point. However, the benefits plateau, and the core challenge of high dimensionality remains.

Key Results

  • Performance Degradation with Features: When generating all 83 features, the AUC scores for downstream prediction tasks dropped significantly compared to generating only 10 features. For example, AUC across datasets for 20 features was 0.5335, compared to 0.8133 for 10 features.
  • KL Divergence Increases with Dimensionality: The average KL divergence, a measure of how well synthetic data matches real data distributions, increased substantially as the number of features grew, indicating a loss of fidelity.
  • Group-Based Generation Shows Lower Divergence: The group-based generation strategy consistently yielded lower KL divergence values across different demographic groups compared to the naive approach, suggesting better alignment with underlying distributions.
  • Privacy Preservation in Low Dimensions: For datasets with 5 and 10 features, membership inference attacks showed limited effectiveness, with low AUC values and near-zero membership advantage, indicating strong privacy preservation. This degraded with higher dimensionality.

Limitations and Future Work

Limitations: * Single Prediction Task: The study focused solely on predicting ICU mortality. This limits the generalizability of findings to other healthcare prediction tasks. * Single Dataset: The evaluation was conducted using only the eICU dataset. Findings might differ with other EHR systems or patient populations.

Future Work: * Explore Multiple Prediction Tasks: Investigate synthetic data generation for tasks like sepsis prediction, disease progression modeling, and intervention effectiveness. * Assess Temporal Aspects: Determine if generative models can capture temporal patterns in EHRs, such as trends in lab values and vital signs. * Address High-Dimensionality Challenges: Develop more sophisticated generative models capable of capturing complex, high-dimensional dependencies without compromising data quality or privacy. * Investigate Other EHR Databases: Test findings on datasets like MIMIC-IV or other EHR databases to uncover dataset-specific biases and challenges.

Summary updated

BibTeX
@inproceedings{lin2025case,
  author = {Yihan Lin and Zhirong Yu and Simon A. Lee},
  title = {{A Case Study Exploring the Current Landscape of Synthetic Medical Record Generation with Commercial LLMs}},
  booktitle = {CHIL},
  year = {2025},
  url = {https://openreview.net/forum?id=lFBt1PPFv5},
}
Figure