CRCLLGDec 14, 2020

Extracting Training Data from Large Language Models

arXiv:2012.07805v22993 citations
AI Analysis

This work highlights a critical privacy and security vulnerability for users and organizations deploying large language models trained on private datasets, showing that sensitive training data can be directly extracted.

This paper demonstrates a training data extraction attack on large language models, specifically GPT-2, recovering hundreds of verbatim text sequences from its training data. These extracted examples include personally identifiable information, IRC conversations, code, and UUIDs, even when present in only a single training document.

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.

Code Implementations3 repos
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes