atlas

Research map / Adversarial robustness and security / Attacks on text and graphs

Scalable Extraction of Training Data from Aligned, Production Language Models

ICLR 2025 · Adversarial robustness and security › Attacks on text and graphs · approach: Adversarial prompts for language models

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Shows that extractable memorization is far larger than previously measured in open, semi-open, and production LLMs, and introduces a divergence attack (repeating a single token) that extracts pretraining data from aligned ChatGPT (gpt-3.5-turbo).

Problem

Prior work only verifiably extracted small amounts of training data from LLMs, and alignment (RLHF/chat tuning) is assumed to prevent extraction of memorized training data from production models.

Approach

Measure extractable memorization at scale by checking model outputs against a 9TB auxiliary web corpus with suffix arrays, and attack aligned ChatGPT with a divergence prompt that asks it to repeat a single word forever; once the model diverges from chat behavior it emits verbatim pretraining text.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use the divergence attack instead of prior prompting attacksgpt-3.5-turbo · ChatGPT training-data extractionrate of emitting training data: 150× higher than when behaving properly; 3× more frequently than the base modelHelped
Ask ChatGPT to repeat random tokens and continue rather than inducing divergencegpt-3.5-turbo · AuxDatasetmemorized tokens: 0.02%Hurt
Deduplicate the training data (ablation)Pythia 1.4B · The Pilememorized tokens: 0.453% -> 0.578%Hurt
Deduplicate the training data (ablation)Pythia 6.9B · The Pilememorized tokens: 0.548% -> 0.596%Hurt
Increase model size from 7B to 65BLLaMA · AuxDatasetmemorized tokens: 0.294% -> 0.789%Hurt
Increase model size from 7B to 40BFalcon · AuxDatasetmemorized tokens: 0.069% -> 0.122%Hurt
Repeat a single-token word to induce divergenceChatGPT · ChatGPT training-data extractionmemorized output rate: 150×Helped
Use a single-token repeated word instead of a multi-token repeated word (ablation)ChatGPT · Divergence promptingwhether generations diverge to training dataHelped
Use multi-token repeated words instead of single-token words (ablation)ChatGPT · Divergence promptingwhether generations diverge to training dataHurt
Prompt with known memorized prefix naturally rather than using adversarial divergence promptinggpt-3.5-turbo · Known memorized examples, 1,000 longest stringsexact suffix completion: 3.5%Hurt
Prompt the instruct model with the known memorized prefixgpt-3.5-turbo-instruct · Known memorized examples, 1,000 longest stringsexact suffix completion: 75%Helped
Increase auxiliary corpus coverage by using manual Internet search rather than AuxDataset matchingChatGPT extraction evaluation · 494 generationsidentified memorized examples: 70 -> 150Helped

Surprising findings

Limitations

Experimental setup

Datasets: The Pile RefinedWeb RedPajama Dolma C4

Benchmarks: AuxDataset (9TB web corpus) manual Google search verification

Metrics: percent of tokens memorized (50-token verbatim copies) unique 50-grams Good-Turing extrapolated total memorization precision of membership inference PII rate

Baselines: random-token prompting baseline on gpt-3.5-turbo discoverable memorization (prefix completion) Chao1 Chiu et al. estimator Zelterman estimator

Builds on: Carlini et al. extraction attacks discoverable memorization zlib membership inference Good-Turing estimation

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy