HackerPapers

arXiv:2012.07805cs.CR

Extracting Training Data from Large Language Models

Nicholas Carlini, Florian Tramer, Eric Wallace, Matthew Jagielski, Ariel Herbert-Voss, Katherine Lee, Adam Roberts, Tom Brown, Dawn Song, Ulfar Erlingsson, Alina Oprea, Colin Raffel

Abstract

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.

arXiv comments
Journal reference
DOI
Subjects
cs.CRCryptography and Security cs.CLComputation and Language cs.LGMachine Learning

On Hacker News

Linked by 6 identifiable commenters in 7 comments across 7 threads, from Dec 2020 to Sep 2026. Found in 4 HN submissions from Dec 2020 to Jun 2022. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments7 threads

    • prediction is a very specific term of art in the field of machine learning. generally speaking, machine learning models like LLMs are based on probability; performing a statistical prediction of the likely y given some input x Probability(y | x) that's why we refer to outputs as…

      dijksterhuisView on HNParent context

    • > To my knowledge there is not a single known case where this happened. > News back then were about intentionally prompting to output known copyrighted material. First, there are other cases if you take the time to dig. This is quite an old example (GPT-2) as i haven't kept up…

      dijksterhuisView on HNParent context

    • AI models will make 1:1 copies of training data where artists try and avoid doing so. It’s common to obscure this copying by intentionally inserting lossy steps, but making an MP3 isn’t a new work. It’s most obvious when large blocks of text are recreated, but the core mechanism…

      RetricView on HNParent context

    • Most current "AI" models essentially compress and then store the information, often to the point where training data can be extracted [1][2] [1]: https://arxiv.org/abs/2012.07805 [2]: https://arxiv.org/abs/2301.13188

      vitehozonageView on HNParent context

    • > Would it be OK if I launched a tech preview of my AI poem writer companion that would copy lines but also complete stanzas from famous poets, rock bands and singer-songwriters? Yes it would be if it only happened ~0.1% of the time and if quoting verbatim wasn't the intended…

      qayxcView on HNParent context

    • Yes, it has been shown [1] that these models can memorize information even if it only appears once in the training data. It could potentially cause issues with privacy and especially copyright. However, in this case it's not relevant because they didn't release the model…

      ma2rtenView on HNParent context

    • I am guessing it was a blog about this paper: https://arxiv.org/pdf/2012.07805.pdf "Extracting Training Data from Large Language Models"

      jeplerView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.