LEAF-OPD: Learning to Forget from Privileged Contexts via On-Policy Distillation

Zirui Pang, Zhijie Deng, Yuancheng Wang, Qihan Yu, Xin Li, Jiaheng Wei, Zixin ZhongarXiv 2026

TL;DR

LEAF-OPD is a novel unlearning framework that uses "privileged context" distillation to teach LLMs how to refuse queries about targeted data. By using a teacher model that sees hidden instructions to forget, the student model learns to internalize refusal behavior through on-policy, token-level supervision, achieving state-of-the-art unlearning quality without sacrificing general model utility.

What Problem Does This Paper Address?

As Large Language Models (LLMs) grow, they inevitably memorize "undesirable" knowledge—ranging from private PII and copyrighted text to potentially dangerous instructions. LLM Unlearning aims to remove this specific knowledge while keeping the rest of the model's capabilities intact.

Existing methods often fall into two traps:

  1. Gradient Ascent (GA): Simply "pushes" the model away from the target data, which often degrades general performance or leaves the model "confused" and prone to gibberish.
  2. Reinforcement Learning (RL): While effective at teaching refusal, it is computationally expensive, requiring multiple rollouts and complex reward functions.

The authors identify a specific gap: most methods focus on suppressing knowledge but fail to explicitly teach the model how to behave (e.g., a polite refusal) when it encounters a query about a forgotten topic.

Methods

The authors propose LEAF-OPD (LEArning to Forget from Privileged Contexts via On-Policy Distillation), which operates in two main stages:

1. Teacher Preparation & The "Supervision Signal" (SS)

The core idea is to use a Teacher model that has access to Privileged Context (e.g., a system prompt saying "You must not reveal information about Person X"). However, the authors discovered that even with these prompts, teachers often provide weak supervision after the first few tokens of a response.

To solve this, they introduced the Supervision Signal (SS) metric, which measures the strength of corrective supervision over a trajectory. If a teacher is "bad" (SS is too low), they apply lightweight SFT (Supervised Fine-Tuning) on a tiny synthetic dataset to "strengthen" the teacher's refusal muscles.

2. On-Policy Self-Distillation

Once a "good" teacher is ready, the student model begins training:

  • On-Policy Generation: The student generates a response to a query.
  • Forget Data: The teacher sees the student's trajectory plus the privileged context. It provides token-level KL-divergence supervision to guide the student toward refusal.
  • Retain Data: To prevent the model from forgetting everything else, the teacher provides supervision without the privileged context, encouraging the student to maintain its original, high-quality responses for normal queries.

Datasets

The researchers evaluated LEAF-OPD across three diverse benchmarks:

  • TOFU: A synthetic dataset of 200 fictitious authors used to measure entity-level unlearning.
  • RWKU: A real-world benchmark involving 200 celebrities to test unlearning of actual facts.
  • MUSE-News: A benchmark focused on unlearning knowledge from news articles, measuring both verbatim memorization and factual knowledge.

Key Insights and Ideas

  • The "Bad Teacher" Discovery: Simply giving a teacher a "refusal prompt" isn't enough. The supervision signal often vanishes as the response goes on. The SS metric (evaluating the second half of a response, $SS_{0.5}$) is crucial for ensuring the student actually learns to stay in "refusal mode."
  • Forward vs. Reverse KL: The paper provides a deep dive into KL directions. They found that Forward KL is superior for "bad" teachers because its gradient structure is more effective at utilizing sparse signals (like a refusal that only happens at the start of a sentence).
  • Internalizing Behavior: Unlike training-free methods (which rely on system prompts at inference time), LEAF-OPD updates the model's weights, meaning the "refusal" behavior becomes a native part of the student model.

Key Results

  • TOFU: LEAF-OPD achieved the best performance in Forget Quality (FQ) and Model Utility (MU). It reduced the Forget ROUGE-L to a mere 0.0027, significantly lower than competing methods like GA or NPO.
  • RWKU: On this real-world benchmark, LEAF-OPD outperformed the second-best method (ReRULE) by 34% in Forget Quality while maintaining competitive performance on retained knowledge.
  • MUSE-News: The method successfully satisfied all unlearning criteria (Verbatim and Knowledge memorization) while achieving the highest "KnowMem" score on the retain set (32.5), proving it preserves utility better than baselines.

Limitations and Future Work

  • Computational Cost: While more efficient than RL-based unlearning, LEAF-OPD still takes longer to train than simple fine-tuning methods (roughly 2x the runtime of standard KL minimization).
  • Data Dependency: The method relies on having a small amount of "forget" and "retain" data to guide the distillation.
  • Future Directions: The authors suggest that the Supervision Signal (SS) metric could be applied to other areas of AI alignment beyond unlearning, such as safety fine-tuning or altering specific behavioral patterns in LLMs.

Summary updated

Abstract

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.
BibTeX
@misc{pang2026leaf,
  author = {Zirui Pang and Zhijie Deng and Yuancheng Wang and Qihan Yu and Xin Li and Jiaheng Wei and Zixin Zhong},
  title = {{LEAF-OPD: Learning to Forget from Privileged Contexts via On-Policy Distillation}},
  year = {2026},
  eprint = {2611.20674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20674},
}
Figure