mlsanityData to 14 Oct 2026

Did the Neurons Read your Book? Document-level Membership Inference for Large Language Models

arXiv 2310.15007 ↗First posted 23 Oct 2023cs.CL cs.CR cs.LGcited by 56

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

  1. 2023Improved Membership Inference Attacks Against Language Classification Models11 Oct
  2. 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
  3. 2023Analyzing Leakage of Personally Identifiable Information in Language Models1 Feb
  4. 2021Membership Inference Attacks From First Principles7 Dec
  5. 2021Membership Inference Attack Susceptibility of Clinical Language Models16 Apr
  6. 2021Membership Inference Attacks on Machine Learning: A Survey14 Mar

Other references · 33

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,863
  4. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,599
  5. 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,372
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  8. 2020Scaling Laws for Neural Language Modelscited by 6,586
  9. 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
  10. 2021Zero-Shot Text-to-Image Generationcited by 4,288
  11. 2022Training a Helpful and Harmless Assistant with Reinforcement Learning from Human Feedbackcited by 3,720
  12. 2023Mistral 7Bcited by 3,164
21 more
  1. 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,411
  2. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,281
  3. 2020Extracting Training Data from Large Language Modelscited by 2,189
  4. 2022BLOOM: A 176B-Parameter Open-Access Multilingual Language Modelcited by 1,984
  5. 2022Solving Quantitative Reasoning Problems with Language Modelscited by 1,392
  6. 2023PaLM 2 Technical Reportcited by 1,162
  7. 2023BloombergGPT: A Large Language Model for Financecited by 939
  8. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 864
  9. 2022Quantifying Memorization Across Neural Language Modelscited by 763
  10. 2019Compressive Transformers for Long-Range Sequence Modellingcited by 726
  11. 2023A Watermark for Large Language Modelscited by 725
  12. 2023Siren's Song in the AI Ocean: A Survey on Hallucination in Large Language Modelscited by 698
  13. 2023Instruction Tuning for Large Language Models: A Surveycited by 623
  14. 2019The Woman Worked as a Babysitter: On Biases in Language Generationcited by 541
  15. 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 460
  16. 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 412
  17. 2021Persistent Anti-Muslim Bias in Large Language Modelscited by 377
  18. 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 314
  19. 2017Knock Knock, Who's There? Membership Inference on Aggregate Location Datacited by 70
  20. 2023Achilles' Heels: Vulnerable Record Identification in Synthetic Data Publishingcited by 28
  21. 2023Medical Misinformation in AI-Assisted Self-Diagnosis: Development of a Method (EvalPrompt) for Analyzing Large Language Modelscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2024: 19; 2025: 24; 2026: 13.

56 papers.

Sort:

By area:

  1. 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
  2. 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 103
  3. 2024Blind Baselines Beat Membership Inference Attacks for Foundation Modelscited by 69
  4. 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)cited by 59
  5. 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Datacited by 50
  6. 2024Copyright Traps for Large Language Modelscited by 37
  7. 2024Generating Is Believing: Membership Inference Attacks against Retrieval-Augmented Generationcited by 25
  8. 2024Data Extraction Attacks in Retrieval-Augmented Generation via Backdoorscited by 23
  9. 2025The Canary's Echo: Auditing Privacy Risks of LLM-Generated Synthetic Textcited by 18
  10. 2025Membership Inference Attacks on Large-Scale Models: A Surveycited by 18
  11. 2025Position: Adversarial ML for LLMs Is Not Making Any Progresscited by 15
  12. 2024Detecting Training Data of Large Language Models via Expectation Maximizationcited by 13
38 more
  1. 2024A Comprehensive Survey of Contamination Detection Methods in Large Language Modelscited by 12
  2. 2024The Mosaic Memory of Large Language Modelscited by 10
  3. 2024LUMIA: Linear probing for Unimodal and MultiModal Membership Inference Attacks leveraging internal LLM statescited by 10
  4. 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attackscited by 10
  5. 2024A Survey on Responsible Generative AI: What to Generate and What Notcited by 8
  6. 2024Copyright-Protected Language Generation via Adaptive Model Fusioncited by 7
  7. 2026Window-based Membership Inference Attacks Against Fine-tuned Large Language Modelscited by 7
  8. 2025Cascading and Proxy Membership Inference Attackscited by 6
  9. 2025Beyond Data Privacy: New Privacy Risks for Large Language Modelscited by 6
  10. 2024Nob-MIAs: Non-biased Membership Inference Attacks Assessment on Large Language Models with Ex-Post Dataset Constructioncited by 5
  11. 2025Leave No TRACE: Black-box Detection of Copyrighted Dataset Usage in Large Language Models via Watermarkingcited by 5
  12. 2024Strong Copyright Protection for Language Models via Adaptive Model Fusioncited by 4
  13. 2025Unlearning Inversion Attacks for Graph Neural Networkscited by 4
  14. 2025What Should LLMs Forget? Quantifying Personal Data in LLMs for Right-to-Be-Forgotten Requestscited by 4
  15. 2025Black-Box Membership Inference Attack for LVLMs via Prior Knowledge-Calibrated Memory Probingcited by 4
  16. 2024Protecting Copyrighted Material with Unique Identifiers in Large Language Model Trainingcited by 3
  17. 2025CompLeak: Deep Learning Model Compression Exacerbates Privacy Leakagecited by 3
  18. 2025Membership Inference Attacks on Tokenizers of Large Language Modelscited by 3
  19. 2025Quantifying the Privacy Implications of High-Fidelity Synthetic Network Trafficcited by 3
  20. 2024Many-Shot Regurgitation (MSR) Promptingcited by 2
  21. 2025Automatic Calibration for Membership Inference Attack on Large Language Modelscited by 2
  22. 2025A Longitudinal Measurement of Privacy Policy Evolution for Large Language Modelscited by 2
  23. 2026Causal Evaluation of Membership Inference Attackscited by 2
  24. 2024PSY: Posterior Sampling Based Privacy Enhancer in Large Language Modelscited by 1
  25. 2025DIS-CO: Discovering Copyrighted Content in VLMs Training Datacited by 1
  26. 2025On Membership Inference Attacks in Knowledge Distillationcited by 1
  27. 2025Impact of Fine-Tuning Methods on Memorization in Large Language Modelscited by 1
  28. 2025Win-k: Improved Membership Inference Attacks on Small Language Modelscited by 1
  29. 2025LLM in the Middle: A Systematic Review of Threats and Mitigations to Real-World LLM-based Systemscited by 1
  30. 2025Counterfactual Influence as a Distributional Quantitycited by 0
  31. 2025Privacy Risks in Time Series Forecasting: User- and Record-Level Membership Inferencecited by 0
  32. 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMscited by 0
  33. 2025As If We've Met Before: LLMs Exhibit Certainty in Recognizing Seen Filescited by 0
  34. 2026On the Evidentiary Limits of Membership Inference for Copyright Auditingcited by 0
  35. 2026E-MIA: Exam-Style Black-Box Membership Inference Attacks against RAG Systemscited by 0
  36. 2026Pop Quiz Attack: Black-box Membership Inference Attacks Against Large Language Modelscited by 0
  37. 2026Membership Inference Attacks on Vision-Language-Action Modelscited by 0
  38. 2026Fast Unlearning at Scale via Margin Self-Correctioncited by 0

50 most cited of 56 All 56 (JSON)

Similar, not cited

Close in wording, no citation either way

  1. 2026Detecting Data Contamination in Large Language Models
  2. 2024LLM Dataset Inference: Did you train on my dataset?
  3. 2026Detecting Non-Membership in LLM Training Data via Rank Correlations
  4. 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods
  5. 2024Self-Comparison for Dataset-Level Membership Inference in Large (Vision-)Language Models
  6. 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models
  7. 2026Membership Inference on LLMs in the Wild
  8. 2024A Statistical and Multi-Perspective Revisiting of the Membership Inference Attack in Large Language Models