Does Unlearning Truly Unlearn? A Black Box Evaluation of LLM Unlearning Methods

Jai Doshi, Asa Cooper Stickland
11/18/2024
cs.CLcs.LG

Official code: JaiDoshi/Knowledge-Erasure (2 stars, last commit 2025-03-12).

Abstract

Large language model unlearning aims to remove harmful information that LLMs have learnt to prevent their use for malicious purposes. LLMU and RMU have been proposed as two methods for LLM unlearning, achieving impressive results on unlearning benchmarks. We study in detail the impact of unlearning on LLM performance metrics using the WMDP dataset as well as a new biology dataset we create. We show that unlearning has a notable impact on general model capabilities, with the performance degradation being more significant in general for LLMU. We further test the robustness of the two methods and find that doing 5-shot prompting or rephrasing the question in simple ways can lead to an over ten-fold increase in accuracy on unlearning benchmarks. Finally, we show that training on unrelated data can almost completely recover pre-unlearning performance, demonstrating that these methods fail at truly unlearning. Our methodology serves as an evaluation framework for LLM unlearning methods. The code is available at: https://github.com/JaiDoshi/Knowledge-Erasure.

View on arXivView PDF

Code Implementations(1)

20PythonSep 23, 20241 years ago

Similar Papers

Cite this paper

@article{doshi2024does,
  title  = {Does Unlearning Truly Unlearn? A Black Box Evaluation of LLM Unlearning Methods},
  author = {Jai Doshi and Asa Cooper Stickland},
  year   = {2024},
  eprint = {2411.12103},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.12103v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.12103.svg)](https://codeofpaper.com/paper/2411.12103)

Discussion