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

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

Mitigating Backdoors in Masked Diffusion Language Models

Virginia Tech(弗吉尼亚理工大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);National University of Singapore(新加坡国立大学);Cornell University(康奈尔大学);IBM Research(IBM研究院)

Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An

AI总结:

针对易受后门攻击的掩码扩散语言模型(MDLMs),提出首个防御框架UNMASK,利用触发器属性和MDLMs特性实现高检测、定位准确率,大幅降低攻击成功率且保留模型效用。

摘要:

掩码扩散语言模型(MDLMs)已成为自回归模型的有前景替代方案,因为它们可以并行预测多个token,而非顺序生成token。然而,近期研究表明MDLMs易受后门攻击:当输入包含攻击者选择的触发器时,被植入后门的模型会生成目标输出(如恶意代码),否则表现正常。尽管存在这一威胁,针对MDLMs的后门防御仍未得到充分探索。我们提出UNMASK,这是首个针对MDLMs的防御框架,可检测含触发器的输入、定位触发器token并从受感染模型中移除后门。UNMASK利用后门触发器的两个基本属性——特异性和主导性,为每个输入token分配可疑性分数;借助MDLMs的两个独特能力(并行token预测和任意位置的token重构),UNMASK能高效且有效地计算这些分数。我们还提供支持UNMASK设计的理论分析。在涵盖两种攻击、四个模型的40种设置中的评估显示,UNMASK在5%的误报率下检测到99.3%的含触发器输入,显著优于最强适配基线(其检测率为54.8%);UNMASK还实现了99%以上的触发器定位准确率,将平均攻击成功率从95%降至1%,同时在干净输入上基本保留模型效用。

英文摘要:

Masked diffusion language models (MDLMs) have emerged as a promising alternative to autoregressive models because they can predict multiple tokens in parallel rather than generating tokens sequentially. However, recent studies have shown that MDLMs are vulnerable to backdoor attacks: when an input contains an attacker-chosen trigger, a backdoored model generates a targeted output, such as malicious code, while otherwise behaving normally. Despite this threat, backdoor defenses for MDLMs remain largely underexplored. We present UNMASK, the first defense framework for MDLMs that detects trigger-containing inputs, localizes the trigger tokens, and removes the backdoor from the compromised model. UNMASK exploits two fundamental properties of backdoor triggers, specificity and dominance, to assign a suspiciousness score to each input token. By leveraging two distinctive capabilities of MDLMs, parallel token prediction and token reconstruction at arbitrary positions, UNMASK computes these scores both effectively and efficiently. We further provide a theoretical analysis supporting the design of UNMASK. Evaluations across 40 settings spanning two attacks and four models show that UNMASK detects 99.3% of trigger-containing inputs at a 5% false-positive rate, substantially outperforming the strongest adapted baseline, which achieves 54.8%. UNMASK also achieves over 99% trigger-localization accuracy and reduces the average attack success rate from 95% to 1%, while largely preserving the model's utility on clean inputs.

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

↑