arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.06320cs.LGcs.AIcs.CL
收藏

学习遗忘什么:通过习得的词元级重要性改进大语言模型遗忘

Learning What to Forget: Improving LLM Unlearning via Learned Token-Level Importance

Theory of Machine Learning Lab, EPFL(机器学习理论实验室,EPFL)

Gizem Yüce, Giorgos Nikolaou, Nicolas Flammarion

AI总结:

提出交替词元加权遗忘(ATWU)框架,通过联合学习词元遗忘特异性和模型参数,在无外部监督下实现最优的遗忘-保留权衡。

摘要:

机器遗忘旨在从训练好的模型中移除特定知识,同时保留其通用能力。对于自回归语言模型,遗忘样本中的并非所有词元都与遗忘同等相关。现有方法要么忽略这种异质性,要么依赖辅助模型、启发式方法或外部标注来估计每个词元对遗忘的相关性。我们转而通过其与保留目标的交互来刻画这种相关性:一个词元是遗忘特异性的,其程度取决于在该词元上最小化遗忘损失不与保留最优性冲突。我们将这一视角形式化为一个关于模型参数和词元权重的联合优化问题,并证明在自然分离条件下,所得目标能够恢复 oracle 遗忘特异性词元支持。受此公式启发,我们引入了交替词元加权遗忘(ATWU),这是一个轻量级框架,在遗忘过程中通过一个基于隐藏状态的简单线性评分器联合学习词元遗忘特异性和模型参数,无需外部词元级监督。在 TOFU 和 RWKU 上,ATWU 实现了最先进的遗忘-保留权衡,优于样本级方法、基于概率的词元加权启发式方法和基于辅助模型的方法。此外,学习到的分数与真实遗忘特异性跨度显著更好地对齐,表明 ATWU 识别了语义上有意义的词元级遗忘信号。总体而言,我们的结果表明,保留冲突为识别语言模型应遗忘什么提供了有效标准,使得能够直接从模型表示中以最小计算开销无监督学习词元级遗忘特异性。

英文摘要:

Machine unlearning aims to remove targeted knowledge from a trained model while preserving its general capabilities. For autoregressive language models, not all tokens in a forget sample are equally relevant to forgetting. Existing approaches either ignore this heterogeneity or rely on auxiliary models, heuristics, or external annotations to estimate each token's relevance for forgetting. We instead characterize it through the interaction with the retain objective: a token is forget-specific to the extent that minimizing the forget loss on that token does not conflict with retain optimality. We formalize this perspective as a joint optimization problem over the model parameters and the token weights and show that, under a natural separation condition, the resulting objective recovers the oracle forget-specific token support. Motivated by this formulation, we introduce Alternating Token-Weighted Unlearning (ATWU), a lightweight framework that jointly learns token forget-specificity and model parameters during unlearning using a simple linear scorer over the hidden states, without external token level supervision. Across TOFU and RWKU, ATWU achieves state of the art forget-retain trade-offs, outperforming sample-level methods, probability-based token weighting heuristics, and auxiliary-model-based approaches. Moreover, the learned scores align substantially better with ground truth forget-specific spans, indicating that ATWU identifies semantically meaningful token level forgetting signals. Overall, our results suggest that retain conflict provides an effective criterion for identifying what language models should forget, enabling unsupervised learning of token level forget-specificity directly from model representations with minimal computational overhead.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑