ACL Findings2024
DPDLLM: A Black-box Framework for Detecting Pre-training Data from Large Language Models
Baohang Zhou, Zezhong Wang, Lingzhi Wang, Hongru Wang, Ying Zhang, Kehui Song, Xuhui Sui, Kam-Fai Wong
Abstract
The success of large language models (LLM) benefits from large-scale model parameters and large amounts of pre-training data. However, the textual data for training LLM can not be confirmed to be legal because they are crawled from different web sites. For example, there are copyrighted articles, personal reviews and information in the pre-training data for LLM which are illegal. To address the above issue and develop legal LLM, we propose to detect the pre-training data from LLM in a pure blackbox way because the existing LLM services only return the generated text. The previous most related works are the membership inference attack (MIA) on machine learning models to detect the training data from them. But the existing methods are based on analyzing the output probabilities of models which are unrealistic to LLM services. To tackle the problem, we firstly construct the benchmark datasets by collecting textual data from different domains as the seen and unseen pre-training data for LLMs. Then, we investigate a black-box framework named DPDLLM, with the only access to the generated texts from LLM for detecting textual data whether was used to train it. In the proposed framework, we exploit GPT-2 as the reference model to fit the textual data and feed the generated text from LLM into it to acquire sequence probabilities as the significant feature for detection. The experimental results on the benchmark datasets demonstrate that DPDLLM is effective on different popular LLMs and outperforms the existing methods.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
3 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling cites Language Models are Few-Shot Learners
- Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution Approach cites Membership Inference Attacks Against Machine Learning Models
- Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution Approach cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
- Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution Approach cites Detecting Pretraining Data from Large Language Models
- Robust Membership Inference for Large Language Models under Adversarial Generative Corruption cites Membership Inference Attacks Against Machine Learning Models
- Robust Membership Inference for Large Language Models under Adversarial Generative Corruption cites Detecting Pretraining Data from Large Language Models
- Detecting Pretraining Data from Large Language Models cites Membership Inference Attacks Against Machine Learning Models
- Detecting Pretraining Data from Large Language Models cites Language Models are Few-Shot Learners
- Information Leakage in Embedding Models cites Membership Inference Attacks Against Machine Learning Models
- Filling the Gaps: Selective Knowledge Augmentation for LLM Recommenders cites Detecting Pretraining Data from Large Language Models
Cited by top-tier papers3
- Uncovering Pretraining Code in LLMs: A Syntax-Aware Attribution ApproachYuanheng Li, Zhuoyang Chen, Xiaoyun Liu, Yuhao Wang et al.AAAI 2026 · 2 citations
- Robust Membership Inference for Large Language Models under Adversarial Generative CorruptionYuanhong Huang, Huili Wang, Xueying Bai, Jinrui Wang et al.ACL 2026
- Filling the Gaps: Selective Knowledge Augmentation for LLM RecommendersJaehyun Lee, Sanghwan Jang, Seongku Kang, Hwanjo YuSIGIR 2026
Builds on10
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
- Pythia: A Suite for Analyzing Large Language Models Across Training and ScalingStella Biderman, Hailey Schoelkopf, Quentin Gregory Anthony, Herbie Bradley et al.ICML 2023 · 1,822 citations
- Detecting Pretraining Data from Large Language ModelsWeijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang et al.ICLR 2024 · 365 citations
- Information Leakage in Embedding ModelsCongzheng Song, Ananth RaghunathanCCS 2020 · 200 citations
Related papers
- Sampling-based Pseudo-Likelihood for Membership Inference AttacksMasahiro Kaneko, Youmi Ma, Yuki Wata, Naoaki OkazakiACL Findings 2025 · 6 citations
- ReCaLL: Membership Inference via Relative Conditional Log-LikelihoodsRoy Xie, Junlin Wang, Ruomin Huang, Minxing Zhang et al.EMNLP 2024 · 8 citations
- Black-box Membership Inference Attacks on the Pre-training Data of Image-generation ModelsTao Qi, Huili Wang, Yuanhong Huang, Wendan Wang et al.CVPR 2026
- LLM Dataset Inference: Did you train on my dataset?Pratyush Maini, Hengrui Jia, Nicolas Papernot, Adam DziedzicNeurIPS 2024 · 162 citations
- Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference AttackSagiv Antebi, Edan Habler, Asaf Shabtai, Yuval EloviciEMNLP Findings 2025
