Extracting Training Data from Large Language Models
Nicholas Carlini, Florian Tramèr, Eric Wallace et al. · arXiv (Cornell University) · 2020
It has become common to publish large (billion parameter) language models that have been trained on private datasets. This paper demonstrates that in such settings, an adversary can perform a training data extraction attack to recover individual training examples by querying the language model. We demonstrate our attack on GPT-2, a language model trained on scrapes of the public Internet, and are able to extract hundreds of verbatim text sequences from the model's training data. These extracted examples include (public) personally identifiable information (names, phone numbers, and email addresses), IRC conversations, code, and 128-bit UUIDs. Our attack is possible even though each of the above sequences are included in just one document in the training data. We comprehensively evaluate our extraction attack to understand the factors that contribute to its success. Worryingly, we find that larger models are more vulnerable than smaller models. We conclude by drawing lessons and discussing possible safeguards for training large language models.
Cited by 270 works. doi:10.48550/arxiv.2012.07805 Open-access PDF
Authors
- Nicholas Carlini
- Florian Tramèr
- Eric Wallace
- Matthew Jagielski
- Ariel Herbert-Voss
- Katherine Lee
- Dawn Xiaodong Song
- Úlfar Erlingsson
- Alina Oprea
- Colin Raffel
References
- Attention Is All You Need
- BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
- Generating Sequences With Recurrent Neural Networks
- Deep Contextualized Word Representations
- HISTORIAE, History of Socio-Cultural Transformation as Linguistic Data Science. A Humanities Use Case
- Recurrent neural network based language model
- 10.1162/153244303322533223
- The Knowledge Complexity of Interactive Proof Systems
- Calibrating Noise to Sensitivity in Private Data Analysis
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension