English

UCD: Unlearning in LLMs via Contrastive Decoding

Computation and Language 2025-06-17 v1 Cryptography and Security Machine Learning Machine Learning

Abstract

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.

Keywords

Cite

@article{arxiv.2506.12097,
  title  = {UCD: Unlearning in LLMs via Contrastive Decoding},
  author = {Vinith M. Suriyakumar and Ayush Sekhari and Ashia Wilson},
  journal= {arXiv preprint arXiv:2506.12097},
  year   = {2025}
}
R2 v1 2026-07-01T03:16:47.481Z