arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.19262cs.LGcs.CR
收藏

掩码扩散语言模型的后门攻击

Backdooring Masked Diffusion Language Models

Cornell University(康奈尔大学);Virginia Tech(弗吉尼亚理工学院);IBM Research(IBM研究院)

Daniel Yiming Cao, Chengzhong Wang, Sheng-Yen Chou, Chengyu Huang, Pin-Yu Chen, Shengwei An

AI总结:

提出SHADOWMASK后门攻击方法,通过修改掩码扩散语言模型的前向破坏过程,实现高成功率攻击并保持模型清洁性能。

摘要:

掩码扩散语言模型(MDLM)正成为文本生成的一种引人注目的新范式,但其训练时安全性仍 largely unexplored。现有的针对高斯扩散模型或自回归语言模型的后门攻击并不直接适用于MDLM,因为MDLM依赖于离散状态破坏和迭代去噪,而非连续噪声或从左到右预测。在这项工作中,我们首次对MDLM的训练时后门攻击进行了系统研究。我们提出了SHADOWMASK,一种通过将标准全掩码终端分布替换为触发-掩码混合先验来修改MDLM前向破坏过程的后门攻击。这创建了一条从触发破坏状态到攻击者指定目标的专用去噪路径,同时保持清洁去噪行为。我们进一步通过定义后门前向过程、推导反向时间后验以及获得连续时间训练目标,提供了原理性的数学表述。在基于DiT的MDLM和LLaDA-8B-Instruct上,针对WikiText-103、OpenWebText和Alpaca的评估表明,SHADOWMASK实现了接近100%的攻击成功率,显著优于标准数据投毒,在很大程度上保持了清洁效用,在全模型和参数高效微调下仍然有效,并且对代表性防御具有鲁棒性。

英文摘要:

Masked diffusion language models (MDLMs) are emerging as a compelling new paradigm for text generation, but their training-time security remains largely unexplored. Existing backdoor attacks on Gaussian diffusion models or autoregressive language models do not directly apply to MDLMs because MDLMs rely on discrete state corruption and iterative denoising rather than continuous noising or left-to-right prediction. In this work, we present the first systematic study of training-time backdoor attacks on MDLMs. We propose SHADOWMASK, a backdoor attack that modifies the MDLM forward corruption process by replacing the standard all-mask terminal distribution with a trigger-mask mixture prior. This creates a dedicated denoising pathway from trigger-corrupted states to attacker-specified targets while preserving clean denoising behavior. We further provide a principled mathematical formulation by defining the backdoored forward process, deriving the reverse-time posterior, and obtaining the continuous-time training objective. Evaluations on DiT-based MDLM and LLaDA-8B-Instruct across WikiText-103, OpenWebText, and Alpaca show that SHADOWMASK achieves near-100% attack success, substantially outperforms standard data poisoning, largely preserves clean utility, remains effective under full-model and parameter-efficient fine-tuning, and is robust against representative defenses.

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

↑