← Lab /AI/ML

Routine encounter metadata cause high verbatim memorization and diagnosis leakage in medical LM

A medical language model pretrained on 378k clinical notes memorizes patient metadata and can recover sensitive diagnoses with high AUROC

AI/ML arXiv 8 Jun 2026 Measurement Prototype evidence

Published as “Clinically Grounded Privacy Evaluation of Medical LMs”

Why it matters

Even modestly detailed encounter metadata can cause clinically significant privacy leakage, suggesting the need for stricter data handling and privacy-preserving training for medical LMs.

Summary

Routine encounter metadata (name, DOB, visit date, provider, practice) enables a medical LM to verbatim reproduce content from an average of 2.81 patient notes and to recover sensitive diagnoses with AUROC 0.91 for abortion and 0.81 for HIV. Exact-match memorization overstates risk because 36% of memorized tokens are templated rather than patient-specific. Lower-access priors show near-chance diagnosis recovery, indicating the leakage is driven by realistic metadata rather than generic model knowledge.

What they found 2

  1. With only a patient’s name, date of birth, most recent visit date, provider name, and practice location, the model reproduces verbatim content from a mean of 2.81 notes across the patient’s timeline and recovers sensitive diagnoses with AUROC 0.91 for abortion and 0.81 for HIV.

    “With only a patient’s name, date of birth, most recent visit date, provider name, and practice location, the model reproduces verbatim content from a mean of 2.81 notes across the patient’s timeline and recovers sensitive diagnoses with AUROC 0.91 for abortion and 0.81 for HIV.”

  2. Under the ENCOUNTER INFO prior, 36% of memorized tokens are templated rather than clinically revealing.

    “Under this prior, 36% of memorized tokens are templated rather than clinically revealing.”

Caveats 5

  • Exact-match memorization can overstate disclosure because a substantial fraction (36%) of memorized tokens are templated and not patient-specific.
  • When only public demographics are available, diagnosis recovery is near chance (mean AUROC 0.513), showing minimal risk without richer metadata.
  • First, we study identified clinical notes rather than de-identified text.
  • Second, we evaluate the continued-pretrained base model without subsequent post-training.
  • Finally, our results derive from a single model family, corpus, and training recipe.

What’s new here 4

  • Introduces a graded adversarial-access framework that ties privacy evaluation to realistic patient-specific priors.
  • Measures both verbatim token-level memorization and semantic leakage of high-risk diagnoses.
  • Uses a matched train/non-train cohort to attribute leakage to patient inclusion in the training set.
  • Quantifies the inflation of memorization metrics due to templated documentation.