Learning What to Forget: Improving LLM Unlearning via Learned Token-Level Importance
Abstract
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 propose retain-conflict as a criterion for identifying forget-specific tokens, measuring how well a subset of tokens can be suppressed while preserving performance on the retain set. We formalize this principle as a fixed-budget joint optimization problem over model parameters and token weights, allowing token selection to be learned directly from the unlearning objective. 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 hidden states, without external token-level supervision. Across TOFU, RWKU, and WMDP, 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.