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

BadDLM:针对扩散语言模型的多样化目标后门攻击研究

BadDLM: Backdooring Diffusion Language Models with Diverse Targets

National University of Singapore(新加坡国立大学);Peking University(北京大学);Shanghai Jiao Tong University(上海交通大学);Jiutian Research(中移九天);Universal Database(通用数据库);Tsinghua University(清华大学)

Shengfang Zhai, Xiaoyang Ji, Yuling Shi, Haoran Gao, Fanyu Meng, Yan Zeng, Yuejian Fang, Yinpeng Dong, Jiaheng Zhang

AI总结:

本文提出BadDLM框架,研究扩散语言模型的后门攻击,通过触发感知训练目标和理论证明,展示其在概念注入、语义属性引导等目标上的有效性,揭示扩散生成中的新安全风险。

摘要:

扩散语言模型(DLMs)最近作为一种替代自回归(AR)语言模型的建模范式出现,使并行生成和双向上下文建模成为可能。然而,其安全影响,尤其是对后门攻击的脆弱性,仍待深入研究。我们提出BadDLM,一个统一框架,用于研究针对DLMs的多样化目标后门攻击。我们引入了触发感知训练目标,强调受污染样本中的目标相关位置,并理论证明该目标等同于在诱导的前向掩码分布下训练。与自回归模型中的后门不同,后者通常操纵下一个词预测,此特性表明BadDLM可通过利用前向掩码过程植入后门。我们跨不同目标层级实例化BadDLM:概念注入(BadDLM_Concept)、语义属性引导(BadDLM_Attribute)、对齐绕过(BadDLM_Align)和代码载荷注入(BadDLM_Payload)。在主流开源DLMs上的实验表明,BadDLM在多样目标上实现强攻击效果,同时保持良性用途,且对针对AR后门设计的防御措施仍有效。我们的发现揭示了扩散语言生成中的新一类安全风险,并呼吁针对DLM去噪动态的防御措施。

英文摘要:

Diffusion language models (DLMs) have recently emerged as an alternative modeling paradigm to autoregressive (AR) language models, enabling parallel generation and bidirectional context modeling. Yet their security implications, particularly their vulnerability to backdoor attacks, remain underexplored. We propose BadDLM, a unified framework for studying backdoor attacks against DLMs with diverse targets. We introduce a trigger-aware training objective that emphasizes target-relevant positions in poisoned samples, and theoretically prove that this objective is equivalent to training under an induced forward masking distribution. Unlike backdoors in autoregressive models, which typically manipulate next-token prediction, this characterization indicates that BadDLM can implant backdoors by exploiting the forward masking process. We instantiate BadDLM across different target levels: concept injection (BadDLM_Concept), semantic attribute steering (BadDLM_Attribute), alignment bypass (BadDLM_Align), and code payload injection (BadDLM_Payload). Experiments on mainstream open-source DLMs show that BadDLM achieves strong attack effectiveness across diverse targets while largely preserving benign utility, and remains effective against defenses designed for AR backdoors. Our findings expose a new class of security risks in diffusion-based language generation and call for defenses tailored to DLM denoising dynamics.

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

↑