atlas

Research map / Large language models / Alignment and preferences

Large Language Model Unlearning

NeurIPS 2024 · Large language models › Alignment and preferences · approach: Steering and correcting LLM behavior · 34 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 gradient-ascent-based LLM unlearning using only negative examples to remove harmful responses, copyrighted text, and hallucinations, with a random-mismatch loss and KL utility regularization, and compares it to RLHF at about 2% of its compute.

Problem

Aligning LLMs requires costly positive (human-written, helpful) examples in RLHF; practitioners need a cheap way to remove undesirable behaviors (harmful outputs, copyrighted content, hallucinations) from already-trained LLMs without retraining from scratch.

Approach

Apply gradient ascent on undesirable (negative) prompt-output pairs, augmented with a random-mismatch loss that pairs prompts with irrelevant responses and a KL term on normal data (with format matched to the forget data) to preserve utility, so the model stops producing undesirable outputs using only negative samples.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
add random mismatch loss to GA (ablation)OPT-1.3B unlearning harmfulness · TruthfulQA normal promptsutility reward: -3.838 -> -2.982Helped
add random mismatch loss to GA (ablation)OPT-1.3B copyright unlearning · Normal BookCorpus completionsimilarity to original: -0.759 -> -0.643Helped
add random mismatch loss to GA (ablation)OPT-1.3B copyright unlearning · Unlearned HP extraction attemptsleak rate: 0% -> 0%No clear effect
add random mismatch loss to GA (ablation)OPT-1.3B hallucination unlearning · Unlearned HaluEval misleading questionshallucination rate: 11% -> 15%Hurt
replace random mismatch outputs with templated response (ablation)OPT-1.3B harmfulness unlearning · PKU-SafeRLHF harmful promptsharmful rate: 1% -> 1%No clear effect
replace random mismatch outputs with templated response (ablation)OPT-1.3B harmfulness unlearning · PKU-SafeRLHF harmful promptsdiversity: 0.118 -> 0.864Helped
use GA instead of finetuning on BookCorpusOPT-1.3B harmfulness unlearning · PKU-SafeRLHF harmful promptsharmful rate: 34.5% -> 1%Helped
use GA instead of full RLHFOPT-1.3B harmfulness alignment · PKU-SafeRLHF harmful promptsharmful rate: 4% -> 1%Helped
continue unlearning beyond about 200 batches to about 1000 batches (ablation)OPT-1.3B gradient ascent · Harmful promptsharmful response behavior: ~200 -> ~1000 batchesHelped

Surprising findings

Limitations

Experimental setup

Datasets: PKU-SafeRLHF TruthfulQA BookCorpus Harry Potter and the Sorcerer's Stone HaluEval

Benchmarks: PKU-SafeRLHF TruthfulQA BookCorpus HaluEval

Metrics: harmful rate leak rate hallucination rate diversity fluency (perplexity) utility reward BLEURT similarity to original BLEU BERTScore

Baselines: Finetuning SFT Full RLHF GA GA+Mismatch

Builds on: gradient ascent unlearning label smoothing RLHF

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