atlas

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

Quantifying and Analyzing Entity-Level Memorization in Large Language Models

AAAI 2024 · Large language models › Language, safety and interpretability · approach: LLM unlearning and benchmarks · 6 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.

Defines entity-level memorization in LLMs and proposes Efficient Memorization Extraction (EME), which combines entity-attribute prompts with trained soft prompts (prefix tuning) to reconstruct held-out entities from the Enron emails in GPT-Neo models.

Problem

Existing memorization quantification needs access to precise original training prefixes or costly retraining comparisons, and textual prompts are hard to tune across model families, so real-world entity-level memorization leakage is poorly measured.

Approach

Define entity memorization as reconstructing an unseen entity of a training string from n identifying entities, and activate it with soft prompts (prefix tuning) built from entity-attribute text rather than handcrafted or verbatim prefixes.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use entity attributes with soft prompts instead of handcrafted textual promptsGPT-Neo 6B · Enron entity extractionentity extraction rate: three-fold increaseHelped
Use prefix tuning rather than prompt-tuning or p-tuning (ablation)GPT-Neo · Enron entity extractionentity extraction rate: 9.04%; surpassing the other two methods by a margin of 2%Helped
Combine outputs from different soft-prompt methods using entity agreement and perplexity selection (ablation)GPT-Neo · Enron entity extraction with prefix length 5accuracy of memorization reconstruction: 0.4%No clear effect
Use fabricated entity pairs rather than real entity pairs to train soft prompts (ablation)GPT-J 6B · Enron entity extractionreconstruction rate: near 4% lossHurt
Train soft prompts on fabricated data (ablation)GPT-J 6B · Enron entity extractionaccuracy: maximum accuracy of 5.7%Helped
Use models without Enron training-data memorization rather than a model with memorization (ablation)OPT 6.7B and Llama 7B · Enron entity reconstructionaccuracy: maximum accuracy of 0.4%Hurt
Increase soft-prompt prefix length beyond the optimal short length (ablation)GPT-Neo · Enron entity extractionentity extraction rateMixed
Increase the amount of real training data for soft prompts (ablation)GPT-Neo · Enron entity extractionentity extraction rateMixed
Increase the number of duplicate occurrences of entity sequences (ablation)GPT-Neo · Enron entity extractionaccuracy: more than 50 times; exceeded 10%; Beyond 200 duplications ... 61.2%Helped

Surprising findings

Limitations

Experimental setup

Datasets: Enron email dataset (subset of The Pile)

Benchmarks: Enron email dataset

Metrics: entity extraction rate accuracy of entity reconstruction

Baselines: handcrafted textual prompts prompt-tuning p-tuning

Builds on: prefix tuning prompt tuning p-tuning The Pile

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