Knowledge Unlearning for Mitigating Privacy Risks in Language Models

Joel Jang, Dongkeun Yoon, Sohee Yang, Sungmin Cha, Moontae Lee +2 more
10/4/2022
600 citations
cs.CL

Official code: joeljang/knowledge-unlearning (88 stars, Python, last commit 2024-09-12).

Abstract

Pretrained Language Models (LMs) memorize a vast amount of knowledge during initial pretraining, including information that may violate the privacy of personal lives and identities. Previous work addressing privacy issues for language models has mostly focused on data preprocessing and differential privacy methods, both requiring re-training the underlying LM.

Show full abstract

We propose knowledge unlearning as an alternative method to reduce privacy risks for LMs post hoc. We show that simply performing gradient ascent on target token sequences is effective at forgetting them with little to no degradation of general language modeling performances for larger LMs; it sometimes even substantially improves the underlying LM with just a few iterations. We also find that sequential unlearning is better than trying to unlearn all the data at once and that unlearning is highly dependent on which kind of data (domain) is forgotten. By showing comparisons with a previous data preprocessing method and a decoding method known to mitigate privacy risks for LMs, we show that unlearning can give a stronger empirical privacy guarantee in scenarios where the data vulnerable to extraction attacks are known a priori while being much more efficient and robust. We release the code and dataset needed to replicate our results at https://github.com/joeljang/knowledge-unlearning.

View on arXivView PDF

Code Implementations(1)

[ACL 2023] Knowledge Unlearning for Mitigating Privacy Risks in Language Models

8816PythonOct 1, 20222 years ago

Similar Papers

Cite this paper

@article{jang2022knowledge,
  title  = {Knowledge Unlearning for Mitigating Privacy Risks in Language Models},
  author = {Joel Jang and Dongkeun Yoon and Sohee Yang and Sungmin Cha and Moontae Lee and Lajanugen Logeswaran and Minjoon Seo},
  year   = {2022},
  eprint = {2210.01504},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.01504}
}

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

Discussion