English

CodeUnlearn: Amortized Zero-Shot Machine Unlearning in Language Models Using Discrete Concept

Computation and Language 2024-10-16 v1 Artificial Intelligence

Abstract

Large Language Models (LLMs) offer extensive knowledge across various domains, but they may inadvertently memorize sensitive, unauthorized, or malicious data, such as personal information in the medical and financial sectors. Machine unlearning methods aim to remove specific information from models after training to address this. However, current approaches require additional model training or struggle to effectively erase particular data points and their associated context due to LLMs' complex, dense, and continuous nature. In this study, we propose a novel amortized unlearning approach using codebook features and Sparse Autoencoders (SAEs). By leveraging a bottleneck to decompose the activation space and regulate information flow, our method efficiently unlearns targeted information while preserving the model's performance on unrelated data. To the best of our knowledge, this is the first work that successfully enables unlearning specific topics with contextual relevance in an LLM, marking a significant step towards real-world applications of machine unlearning.

Keywords

Cite

@article{arxiv.2410.10866,
  title  = {CodeUnlearn: Amortized Zero-Shot Machine Unlearning in Language Models Using Discrete Concept},
  author = {YuXuan Wu and Bonaventure F. P. Dossou and Dianbo Liu},
  journal= {arXiv preprint arXiv:2410.10866},
  year   = {2024}
}
R2 v1 2026-06-28T19:21:12.898Z