Fine-tuning can Help Detect Pretraining Data from Large Language Models
Not on the map. Why?
Abstract (arXiv)
In the era of large language models (LLMs), detecting pretraining data has been increasingly important due to concerns about fair evaluation and ethical risks. Current methods differentiate members and non-members by designing scoring functions, like Perplexity and Min-k%. However, the diversity and complexity of training data magnifies the difficulty of distinguishing, leading to suboptimal performance in detecting pretraining data. In this paper, we first explore the benefits of unseen data, which can be easily collected after the release of the LLM. We find that the perplexities of LLMs shift differently for members and non-members, after fine-tuning with a small amount of previously unseen data. In light of this, we introduce a novel and effective method termed Fine-tuned Score Deviation(FSD), which improves the performance of current scoring functions for pretraining data detection. In particular, we propose to measure the deviation distance of current scores after fine-tuning on a small amount of unseen data within the same domain. In effect, using a few unseen data can largely decrease the scores of all non-members, leading to a larger deviation distance than members. Extensive experiments demonstrate the effectiveness of our method, significantly improving the AUC score on common benchmark datasets across various models.
Key facts. Cited by 8 papers in the map (data through 14 Oct 2026). Builds on 35 of its 44 references that are in the map. First posted on arXiv 9 Oct 2024.
Builds on
35 of 44 references.
References · 35
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2023GPT-4 Technical Reportcited by 18,396
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 14,132
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
- 2022PaLM: Scaling Language Modeling with Pathwayscited by 5,326
- 2022OPT: Open Pre-trained Transformer Language Modelscited by 3,512
- 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
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,786
- 2022Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learningcited by 896
23 more
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 713
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 498
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2023AdaLoRA: Adaptive Budget Allocation for Parameter-Efficient Fine-Tuningcited by 357
- 2023NLP Evaluation in trouble: On the Need to Measure LLM Data Contamination for each Benchmarkcited by 348
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparisoncited by 258
- 2022Data Contamination: From Memorization to Exploitationcited by 236
- 2023Proving Test Set Contamination in Black Box Language Modelscited by 230
- 2024Leak, Cheat, Repeat: Data Contamination and Evaluation Malpractices in Closed-Source LLMscited by 229
- 2024Do Membership Inference Attacks Work on Large Language Models?cited by 195
- 2023Don't Make Your LLM an Evaluation Benchmark Cheatercited by 194
- 2023Time Travel in LLMs: Tracing Data Contamination in Large Language Modelscited by 177
- 2024Benchmark Data Contamination of Large Language Models: A Surveycited by 147
- 2024LLM Dataset Inference: Did you train on my dataset?cited by 110
- 2024Benchmarking Benchmark Leakage in Large Language Modelscited by 106
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 103
- 2023Use of LLMs for Illicit Purposes: Threats, Prevention Measures, and Vulnerabilitiescited by 82
- 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 74
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Modelscited by 69
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoodscited by 64
- 2023Estimating Contamination via Perplexity: Quantifying Memorisation in Language Model Evaluationcited by 48
- 2023Privacy Side Channels in Machine Learning Systemscited by 40
- 2024Data Contamination Calibration for Black-box LLMscited by 24
Built on by
Citing papers per year: 2025: 4; 2026: 4.
8 papers.
- 2025How Contaminated Is Your Benchmark? Quantifying Dataset Leakage in Large Language Models with Kernel Divergencecited by 15
- 2025Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Modelscited by 6
- 2025How does Bayesian Sampling help Membership Inference Attacks?cited by 2
- 2025Provable Training Data Identification for Large Language Modelscited by 1
- 2026From Unfamiliar to Familiar: Detecting Pre-training Data via Gradient Deviations in Large Language Modelscited by 0
- 2026Provable Joint Decontamination for Benchmarking Multiple Large Language Modelscited by 0
- 2026LeakScale: Estimating the Causal Effect of Benchmark Exposurecited by 0
- 2026WildTrace: Evaluating Training Data Detection in Realistic Large-Scale LLM Post-Trainingcited by 0
- 2026WildTrace: Evaluating Training Data Detection in Realistic Large-Scale LLM Post-Training12 Oct 2026
- 2026LeakScale: Estimating the Causal Effect of Benchmark Exposure23 Sep 2026
- 2026Provable Joint Decontamination for Benchmarking Multiple Large Language Models20 May 2026
- 2026From Unfamiliar to Familiar: Detecting Pre-training Data via Gradient Deviations in Large Language Models5 Mar 2026
- 2025Provable Training Data Identification for Large Language Models10 Oct 2025
- 2025Detecting Data Contamination from Reinforcement Learning Post-training for Large Language Models10 Oct 2025
- 2025How does Bayesian Sampling help Membership Inference Attacks?10 Mar 2025
- 2025How Contaminated Is Your Benchmark? Quantifying Dataset Leakage in Large Language Models with Kernel Divergence2 Feb 2025