Machine Unlearning in Diffusion LLMs

Yili Wang, Yijie Xu, Lu Dai, Tairan Huang, Qianyi Cai, Huizai Yao, Tianfu Wang, Hui XiongNeurIPS 2026

TL;DR

Diffusion Large Language Models (DLLMs)—models that generate text all at once by unmasking tokens in parallel rather than reading left-to-right—are emerging as fast, powerful rivals to standard GPT-style models. However, when we need to erase private or copyrighted facts from them ("machine unlearning"), standard techniques fail miserably and often lobotomize the model. This paper introduces DL-ERASER, the first unlearning framework built natively for the unique, chaotic dynamics of text diffusion.

What Problem Does This Paper Address?

Once a massive language model memorizes a private phone number or copyrighted chapter, retraining it from scratch without that data is far too expensive. Enter Machine Unlearning (MU): surgically editing a model’s weights to make it forget specific targets while keeping the rest of its brain intact.

We have decent unlearning recipes for standard autoregressive models (which predict text one word after another, left-to-right). Recently, however, Diffusion LLMs (DLLMs) like LLaDA and DREAM have gained traction. Instead of writing sequentially, DLLMs start with a block of [MASK] tokens and iteratively denoise (unmask) them in parallel using bidirectional context.

When the authors tried applying standard unlearning methods—like Gradient Ascent (pushing the model away from the right answer)—to DLLMs, they hit two major walls:

  1. Sparse Signals: Autoregressive models get feedback on every single word in a sentence during a training pass. DLLMs only compute losses on the tokens that happen to be randomly masked in that step, starving the unlearning process of a strong, clear signal.
  2. Unstable Representations: Because a DLLM looks at stochastic combinations of masked and unmasked words in both directions, the same fact triggers wildly different internal activations depending on the mask pattern. Pushing down on a moving target ends up causing collateral damage to neighboring, innocent memories—leading to total model collapse.
Figure 1: Motivation for DLLM unlearning. (a-c) compare unlearning in autoregressive LLMs and DLLMs, showing that DLLMs introduce two key challenges for unlearning: sparse unlearning signals and unstable representations. As results shown in (d), these challenges make existing unlearning objectives less efficient in DLLMs and more prone to collateral damage on retained knowledge.

Methods

Instead of fighting the diffusion process, the authors designed DL-ERASER to work with it, splitting the problem into two clever components:

  • Recovery-Guided Unlearning Objective (Making the signal dense): At inference time, a DLLM starts with a completely masked answer. Standard training uses uniform random masking, which wastes time on easy, lightly-masked sentences. DL-ERASER mimics early inference by heavily masking the target answers (e.g., ~94% masked), exposing almost all target tokens at once. Better yet, it doesn't penalize every word equally—after all, you don't want the model to forget the word "the". It weights the forgetting penalty by combining recoverability (how confident the model still is about that token) with Inverse Document Frequency (IDF) (how rare/specific the word is, like "America" vs. "in").
  • Retain-Dominant Subspace Projection (Protecting the brain): Before updating any weights, DL-ERASER runs both the "forget" data and a "retain" dataset through the model to observe its internal layer activations. By subtracting the forget activation covariance from the retain covariance, it mathematically identifies the geometric directions in weight space that are crucial for general utility. During unlearning, parameter updates are orthogonally projected away from this protected subspace—creating a geometric shield around knowledge we want to keep.
Overview of the DL-ERASER framework showing high-mask recovery weighting and geometric subspace projection.

Datasets

No new datasets were introduced; the authors evaluated DL-ERASER using two established unlearning benchmarks paired with open-weight DLLMs (LLaDA and DREAM):

  • TOFU: An entity-centric Q&A benchmark about synthetic authors. Models are fine-tuned on the full dataset, then tasked with forgetting 1% of it while being tested on the remaining 99% ("Retain Set") alongside Real Authors and World Facts.
  • KnowUnDo-Privacy: A privacy-focused benchmark designed to test selective amnesia—erasing private personal details about individuals while retaining publicly shareable facts about those exact same people.

Key Insights and Ideas

  • Unlearning in DLLMs is a cliff, not a slope: With standard Gradient Ascent on a DLLM, nothing happens for 20+ epochs (compared to 3–5 epochs in GPT-style models), followed by a sudden cliff where both forgotten and retained knowledge crash to zero simultaneously.
  • Don't waste gradients on stop-words: Ablation studies showed that removing IDF token-specificity dropped Forget Quality from 0.40 to 0.31. Focusing pressure strictly on rare, stubbornly recoverable words prevents the model from unlearning basic grammar.
  • Heavy masking is crucial, pure weighting isn't: Cranking the average mask ratio up from 66.7% to 94.1% dramatically improved forgetting (0.01 to 0.40 Forget Quality). However, blending uniform high-masking equally with confidence-weighted tokens ($\lambda = 0.5$) beat pure confidence-weighting ($\lambda = 1.0$), showing that broad span degradation stabilizes targeted erasure.

Key Results

Across both backbones, adapted autoregressive baselines (GA, GA-diff, KL-min, NPO) either failed to erase the targets or wrecked model utility.

  • On TOFU (with LLaDA): DL-ERASER achieved a Forget Quality (FQ) of 0.40 (a statistical p-value measuring how closely the model matches one never trained on the data; higher is better), dwarfing baselines which scored between 0.01 and 0.10. Simultaneously, it cut forget-set ROUGE-L from 0.72 down to 0.21 while preserving an overall Model Utility of 0.42 (versus 0.44 for a gold-standard retrained model). Without subspace projection, utility plunged to 0.35.
  • On KnowUnDo-Privacy (with DREAM): While baselines barely budged forget-set accuracy, DL-ERASER slashed Forget ROUGE-L from 0.4438 down to 0.2854 and Full-Mask recovery accuracy from 0.3350 to 0.2173, while keeping 5-task general capability virtually untouched (0.6703 vs. 0.6719 pre-unlearning).
Table 1: Unlearning results on the TOFU dataset with the LLaDA backbone under the 1% forget setting. R-L denotes ROUGE-L, Prob. denotes probability, TR denotes Truth Ratio, FQ denotes Forget Quality, and MU denotes the aggregate Model Utility score.

Limitations and Future Work

  • Model Scale: Experiments were limited to current open-weight DLLMs (LLaDA and DREAM). How well DL-ERASER scales—both in effectiveness and the computational overhead of computing activation covariances—to massive frontier-scale models remains an open question.
  • No Guarantees of Total Erasure: As the authors candidly note in their broader impact statement, empirical improvements in unlearning metrics reduce easy recovery of sensitive data, but incomplete forgetting can still leave traces behind. It is a strong practical defense, not a cryptographic guarantee of deletion.

Summary updated

Abstract

Machine unlearning (MU) aims to remove sensitive or undesired knowledge from a trained model without retraining from scratch. While MU has been widely studied for autoregressive large language models, its application to diffusion large language models (DLLMs) remains largely unexplored. In this paper, we present the first systematic study of MU in DLLMs and show that existing unlearning objectives transfer poorly to this setting due to sparse supervision and inaccurate forgetting localization. To address these challenges, we propose \textsc{DL-Eraser}, a DLLM-native unlearning framework that suppresses target recoverability under high-mask conditioning while constraining updates to a utility-preserving subspace. Extensive experiments show that \textsc{DL-Eraser} achieves stronger forgetting while better preserving model utility than existing baselines. To the best of our knowledge, this is the first work that systematically investigates MU in DLLMs.
BibTeX
@inproceedings{wang2026machine,
  author = {Yili Wang and Yijie Xu and Lu Dai and Tairan Huang and Qianyi Cai and Huizai Yao and Tianfu Wang and Hui Xiong},
  title = {{Machine Unlearning in Diffusion LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Dlj9mRJfOq},
}
Figure