Membership Inference Attacks on Tokenizers of Large Language Models
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Membership inference attacks (MIAs) are widely used to assess the privacy risks associated with machine learning models. However, when these attacks are applied to pre-trained large language models (LLMs), they encounter significant challenges, including mislabeled samples, distribution shifts, and discrepancies in model size between experimental and real-world settings. To address these limitations, we introduce tokenizers as a new attack vector for membership inference. Specifically, a tokenizer converts raw text into tokens for LLMs. Unlike full models, tokenizers can be efficiently trained from scratch, thereby avoiding the aforementioned challenges. In addition, the tokenizer's training data is typically representative of the data used to pre-train LLMs. Despite these advantages, the potential of tokenizers as an attack vector remains unexplored. To this end, we present the first study on membership leakage through tokenizers and explore five attack methods to infer dataset membership. Extensive experiments on millions of Internet samples reveal the vulnerabilities in the tokenizers of state-of-the-art LLMs. To mitigate this emerging risk, we further propose an adaptive defense. Our findings highlight tokenizers as an overlooked yet critical privacy threat, underscoring the urgent need for privacy-preserving mechanisms specifically designed for them.
Key facts. Cited by 3 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 74 of its 118 references that are in the map. First posted on arXiv 7 Oct 2025.
Builds on
74 of 118 references.
Closest ancestors · 21
Same direction, newest first
- 2025Evaluating the Dynamics of Membership Privacy in Deep Learning31 Jul
- 2025Cascading and Proxy Membership Inference Attacks29 Jul
- 2025SOFT: Selective Data Obfuscation for Protecting LLM Fine-tuning against Membership Inference Attacks12 Jun
- 2025Membership Inference Attacks Against Vision-Language Models27 Jan
- 2024Scaling Up Membership Inference: When and How Attacks Succeed on Large Language Models31 Oct
- 2024Self-Comparison for Dataset-Level Membership Inference in Large (Vision-)Language Models16 Oct
- 2024Membership Inference Attacks Cannot Prove that a Model Was Trained On Your Data29 Sep
- 2024SeqMIA: Sequential-Metric Based Membership Inference Attack21 Jul
- 2024SoK: Membership Inference Attacks on LLMs are Rushing Nowhere (and How to Fix It)25 Jun
- 2024Blind Baselines Beat Membership Inference Attacks for Foundation Models23 Jun
- 2024LLM Dataset Inference: Did you train on my dataset?10 Jun
- 2024Do Membership Inference Attacks Work on Large Language Models?12 Feb
9 more
- 2023Black-box Membership Inference Attacks against Fine-tuned Diffusion Models13 Dec
- 2023Low-Cost High-Power Membership Inference Attacks6 Dec
- 2023Did the Neurons Read your Book? Document-level Membership Inference for Large Language Models23 Oct
- 2023DP-Forward: Fine-tuning and Inference on Language Models with Differential Privacy in Forward Pass13 Sep
- 2023White-box Membership Inference Attacks against Diffusion Models11 Aug
- 2021Membership Inference Attacks From First Principles7 Dec
- 2021Enhanced Membership Inference Attacks against Machine Learning Models18 Nov
- 2021Dataset Inference: Ownership Resolution in Machine Learning21 Apr
- 2021Practical Blind Membership Inference Attack via Differential Comparisons5 Jan
Other references · 53
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
- 2023LLaMA: Open and Efficient Foundation Language Modelscited by 13,958
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2020Scaling Laws for Neural Language Modelscited by 6,411
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2022Training Compute-Optimal Large Language Modelscited by 2,927
- 2023GPQA: A Graduate-Level Google-Proof Q&A Benchmarkcited by 2,748
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
38 more
- 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
- 2024ChatGLM: A Family of Large Language Models from GLM-130B to GLM-4 All Toolscited by 1,096
- 2024DeepSeekMoE: Towards Ultimate Expert Specialization in Mixture-of-Experts Language Modelscited by 834
- 2024Simple and Effective Masked Diffusion Language Modelscited by 800
- 2022GPT-NeoX-20B: An Open-Source Autoregressive Language Modelcited by 711
- 2024DeepSeek LLM: Scaling Open-Source Language Models with Longtermismcited by 621
- 2020Scaling Laws for Autoregressive Generative Modelingcited by 510
- 2024Large Language Models: A Surveycited by 506
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2021Large Language Models Can Be Strong Differentially Private Learnerscited by 405
- 2021Differentially Private Fine-tuning of Language Modelscited by 392
- 2023Scaling Data-Constrained Language Modelscited by 391
- 2023Detecting Pretraining Data from Large Language Modelscited by 375
- 2020Label-Only Membership Inference Attackscited by 371
- 2022Language Models Are Greedy Reasoners: A Systematic Formal Analysis of Chain-of-Thoughtcited by 334
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 265
- 2019MemGuard: Defending against Black-Box Membership Inference Attacks via Adversarial Examplescited by 183
- 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
- 2020Membership Leakage in Label-Only Exposurescited by 156
- 2023Likelihood-Based Diffusion Language Modelscited by 147
- 2024Nemotron-4 340B Technical Reportcited by 143
- 2024Scaling Laws with Vocabulary: Larger Models Deserve Larger Vocabulariescited by 113
- 2024Min-K%++: Improved Baseline for Detecting Pre-Training Data from Large Language Modelscited by 102
- 2024DE-COP: Detecting Copyrighted Content in Language Models Training Datacited by 72
- 2024Getting the most out of your tokenizer for pre-training and domain adaptationcited by 65
- 2025SuperBPE: Space Travel for Language Modelscited by 58
- 2025Over-Tokenized Transformer: Vocabulary is Generally Worth Scalingcited by 42
- 2022Datasheet for the Pilecited by 41
- 2024Nemotron-4 15B Technical Reportcited by 36
- 2023A Formal Perspective on Byte-Pair Encodingcited by 35
- 2024Evaluations of Machine Learning Privacy Defenses are Misleadingcited by 35
- 2024SpaceByte: Towards Deleting Tokenization from Large Language Modelingcited by 31
- 2025Efficient Reasoning for Large Reasoning Language Models via Certainty-Guided Reflection Suppressioncited by 23
- 2021Deep ROC Analysis and AUC as Balanced Average Accuracy to Improve Model Selection, Understanding and Interpretationcited by 17
- 2024Systematic Assessment of Tabular Data Synthesiscited by 17
- 2025LLMs on the Line: Data Determines Loss-to-Loss Scaling Lawscited by 16
- 2025How Contaminated Is Your Benchmark? Quantifying Dataset Leakage in Large Language Models with Kernel Divergencecited by 13
50 most cited of 53 All 53 (JSON)
Built on by
Citing papers per year: 2026: 3.
3 papers.
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agentscited by 0
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Trainingcited by 0
- 2026MemCatalyst: Amplifying Data Auditing on Vision-Language Models via Data Poisoningcited by 0
- 2026MemCatalyst: Amplifying Data Auditing on Vision-Language Models via Data Poisoning18 Aug 2026
- 2026When T2I Synthetic Data Backfires: Amplified Privacy Risks in Real-Synthetic Mix Training15 Jul 2026
- 2026Automated Membership Inference Attacks (AutoMIA): Discovering MIA Signal Computations using LLM Agents19 Mar 2026