EMNLP Findings2025
Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference Attack
Abstract
Large language models (LLMs) have become essential tools for digital task assistance. Their training relies heavily on the collection of vast amounts of data, which may include copyrightprotected or sensitive information. Recent studies on detecting pretraining data in LLMs have primarily focused on sentence-or paragraphlevel membership inference attacks (MIAs), usually involving probability analysis of the target model's predicted tokens. However, these methods often exhibit poor accuracy, failing to account for the semantic importance of textual content and word significance. To address these shortcomings, we propose Tag&Tab, a novel approach for detecting data used in LLM pretraining. Our method leverages established natural language processing (NLP) techniques to tag keywords in the input text, a process we term Tagging. Then, the LLM is used to obtain probabilities for these keywords and calculate their average log-likelihood to determine input text membership, a process we refer to as Tabbing. Our experiments on four benchmark datasets (BookMIA, MIMIR, PatentMIA, and the Pile) and several open-source LLMs of varying sizes demonstrate an average increase in AUC scores ranging from 5.3% to 17.6% over state-of-the-art methods. Tag&Tab not only sets a new standard for data leakage detection in LLMs, but its outstanding performance is a testament to the importance of words in MIAs on LLMs.
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.
4 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 The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling cites Extracting Training Data from Large Language Models
- Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMs cites Membership Inference Attacks Against Machine Learning Models
- Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMs cites Detecting Pretraining Data from Large Language Models
- Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMs cites Extracting Training Data from Large Language Models
- Enhancing Pre-training Data Detection in LLMs Through Discriminative and Symmetric Prefix Selection cites Membership Inference Attacks Against Machine Learning Models
- Enhancing Pre-training Data Detection in LLMs Through Discriminative and Symmetric Prefix Selection cites Detecting Pretraining Data from Large Language Models
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions cites Membership Inference Attacks Against Machine Learning Models
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions cites Pythia: A Suite for Analyzing Large Language Models Across Training and Scaling
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions cites Detecting Pretraining Data from Large Language Models
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions cites Extracting Training Data from Large Language Models
- Membership Inference Attacks Against Fine-tuned Diffusion Language Models cites Membership Inference Attacks Against Machine Learning Models
- Membership Inference Attacks Against Fine-tuned Diffusion Language Models cites Detecting Pretraining Data from Large Language Models
- Membership Inference Attacks Against Fine-tuned Diffusion Language Models cites Extracting Training Data from Large Language Models
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks cites Membership Inference Attacks Against Machine Learning Models
- Detecting Pretraining Data from Large Language Models cites Membership Inference Attacks Against Machine Learning Models
- Detecting Pretraining Data from Large Language Models cites Extracting Training Data from Large Language Models
- Extracting Training Data from Large Language Models cites Membership Inference Attacks Against Machine Learning Models
- Extracting Training Data from Large Language Models cites The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networks
Cited by top-tier papers4
- Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output DistributionsGuy Bar-Shalom, Fabrizio Frasca, Derek Lim, Yoav Gelberg et al.AAAI 2026 · 7 citations
- Membership Inference Attacks Against Fine-tuned Diffusion Language ModelsYuetian Chen, Kaiyuan Zhang, Yuntao Du, Edoardo Stoppa et al.ICLR 2026 · 6 citations
- Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMsEyal German, Sagiv Antebi, Daniel Samira, Asaf Shabtai et al.ICLR 2026 · 3 citations
- Enhancing Pre-training Data Detection in LLMs Through Discriminative and Symmetric Prefix SelectionKai Sun, Yuxin Lin, Bo Dong, Jingyao Zhang et al.AAAI 2026
Builds on12
- Membership Inference Attacks Against Machine Learning ModelsReza Shokri, Marco Stronati, Congzheng Song, Vitaly ShmatikovS&P 2017 · 5,137 citations
- Extracting Training Data from Large Language ModelsNicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski et al.USENIX Security 2021 · 2,866 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
- The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural NetworksNicholas Carlini, Chang Liu, Úlfar Erlingsson, Jernej Kos et al.USENIX Security 2019 · 1,386 citations
- Detecting Pretraining Data from Large Language ModelsWeijia Shi, Anirudh Ajith, Mengzhou Xia, Yangsibo Huang et al.ICLR 2024 · 365 citations
Related papers
- ReCaLL: Membership Inference via Relative Conditional Log-LikelihoodsRoy Xie, Junlin Wang, Ruomin Huang, Minxing Zhang et al.EMNLP 2024 · 8 citations
- Sampling-based Pseudo-Likelihood for Membership Inference AttacksMasahiro Kaneko, Youmi Ma, Yuki Wata, Naoaki OkazakiACL Findings 2025 · 6 citations
- LLM Dataset Inference: Did you train on my dataset?Pratyush Maini, Hengrui Jia, Nicolas Papernot, Adam DziedzicNeurIPS 2024 · 162 citations
- Membership Inference Attacks against Large Vision-Language ModelsZhan Li, Yongtao Wu, Yihang Chen, Francesco Tonin et al.NeurIPS 2024 · 43 citations
- DPDLLM: A Black-box Framework for Detecting Pre-training Data from Large Language ModelsBaohang Zhou, Zezhong Wang, Lingzhi Wang, Hongru Wang et al.ACL Findings 2024 · 8 citations
