Skip to content
Back to the collection

Scalable Extraction of Training Data from (Production) Language Models

Milad Nasr, Nicholas Carlini, Jonathan Hayase

Show all 10 authors

Matthew Jagielski, A. Feder Cooper, Daphne Ippolito, Christopher A. Choquette-Choo, Eric Wallace, Florian Tramèr, Katherine Lee

2023 · arXiv

Read the paper
HN score
0
Mentions
5
Readers
5
Months
5
What’s in a score?

From the abstract

This paper studies extractable memorization: training data that an adversary can efficiently extract by querying a machine learning model without prior knowledge of the training dataset. We show an adversary can extract gigabytes of training data from open-source language models like Pythia or GPT-Neo, semi-open models like LLaMA or Falcon, and closed models like ChatGPT. Existing techniques from the literature suffice to attack unaligned models; in order to attack the aligned ChatGPT, we develop a new divergence attack that causes the model to diverge from its chatbot-style generations and emit training data at a rate 150x higher than when behaving properly. Our methods show practical attacks can recover far more data than previously thought, and reveal that current alignment techniques do not eliminate memorization.

Metadata: arXiv. Abstracts retain their original authors’ rights.

In the conversation

Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels

5 selected excerpts · 5 total mentions

kmeisthax
Neutral mention · rule
I had the exact same idea after seeing Google point out that you can[0] get ChatGPT to regurgitate verbatim training data by asking it to repeat the same word over and over again[1]. I'm glad to see someone else actually bring it to fruition. This, of course, brings two additional questions: 1. Is this "AI, hold the AI" approach more energy-efficient than having gradient descent backpropagation compress a bunch of training data into a model that can then be run on specialized AI coprocessors? 2. Will this result wind up being evidence in the ongoing lawsuits against OpenAI and Stability AI? [0] Could. OpenAI now blocks generation if you fill the context window with a single word. [1] https://arxiv.org/abs/2311.17035
snakeyjake
Neutral mention · rule
Commercial musicians do not? You sure about that? Entire legal firm empires have been built on the licensing, negotiations, and fees that make up the industry. I'm ain't talking about some dude on YouTube or Soundcloud. Few people care about some rando on Soundcloud. Those moles aren't big enough to whack. Vanilla Ice and MC Hammer were. OpenAI is as well. There's even a company that specializes in sample clearance: https://sampleclearance.com More info: https://www.soundonsound.com/sound-advice/sample-clearance Also: >not turned into a part of a pattern used to generate new sounds like what AI generators do with images This is demonstrably false. Multiple individuals have repeatedly been able to extract original images from AI generators. Here's one-- Extracting Training Data from Diffusion Models https://arxiv.org/abs/2301.13188 Text, too: https://arxiv.org/abs/2311.17035
WhitneyLand
Neutral mention · rule
Sorry for any confusion, my comment was meant to refer to the linked paper: https://arxiv.org/abs/2311.17035 I think it’s valid work, but the original tweet seems to call a prompt based paper into question. At least enough to clarify where he would stand on an example like this.

Keep following the thread.

More in Security & cryptography

More from the same topics.