Mitigating Backdoors in Masked Diffusion Language Models
Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen,
Key points
From the paper's conclusion- We further provide a theoretical analysis supporting the design of UNMASK.
Abstract
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.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Enhanced Masked Diffusion UnlearningarXiv · 2026
- Trigger-Invariant Contrastive Unlearning for Backdoor RemovalarXiv · 2026
- Not All Tokens Are Equal: Region-Aware Consistency Repair of Backdoors in MLLMsarXiv · 2026
- Empowering Masked Diffusion Models to Self-Correct with Leave-One-Out TransformersarXiv · 2026
- Context-Shielded Backdoor Attack against Large Vision-Language ModelsarXiv · 2026
- Harmful Responses Are Jailbreak Templates: Transferring Autoregressive Jailbreaks to Diffusion Language ModelsarXiv · 2026