Synthetic EHR Generators Should Be Audited Like LLMs
Organizations: Departments of Computing and Bioengineering, Imperial College London, UK · Department of Surgery & Cancer, Imperial College London, UK · Chair in Digital Health & Data Science, University of Bayreuth, Germany
Abstract
Synthetic electronic health record (EHR) generation is increasingly adopting large autoregressive models, yet privacy evaluation has not kept pace, relying heavily on similarity-based heuristics and aggregate metrics that can obscure patient-specific memorisation. We argue that these models should additionally undergo LLM-style memorisation audits at the level of individual patient records. We support this position by comparing membership-inference evaluations across four prominent autoregressive EHR generators, highlighting inconsistent evaluation practices in patient representations and attack procedures. We evaluate trajectory reconstruction from partial context and introduce randomly assigned patient-level canaries to distinguish memorised associations from clinical generalisation. We examine these methods in a GPT-2-style model deliberately overfit to 1,000 MIMIC-IV patient trajectories, creating a controlled setting in which memorisation should be readily detectable. The model systematically recovers training patients' canaries, and their trajectory reconstruction approaches perfect accuracy with increasing context. Held-out patients show no systematic canary recovery, while reconstruction remains low and improves only marginally with additional context. These experiments establish a positive-control baseline for further evaluation of these methods in realistically trained models.
Figures & tables
| Model | Dataset | MIA | AIA | MIDR | NNAA |
|---|---|---|---|---|---|
| PromptEHR Wang and Sun (2022) | MIMIC-III | ✓ | ✓ | ✗ | ✗ |
| HALO Theodorou et al. (2023) | MIMIC-III + private | ✓ | ✓ | ✗ | ✓ |
| CEHR-GPT Pang et al. (2024) | Private | ✓ | ✓ | ✓ | ✓ |
| RawMed Cho et al. (2025) | MIMIC-IV + eICU | ✓ | ✗ | ✗ | ✗ |
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Members | Non-members | |
| Patients | 1,000 | 28,560 |
| Canary A : B | 500 : 500 | 14,280 : 14,280 |
| Total tokens | 1,181,581 | 36,188,692 |
| Length, mean sd | 1,182 2,728 | 1,267 3,252 |
| minimum | 9 | 7 |
| 25th percentile | 137 | 127 |
| Architecture | |
|---|---|
| Layers | 6 |
| Attention heads | 12 |
| Embedding dimension | 768 |
| Context window | 2,048 |
| Positional encoding | RoPE ( ) |
| Dropout | 0.1 |
Synthetic Data Evaluation
Synthetic data evaluation measures whether generated examples preserve the properties needed for a stated use, including fidelity, privacy, and utility.
See all 263 papers