Tag&Tab: Pretraining Data Detection in Large Language Models Using Keyword-Based Membership Inference Attack
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
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 copyright-protected or sensitive information. Recent studies on detecting pretraining data in LLMs have primarily focused on sentence- or paragraph-level 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.
Key facts. Cited by 5 papers in the map (data through 7 Oct 2026). Placed in Membership inference attacks, one of 12 directions in LLM safety and security. Builds on 26 of its 46 references that are in the map. First posted on arXiv 14 Jan 2025.
Builds on
26 of 46 references.
Closest ancestors · 8
Same direction, newest first
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Models23 Jun
- 2024ReCaLL: Membership Inference via Relative Conditional Log-Likelihoods23 Jun
- 2024LLM Dataset Inference: Did you train on my dataset?10 Jun
- 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
- 2023Membership Inference Attacks against Language Models via Neighbourhood Comparison29 May
- 2023Analyzing Leakage of Personally Identifiable Information in Language Models1 Feb
- 2021Membership Inference Attacks From First Principles7 Dec
- 2021Membership Inference Attacks on Machine Learning: A Survey14 Mar
Other references · 18
- 2023GPT-4 Technical Reportcited by 18,132
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 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
- 2021WebGPT: Browser-assisted question-answering with human feedbackcited by 1,722
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 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
- 2023Don't Make Your LLM an Evaluation Benchmark Cheatercited by 194
6 more
- 2023Speak, Memory: An Archaeology of Books Known to ChatGPT/GPT-4cited by 123
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 102
- 2023Privacy Issues in Large Language Models: A Surveycited by 57
- 2024Pretraining Data Detection for Large Language Models: A Divergence-based Calibration Methodcited by 54
- 2023Unveiling Security, Privacy, and Ethical Concerns of ChatGPTcited by 53
- 2019Efficient Adaptation of Pretrained Transformers for Abstractive Summarizationcited by 13
Built on by
Citing papers per year: 2025: 4; 2026: 1.
5 papers.
- 2025Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributionscited by 11
- 2026Membership Inference Attacks Against Fine-tuned Diffusion Language Modelscited by 5
- 2025MIA-EPT: Membership Inference Attack via Error Prediction for Tabular Datacited by 4
- 2025Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMscited by 3
- 2025LexiMark: Robust Watermarking via Lexical Substitutions to Enhance Membership Verification of an LLM's Textual Training Datacited by 1
- 2026Membership Inference Attacks Against Fine-tuned Diffusion Language Models27 Jan 2026
- 2025MIA-EPT: Membership Inference Attack via Error Prediction for Tabular Data16 Sep 2025
- 2025Tab-MIA: A Benchmark Dataset for Membership Inference Attacks on Tabular Data in LLMs23 Jul 2025
- 2025LexiMark: Robust Watermarking via Lexical Substitutions to Enhance Membership Verification of an LLM's Textual Training Data17 Jun 2025
- 2025Beyond Next Token Probabilities: Learnable, Fast Detection of Hallucinations and Data Contamination on LLM Output Distributions18 Mar 2025