ReLearn: Unlearning via Learning for Large Language Models
Haoming Xu, Ningyuan Zhao, Liming Yang, Sendong Zhao, Shumin Deng, Mengru Wang, Bryan Hooi, Nay Oo, Huajun Chen, Ningyu Zhang
TL;DR
ReLearn tackles the challenge of unlearning sensitive knowledge in large language models by shifting from reverse optimization to positive optimization through a data-augmentation–plus–fine-tuning pipeline. It introduces a holistic evaluation framework—Knowledge Forgetting Rate ($KFR$), Knowledge Retention Rate ($KRR$), and Linguistic Score ($LS$)—to jointly assess forgetting, retention, and generation quality. Empirical results on TOFU and KnowUnDo show ReLearn achieves targeted forgetting with strong retention and language fluency, outperforming gradient-based baselines that over-forget or degrade coherence. Mechanistic analyses reveal that positive optimization preserves memory and linguistic circuits, while reverse optimization disrupts coherent generation, yielding a practical approach with robust defense against precision variation and jailbreaks and meaningful implications for privacy-preserving AI systems.
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.
