UCD: Unlearning in LLMs via Contrastive Decoding
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
Machine unlearning aims to remove specific information, e.g. sensitive or undesirable content, from large language models (LLMs) while preserving overall performance. We propose an inference-time unlearning algorithm that uses contrastive decoding, leveraging two auxiliary smaller models, one trained without the forget set and one trained with it, to guide the outputs of the original model using their difference during inference. Our strategy substantially improves the tradeoff between unlearning effectiveness and model utility. We evaluate our approach on two unlearning benchmarks, TOFU and MUSE. Results show notable gains in both forget quality and retained performance in comparison to prior approaches, suggesting that incorporating contrastive decoding can offer an efficient, practical avenue for unlearning concepts in large-scale models.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 47 of its 55 references that are in the map. First posted on arXiv 12 Jun 2025.
Builds on
47 of 55 references.
Closest ancestors · 26
Same direction, newest first
- 2025Exact Unlearning of Finetuning Data via Model Merging at Scale6 Apr
- 2025Open Problems in Machine Unlearning for AI Safety9 Jan
- 2024Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning9 Oct
- 2024An Adversarial Perspective on Machine Unlearning for AI Safety26 Sep
- 2024MUSE: Machine Unlearning Six-Way Evaluation for Language Models8 Jul
- 2024Towards Scalable Exact Machine Unlearning Using Parameter-Efficient Fine-Tuning24 Jun
- 2024Split, Unlearn, Merge: Leveraging Data Attributes for More Effective Unlearning in LLMs17 Jun
- 2024Large Language Model Unlearning via Embedding-Corrupted Prompts12 Jun
- 2024Large Scale Knowledge Washing26 May
- 2024SOUL: Unlocking the Power of Second-Order Optimization for LLM Unlearning28 Apr
- 2024Rethinking LLM Memorization through the Lens of Adversarial Compression23 Apr
- 2024Guardrail Baselines for Unlearning in LLMs5 Mar
14 more
- 2024Rethinking Machine Unlearning for Large Language Models13 Feb
- 2023Unlearn What You Want to Forget: Efficient Unlearning for LLMs31 Oct
- 2023Large Language Model Unlearning14 Oct
- 2023In-Context Unlearning: Language Models as Few Shot Unlearners11 Oct
- 2023Ticketed Learning-Unlearning Schemes27 Jun
- 2023Towards Unbounded Machine Unlearning20 Feb
- 2022Privacy Adhering Machine Un-learning in NLP19 Dec
- 2022Knowledge Unlearning for Mitigating Privacy Risks in Language Models4 Oct
- 2022Algorithms that Approximate Data Removal: New Results and Limitations25 Sep
- 2022A Survey of Machine Unlearning6 Sep
- 2022Quark: Controllable Text Generation with Reinforced Unlearning26 May
- 2022Continual Learning and Private Unlearning24 Mar
- 2021Adaptive Machine Unlearning8 Jun
- 2021Remember What You Want to Forget: Algorithms for Machine Unlearning4 Mar
Other references · 21
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2019The Curious Case of Neural Text Degenerationcited by 2,916
- 2022Locating and Editing Factual Associations in GPTcited by 2,691
- 2020Extracting Training Data from Large Language Modelscited by 2,189
- 2022Editing Models with Task Arithmeticcited by 1,120
- 2019Machine Unlearningcited by 1,061
- 2022Mass-Editing Memory in a Transformercited by 1,001
- 2022Contrastive Decoding: Open-ended Text Generation as Optimizationcited by 609
- 2024The WMDP Benchmark: Measuring and Reducing Malicious Use With Unlearningcited by 509
- 2022Memory-Based Model Editing at Scalecited by 447
- 2023Detecting Pretraining Data from Large Language Modelscited by 387
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 372
9 more
- 2020Descent-to-Delete: Gradient-Based Methods for Machine Unlearningcited by 311
- 2023Forget-Me-Not: Learning to Forget in Text-to-Image Diffusion Modelscited by 301
- 2023Text-to-image Diffusion Models in Generative AI: A Surveycited by 265
- 2024Model Merging in LLMs, MLLMs, and Beyond: Methods, Theories, Applications and Opportunitiescited by 254
- 2023Model evaluation for extreme riskscited by 177
- 2023Copyright Violations and Large Language Modelscited by 108
- 2023Contrastive Decoding Improves Reasoning in Large Language Modelscited by 74
- 2024GenARM: Reward Guided Generation with Autoregressive Reward Model for Test-time Alignmentcited by 54
- 2023Knowledge Sanitization of Large Language Modelscited by 37
Built on by
Citing papers per year: 2025: 1; 2026: 8.
9 papers.
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearningcited by 4
- 2026Position: The Term "Machine Unlearning" Is Overused in LLMscited by 3
- 2026Inference-time Unlearning Using Conformal Predictioncited by 2
- 2026Divergence Decoding: Inference-Time Unlearning via Auxiliary Modelscited by 2
- 2026Temper-Then-Tilt: Principled Unlearning for Generative Models through Tempering and Classifier Guidancecited by 1
- 2026Modeling LLM Unlearning as an Asymmetric Two-Task Learning Problemcited by 1
- 2026Training-Free Adaptation of New-Generation LLMs using Legacy Clinical Modelscited by 0
- 2026Unlearning in LLMs: Methods, Evaluation, and Open Challengescited by 0
- 2026Behavioral Guarantees for Proxy-Based Unlearningcited by 0
- 2026Divergence Decoding: Inference-Time Unlearning via Auxiliary Models29 May 2026
- 2026Behavioral Guarantees for Proxy-Based Unlearning11 May 2026
- 2026Position: The Term "Machine Unlearning" Is Overused in LLMs8 May 2026
- 2026Modeling LLM Unlearning as an Asymmetric Two-Task Learning Problem16 Apr 2026
- 2026Temper-Then-Tilt: Principled Unlearning for Generative Models through Tempering and Classifier Guidance10 Feb 2026
- 2026Inference-time Unlearning Using Conformal Prediction3 Feb 2026
- 2026Unlearning in LLMs: Methods, Evaluation, and Open Challenges19 Jan 2026
- 2026Training-Free Adaptation of New-Generation LLMs using Legacy Clinical Models6 Jan 2026
- 2025Downgrade to Upgrade: Optimizer Simplification Enhances Robustness in LLM Unlearning1 Oct 2025
Similar, not cited
Close in wording, no citation either way
- 2025LLM Unlearning Under the Microscope: A Full-Stack View on Methods and Metrics
- 2025BLUR: A Benchmark for LLM Unlearning Robust to Forget-Retain Overlap
- 2024Catastrophic Failure of LLM Unlearning via Quantization
- 2025A Comprehensive Survey of Machine Unlearning Techniques for Large Language Models
- 2025Unlearning That Lasts: Utility-Preserving, Robust, and Almost Irreversible Forgetting in LLMs
- 2024LLM Unlearning via Loss Adjustment with Only Forget Data
- 2024Contrastive Unlearning: A Contrastive Approach to Machine Unlearning
- 2024A Closer Look at Machine Unlearning for Large Language Models