Unlearning That Lasts: Utility-Preserving, Robust, and Almost Irreversible Forgetting in LLMs
Organizations: University of Tübingen & Tübingen AI Center, Germany · EPFL, Switzerland
Abstract
Unlearning in large language models (LLMs) requires precisely removing specific information from a pre-trained model, e.g. to delete private data or harmful knowledge acquired during pre-training. However, existing unlearning methods often fall short under thorough evaluation. This paper makes three contributions. First, we introduce JensUn, a novel unlearning approach which leverages the Jensen-Shannon Divergence (JSD) as the training objective for both forget and retain sets. We provide theoretical arguments why JSD outperforms KL-Divergence, and show in extensive experiments that JensUn achieves the best forget-utility trade-off and demonstrates strong resilience to benign relearning, outperforming existing methods. Second, for a precise unlearning evaluation, we introduce LPF, a curated dataset of less prominent facts that provides a realistic unlearning scenario. Third, to comprehensively test unlearning methods, we employ an LLM as semantic judge instead of the standard ROUGE score, and evaluate worst-case unlearning over various paraphrases and input formats. Our improved evaluation reveals that many unlearning methods are less effective than previously thought.
Figures & tables
| Forget ( ) | Ret. ( ) | Utility ( ) | |||
| Method | MMLU | Rep. | WR | ||
| Original | 76.0 | 60.1 | 59.6 | 637 | 0.5 |
| GradAscent | 0.0 | 0.0 | 23.4 | 0.0 | 0 |
| GradDiff | 2.0 | 46.8 | 57.5 | 442 | 0.22 |
| DPO | 32.0 | 54.3 | 58.5 | 628 | 0.42 |
| NPO | 6.0 | 44.8 | 57.6 | 447 | 0.27 |
| Forget ( ) | Retain ( ) | Utility ( ) | ||||||
| FB | QA | FB | QA | MMLU | AlpacaEval | |||
| Method | Source | Gen | Rep. | WR | ||||
| Phi-3-Mini-4K | Abdin et al. (2024) | 91.0 | 78.6 | 59.6 | 60.8 | 63.4 | 708 | 0.5 |
| GradAscent | Jang et al. (2023) | 4.3 | 2.3 | 0.0 | 2.0 | 57.2 | 69 | 0.01 |
| GradDiff | Liu et al. (2022) | 22.3 | 22.1 | 36.4 | 40.4 | 61.6 | 612 | 0.42 |
| DPO | Rafailov et al. (2023) | 48.2 | 42.0 | 34.0 | 24.4 | 61.9 | 722 | 0.20 |
| Method | Metric | Relearning type | Unlearn. steps | |
| 200 ∗ | 400 | |||
| GradDiff | WR | – | 0.22 | 0.15 |
| (Un.) | – | 2.0 | 1.0 | |
| (Re.) | Benign | 51.0 | 48.0 | |
| (Re.) | Adversarial | 53.0 | 53.0 | |
| RMU | WR | – | 0.37 | 0.36 |
Appendix figures & tables31 assets
Supplementary material from the paper’s appendix.
Appendix
| Forget ( ) | Retain ( ) | Utility ( ) | ||||||
| Model | Targets | FB | QA | FB | QA | Gen | Rep. | WR |
| Phi-3-Mini-4K | 10 | 91.0 | 78.6 | 59.6 | 60.8 | 63.4 | 708 | 0.50 |
| JensUn | 10 | 16.3 | 6.1 | 40.8 | 42.4 | 63.2 | 694 | 0.52 |
| Phi-3-Mini-4K | 20 | 92.4 | 82.5 | 61.2 | 65.6 | 63.4 | 708 | 0.50 |
| JensUn | 20 | 20.4 | 16.9 | 39.2 | 52.4 | 63.4 | 680 | 0.54 |
| LPF | RWKU | |||||||||
| Method | LR | BS | GradAc | LR | BS | GradAc | ||||
| GradAscent | 8e-6 | 0.0 | 1.0 | 4 | 4 | 7e-8 | 0.0 | 1.0 | 4 | 2 |
| GradDiff | 1e-5 | 0.5 | 0.5 | 4 | 4 | 6e-7 | 0.5 | 0.5 | 4 | 2 |
| DPO | 1e-5 | 1.0 | 1.0 | 4 | 4 | 1e-5 | 1.0 | 1.0 | 4 | 2 |
| NPO | 9e-6 | 1.0 | 1.0 | 4 | 4 | 1e-5 | 1.0 | 1.0 | 4 | 2 |
| SimNPO | 2e-5 | 1.0 | 0.125 | 4 | 4 | 1e-5 | 0.125 | 1.0 | 4 | 2 |
| Reference: The capital of France is Paris. | R | P | F1 | Judge | Human |
| A1: Paris is the capital of France. | 0.5 | 0.5 | 0.5 | ✔ | ✔ |
| A2: Of France, Paris is the capital. | 0.17 | 0.17 | 0.17 | ✔ | ✔ |
| A3: The capital of France is Marseille. | 0.83 | 0.83 | 0.83 | ✘ | ✘ |
| Method | (1) | (2) | (3) | (4) | ||||
| Llama-3.2-3B | 71.0 | 72.0 | 71.0 | 65.0 | 76.0 | 76.0 | 76.0 | 76.0 |
| GradAscent | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| GradDiff | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| NPO | 1.0 | 2.0 | 1.0 | 1.0 | 3.0 | 3.0 | 4.0 | 4.0 |
| RMU | 14.0 | 16.0 | 13.0 | 14.0 | 19.0 | 19.0 | 19.0 | 19.0 |
| SimNPO | 27.0 | 26.0 | 23.0 | 27.0 | 29.0 | 29.0 | 29.0 | 29.0 |
| Forget FB-set | Forget QA-set | |||||||
| Method | ROUGE | Rank | Rank | ROUGE | Rank | Rank | ||
| GradAscent | 40.1 | 5 | 73.3 | 5 | 34.6 | 5 | 68.7 | 5 |
| GradDiff | 4.7 | 2 | 22.3 | 2 | 1.6 | 1 | 22.1 | 2 ( +1 ) |
| DPO | 22.5 | 3 | 48.2 | 3 | 19.6 | 3 | 42.0 | 3 |
| NPO | 22.5 | 3 | 55.4 | 4 ( +1 ) | 22.3 | 4 | 50.4 | 4 |
| RT | 48.5 | 6 | 89.1 | 6 | 46.3 | 6 | 74.8 | 6 |
| RWKU Eval. | Proposed Eval. | |||||||||
| FB | QA | AA | All | FB | QA | |||||
| Method | ||||||||||
| Original | 58.4 | 61.1 | 63.8 | 61.9 | 86.1 | 86.7 | 91.0 (+32.6) | 74.0 | 76.3 | 78.6 (+17.5) |
| GradAscent | 44.0 | 40.5 | 54.3 | 48.7 | 67.9 | 63.9 | 73.3 (+29.3) | 61.1 | 64.9 | 68.7 (+28.2) |
| GradDiff | 4.8 | 0.0 | 12.7 | 7.9 | 11.4 | 13.9 | 22.3 (+17.5) | 11.5 | 12.4 | 22.1 (+22.1) |
| DPO | 31.9 | 28.2 | 30.0 | 30.1 | 42.0 | 46.4 | 48.2 (+16.3) | 38.9 | 39.7 | 42.0 (+13.8) |
| Forget ( ) | Ret.( ) | Utility ( ) | ||||||
| Method | MMLU | Rep. | WR | |||||
| Llama-3.2-3B | – | 71.0 | 72.0 | 76.0 | 52.6 | 59.6 | 637 | 0.5 |
| GradDiff | 0.5 | 0.0 | 0.0 | 0.0 | 58.9 | 58.4 | 339 | 0.21 |
| GradDiff | 0.6 | 2.0 | 4.0 | 5.0 | 69.5 | 57.4 | 327 | 0.23 |
| GradDiff | 0.7 | 3.0 | 1.0 | 4.0 | 70.6 | 59.5 | 349 | 0.26 |
| GradDiff | 0.8 | 5.0 | 7.0 | 8.0 | 78.0 | 59.6 | 351 | 0.31 |
| Forget ( ) | Ret.( ) | Utility ( ) | ||||||
| Method | LR | MMLU | Rep. | WR | ||||
| Llama-3.2-3B | – | 71.0 | 72.0 | 76.0 | 52.6 | 59.6 | 637 | 0.5 |
| GradDiff | 5e-6 | 34.0 | 39.0 | 42.0 | 60.4 | 59.9 | 439 | 0.26 |
| GradDiff | 1e-5 | 0.0 | 0.0 | 0.0 | 58.9 | 58.4 | 339 | 0.21 |
| JensUn | 9e-6 | 1.0 | 1.0 | 1.0 | 44.8 | 59.2 | 628 | 0.5 |
| JensUn | 1e-5 | 0.0 | 0.0 | 0.0 | 49.2 | 58.6 | 621 | 0.48 |
| Forget ( ) | Ret.( ) | Utility ( ) | |||||
| Method | Epochs | #para | MMLU | Rep. | WR | ||
| Llama-3.2-3B | – | – | 76.0 | 60.1 | 59.6 | 637 | 0.5 |
| GradAscent | 60 | 0 | 0.0 | 0.0 | 23.4 | 0.0 | 0.0 |
| GradDiff | 60 | 0 | 0.0 | 48.8 | 58.4 | 339 | 0.21 |
| NPO | 60 | 0 | 3.0 | 14.1 | 57.3 | 378 | 0.12 |
| RMU | 60 | 0 | 19.0 | 59.4 | 56.6 | 622 | 0.38 |
| Forget ( ) | Retain ( ) | Utility ( ) | |||||
| Method | MMLU | Rep. | WR | ||||
| Phi-3 Mini-4K-Instruct | 76.0 | 75.0 | 82.0 | 77.0 | 63.4 | 708 | 0.5 |
| GradDiff | 1.0 | 2.0 | 2.0 | 62.8 | 60.7 | 505 | 0.33 |
| NPO | 1.0 | 1.0 | 1.0 | 69.3 | 62.7 | 628 | 0.31 |
| RMU | 31.0 | 39.0 | 43.0 | 74.5 | 62.5 | 638 | 0.47 |
| SimNPO | 31.0 | 34.0 | 45.0 | 69.0 | 58.2 | 154 | 0.06 |
| Forget | Retain | Utility | ||
| Method | ( ) | ( ) | Rep. ( ) | WR ( ) |
| Llama-3.1-8B-Instruct model | 84.0 | 80.6 | 632 | 0.50 |
| RMU | 18.0 | 32.3 | 606 | 0.40 |
| SimNPO | 18.0 | 29.0 | 132 | 0.05 |
| JensUn | 0 1.0 | 72.7 | 633 | 0.52 |
| Forget ( ) | Retain( ) | Utility ( ) | ||||||
| FB | QA | FB | QA | MMLU | AlpacaEval | |||
| Method | Epochs | Gen | Rep. | WR | ||||
| Phi-3-Mini-4K | – | 91.0 | 78.6 | 59.6 | 60.8 | 63.4 | 708 | 0.5 |
| GradAscent | 10 | 1.8 | 0.0 | 0.0 | 1.6 | 57.2 | 33 | 0.01 |
| GradDiff | 10 | 18.7 | 9.2 | 31.2 | 37.6 | 61.8 | 622 | 0.35 |
| NPO | 10 | 53.0 | 52.7 | 38.0 | 40.4 | 62.9 | 739 | 0.44 |
| Forget | Neigh. | MIA Set | Utility Set | |||||||||
| Method | LR | FB | QA | FB | QA | FM | RM | Gen | Rea | Tru | Fac | Flu |
| Original: Phi-3 Mini-4K-Instruct (3.8B) | ||||||||||||
| Original | 91.0 | 78.6 | 59.6 | 60.8 | 218 | 205 | 63.4 | 37.6 | 46.7 | 15.3 | 708 | |
| GradAscent | 3e-8 | 73.3 | 68.7 | 40.4 | 52.0 | 392 | 343 | 63.2 | 34.3 | 44.1 | 15.8 | 708 |
| GradAscent | 7e-8 | 4.3 | 2.3 | 0.0 | 2.0 | 4435 | 3570 | 57.2 | 0.0 | 22.8 | 0.0 | 69 |
| GradAscent | 1e-7 | 0.0 | 0.0 | 0.0 | 0.0 | 7164 | 6142 | 38.9 | 0.0 | 22.8 | 0.0 | 43 |
LLM Unlearning
Large language model unlearning studies how to remove specified knowledge or behaviors while preserving a model’s unrelated capabilities.
See all 213 papers