UniErase: Towards Balanced and Precise Unlearning in Language Models

Miao Yu, Liang Lin, Guibin Zhang, Xinfeng Li, Junfeng Fang +5 more
5/21/2025
cs.CLcs.AI

No official code found. Best implementation: Ymm-cll/UniErase (1 star, last commit 2025-10-14).

Abstract

Large language models (LLMs) require iterative updates to address the outdated information problem, where LLM unlearning offers an approach for selective removal. However, mainstream unlearning methods primarily rely on fine-tuning techniques, which often lack precision in targeted unlearning and struggle to balance unlearning efficacy with general ability under massive and sequential settings. To bridge this gap, in this work, we introduce UniErase, a novel unlearning framework that demonstrates precision and balanced performances between knowledge unlearning and ability retaining. We first propose the Unlearning Token, which is optimized to steer LLMs toward a forgetting space. To achieve concrete unlearning behaviors, we further introduce the lightweight Unlearning Edit to efficiently associate the unlearning targets with this meta-token. Serving as a new unlearning paradigm via editing, UniErase achieves outstanding performances across batch, sequential, and precise unlearning tasks under fictitious and real-world knowledge scenarios. On the TOFU benchmark, compared with 8 baselines, UniErase, modifying only $\sim$ \textbf{3.66%} of the LLM parameters, outperforms the previous best-forgetting baseline by \textbf{$\sim$ 4.01$\times$} for \textbf{model ability} with even higher unlearning efficacy. Similarly, UniErase, with better ability retention, also surpasses the previous best-retaining method by \textbf{35.96%} for \textbf{unlearning efficacy}, showing balanced and dual top-tier performances in the current unlearning community.

View on arXivView PDF

Code Implementations(1)

Ymm-cll/UniEraseCommunity100%
10Python, Jupyter NotebookSep 25, 20251 years ago

Cite this paper

@article{yu2025unierase,
  title  = {UniErase: Towards Balanced and Precise Unlearning in Language Models},
  author = {Miao Yu and Liang Lin and Guibin Zhang and Xinfeng Li and Junfeng Fang and Xingrui Yu and Ivor Tsang and Ningyu Zhang and Kun Wang and Yang Wang},
  year   = {2025},
  eprint = {2505.15674},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.15674v2}
}

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

Discussion