Unintended Memorization and Timing Attacks in Named Entity Recognition Models
On the map: LLM safety and security → Membership inference attacks
Abstract (arXiv)
Named entity recognition models (NER), are widely used for identifying named entities (e.g., individuals, locations, and other information) in text documents. Machine learning based NER models are increasingly being applied in privacy-sensitive applications that need automatic and scalable identification of sensitive information to redact text for data sharing. In this paper, we study the setting when NER models are available as a black-box service for identifying sensitive information in user documents and show that these models are vulnerable to membership inference on their training datasets. With updated pre-trained NER models from spaCy, we demonstrate two distinct membership attacks on these models. Our first attack capitalizes on unintended memorization in the NER's underlying neural network, a phenomenon NNs are known to be vulnerable to. Our second attack leverages a timing side-channel to target NER models that maintain vocabularies constructed from the training data. We show that different functional paths of words within the training dataset in contrast to words not previously seen have measurable differences in execution time. Revealing membership status of training samples has clear privacy implications, e.g., in text redaction, sensitive words or phrases to be found and removed, are at risk of being detected in the training dataset. Our experimental evaluation includes the redaction of both password and health data, presenting both security risks and privacy/regulatory issues. This is exacerbated by results that show memorization with only a single phrase. We achieved 70% AUC in our first attack on a text redaction use-case. We also show overwhelming success in the timing attack with 99.23% AUC. Finally we discuss potential mitigation approaches to realize the safe use of NER models in light of the privacy and security implications of membership inference attacks.
Key facts. Cited by 2 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 28 of its 74 references that are in the map. First posted on arXiv 4 Nov 2022.
Builds on
28 of 74 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2016Membership Inference Attacks against Machine Learning Modelscited by 2,221
- 2020Extracting Training Data from Large Language Modelscited by 2,144
- 2016Enriching Word Vectors with Subword Informationcited by 1,578
- 2018The Secret Sharer: Evaluating and Testing Unintended Memorization in Neural Networkscited by 847
- 2019Is BERT Really Robust? A Strong Baseline for Natural Language Attack on Text Classification and Entailmentcited by 663
- 2016Neural Architectures for Named Entity Recognitioncited by 548
- 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
- 2020Label-Only Membership Inference Attackscited by 371
15 more
- 2016End-to-end Sequence Labeling via Bi-directional LSTM-CNNs-CRFcited by 341
- 2020BAE: BERT-based Adversarial Examples for Text Classificationcited by 316
- 2015Named Entity Recognition with Bidirectional LSTM-CNNscited by 201
- 2020Information Leakage in Embedding Modelscited by 199
- 2019Updates-Leak: Data Set Inference and Reconstruction Attacks in Online Learningcited by 117
- 2019A Survey on Recent Advances in Named Entity Recognition from Deep Learning modelscited by 117
- 2017Deep Text Classification Can be Fooledcited by 105
- 2019Analyzing Information Leakage of Updates to Natural Language Modelscited by 89
- 2016De-identification of Patient Notes with Recurrent Neural Networkscited by 88
- 2018Stealing Neural Networks via Timing Side Channelscited by 42
- 2020FedNER: Privacy-preserving Medical Named Entity Recognition with Federated Learningcited by 24
- 2019Efficient Adaptation of Pretrained Transformers for Abstractive Summarizationcited by 13
- 2020AMALGUM -- A Free, Balanced, Multilayer English Web Corpuscited by 9
- 2019Few-Shot Sequence Labeling with Label Dependency Transfer and Pair-wise Embeddingcited by 3
- 2021An Analysis Of Protected Health Information Leakage In Deep-Learning Based De-Identification Algorithmscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 1.
2 papers.