ReLearn: Unlearning via Learning for Large Language Models

Haoming Xu, Ningyuan Zhao, Liming Yang, Sendong Zhao, Shumin Deng +5 more
2/16/2025
cs.CLcs.AIcs.CV

Official code: zjunlp/unlearn (49 stars, MIT, last commit 2025-09-18).

Abstract

Current unlearning methods for large language models usually rely on reverse optimization to reduce target token probabilities. However, this paradigm disrupts the subsequent tokens prediction, degrading model performance and linguistic coherence. Moreover, existing evaluation metrics overemphasize contextual forgetting while inadequately assessing response fluency and relevance. To address these challenges, we propose ReLearn, a data augmentation and fine-tuning pipeline for effective unlearning, along with a comprehensive evaluation framework. This framework introduces Knowledge Forgetting Rate (KFR) and Knowledge Retention Rate (KRR) to measure knowledge-level preservation, and Linguistic Score (LS) to evaluate generation quality. Our experiments show that ReLearn successfully achieves targeted forgetting while preserving high-quality output. Through mechanistic analysis, we further demonstrate how reverse optimization disrupts coherent text generation, while ReLearn preserves this essential capability. Code is available at https://github.com/zjunlp/unlearn.

View on arXivView PDF

Code Implementations(1)

zjunlp/unlearnOfficial100%
MIT

[ACL 2025] Knowledge Unlearning for Large Language Models

496Shell, PythonApr 28, 20231 years agoMIT
artificial-intelligencecopyrightknowledge-editingknowledge-unlearninglarge-language-models+5 more

Similar Papers

Cite this paper

@article{xu2025relearn,
  title  = {ReLearn: Unlearning via Learning for Large Language Models},
  author = {Haoming Xu and Ningyuan Zhao and Liming Yang and Sendong Zhao and Shumin Deng and Mengru Wang and Bryan Hooi and Nay Oo and Huajun Chen and Ningyu Zhang},
  year   = {2025},
  eprint = {2502.11190},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.11190v3}
}

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

Discussion