Privacy Leakage in Text Classification: A Data Extraction Approach
Not on the map. Why?
Abstract (arXiv)
Recent work has demonstrated the successful extraction of training data from generative language models. However, it is not evident whether such extraction is feasible in text classification models since the training objective is to predict the class label as opposed to next-word prediction. This poses an interesting challenge and raises an important question regarding the privacy of training data in text classification settings. Therefore, we study the potential privacy leakage in the text classification domain by investigating the problem of unintended memorization of training data that is not pertinent to the learning task. We propose an algorithm to extract missing tokens of a partial text by exploiting the likelihood of the class label provided by the model. We test the effectiveness of our algorithm by inserting canaries into the training set and attempting to extract tokens in these canaries post-training. In our experiments, we demonstrate that successful extraction is possible to some extent. This can also be used as an auditing strategy to assess any potential unauthorized use of personal data without consent.
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Builds on 25 of its 43 references that are in the map. First posted on arXiv 9 Jun 2022.
Builds on
25 of 43 references.
References · 25
- 2017Attention Is All You Needcited by 59,932
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
- 2021On the Opportunities and Risks of Foundation Modelscited by 3,961
- 2016Deep Learning with Differential Privacycited by 2,682
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2019A Survey on Bias and Fairness in Machine Learningcited by 1,911
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2022Quantifying Memorization Across Neural Language Modelscited by 755
- 2018ML-Leaks: Model and Data Independent Membership Inference Attacks and Defenses on Machine Learning Modelscited by 475
- 2019Does Learning Require Memorization? A Short Tale about a Long Tailcited by 452
13 more
- 2020Label-Only Membership Inference Attackscited by 371
- 2022Deduplicating Training Data Mitigates Privacy Risks in Language Modelscited by 309
- 2019White-box vs Black-box: Bayes Optimal Strategies for Membership Inferencecited by 265
- 2019Stolen Memories: Leveraging Model Memorization for Calibrated White-Box Membership Inferencecited by 168
- 2020When is Memorization of Irrelevant Training Data Necessary for High-Accuracy Learning?cited by 102
- 2021Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?cited by 91
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2018Understanding Membership Inferences on Well-Generalized Learning Modelscited by 83
- 2020Privacy in Deep Learning: A Surveycited by 70
- 2021Property Inference From Poisoningcited by 56
- 2020Leakage of Dataset Properties in Multi-Party Machine Learningcited by 46
- 2018Towards Demystifying Membership Inference Attackscited by 39
- 2021Privacy Regularization: Joint Privacy-Utility Optimization in Language Modelscited by 29
Built on by
Citing papers per year: 2023: 5; 2024: 1; 2025: 2; 2026: 1.
9 papers.
- 2023Large Language Model Alignment: A Surveycited by 241
- 2023Training Data Extraction From Pre-trained Language Models: A Surveycited by 43
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Surveycited by 30
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defensescited by 30
- 2023Privately Aligning Language Models with Reinforcement Learningcited by 17
- 2023Deconstructing Classifiers: Towards A Data Reconstruction Attack Against Text Classification Modelscited by 6
- 2025Towards Privacy-aware Mental Health AI Models: Advances, Challenges, and Opportunitiescited by 2
- 2025Improved Algorithms for Differentially Private Language Model Alignmentcited by 1
- 2026Towards Privacy-Preserving Machine Translation at the Inference Stage: A New Task and Benchmarkcited by 1
- 2026Towards Privacy-Preserving Machine Translation at the Inference Stage: A New Task and Benchmark16 Mar 2026
- 2025Improved Algorithms for Differentially Private Language Model Alignment13 May 2025
- 2025Towards Privacy-aware Mental Health AI Models: Advances, Challenges, and Opportunities1 Feb 2025
- 2024Privacy Leakage on DNNs: A Survey of Model Inversion Attacks and Defenses6 Feb 2024
- 2023Privately Aligning Language Models with Reinforcement Learning25 Oct 2023
- 2023Identifying and Mitigating Privacy Risks Stemming from Language Models: A Survey27 Sep 2023
- 2023Large Language Model Alignment: A Survey26 Sep 2023
- 2023Deconstructing Classifiers: Towards A Data Reconstruction Attack Against Text Classification Models23 Jun 2023
- 2023Training Data Extraction From Pre-trained Language Models: A Survey25 May 2023