atlas

Research map / Large language models / Language, safety and interpretability

Rethinking LLM Memorization through the Lens of Adversarial Compression

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data · 4 citations (OpenAlex)

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.

Proposes the Adversarial Compression Ratio (ACR), which calls a training string memorized if an adversarially optimized prompt shorter than the string elicits it, computed with the MiniPrompt algorithm built on GCG, and shows it is more robust than completion-based tests for unlearning and monitoring.

Problem

Existing memorization definitions (discoverable, extractable, counterfactual, membership inference, perplexity) are too permissive, too restrictive, impractical, or easily fooled by unlearning or alignment, which hampers legal and fair-use assessment of LLM training data.

Approach

Define memorization by compressibility: a training string is memorized if the shortest prompt that makes the model greedily output it is shorter than the string (ACR > 1). The shortest prompt is found by an adversarial search (MiniPrompt with GCG, iteratively shrinking/growing prompt length), so completion tricks and system-prompt defenses do not hide memorization.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Paraphrase famous quotesPythia-1.4B with MiniPrompt (GCG) · Famous Quotes vs. Paraphrased Quotesaverage ACR: 1.17 -> 0.68Hurt
Paraphrase famous quotesPythia-1.4B with MiniPrompt (GCG) · Famous Quotes vs. Paraphrased Quotesportion memorized: 0.47 -> 0.11Hurt
Add an in-context unlearning system promptLlama-2-7B-chat with MiniPrompt · Five famous quotesaverage ACR: 4.74 -> 6.54Mixed
Unlearn Harry PotterLlama-2 adversarial elicitation · Harry Potter responseselicitable fraction: 57% -> 50%Hurt

Surprising findings

Limitations

Experimental setup

Datasets: TOFU Pythia training data (The Pile) Famous Quotes Associated Press November 2023 articles Wikipedia sentences from The Pile Random token sequences Harry Potter unlearning QA

Benchmarks: TOFU Famous Quotes Wikipedia (The Pile) Associated Press November 2023 random token sequences Harry Potter unlearning

Metrics: adversarial compression ratio (ACR) portion memorized (ACR > 1) completion-based exact match negative log-likelihood KS-test p-value

Baselines: discoverable memorization extractable memorization counterfactual memorization random search prompt optimization SMAZ compression GZIP

Builds on: GCG discoverable memorization extractable memorization counterfactual memorization TOFU

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