arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2610.25447cs.LGcs.AIcs.CL
收藏

增强型掩码扩散遗忘

Enhanced Masked Diffusion Unlearning

Faculty of Engineering, Bar-Ilan University(巴伊兰大学工程学院);Red Hat(红帽公司)

Tomer Garber, Tom Tirer

AI总结:

本研究针对掩码扩散语言模型的遗忘方法MDU的失效问题,提出增强型EMDU,在TOFU、RWKU基准上,EMDU遗忘效果优于或相当于MDU及AR基线,且保留了更好的模型实用性。

摘要:

掩码扩散语言模型(MDLMs)通过利用双向上下文迭代地还原被掩码的词元来生成文本。随着这些模型逐步投入实际应用,机器遗忘变得至关重要,该过程旨在在不从头重新训练的情况下移除指定“遗忘集”的影响,确保敏感、受版权保护或受限制的内容无法被触发,同时保留模型的原有能力。掩码扩散遗忘(MDU)是首个针对这类模型定制的公开可用遗忘方法:它通过最小化锚点最后一步的散度KL(p_θ ∥ p_anchor),调整模型p_θ以匹配遗忘集上冻结的提示掩码锚点p_anchor。我们发现MDU存在两种失效模式:其一,即使问题被完全掩码,随机答案掩码仍会让关键的遗忘词元对锚点可见;其二,在接近独热的记忆预测下,锚点最后一步的logit梯度消失,而锚点第一步的散度KL(p_anchor ∥ p_θ)的logit梯度并未消失,导致MDU训练在最需要遗忘的词元上停滞。基于理论与实证分析,我们提出增强型掩码扩散遗忘(EMDU):针对整个答案跨度被掩码的冻结锚点,采用锚点第一步的KL散度。在使用LLaDA-8B和Dream-7B的TOFU与RWKU基准测试中,我们的EMDU在遗忘效果上与MDU及适配的AR基线相当或更优,同时能更好地保留保留集的实用性。

英文摘要:

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_θ$ to match a frozen prompt-masked anchor $p_{\mathrm{anchor}}$ on the forget set by minimizing the anchor-last divergence $\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 $\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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑