Did the Neurons Read your Book? Document-level Membership Inference for Large Language Models
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
With large language models (LLMs) poised to become embedded in our daily lives, questions are starting to be raised about the data they learned from. These questions range from potential bias or misinformation LLMs could retain from their training data to questions of copyright and fair use of human-generated text. However, while these questions emerge, developers of the recent state-of-the-art LLMs become increasingly reluctant to disclose details on their training corpus. We here introduce the task of document-level membership inference for real-world LLMs, i.e. inferring whether the LLM has seen a given document during training or not. First, we propose a procedure for the development and evaluation of document-level membership inference for LLMs by leveraging commonly used data sources for training and the model release date. We then propose a practical, black-box method to predict document-level membership and instantiate it on OpenLLaMA-7B with both books and academic papers. We show our methodology to perform very well, reaching an AUC of 0.856 for books and 0.678 for papers. We then show our approach to outperform the sentence-level membership inference attacks used in the privacy literature for the document-level membership task. We further evaluate whether smaller models might be less sensitive to document-level inference and show OpenLLaMA-3B to be approximately as sensitive as OpenLLaMA-7B to our approach. Finally, we consider two mitigation strategies and find the AUC to slowly decrease when only partial documents are considered but to remain fairly high when the model precision is reduced. Taken together, our results show that accurate document-level membership can be inferred for LLMs, increasing the transparency of technology poised to change our lives.
Key facts. Cited by 56 papers in the map (data through 14 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 39 of its 73 references that are in the map. First posted on arXiv 23 Oct 2023.
Builds on
39 of 73 references.
Closest ancestors · 6
Same direction, newest first
- 2023Improved Membership Inference Attacks Against Language Classification Models11 Oct
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
- 2023Analyzing Leakage of Personally Identifiable Information in Language Models1 Feb
- 2021Membership Inference Attacks From First Principles7 Dec
- 2021Membership Inference Attack Susceptibility of Clinical Language Models16 Apr
- 2021Membership Inference Attacks on Machine Learning: A Survey14 Mar
Other references · 33
- 2017Attention Is All You Needcited by 60,361
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2020Scaling Laws for Neural Language Modelscited by 6,586
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2021Zero-Shot Text-to-Image Generationcited by 4,288
- 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
- 2023Mistral 7Bcited by 3,164
21 more
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
- 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
- 2023PaLM 2 Technical Reportcited by 1,162
- 2023BloombergGPT: A Large Language Model for Financecited by 939
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
- 2022Quantifying Memorization Across Neural Language Modelscited by 763
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
- 2023A Watermark for Large Language Modelscited by 725
- 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
- 2023Instruction Tuning for Large Language Models: A Surveycited by 623
- 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
- 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 314
- 2017Knock Knock, Who's There? Membership Inference on Aggregate Location Datacited by 70
- 2023Achilles' Heels: Vulnerable Record Identification in Synthetic Data Publishingcited by 28
- 2023Medical Misinformation in AI-Assisted Self-Diagnosis: Development of a Method (EvalPrompt) for Analyzing Large Language Modelscited by 8
Built on by
Citing papers per year: 2024: 19; 2025: 24; 2026: 13.
56 papers.
Sort:
By area:
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 103
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Modelscited by 69
- 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)cited by 59
- 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Datacited by 50
- 2024Copyright Traps for Large Language Modelscited by 37
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
- 2024Data Extraction Attacks in Retrieval-Augmented Generation via Backdoorscited by 23
- 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Textcited by 18
- 2025Membership Inference Attacks on Large-Scale Models: A Surveycited by 18
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progresscited by 15
- 2024Detecting Training Data of Large Language Models via Expectation Maximizationcited by 13
38 more
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
- 2024The Mosaic Memory of Large Language Modelscited by 10
- 2024LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM statescited by 10
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 10
- 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
- 2024Copyright-Protected Language Generation via Adaptive Model Fusioncited by 7
- 2026Window-based Membership Inference Attacks Against Fine-tuned Large Language Modelscited by 7
- 2025Cascading and Proxy Membership Inference Attackscited by 6
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2024Nob-MIAs: Non-biased Membership Inference Attacks Assessment on Large Language Models with Ex-Post Dataset Constructioncited by 5
- 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarkingcited by 5
- 2024Strong Copyright Protection for Language Models via Adaptive Model Fusioncited by 4
- 2025Unlearning Inversion Attacks for Graph Neural Networkscited by 4
- 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requestscited by 4
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probingcited by 4
- 2024Protecting Copyrighted Material with Unique Identifiers in Large Language Model Trainingcited by 3
- 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakagecited by 3
- 2025Membership Inference Attacks on Tokenizers of Large Language Modelscited by 3
- 2025Quantifying the Privacy Implications of High-Fidelity Synthetic Network Trafficcited by 3
- 2024Many-Shot Regurgitation (MSR) Promptingcited by 2
- 2025Automatic Calibration for Membership Inference Attack on Large Language Modelscited by 2
- 2025A Longitudinal Measurement of Privacy Policy Evolution for Large Language Modelscited by 2
- 2026Causal Evaluation of Membership Inference Attackscited by 2
- 2024PSY: Posterior Sampling Based Privacy Enhancer in Large Language Modelscited by 1
- 2025DIS-CO: Discovering Copyrighted Content in VLMs Training Datacited by 1
- 2025On Membership Inference Attacks in Knowledge Distillationcited by 1
- 2025Impact of Fine-Tuning Methods on Memorization in Large Language Modelscited by 1
- 2025Win-k: Improved Membership Inference Attacks on Small Language Modelscited by 1
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
- 2025Counterfactual Influence as a Distributional Quantitycited by 0
- 2025Privacy Risks in Time Series Forecasting: User- and Record-Level Membership Inferencecited by 0
- 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMscited by 0
- 2025As If We've Met Before: LLMs Exhibit Certainty in Recognizing Seen Filescited by 0
- 2026On the Evidentiary Limits of Membership Inference for Copyright Auditingcited by 0
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systemscited by 0
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Modelscited by 0
- 2026Membership Inference Attacks on Vision-Language-Action Modelscited by 0
- 2026Fast Unlearning at Scale via Margin Self-Correctioncited by 0
50 most cited of 56 All 56 (JSON)
- 2026"Nothing to See Here'': Unintended Disclosure through Revision Traces of LLM Deliverables28 Sep 2026
- 2026Detecting Pretraining Data in Large Language Models from a Free-Energy Perspective18 Sep 2026
- 2026The Privacy-Hallucination Tradeoff in Differentially Private Language Models31 Aug 2026
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Training15 Jul 2026
- 2026Have You Ever Seen Them? Entity-level Membership Inference through Interrogating Large Language Models22 Jun 2026
- 2026Fast Unlearning at Scale via Margin Self-Correction1 Jun 2026
- 2026Subtle Injection for Ground-truth Inference of LLM Training Data18 May 2026
- 2026Membership Inference Attacks on Vision-Language-Action Models8 May 2026
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Models7 May 2026
- 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systems1 May 2026
- 2026Causal Evaluation of Membership Inference Attacks2 Feb 2026
- 2026On the Evidentiary Limits of Membership Inference for Copyright Auditing19 Jan 2026
38 more
- 2026Window-based Membership Inference Attacks Against Fine-tuned Large Language Models6 Jan 2026
- 2025Quantifying the Privacy Implications of High-Fidelity Synthetic Network Traffic25 Nov 2025
- 2025A Longitudinal Measurement of Privacy Policy Evolution for Large Language Models24 Nov 2025
- 2025As If We've Met Before: LLMs Exhibit Certainty in Recognizing Seen Files19 Nov 2025
- 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probing3 Nov 2025
- 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMs31 Oct 2025
- 2025Membership Inference Attacks on Tokenizers of Large Language Models7 Oct 2025
- 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarking3 Oct 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025Privacy Risks in Time Series Forecasting: User- and Record-Level Membership Inference4 Sep 2025
- 2025Win-k: Improved Membership Inference Attacks on Small Language Models2 Aug 2025
- 2025Cascading and Proxy Membership Inference Attacks29 Jul 2025
- 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakage22 Jul 2025
- 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requests15 Jul 2025
- 2025Impact of Fine-Tuning Methods on Memorization in Large Language Models30 Jun 2025
- 2025Counterfactual Influence as a Distributional Quantity25 Jun 2025
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks12 Jun 2025
- 2025Unlearning Inversion Attacks for Graph Neural Networks1 Jun 2025
- 2025On Membership Inference Attacks in Knowledge Distillation17 May 2025
- 2025Automatic Calibration for Membership Inference Attack on Large Language Models6 May 2025
- 2025Membership Inference Attacks on Large-Scale Models: A Survey25 Mar 2025
- 2025DIS-CO: Discovering Copyrighted Content in VLMs Training Data24 Feb 2025
- 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Text19 Feb 2025
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progress4 Feb 2025
- 2024Copyright-Protected Language Generation via Adaptive Model Fusion9 Dec 2024
- 2024LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM states29 Nov 2024
- 2024Data Extraction Attacks in Retrieval-Augmented Generation via Backdoors3 Nov 2024
- 2024PSY: Posterior Sampling Based Privacy Enhancer in Large Language Models24 Oct 2024
- 2024Detecting Training Data of Large Language Models via Expectation Maximization10 Oct 2024
- 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Data29 Sep 2024
- 2024Nob-MIAs: Non-biased Membership Inference Attacks Assessment on Large Language Models with Ex-Post Dataset Construction12 Aug 2024
- 2024Strong Copyright Protection for Language Models via Adaptive Model Fusion29 Jul 2024
- 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generation27 Jun 2024
- 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)25 Jun 2024
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Models23 Jun 2024
- 2024The Mosaic Memory of Large Language Models24 May 2024
- 2024Many-Shot Regurgitation (MSR) Prompting13 May 2024
50 newest of 56 All 56 (JSON)
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Modelscited by 69
- 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)cited by 59
- 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Datacited by 50
- 2024Detecting Training Data of Large Language Models via Expectation Maximizationcited by 13
- 2024LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM statescited by 10
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 10
- 2026Window-based Membership Inference Attacks Against Fine-tuned Large Language Modelscited by 7
- 2025Cascading and Proxy Membership Inference Attackscited by 6
- 2024Nob-MIAs: Non-biased Membership Inference Attacks Assessment on Large Language Models with Ex-Post Dataset Constructioncited by 5
- 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarkingcited by 5
- 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requestscited by 4
12 most cited of 29 All 29 (JSON)
- 2026Have You Ever Seen Them? Entity-level Membership Inference through Interrogating Large Language Models22 Jun 2026
- 2026Fast Unlearning at Scale via Margin Self-Correction1 Jun 2026
- 2026Subtle Injection for Ground-truth Inference of LLM Training Data18 May 2026
- 2026Membership Inference Attacks on Vision-Language-Action Models8 May 2026
- 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Models7 May 2026
- 2026Causal Evaluation of Membership Inference Attacks2 Feb 2026
- 2026On the Evidentiary Limits of Membership Inference for Copyright Auditing19 Jan 2026
- 2026Window-based Membership Inference Attacks Against Fine-tuned Large Language Models6 Jan 2026
- 2025Quantifying the Privacy Implications of High-Fidelity Synthetic Network Traffic25 Nov 2025
- 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMs31 Oct 2025
- 2025Membership Inference Attacks on Tokenizers of Large Language Models7 Oct 2025
- 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarking3 Oct 2025
12 newest of 29 All 29 (JSON)
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 103
- 2024Copyright Traps for Large Language Modelscited by 37
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progresscited by 15
- 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
- 2024The Mosaic Memory of Large Language Modelscited by 10
- 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
- 2024Copyright-Protected Language Generation via Adaptive Model Fusioncited by 7
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
- 2024Strong Copyright Protection for Language Models via Adaptive Model Fusioncited by 4
- 2025Unlearning Inversion Attacks for Graph Neural Networkscited by 4
- 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakagecited by 3
- 2025Impact of Fine-Tuning Methods on Memorization in Large Language Modelscited by 1
12 most cited of 19 All 19 (JSON)
- 2026"Nothing to See Here'': Unintended Disclosure through Revision Traces of LLM Deliverables28 Sep 2026
- 2026Detecting Pretraining Data in Large Language Models from a Free-Energy Perspective18 Sep 2026
- 2026The Privacy-Hallucination Tradeoff in Differentially Private Language Models31 Aug 2026
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Training15 Jul 2026
- 2025As If We've Met Before: LLMs Exhibit Certainty in Recognizing Seen Files19 Nov 2025
- 2025Beyond Data Privacy: New Privacy Risks for Large Language Models16 Sep 2025
- 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systems12 Sep 2025
- 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakage22 Jul 2025
- 2025Impact of Fine-Tuning Methods on Memorization in Large Language Models30 Jun 2025
- 2025Counterfactual Influence as a Distributional Quantity25 Jun 2025
- 2025Unlearning Inversion Attacks for Graph Neural Networks1 Jun 2025
- 2025Position: Adversarial ML for LLMs Is Not Making Any Progress4 Feb 2025
12 newest of 19 All 19 (JSON)
Similar, not cited
Close in wording, no citation either way
- 2026Detecting Data Contamination in Large Language Models
- 2024LLM Dataset Inference: Did you train on my dataset?
- 2026Detecting Non-Membership in LLM Training Data via Rank Correlations
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods
- 2024Self-Comparison for Dataset-Level Membership Inference in Large (Vision-)Language Models
- 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models
- 2026Membership Inference on LLMs in the Wild
- 2024A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models