Large language model unlearning aims to remove the influence of designated training data while preserving unrelated model capabilities. Existing likelihood-based methods commonly optimize against fixed forget sequences, providing only negative supervision on what the model should not generate and overlooking the states visited by the evolving unlearned policy. We introduce Contrastive On-Policy Self-Distillation (CPSD), a new unlearning framework that constructs an explicit knowledge-reduced target distribution and distills it along the model's own trajectories. Given a student rollout, a frozen reference model evaluates each token under a plain context and a privileged context containing the forget information. CPSD treats the resulting distributional shift as a knowledge-associated direction and reverses it to obtain a counterfactual unlearning target. The student is then trained to match this target at every rollout position while retaining its utility on unrelated data. We further introduce a privacy-enhanced variant that combines distributional unlearning with lightweight sequence-level suppression. Experiments under OpenUnlearning show that CPSD improves the forgetting-utility trade-off over NPO across TOFU forget-set sizes and Llama models ranging from 1B to 8B parameters. On MUSE-News, the privacy-enhanced variant improves all reported knowledge, memorization, privacy, and utility metrics over NPO.
Figures & tables
Figure 1: Conceptual comparison between sequence-likelihood unlearning and CPSD . Sequence-likelihood methods suppress dataset-provided forget tokens along fixed, teacher-forced trajectories. CPSD instead samples trajectories from the current student, contrasts the predictions of a frozen reference model with and without privileged forget information, and distills the reversed distributional shift along the student’s own states.
forget05
forget10
Model
Method
FQ ↑
MU ↑
FQ ↑
MU ↑
Lla-3.2-1B
GA
0.012
0.402
1.20×10−5
0.356
GradDiff
0.086
0.468
4.80×10−4
0.472
NPO
4.75×10−5
0.450
9.50×10−5
0.391
SimNPO
0.174
0.486
1.65×10−3
0.501
UNDIAL
0.109
0.474
7.60×10−4
0.483
Table 1: Main results on TOFU across model scales and forget-set sizes. FQ and MU are both higher-is-better. Bold values denote the results of our method, CPSD.
Method
FQ ↑
Prob. ↓
ROUGE ↓
MU ↑
PrivLeak ↑
NPO
1.8×10−5
0.077
0.485
0.648
−26.0
CPSD-H
1.3×10−3
0.067
0.240
0.480
18.9
Table 2: Privacy-oriented results on TOFU forget10 with Llama-3.1-8B. For FQ, MU, and PrivLeak, higher is better; for probability and ROUGE, lower is better.
Figure 2: Analysis of the CPSD mechanism. (a) Forgetting–utility operating points as the contrast strength λ varies. (b) Component analysis separating the effects of on-policy sampling and contrastive target construction. (c) Token-level plain, privileged, and CPSD target distributions for a representative forget example. Tokens most strongly amplified by the privileged context receive substantially lower probability under the contrastive target.
Method
fVerb ↓
fKnow ↓
PrivLeak →0
Extr ↓
NPO
0.256
0.361
−89.1
0.057
CPSD
0.236
0.329
−97.4
0.041
CPSD-H
0.242
0.291
−88.9
0.047
Table 3: Results on MUSE-News with Llama-2-7B. Lower fVerb , fKnow , and Extr are better; PrivLeak should be closer to zero.
LLM unlearning aims to erase targeted knowledge from large language models while preserving their utility. However, many existing methods suppress target knowledge without explicitly teaching the model how to respond to queries about it. We propose LEAF-OPD (LEArning to Forget from Privileged Contexts via On-Policy Distillation), in which a frozen teacher provides token-level supervision on student-generated responses. On forget data, the teacher uses privileged contexts (instructions not to reveal knowledge about forget targets) to guide forgetting. On retain data, the teacher provides supervision without privileged context to preserve model utility. The student operates without privileged context in both cases, learning how to respond when encountering knowledge that should be forgotten. A key challenge is that the teacher often provides effective supervision only at the first few tokens of student trajectories. We introduce Supervision Signal (SS) to measure corrective supervision over a specified token interval, evaluating the entire trajectory (SS1) and its second half (SS0.5) to assess overall strength and late-stage persistence. When supervision is weak, lightweight SFT strengthens the teacher's context-conditioned refusal behavior, substantially increasing both scores. We evaluate LEAF-OPD on three widely used benchmarks: TOFU, RWKU, and MUSE-News. On TOFU, LEAF-OPD achieves the best Forget Quality, Model Utility, and Forget ROUGE-L while maintaining competitive retain performance. On RWKU, it outperforms the second-best method by 34% in Forget Quality while maintaining competitive Retain Quality. These results demonstrate the effectiveness of privileged-context supervision with on-policy token-level distillation for LLM unlearning.
Zirui Pang, Zhijie Deng, Yuancheng Wang +4
The Hong Kong University of Science and Technology (Guangzhou) · The Chinese University of Hong Kong, Shenzhen
As Large Language Models (LLMs) demonstrate remarkable capabilities learned from vast corpora, concerns regarding data privacy and safety are receiving increasing attention. LLM unlearning, which aims to remove the influence of specific data while preserving overall model utility, is becoming an important research area. One of the mainstream unlearning classes is optimization-based methods, which achieve forgetting directly through fine-tuning, exemplified by Negative Preference Optimization (NPO). However, NPO's effectiveness is limited by its inherent lack of explicit positive preference signals. Attempts to introduce such signals by constructing preferred responses often necessitate domain-specific knowledge or well-designed prompts, fundamentally restricting their generalizability. In this paper, we shift the focus to the distribution-level, directly targeting the next-token probability distribution instead of entire responses, and derive a novel unlearning algorithm termed Distribution Preference Optimization (DiPO). We show that the requisite preference distribution pairs for DiPO, which are distributions over the model's output tokens, can be constructed by selectively amplifying or suppressing the model's high-confidence output logits, thereby effectively overcoming NPO's limitations. We theoretically prove the consistency of DiPO's loss function with the desired unlearning direction. Extensive experiments demonstrate that DiPO achieves a strong trade-off between model utility and forget quality. Notably, DiPO attains the highest forget quality on the TOFU benchmark, and maintains leading scalability and sustainability in utility preservation on the MUSE benchmark.
Kai Qin, Jiaqi Wu, Jianxiang He +8
1Tsinghua University · 2The Hong Kong University of Science and Technology · 3Jianghuai Advanced Technology Center +1
Unlearning in large language models (LLMs) requires precisely removing specific information from a pre-trained model, e.g. to delete private data or harmful knowledge acquired during pre-training. However, existing unlearning methods often fall short under thorough evaluation. This paper makes three contributions. First, we introduce JensUn, a novel unlearning approach which leverages the Jensen-Shannon Divergence (JSD) as the training objective for both forget and retain sets. We provide theoretical arguments why JSD outperforms KL-Divergence, and show in extensive experiments that JensUn achieves the best forget-utility trade-off and demonstrates strong resilience to benign relearning, outperforming existing methods. Second, for a precise unlearning evaluation, we introduce LPF, a curated dataset of less prominent facts that provides a realistic unlearning scenario. Third, to comprehensively test unlearning methods, we (i) employ an LLM as semantic judge instead of the standard ROUGE score, and (ii) evaluate worst-case unlearning over various paraphrases and input formats. Our improved evaluation reveals that many unlearning methods are less effective than previously thought.
Naman Deep Singh, Maximilian Müller, Amit Peleg +2
University of Tübingen & Tübingen AI Center, Germany · EPFL, Switzerland