Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?
Not on the map. Why?
Abstract (arXiv)
Large Transformers pretrained over clinical notes from Electronic Health Records (EHR) have afforded substantial gains in performance on predictive clinical tasks. The cost of training such models (and the necessity of data access to do so) coupled with their utility motivates parameter sharing, i.e., the release of pretrained models such as ClinicalBERT. While most efforts have used deidentified EHR, many researchers have access to large sets of sensitive, non-deidentified EHR with which they might train a BERT model (or similar). Would it be safe to release the weights of such a model if they did? In this work, we design a battery of approaches intended to recover Personal Health Information (PHI) from a trained BERT. Specifically, we attempt to recover patient names and conditions with which they are associated. We find that simple probing methods are not able to meaningfully extract sensitive information from BERT trained over the MIMIC-III corpus of EHR. However, more sophisticated "attacks" may succeed in doing so: To facilitate such research, we make our experimental setup and baseline probing models available at https://github.com/elehman16/exposing_patient_data_release
Key facts. Cited by 91 papers in the map (data through 7 Oct 2026). Builds on 20 of its 38 references that are in the map. First posted on arXiv 15 Apr 2021.
Builds on
20 of 38 references.
References · 20
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2013Efficient Estimation of Word Representations in Vector Spacecited by 4,346
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2019Language Models as Knowledge Bases?cited by 1,922
- 2016Understanding intermediate layers using linear classifier probescited by 1,279
- 2019Publicly Available Clinical BERT Embeddingscited by 995
- 2019How Can We Know What Language Models Know?cited by 953
- 2020How Much Knowledge Can You Pack Into the Parameters of a Language Model?cited by 713
- 2019ClinicalBERT: Modeling Clinical Notes and Predicting Hospital Readmissioncited by 487
8 more
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 184
- 2020X-FACTR: Multilingual Factual Knowledge Retrieval from Pretrained Language Modelscited by 117
- 2020Language Models as Knowledge Bases: On Entity Representations, Storage Capacity, and Paraphrased Queriescited by 107
- 2019Inducing Relational Knowledge from BERTcited by 75
- 2020Multi-domain Clinical Natural Language Processing with MedCAT: the Medical Concept Annotation Toolkitcited by 66
- 2018Privacy-Preserving Distributed Deep Learning for Clinical Datacited by 8
- 2018Auditing Data Provenance in Text-Generation Modelscited by 5
Built on by
Citing papers per year: 2021: 2; 2022: 17; 2023: 29; 2024: 20; 2025: 16; 2026: 7.
91 papers.
Sort:
By area:
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 424
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2023Large Language Model Alignment: A Surveycited by 241
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 195
- 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attackscited by 168
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 161
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
38 more
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deploymentcited by 110
- 2023Do We Still Need Clinical Language Models?cited by 97
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2022Federated Unlearning: How to Efficiently Erase a Client in FL?cited by 90
- 2021Pre-trained Language Models in Biomedical Domain: A Systematic Surveycited by 87
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2023Bag of Tricks for Training Data Extraction from Language Modelscited by 67
- 2025Harnessing the Universal Geometry of Embeddingscited by 54
- 2022Are Attribute Inference Attacks Just Imputation?cited by 48
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directionscited by 48
- 2023Event Stream GPT: A Data Pre-processing and Modeling Library for Generative, Pre-trained Transformers over Continuous-time Sequences of Complex Eventscited by 46
- 2022Memorization in NLP Fine-tuning Methodscited by 43
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2024Extracting Prompts by Inverting LLM Outputscited by 40
- 2024LLM-PBE: Assessing Data Privacy in Large Language Modelscited by 38
- 2023Ethicist: Targeted Training Data Extraction Through Loss Smoothed Soft Prompting and Calibrated Confidence Estimationcited by 36
- 2023SoK: Memorization in General-Purpose Large Language Modelscited by 36
- 2023Privacy Implications of Retrieval-Based Language Modelscited by 31
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2023Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarkscited by 29
- 2024Undesirable Memorization in Large Language Models: A Surveycited by 29
- 2022Text Revealer: Private Text Reconstruction via Model Inversion Attacks against Transformerscited by 28
- 2024Data-Centric Foundation Models in Computational Healthcare: A Surveycited by 27
- 2023Quantifying Association Capabilities of Large Language Models and Its Implications on Privacy Leakagecited by 26
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Taskscited by 24
- 2024Generative AI in EU Law: Liability, Privacy, Intellectual Property, and Cybersecuritycited by 21
- 2023Are Chatbots Ready for Privacy-Sensitive Applications? An Investigation into Input Regurgitation and Prompt-Induced Sanitizationcited by 17
- 2023Enhancing Phenotype Recognition in Clinical Notes Using Large Language Models: PhenoBCBERT and PhenoGPTcited by 17
- 2024Semantic Membership Inference Attack against Large Language Modelscited by 17
- 2022Learning to Ask Like a Physiciancited by 16
- 2023Lightweight Transformers for Clinical Natural Language Processingcited by 15
- 2023What can we learn from Data Leakage and Unlearning for Law?cited by 15
- 2023On the Trustworthiness Landscape of State-of-the-art Generative Models: A Survey and Outlookcited by 15
- 2023DarkBERT: A Language Model for the Dark Side of the Internetcited by 13
- 2022You Don't Know My Favorite Color: Preventing Dialogue Representations from Revealing Speakers' Private Personascited by 11
- 2023Synthetic Query Generation for Privacy-Preserving Deep Retrieval Systems using Differentially Private Language Modelscited by 10
- 2023FairSISA: Ensemble Post-Processing to Improve Fairness of Unlearning in LLMscited by 10
50 most cited of 91 All 91 (JSON)
- 2026Surrogate Substitution Preserves PHI Detectability: A Multi-Detector Equivalence Study4 Aug 2026
- 2026A Controlled Audit of Pretraining Contamination in Public Medical Vision-Language Benchmarks8 Jun 2026
- 2026Clinically Grounded Privacy Evaluation of Medical LMs8 Jun 2026
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2026PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systems3 Mar 2026
- 2026Guardrails for trust, safety, and ethical development and deployment of Large Language Models (LLM)16 Jan 2026
- 2025Securing Generative AI in Healthcare: A Zero-Trust Architecture Powered by Confidential Computing on Google Cloud14 Nov 2025
- 2025Leverage Unlearning to Sanitize LLMs24 Oct 2025
- 2025On the Impossibility of Retrain Equivalence in Machine Unlearning18 Oct 2025
- 2025An Investigation of Memorization Risk in Healthcare Foundation Models14 Oct 2025
- 2025The Model's Language Matters: A Comparative Privacy Analysis of LLMs9 Oct 2025
38 more
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language models25 Sep 2025
- 2025DeepResearch Arena: The First Exam of LLMs' Research Abilities via Seminar-Grounded Tasks1 Sep 2025
- 2025Transforming Sensitive Documents into Quantitative Data: An AI-Based Preprocessing Toolchain for Structured and Privacy-Conscious Analysis11 Jul 2025
- 2025Rethinking the Privacy of Text Embeddings: A Reproducibility Study of "Text Embeddings Reveal (Almost) As Much As Text"10 Jul 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025
- 2025Harnessing the Universal Geometry of Embeddings18 May 2025
- 2025DMRL: Data- and Model-aware Reward Learning for Data Extraction7 May 2025
- 2025A Comprehensive Survey in LLM(-Agent) Full Stack Safety: Data, Training and Deployment22 Apr 2025
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Training21 Feb 2025
- 2025Mitigating Unintended Memorization with LoRA in Federated Learning for LLMs7 Feb 2025
- 2025Towards the Anonymization of the Language Modeling5 Jan 2025
- 2024How Private are Language Models in Abstractive Summarization?16 Dec 2024
- 2024On Active Privacy Auditing in Supervised Fine-tuning for White-Box Language Models11 Nov 2024
- 2024Unlearning in- vs. out-of-distribution data in LLMs under gradient-based method7 Nov 2024
- 2024Undesirable Memorization in Large Language Models: A Survey3 Oct 2024
- 2024Trustworthy AI: Securing Sensitive Data in Large Language Models26 Sep 2024
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2024SoK: Security and Privacy Risks of Healthcare AI11 Sep 2024
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Action29 Aug 2024
- 2024LLM-PBE: Assessing Data Privacy in Large Language Models23 Aug 2024
- 2024AspirinSum: an Aspect-based utility-preserved de-identification Summarization framework20 Jun 2024
- 2024Semantic Membership Inference Attack against Large Language Models14 Jun 2024
- 2024Extracting Prompts by Inverting LLM Outputs23 May 2024
- 2024Quantifying Memorization and Detecting Training Data of Pre-trained Language Models using Japanese Newspaper26 Apr 2024
- 2024A Survey on Responsible Generative AI: What to Generate and What Not8 Apr 2024
- 2024Exploring the Privacy Protection Capabilities of Chinese Large Language Models27 Mar 2024
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Memberships19 Feb 2024
- 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb 2024
- 2024Do LLMs Dream of Ontologies?26 Jan 2024
- 2024Generative AI in EU Law: Liability, Privacy, Intellectual Property, and Cybersecurity14 Jan 2024
- 2024Data-Centric Foundation Models in Computational Healthcare: A Survey4 Jan 2024
- 2023FairSISA: Ensemble Post-Processing to Improve Fairness of Unlearning in LLMs12 Dec 2023
- 2023Do Localization Methods Actually Localize Memorized Data in LLMs? A Tale of Two Benchmarks15 Nov 2023
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden State8 Nov 2023
- 2023SoK: Memorization in General-Purpose Large Language Models24 Oct 2023
- 2023Privacy in Large Language Models: Attacks, Defenses and Future Directions16 Oct 2023
- 2023Text Embeddings Reveal (Almost) As Much As Text10 Oct 2023
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethics9 Oct 2023
50 newest of 91 All 91 (JSON)
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Modelscited by 424
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attackscited by 168
- 2022Federated Unlearning: How to Efficiently Erase a Client in FL?cited by 90
- 2024Semantic Membership Inference Attack against Large Language Modelscited by 17
- 2023What can we learn from Data Leakage and Unlearning for Law?cited by 15
- 2023FairSISA: Ensemble Post-Processing to Improve Fairness of Unlearning in LLMscited by 10
- 2025On the Impossibility of Retrain Equivalence in Machine Unlearningcited by 6
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!cited by 5
- 2024Unlearning in- vs. out-of-distribution data in LLMs under gradient-based methodcited by 4
- 2025Leverage Unlearning to Sanitize LLMscited by 1
12 most cited of 14 All 14 (JSON)
- 2026Secret Stealing Attacks on Local LLM Fine-Tuning through Supply-Chain Model Code Backdoors30 Apr 2026
- 2025Leverage Unlearning to Sanitize LLMs24 Oct 2025
- 2025On the Impossibility of Retrain Equivalence in Machine Unlearning18 Oct 2025
- 2025Be Careful When Fine-tuning On Open-Source LLMs: Your Fine-tuning Data Could Be Secretly Stolen!21 May 2025
- 2024Unlearning in- vs. out-of-distribution data in LLMs under gradient-based method7 Nov 2024
- 2024Semantic Membership Inference Attack against Large Language Models14 Jun 2024
- 2024Amplifying Training Data Exposure through Fine-Tuning with Pseudo-Labeled Memberships19 Feb 2024
- 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb 2024
- 2023FairSISA: Ensemble Post-Processing to Improve Fairness of Unlearning in LLMs12 Dec 2023
- 2023What can we learn from Data Leakage and Unlearning for Law?19 Jul 2023
- 2023Analyzing Leakage of Personally Identifiable Information in Language Models1 Feb 2023
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Models4 Oct 2022
12 newest of 14 All 14 (JSON)
- 2023Large Language Model Alignment: A Surveycited by 241
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Surveycited by 86
- 2025DMRL: Data- and Model-aware Reward Learning for Data Extractioncited by 0
- 2026PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systemscited by 0
- 2026PrivMedChat: End-to-End Differentially Private RLHF for Medical Dialogue Systems3 Mar 2026
- 2025DMRL: Data- and Model-aware Reward Learning for Data Extraction7 May 2025
- 2024Harmful Fine-tuning Attacks and Defenses for Large Language Models: A Survey26 Sep 2024
- 2023Large Language Model Alignment: A Survey26 Sep 2023
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2022Are Large Pre-Trained Language Models Leaking Your Personal Information?cited by 195
- 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
- 2023Text Embeddings Reveal (Almost) As Much As Textcited by 189
- 2023A Survey of Large Language Models for Healthcare: from Data, Technology, and Applications to Accountability and Ethicscited by 162
- 2024PrivacyLens: Evaluating Privacy Norm Awareness of Language Models in Actioncited by 161
- 2023Future Lens: Anticipating Subsequent Tokens from a Single Hidden Statecited by 116
- 2023Do We Still Need Clinical Language Models?cited by 97
- 2023Language Model Behavior: A Comprehensive Surveycited by 92
- 2021Pre-trained Language Models in Biomedical Domain: A Systematic Surveycited by 87
- 2022Language Generation Models Can Cause Harm: So What Can We Do About It? An Actionable Surveycited by 80
- 2023Bag of Tricks for Training Data Extraction from Language Modelscited by 67
12 most cited of 69 All 69 (JSON)
- 2026Surrogate Substitution Preserves PHI Detectability: A Multi-Detector Equivalence Study4 Aug 2026
- 2026Clinically Grounded Privacy Evaluation of Medical LMs8 Jun 2026
- 2026What Does the Server See? Understanding Privacy Leakage from Large Language Models in Split Inference22 May 2026
- 2026Guardrails for trust, safety, and ethical development and deployment of Large Language Models (LLM)16 Jan 2026
- 2025Securing Generative AI in Healthcare: A Zero-Trust Architecture Powered by Confidential Computing on Google Cloud14 Nov 2025
- 2025An Investigation of Memorization Risk in Healthcare Foundation Models14 Oct 2025
- 2025The Model's Language Matters: A Comparative Privacy Analysis of LLMs9 Oct 2025
- 2025GEP: A GCG-Based method for extracting personally identifiable information from chatbots built on small language models25 Sep 2025
- 2025Transforming Sensitive Documents into Quantitative Data: An AI-Based Preprocessing Toolchain for Structured and Privacy-Conscious Analysis11 Jul 2025
- 2025Rethinking the Privacy of Text Embeddings: A Reproducibility Study of "Text Embeddings Reveal (Almost) As Much As Text"10 Jul 2025
- 2025Harnessing the Universal Geometry of Embeddings18 May 2025
- 2025Privacy Ripple Effects from Adding or Removing Personal Information in Language Model Training21 Feb 2025
12 newest of 69 All 69 (JSON)