UNMASK:首个针对掩码扩散语言模型后门攻击的防御框架
Mitigating Backdoors in Masked Diffusion Language Models
扩散语言模型正流行,但它的后门防御几乎没人研究,这篇补上了空白。检测率99.3%对比基线54.8%,差距很直观。做模型安全或用MDLM部署的团队值得看看方法细节。
arXiv 论文提出 UNMASK,宣称是首个面向掩码扩散语言模型(MDLM)的后门防御框架,可检测含触发器的输入、定位触发词并清除模型中的后门。MDLM 因能并行预测多个 token,被视为自回归模型的替代方案,但已有研究表明其易受后门攻击:输入含攻击者指定触发器时模型会生成恶意代码等定向输出,平时表现正常。
UNMASK 利用后门触发器的两个特性——特异性和支配性——为每个输入 token 计算可疑度评分,并借助 MDLM 的并行预测和任意位置 token 重建能力高效完成计算,论文还提供了理论分析支撑。
评测覆盖 2 种攻击、4 个模型共 40 个设置:UNMASK 在 5% 误报率下检测出 99.3% 的含触发器输入,远超适配后的最强基线(54.8%);触发器定位准确率超过 99%,平均攻击成功率从 95% 降至 1%,同时基本保留了模型在干净输入上的效用。
Mitigating Backdoors in Masked Diffusion Language Models
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.
This report is categorized under AITOP's "Papers" desk, focusing on US frontier AI labs and Silicon Valley technology leaders. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include MDLM, backdoor attacks, model security, diffusion language models.
Source attribution: curated from arXiv cs.AI (@Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An).