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