mlsanityData to 7 Oct 2026

Memorization of Named Entities in Fine-tuned BERT Models

arXiv 2212.03749 ↗First posted 7 Dec 2022cs.CLcited by 1

Not on the map. Why?

Abstract (arXiv)

Privacy preserving deep learning is an emerging field in machine learning that aims to mitigate the privacy risks in the use of deep neural networks. One such risk is training data extraction from language models that have been trained on datasets, which contain personal and privacy sensitive information. In our study, we investigate the extent of named entity memorization in fine-tuned BERT models. We use single-label text classification as representative downstream task and employ three different fine-tuning setups in our experiments, including one with Differential Privacy (DP). We create a large number of text samples from the fine-tuned BERT models utilizing a custom sequential sampling strategy with two prompting strategies. We search in these samples for named entities and check if they are also present in the fine-tuning datasets. We experiment with two benchmark datasets in the domains of emails and blogs. We show that the application of DP has a detrimental effect on the text generation capabilities of BERT. Furthermore, we show that a fine-tuned BERT does not generate more named entities specific to the fine-tuning dataset than a BERT model that is pre-trained only. This suggests that BERT is unlikely to emit personal or privacy sensitive named entities. Overall, our results are important to understand to what extent BERT-based services are prone to training data extraction attacks.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 43 of its 66 references that are in the map. First posted on arXiv 7 Dec 2022.

Builds on

43 of 66 references.

References · 43

  1. 2017Attention Is All You Needcited by 59,932
  2. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  3. 2020Language Models are Few-Shot Learnerscited by 32,199
  4. 2022Training language models to follow instructions with human feedbackcited by 15,712
  5. 2019Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformercited by 14,491
  6. 2019RoBERTa: A Robustly Optimized BERT Pretraining Approachcited by 13,266
  7. 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
  8. 2019The Curious Case of Neural Text Degenerationcited by 2,881
  9. 2016Deep Learning with Differential Privacycited by 2,682
  10. 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
  11. 2020DeBERTa: Decoding-enhanced BERT with Disentangled Attentioncited by 2,157
  12. 2020Extracting Training Data from Large Language Modelscited by 2,144
31 more
  1. 2019SciBERT: A Pretrained Language Model for Scientific Textcited by 1,404
  2. 2019Publicly Available Clinical BERT Embeddingscited by 995
  3. 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
  4. 2020A Primer in BERTology: What we know about how BERT workscited by 807
  5. 2016Stealing Machine Learning Models via Prediction APIscited by 602
  6. 2021Datasets: A Community Library for Natural Language Processingcited by 526
  7. 2021Differentially Private Fine-tuning of Language Modelscited by 392
  8. 2020Fine-Tuning Pretrained Language Models: Weight Initializations, Data Orders, and Early Stoppingcited by 377
  9. 2021Opacus: User-Friendly Differential Privacy Library in PyTorchcited by 375
  10. 2017Beam Search Strategies for Neural Machine Translationcited by 232
  11. 2019BERT has a Mouth, and It Must Speak: BERT as a Markov Random Field Language Modelcited by 184
  12. 2019Do NLP Models Know Numbers? Probing Numeracy in Embeddingscited by 157
  13. 2017A Survey on Homomorphic Encryption Schemes: Theory and Implementationcited by 154
  14. 2020A Survey of Privacy Attacks in Machine Learningcited by 143
  15. 2022A Survey of Controllable Text Generation using Transformer-based Pre-trained Language Modelscited by 128
  16. 2018Stealing Hyperparameters in Machine Learningcited by 115
  17. 2020The Cost of Training NLP Models: A Concise Overviewcited by 97
  18. 2021Does BERT Pretrained on Clinical Notes Reveal Sensitive Data?cited by 91
  19. 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
  20. 2019What Would Elsa Do? Freezing Layers During Transformer Fine-Tuningcited by 87
  21. 2020Privacy in Deep Learning: A Surveycited by 70
  22. 2020An Overview of Privacy in Machine Learningcited by 39
  23. 2020Understanding Unintended Memorization in Federated Learningcited by 36
  24. 2021An Efficient DP-SGD Mechanism for Large Scale NLP Modelscited by 27
  25. 2020More Than Privacy: Applying Differential Privacy in Key Areas of Artificial Intelligencecited by 22
  26. 2021Property Inference Attacks on Convolutional Neural Networks: Influence and Implications of Target Model's Complexitycited by 19
  27. 2018Privacy-preserving Machine Learning through Data Obfuscationcited by 18
  28. 2020A Survey on Self-supervised Pre-training for Sequential Transfer Learning in Neural Networkscited by 18
  29. 2021Bag-of-Words vs. Graph vs. Sequence in Text Classification: Questioning the Necessity of Text-Graphs and the Surprising Strength of a Wide MLPcited by 17
  30. 2020Exploring Fine-tuning Techniques for Pre-trained Cross-lingual Models via Continual Learningcited by 9
  31. 2022Unfreeze with Care: Space-Efficient Fine-Tuning of Semantic Parsing Modelscited by 4

Built on by

Cited by year

Citing papers per year: 2023: 1.

1 paper.