Machine Unlearning of Pre-trained Large Language Models

Jin Yao, Eli Chien, Minxin Du, Xinyao Niu, Tianhao Wang +2 more
2/23/2024
cs.CLcs.AIcs.CR

No official code found. Best implementation: yaojin17/Unlearning_LLM (68 stars, MIT, last commit 2024-09-30).

Abstract

This study investigates the concept of the `right to be forgotten' within the context of large language models (LLMs). We explore machine unlearning as a pivotal solution, with a focus on pre-trained models--a notably under-researched area. Our research delineates a comprehensive framework for machine unlearning in pre-trained LLMs, encompassing a critical analysis of seven diverse unlearning methods. Through rigorous evaluation using curated datasets from arXiv, books, and GitHub, we establish a robust benchmark for unlearning performance, demonstrating that these methods are over $10^5$ times more computationally efficient than retraining. Our results show that integrating gradient ascent with gradient descent on in-distribution data improves hyperparameter robustness. We also provide detailed guidelines for efficient hyperparameter tuning in the unlearning process. Our findings advance the discourse on ethical AI practices, offering substantive insights into the mechanics of machine unlearning for pre-trained LLMs and underscoring the potential for responsible AI development.

View on arXivView PDF

Code Implementations(1)

MIT

[ACL 2024] Code and data for "Machine Unlearning of Pre-trained Large Language Models"

687PythonFeb 26, 20242 years agoMIT
copyright-protectiondata-privacyllmllm-unlearningmachine-unlearning+1 more

Similar Papers

Cite this paper

@article{yao2024machine,
  title  = {Machine Unlearning of Pre-trained Large Language Models},
  author = {Jin Yao and Eli Chien and Minxin Du and Xinyao Niu and Tianhao Wang and Zezhou Cheng and Xiang Yue},
  year   = {2024},
  eprint = {2402.15159},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.15159v3}
}

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/2402.15159.svg)](https://codeofpaper.com/paper/2402.15159)

Discussion