vix.ing · top · new · best · stats

Scalable Extraction of Training Data from (Production) Language Models

2023/11/28 by Milad Nasr, Nicholas Carlini, Nasr, Milad +17 · 21 voices · 119 citations
Computer Science · #Adversarial Robustness in Machine Learning #Adversary #Artificial intelligence #Computer science #Computer security #Data modeling #Database #Divergence (linguistics) #Explainable Artificial Intelligence (XAI) #Language model #Machine learning #Memorization #Natural language processing #Scalability #Topic Modeling #Training (meteorology) #Training set

paper · pdf · doi:10.48550/arxiv.2311.17035

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2023/11/28 · openalex created_date 2025/10/10 · openalex updated_date 2026/07/30

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.

Cited by

Discussions

Related