Extracting Training Data from Large Language Models

By Nicholas Carlini, Florian Tramèr, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom B. Brown, Dawn Song, Ú. Erlingsson and 2 more. 2020

3,168 citations recorded by the source corpus.

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. For example, 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.

Subfields: Artificial Intelligence, Large Language Models, Safety, Robustness & Interpretability

How researchers see this paper

The researchers whose trusted networks rank it highest, strongest advocate first. Every researcher gets a different order.

In Artificial Intelligence

  1. Mohit Bansal
  2. Luke S. Zettlemoyer
  3. Percy Liang
  4. Jianfeng Gao
  5. Yejin Choi
  6. Quoc V. Le
  7. Graham Neubig
  8. Noah A. Smith

In Large Language Models

  1. Luke S. Zettlemoyer
  2. Yejin Choi
  3. Hinrich Schütze
  4. Hannaneh Hajishirzi
  5. Noah A. Smith
  6. Timo Schick
  7. Michael Lewis
  8. Danqi Chen

In Safety, Robustness & Interpretability

  1. Nicholas Carlini
  2. Yulia Tsvetkov
  3. Percy Liang
  4. Eric Wallace
  5. Florian Tramèr
  6. Kai-Wei Chang
  7. Nicolas Papernot
  8. Noah A. Smith

Citations in the corpus