cs.LGOct 18, 2026

Enhanced Masked Diffusion Unlearning

Authors: Tomer Garber, Tom Tirer

Organizations: Faculty of Engineering, Bar-Ilan University, Ramat Gan, Israel · Red Hat

Abstract

Masked diffusion language models (MDLMs) generate text by iteratively unmasking tokens with bidirectional context. As these models reach real-world deployment, machine unlearning becomes essential. This process aims to remove the influence of a designated "forget set" without retraining from scratch, so that sensitive, copyrighted, or restricted content can no longer be elicited while preserving retained capabilities. Masked Diffusion Unlearning (MDU) is the first publicly available unlearning method customized for these models: it tunes the model pθp_θ to match a frozen prompt-masked anchor panchorp_{\mathrm{anchor}} on the forget set by minimizing the anchor-last divergence KL(pθ∥panchor)\mathrm{KL}(p_θ\Vert p_{\mathrm{anchor}}). We identify two failure modes of MDU. First, random answer masking can leave key forget tokens visible to the anchor even when the question is fully masked. Second, at a memorized (near-one-hot) prediction, the anchor-last logit gradient vanishes while the anchor-first divergence KL(panchor∥pθ)\mathrm{KL}(p_{\mathrm{anchor}} \Vert p_θ) logit gradient does not. As a result, MDU training stalls on the tokens we most need to forget. Backed by theoretical and empirical analyses, we propose Enhanced Masked Diffusion Unlearning (EMDU): anchor-first KL divergence toward a frozen anchor whose entire answer span is masked. On TOFU and RWKU benchmarks using LLaDA-8B and Dream-7B, our EMDU matches or exceeds the forgetting of MDU and adapted AR baselines, while better preserving retain utility.

Figures & tables

Appendix figures & tables18 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Machine Unlearning for Masked Diffusion Language Models

    May 18, 2026Georu Lee, Seungwon Jeong, Hoki Kim +2Masked Diffusion ModelsDiffusion Model Unlearning

  2. Mask-Aware Policy Gradients for Diffusion Language Models

    Jul 16, 2026Haran Raajesh, Kulin Shah, Adam Klivans +1Masked Diffusion ModelsRL for Language Model Reasoning

  3. Remask, Don't Replace: Token-to-Mask Refinement in Diffusion Large Language Models

    Apr 20, 2026Lin YaoLLM Self-CorrectionMulti-Token Prediction