Adaptive Pre-training Data Detection for Large Language Models via Surprising Tokens
Not on the map. Why?
Abstract (arXiv)
While large language models (LLMs) are extensively used, there are raising concerns regarding privacy, security, and copyright due to their opaque training data, which brings the problem of detecting pre-training data on the table. Current solutions to this problem leverage techniques explored in machine learning privacy such as Membership Inference Attacks (MIAs), which heavily depend on LLMs' capability of verbatim memorization. However, this reliance presents challenges, especially given the vast amount of training data and the restricted number of effective training epochs. In this paper, we propose an adaptive pre-training data detection method which alleviates this reliance and effectively amplify the identification. Our method adaptively locates textitsurprising tokens of the input. A token is surprising to a LLM if the prediction on the token is "certain but wrong", which refers to low Shannon entropy of the probability distribution and low probability of the ground truth token at the same time. By using the prediction probability of surprising tokens to measure textitsurprising, the detection method is achieved based on the simple hypothesis that seeing seen data is less surprising for the model compared with seeing unseen data. The method can be applied without any access to the the pre-training data corpus or additional training like reference models. Our approach exhibits a consistent enhancement compared to existing methods in diverse experiments conducted on various benchmarks and models, achieving a maximum improvement of 29.5%. We also introduce a new benchmark Dolma-Book developed upon a novel framework, which employs book data collected both before and after model training to provide further evaluation.
Key facts. Cited by 10 papers in the map (data through 7 Oct 2026). Builds on 38 of its 46 references that are in the map. First posted on arXiv 30 Jul 2024.
Builds on
38 of 46 references.
References · 38
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2023GPT-4 Technical Reportcited by 18,132
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2022LaMDA: Language Models for Dialog Applicationscited by 1,218
- 2021Membership Inference Attacks From First Principlescited by 839
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2023A Watermark for Large Language Modelscited by 667
- 2024OLMo: Accelerating the Science of Language Modelscited by 599
- 2021Documenting Large Webtext Corpora: A Case Study on the Colossal Clean Crawled Corpuscited by 481
26 more
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
- 2023A Survey on Large Language Model (LLM) Security and Privacy: The Good, the Bad, and the Uglycited by 380
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2020Label-Only Membership Inference Attackscited by 371
- 2023Multi-step Jailbreaking Privacy Attacks on ChatGPTcited by 320
- 2023Visual Adversarial Examples Jailbreak Aligned Large Language Modelscited by 307
- 2021Membership Inference Attacks on Machine Learning: A Surveycited by 306
- 2023Analyzing Leakage of Personally Identifiable Information in Language Modelscited by 278
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 249
- 2022Data Contamination: From Memorization to Exploitationcited by 234
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 227
- 2022Memorization Without Overfitting: Analyzing the Training Dynamics of Large Language Modelscited by 218
- 2022What Does it Mean for a Language Model to Preserve Privacy?cited by 194
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 188
- 2023Time Travel in LLMs: Tracing Data Contamination in Large Language Modelscited by 175
- 2022Quantifying Privacy Risks of Masked Language Models Using Membership Inference Attackscited by 168
- 2021On the Importance of Difficulty Calibration in Membership Inference Attackscited by 137
- 2023ProPILE: Probing Privacy Leakage in Large Language Modelscited by 127
- 2023Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4cited by 123
- 2022Pretrained Language Models for Text Generation: A Surveycited by 121
- 2023On Provable Copyright Protection for Generative Modelscited by 97
- 2022Language Contamination Helps Explain the Cross-lingual Capabilities of English Pretrained Modelscited by 90
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 76
- 2023Free-Bloom: Zero-Shot Text-to-Video Generator with LLM Director and LDM Animatorcited by 74
- 2023FlexKBQA: A Flexible LLM-Powered Framework for Few-Shot Knowledge Base Question Answeringcited by 51
- 2023How to Protect Copyright Data in Optimization of Large Language Models?cited by 26
Built on by
Citing papers per year: 2025: 5; 2026: 5.
10 papers.
- 2025Privacy Attacks on Image AutoRegressive Modelscited by 15
- 2025Towards Lifecycle Unlearning Commitment Management: Measuring Sample-level Unlearning Completenesscited by 11
- 2025A Systematic Analysis of Base Model Choice for Reward Modelingcited by 0
- 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMscited by 0
- 2025On the Effectiveness of Membership Inference in Targeted Data Extraction from Large Language Modelscited by 0
- 2026Detecting Data Contamination in Large Language Modelscited by 0
- 2026Natural Identifiers for Privacy and Data Audits in Large Language Modelscited by 0
- 2026Dataset Usage Inference without Shadow Models or Held-out Datacited by 0
- 2026Anchored or Drifting: What Recursive Self-Generation Reveals About Training Datacited by 0
- 2026When Routing Reveals Membership: Privacy Leakage from MoE Router Telemetrycited by 0
- 2026When Routing Reveals Membership: Privacy Leakage from MoE Router Telemetry7 Oct 2026
- 2026Anchored or Drifting: What Recursive Self-Generation Reveals About Training Data30 Jun 2026
- 2026Dataset Usage Inference without Shadow Models or Held-out Data24 Jun 2026
- 2026Natural Identifiers for Privacy and Data Audits in Large Language Models23 Jun 2026
- 2026Detecting Data Contamination in Large Language Models21 Apr 2026
- 2025On the Effectiveness of Membership Inference in Targeted Data Extraction from Large Language Models15 Dec 2025
- 2025EL-MIA: Quantifying Membership Inference Risks of Sensitive Entities in LLMs31 Oct 2025
- 2025Towards Lifecycle Unlearning Commitment Management: Measuring Sample-level Unlearning Completeness6 Jun 2025
- 2025A Systematic Analysis of Base Model Choice for Reward Modeling16 May 2025
- 2025Privacy Attacks on Image AutoRegressive Models4 Feb 2025