mlsanityData to 24 Nov 2026

Mitigating Backdoors in Masked Diffusion Language Models

arXiv 2611.28640 ↗Submitted 21 Nov 2026Announced 24 Nov 2026cs.AIcited by 0

On the map: Diffusion models → Discrete and text diffusion also fits: Robustness, privacy and adversarial aspects

also in 1 more
Abstract (arXiv)

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.

Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Discrete and text diffusion, one of 14 directions in Diffusion models. Builds on 34 of its 35 references that are in the map. Submitted 21 Nov 2026, announced 24 Nov 2026.

Builds on

34 of 35 references.

Closest ancestors · 7

Same direction, newest first

  1. 2026Backdooring Masked Diffusion Language Models19 May
  2. 2025LLaDA2.0: Scaling Up Diffusion Language Models to 100B10 Dec
  3. 2025Dream 7B: Diffusion Large Language Models21 Aug
  4. 2025Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models12 Mar
  5. 2025Large Language Diffusion Models14 Feb
  6. 2024Simple and Effective Masked Diffusion Language Models11 Jun
  7. 2024Your Absorbing Discrete Diffusion Secretly Models the Conditional Distributions of Clean Data6 Jun

Other references · 27

  1. 2023Baseline Defenses for Adversarial Attacks Against Aligned Language Modelscited by 693
  2. 2019STRIP: A Defence Against Trojan Attacks on Deep Neural Networkscited by 471
  3. 2023Poisoning Language Models During Instruction Tuningcited by 290
  4. 2020ONION: A Simple and Effective Defense Against Textual Backdoor Attackscited by 278
  5. 2025MMaDA: Multimodal Large Diffusion Language Modelscited by 278
  6. 2021Hidden Killer: Invisible Textual Backdoor Attacks with Syntactic Triggercited by 234
  7. 2026DeepSeek-V4.1-Flash: Pushing the Limits of KV Cache Compressioncited by 220
  8. 2023Backdooring Instruction-Tuned Large Language Models with Virtual Prompt Injectioncited by 168
  9. 2021Mind the Style of Text! Adversarial and Backdoor Attacks Based on Text Style Transfercited by 163
  10. 2022BackdoorBench: A Comprehensive Benchmark of Backdoor Learningcited by 130
  11. 2020Just How Toxic is Data Poisoning? A Unified Benchmark for Backdoor and Data Poisoning Attackscited by 118
  12. 2021Backdoor Attacks on Pre-trained Models by Layerwise Weight Poisoningcited by 118
15 more
  1. 2022How to Backdoor Diffusion Models?cited by 105
  2. 2023Text-to-Image Diffusion Models can be Easily Backdoored through Multimodal Data Poisoningcited by 95
  3. 2023TrojDiff: Trojan Attacks on Diffusion Models with Diverse Targetscited by 90
  4. 2023Composite Backdoor Attacks Against Large Language Modelscited by 81
  5. 2023VillanDiffusion: A Unified Backdoor Attack Framework for Diffusion Modelscited by 69
  6. 2024BEEAR: Embedding-based Adversarial Removal of Safety Backdoors in Instruction-tuned Language Modelscited by 65
  7. 2024BackdoorLLM: A Comprehensive Benchmark for Backdoor Attacks and Defenses on Large Language Modelscited by 65
  8. 2022Rickrolling the Artist: Injecting Backdoors into Text Encoders for Text-to-Image Synthesiscited by 60
  9. 2023Personalization as a Shortcut for Few-Shot Backdoor Attack against Text-to-Image Diffusion Modelscited by 43
  10. 2023Defending Pre-trained Language Models as Few-shot Learners against Backdoor Attackscited by 35
  11. 2023IMBERT: Making BERT Immune to Insertion-based Backdoor Attackscited by 16
  12. 2025ConfGuard: A Simple and Effective Backdoor Detection for Large Language Modelscited by 11
  13. 2025Persistent Backdoor Attacks under Continual Fine-Tuning of LLMscited by 9
  14. 2026Safer by Diffusion, Broken by Context: Diffusion LLM's Safety Blessing and Its Failure Modecited by 6
  15. 2026BadDLM: Backdooring Diffusion Language Models with Diverse Targetscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026Self-Purification Mitigates Backdoors in Multimodal Diffusion Language Models
  2. 2025Backdoor Token Unlearning: Exposing and Defending Backdoors in Pretrained Language Models
  3. 2025Backdoor Collapse: Eliminating Unknown Threats via Known Backdoor Aggregation in Language Models
  4. 2026Backdoor Unlearning Generalization: A Path Toward the Removal of Unknown Triggers in LLMs
  5. 2025Unmasking Backdoors: An Explainable Defense via Gradient-Attention Anomaly Scoring for Pre-trained Language Models
  6. 2026Where-to-Unmask: Ground-Truth-Guided Unmasking Order Learning for Masked Diffusion Language Models
  7. 2025BadToken: Token-level Backdoor Attacks to Multi-modal Large Language Models
  8. 2026Purifying Generative LLMs from Backdoors without Prior Knowledge or Clean Reference