# Mitigating Backdoors in Masked Diffusion Language Models

UNMASK: 마스크 확산 언어 모델의 백도어 막기

Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou 외 3명 · arXiv · 2026년 11월 21일

- **연구 문제** 마스크 확산 언어 모델은 백도어 공격에 취약하지만, 기존 방어는 자기회귀 모델을 전제로 해서 그대로 쓰기 어렵습니다.
- **연구 방법** UNMASK는 토큰을 하나씩 가렸을 때 출력이 바뀌는 정도와 문맥 독립성을 곱해 트리거를 찾고, 그 트리거로 LoRA를 학습해 백도어를 지웁니다.
- **주요 결과** UNMASK는 5% 오탐률에서 트리거가 든 입력의 99.3%를 찾아, 가장 강한 적응 기준선의 54.8%보다 높았습니다.

## 마스크 확산 언어 모델의 백도어 방어가 비어 있던 이유

마스크 확산 언어 모델(MDLM)의 공개 체크포인트를 가져다 쓰는 경우가 늘었지만, 깨끗한 입력에서 잘 동작한다고 해서 숨은 백도어가 없다는 뜻은 아닙니다. 공격자는 학습 과정의 마스킹을 조작해 깨끗한 입력에서의 행동은 거의 그대로 둔 채 백도어를 심을 수 있습니다. BadDLM은 각 아키텍처에서 코드 주입, 정렬 우회, 속성 조작, 콘텐츠 주입의 네 과제를 겨냥했습니다.

기존 방어는 프롬프트 우도, 입력 섭동에 대한 예측 안정성, 디코딩 도중의 출력 토큰 신뢰도에 기댔는데, 이 방식들은 자기회귀 생성의 가정을 전제로 합니다. 우도만으로는 문맥에서 드문 정상 토큰과 트리거를 구별하기 어렵고, 디코딩이 끝날 때까지 기다려야 하는 경우도 있었습니다. 그래서 MDLM을 위한 백도어 방어는 아직 없었고, 저자들은 다른 모델용 방어 일곱 개를 MDLM에 맞게 고쳐 기준선으로 삼았습니다. 기준선은 GPT-2 perplexity 필터, 검사 대상 모델의 마스크 우도(Jain et al., 2023), ONION, IMBERT, STRIP, MDP, ConfGuard입니다.

UNMASK는 이 빈자리를 MDLM의 두 능력, 즉 병렬 토큰 예측과 임의 위치의 토큰 재구성으로 채웁니다. 입력 토큰 하나를 \[MASK\]로 바꾼 뒤 각 출력 위치에서 원래 분포와 바뀐 분포 사이의 KL divergence를 재어, 그 변화량으로 트리거 후보를 찾습니다. 평가는 두 공격과 네 모델의 40개 설정에서 이루어졌고, UNMASK는 오탐률(FPR) 5%에서 트리거가 든 입력의 99.3%를 찾아냈습니다. 같은 조건에서 가장 강한 적응 기준선은 54.8%였습니다. 트리거 위치 추정 정확도는 99% 이상이었고, 평균 공격 성공률은 95%에서 1%로 떨어졌으며, 깨끗한 입력에서의 성능은 대체로 유지되었습니다.

## 마스킹 영향과 독립성으로 트리거 점수 매기기

UNMASK가 프롬프트의 각 토큰에 매기는 의심 점수는 영향 점수와 독립성 점수를 곱한 값입니다. 영향 점수는 후보 토큰 하나를 \[MASK\]로 다시 가렸을 때 출력 위치들의 분포가 얼마나 바뀌는지를 잽니다. 각 출력 위치마다 원래 입력의 분포와 재마스킹한 입력의 분포 사이 KL divergence를 구하고, 그중 값이 가장 큰 K개 위치의 평균을 영향 점수로 씁니다. 전체 위치에 평균을 걸면 영향력이 큰 토큰의 효과가 희석될 수 있다고 저자들은 봅니다. 여러 단계의 디노이징을 모두 평균하는 대신 첫 단계 값을 쓰는데, 부록 A.8 분석에서 첫 단계가 최종 출력에 가장 크게 기여하는 것으로 나타났기 때문입니다.

![Figure 1: UNMASK detection and localization.(a) The original state, candidate-masked variants, and an all-masked baseline are probed att=Twith fully masked out…](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-b474dfb37e4149c4a4d4a9f6879b4931.png?thumb=512)

**Figure 1** :UNMASK detection and localization.(a) The original state, candidate-masked variants, and an all-masked baseline are probed att=Twith fully masked output regions. (b) Masking influence and a PMI-based weight yield token scores; a maximum aboveτflags the input, and the highest-scoring position locates the suspected trigger. Heresudois the illustrative trigger.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 4쪽에서 그림 영역을 추출했습니다.

독립성 점수는 후보 토큰이 주변 문맥과 얼마나 연결되어 있는지를 잽니다. 백도어 모델은 트리거를 의미가 아니라 공격자가 심어 둔 신호로 외워 두기 때문에, 트리거는 나머지 입력 토큰에 덜 의존할 것으로 기대됩니다. 실제 분포를 알 수 없으므로 검사 대상 모델에서 문맥 조건부 확률 c와 완전 마스크 기준 확률 m을 읽고, m을 m과 c의 합으로 나눈 값으로 독립성을 추정합니다. 이 추정에는 깨끗한 참조 모델이 필요하지 않습니다. 문맥이 기준선보다 확률을 낮출수록 점수는 1/2보다 커집니다. 두 점수를 곱하면 독립성이 영향 점수에 대한 가중치 역할을 하여, 영향이 크면서도 문맥으로 설명되지 않는 토큰만 높은 점수를 받습니다.

입력의 점수는 토큰 점수의 최댓값이고, 이 값이 임계값 τ를 넘으면 입력이 의심 입력으로 표시됩니다.

실제 탐지는 후보마다 재마스킹한 입력 m개와 원래 프롬프트, 완전 마스크 입력을 한 배치로 묶어 단일 단계 예측 한 번으로 끝냅니다. 임계값은 모델마다 한 번, 공격 예시 없이 깨끗한 프롬프트 N개의 점수에서 (1−α) 분위수로 정하고, 넘는 입력은 생성 전에 걸러냅니다. 점수가 가장 높은 위치는 의심 트리거 위치로 보고되어 다음 절의 제거 단계로 넘어갑니다.

## 탐지된 트리거로 백도어 지우기

UNMASK의 제거 단계는 탐지에서 찾은 트리거 위치를 그대로 입력 구성에 씁니다. 손상된 모델을 얼린 복사본은 교사가 되고, 학생 모델은 같은 손상 모델에서 시작합니다. 깨끗한 프롬프트에 대해 교사는 트리거가 없는 입력만 보고, 학생은 트리거가 없는 입력과 트리거를 삽입한 입력을 함께 봅니다. 이렇게 두 입력을 나란히 두면 학생은 트리거가 있어도 교사의 깨끗한 예측을 따르도록 배우게 됩니다.

손실 함수는 두 항으로 이루어집니다. 첫 항은 트리거가 있을 때 학생이 교사의 깨끗한 예측을 따르도록 하고, 둘째 항은 트리거가 없을 때 학생이 교사의 예측을 유지하도록 합니다. 두 항의 가중치는 β=1로 두었고, 갱신되는 것은 학생의 LoRA 파라미터뿐입니다. 교사가 손상 모델 자신이 깨끗한 프롬프트에 내놓은 예측이기 때문에 정답 라벨이나 깨끗한 참조 모델이 필요하지 않습니다. 구현에서는 평가 프롬프트와 겹치지 않는 512개의 비라벨 Alpaca 프롬프트로 600 단계 동안 학습했습니다.

효과는 Table 3에서 확인됩니다. 12개 집계 그룹의 평균 ASR은 0.95에서 0.01로 줄었고, SHADOWMASK의 네 모델 평균은 모두 0.00이 되었습니다. BadDLM에서는 code 주입과 attribute 조작 두 설정이 두 모델 모두 ASR 0.00에 이르렀습니다. 반면 content 설정의 Dream-7B는 0.92에서 0.01로 내려갔습니다. 평균 유틸리티는 3.57에서 3.56으로 거의 그대로였지만, 개별 행에서는 content Dream-7B가 3.76에서 3.38로 내려가고 alignment LLaDA-8B는 3.88에서 4.14로 올라갔습니다. ASR과 유틸리티는 DeepSeek V4.1 Flash로 판정했으며, 유틸리티는 깨끗한 프롬프트의 답변을 1에서 5 척도로 평가한 평균입니다.

저자들은 국소화된 트리거만으로도 깨끗한 참조 모델이나 정답 라벨 없이 백도어를 효과적으로 억제할 수 있다고 봅니다.

![Table 3: Backdoor removal by trigger-guided self-distillation. ASR and utility are evaluated using DeepSeek V4.1 Flash. The mean weights the twelve reported ro…](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-5f28bcc4a013e16861d4558f55b42099.png?thumb=512)

**Table 3** : Backdoor removal by trigger-guided self-distillation. ASR and utility are evaluated using DeepSeek V4.1 Flash. The mean weights the twelve reported rows equally.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 탐지와 국소화 결과

BadDLM 여덟 설정에서 UNMASK는 AUROC 0.984에서 1.000, TPR 0.95에서 1.00을 기록했습니다. SHADOWMASK 네 모델에서는 AUROC 0.993에서 1.000, TPR 0.99에서 1.00을 보였고, 같은 표에서 ConfGuard의 TPR은 0.10에서 0.50 사이에 머물렀습니다. 40개 설정 전체로 보면 UNMASK는 5% FPR에서 99.3%의 트리거 입력을 탐지했고, 가장 강한 적응 베이스라인은 54.8%를 달성했습니다.

![Table 1.1: BadDLM (AUROC↑/ TPR@5% FPR↑)](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-30cce40c1134ace952871f61b054bffd.png?thumb=512)

**Table 1.1** BadDLM (AUROC↑/ TPR@5% FPR↑)

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 1.2: SHADOWMASK (AUROC↑/ TPR@5% FPR↑)](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-5986297a398192f639f1cfaee538e7a2.png?thumb=512)

**Table 1.2** SHADOWMASK (AUROC↑/ TPR@5% FPR↑)

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Table 1: Detection AUROC and TPR at 5% FPR on 100 trig- gered and 100 clean inputs per setting. Best results per column are shown in bold](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-77e558e2a4ac9f0af571534c3fe3c315.png?thumb=512)

**Table 1** : Detection AUROC and TPR at 5% FPR on 100 trig- gered and 100 clean inputs per setting. Best results per column are shown in bold.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

임계값은 깨끗한 입력만으로 보정했습니다. Table 2는 설정마다 깨끗한 입력 50개로 임계값을 정하고, 깨끗한 입력 50개와 트리거 입력 50개로 시험한 결과를 30번의 무작위 분할에 걸쳐 평균낸 ACC입니다. UNMASK의 ACC는 열두 개 보고 그룹에서 0.94에서 0.97이었고, 가장 강한 베이스라인보다 10에서 26 퍼센트포인트 높았습니다. 국소화 정확도는 94%에서 100%로, 같은 표의 ONION이 기록한 33%에서 91%와 비교됩니다. BadDLM content를 제외한 모든 그룹은 ACC 0.96 이상과 국소화 정확도 99% 이상에 도달했고, 깨끗한 모델에서는 같은 보정으로 held-out FPR이 5.2%에서 7.6%였습니다.

![Table 2.2: SHADOWMASK (ACC; localization in parentheses)](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-f3d306fd816e2f4d5732e1d53dcd468a.png?thumb=512)

**Table 2.2** SHADOWMASK (ACC; localization in parentheses)

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Table 13: False-positive rates on clean models. Each evaluation uses 50 clean prompts for threshold calibration withα= 0.05and 50 other clean prompts for testi…](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-4bbf3fc283c1aa7762645c8c088ccb62.png?thumb=512)

**Table 13** : False-positive rates on clean models. Each evaluation uses 50 clean prompts for threshold calibration withα= 0.05and 50 other clean prompts for testing.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

영향 점수만 쓰면 BadDLM content 설정의 LLaDA-8B에서 AUROC가 0.503으로 우연 수준에 가까웠습니다. 독립성만 쓰면 대체로 더 강했지만, ShadowMask LLaDA-8B-Instruct에서는 TPR이 0.66까지 떨어졌습니다. 두 점수를 곱하면 이 TPR이 0.99로 회복되어, 저자들은 두 신호를 함께 쓸 때 모든 설정에서 TPR 0.99 이상과 AUROC 0.985 이상이 유지된다고 봅니다. 적응 공격자는 오염 과정에서 트리거가 있을 때와 없을 때의 초기 출력 예측 사이에 KL penalty를 더했고, 이는 영향 점수가 재는 예측 변화를 직접 겨냥하는 설계입니다. 같은 적응 실험에서 please, given, function을 접두 트리거로 쓴 세 경우 모두 5% FPR에서 TPR 1.00을 기록했습니다(Table 15).

![Table 15: Frequent words as triggers (BadDLM code injection, LLaDA-8B-Instruct, backdoors retrained with each trigger). Frequency is the fraction of clean codi…](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-2e016df18e40d2827f3fa6963b523cd8.png?thumb=512)

**Table 15** : Frequent words as triggers (BadDLM code injection, LLaDA-8B-Instruct, backdoors retrained with each trigger). Frequency is the fraction of clean coding instructions containing the word. Detection is measured on 100 triggered and 100 clean inputs, TPR at 5% FPR.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 23쪽에서 그림 영역을 추출했습니다.

## 제거 후 공격 성공률과 유틸리티

UNMASK가 찾아낸 트리거는 제거 단계에서 self-distillation의 안내자로 쓰입니다. 제거에는 깨끗한 프롬프트 512개가 쓰였고, 이 프롬프트에는 정답 라벨이 붙어 있지 않습니다. 평가에 쓴 프롬프트와 겹치지 않도록 Alpaca 프롬프트에서 골랐습니다. 학생 모델은 LoRA 파라미터만 600 스텝 갱신되며, 그 밖의 가중치는 바뀌지 않습니다. 깨끗한 참조 모델이나 정답 없이도 이 과정이 돌아간다는 점이 이 설계의 조건입니다.

그 결과 12개 보고 그룹의 평균 ASR은 0.95에서 0.01로 줄었습니다. SHADOWMASK의 네 모델 평균은 모두 0.00이 되었고, BadDLM에서는 code injection과 attribute manipulation의 ASR이 두 모델 모두 0.00이 되었습니다. 평균 유틸리티는 3.57에서 3.56으로 거의 그대로였습니다. 하지만 평균은 설정별 차이를 가립니다. 예를 들어 BadDLM content의 Dream-7B는 유틸리티가 3.76에서 3.38로 떨어졌고, alignment의 LLaDA-8B는 3.88에서 4.14로 올랐습니다.

ASR과 유틸리티는 모두 DeepSeek V4.1 Flash 판정기가 매겼습니다. 판정기는 생성된 답이 표적 행동을 보이는지 판단하고, 깨끗한 프롬프트에 대한 답은 1에서 5 척도로 평가합니다. 유틸리티는 이 평점들의 평균입니다. Table 3은 12개 행을 같은 가중치로 평균 낸 결과를 담고 있습니다. 이 결과는 탐지된 트리거만으로도 백도어 억제가 가능하다는 것을 보여 줍니다.

## 임계값과 첫 단계 점수의 한계

임계값은 깨끗한 프롬프트들의 점수에서 얻은 경험적 (1 − α) 분위수로 잡히며, 이는 N개 점수 가운데 ⌈αN⌉번째로 큰 점수입니다. 여기서 α는 목표 오탐률이고, 문제는 Φθ가 m개 후보 위치의 최댓값이라는 데 있습니다. 이 때문에 저자들은 최댓값의 분포가 후보 수에 따라 움직이고, 단일 임계값의 오탐률도 프롬프트 길이 m에 따라 커질 수 있다고 봅니다.

Table 7에서 이를 확인하려고 저자들은 길이 범위가 가장 넓은 BadDLM-code 설정을 골라 공식 테스트 세트의 깨끗한 프롬프트 500개와 공격받은 프롬프트 500개를 썼습니다. m은 24에서 128 사이였고 중앙값은 65였으며, 임계값은 무작위로 뽑은 깨끗한 프롬프트 250개로 보정되었습니다. 오탐률은 나머지 250개를 길이 다섯 분위로 나누어 측정했고, 이 분할을 30번 되풀이했습니다. 그 결과 단일 전역 임계값에서 오탐률은 프롬프트 길이에 따라 엄격하게 늘지 않았습니다. 가장 짧은 구간에서는 0.024였고, 나머지 구간에서는 0.039에서 0.070 사이였습니다. 길이별 임계값 τ(m)을 쓰면 다섯 구간의 오탐률은 0.045에서 0.066 사이였고 전체는 0.057이었습니다.

후보마다 (1 − α)/m 분위수를 쓴 방식은 0.024에서 0.072 사이였고 전체는 0.045였으며, 단일 임계값의 전체 오탐률은 0.046이었습니다. 세 방식 모두 TPR은 1.00이었습니다.

![Table 7: Prompt-length dependence of the threshold on BadDLM-code, α = 0.05](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-6e5a460c42e446786106697d2c93b975.png?thumb=512)

**Table 7** : Prompt-length dependence of the threshold on BadDLM-code, α = 0.05.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 15쪽에서 그림 영역을 추출했습니다.

첫 단계 점수 It(xi)는 디코딩이 진행되기 전 t=T의 단일 단계 예측만 씁니다. Proposition 1은 완전 마스크 상태에서 위치별 사후 주변분포 사이 KL 발산의 평균이 전체 차이 항으로 묶이고, 단계와 무관한 비음수 가중치를 곱해도 순서가 보존됨을 보입니다. 하지만 저자들은 이 상한이 It(xi)가 t=T에서 최대가 되거나 실제 디코딩 궤적에서 줄어든다는 것을 보장하지 않는다고 봅니다. 그래서 첫 단계 예측을 쓰는 것은 이론과 경험적 감소 관찰을 바탕으로 한 설계 선택입니다. Figure 4는 그 감소를 BadDLM-attribute, BadDLM-code, ShadowMask-scooted 세 독살 LLaDA-8B 모델에서 보여 줍니다.

가로축은 디코딩 갱신 128회 가운데 완료된 횟수 k이고, 트리거, 가장 강한 일반 단어, 무작위 일반 단어의 영향을 나란히 비교했습니다. 트리거의 영향은 초기 디코딩 단계에서 가장 강했고, 페이로드를 담은 위치가 드러날수록 줄었습니다.

![Figure 4: Influence of prompt tokens along decoding trajectories of three poisoned LLaDA-8B models. The horizontal axis counts completed decoding updates k, w…](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29/figures/figure-bbaf336705b68be1509561cbca076591.png?thumb=512)

**Figure 4** : Influence of prompt tokens along decoding trajectories of three poisoned LLaDA-8B models. The horizontal axis counts completed decoding updates k, with k = 0 denoting the initial evaluation. At each point, the partial output is held fixed, one prompt token is re-masked, and IT −k(x i ) is recorded.

[원문](https://arxiv.org/abs/2611.28640v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An · Mitigating Backdoors in Masked Diffusion Language Models · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 21일
- **등록일**: 2026년 11월 24일
- **수정일**: 2026년 11월 21일
- **버전**: v1
- **arXiv**: 2611.28640
- **분류**: cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.28640v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.28640v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

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.

## 원문 인용

Chengzhong Wang, Lang Lin, Shengfang Zhai, Chenru Wang, Daniel Yiming Cao, Sheng-Yen Chou, Jiaheng Zhang, Pin-Yu Chen, Shengwei An (2026). Mitigating Backdoors in Masked Diffusion Language Models. arXiv:2611.28640v1. https://arxiv.org/abs/2611.28640v1

**BibTeX**

```
@misc{wang2026mitigating,
  title = {{Mitigating Backdoors in Masked Diffusion Language Models}},
  author = {Chengzhong Wang and Lang Lin and Shengfang Zhai and Chenru Wang and Daniel Yiming Cao and Sheng-Yen Chou and Jiaheng Zhang and Pin-Yu Chen and Shengwei An},
  year = {2026},
  eprint = {2611.28640},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.28640v1}
}
```

## 이 논문의 용어

- [LoRA](https://refivu.com/terms/84da7a415b66-low-rank-adaptation-lora)
- [AUROC](https://refivu.com/terms/096f06e69425-auroc)
- [KL divergence](https://refivu.com/terms/5f1dbea73907-kl-divergence)
- [attack success rate](https://refivu.com/terms/e73dcb3fd6d9-attack-success-rate)
- [자기 증류](https://refivu.com/terms/f20426f19189-self-distillation)
- [MDLM](https://refivu.com/terms/b10a2680108f-mdlm)
- [Masked diffusion language models](https://refivu.com/terms/945bf9ba2b49-masked-diffusion-language-models)

## 다른 논문 해설

- [The Answer Is Not the State: Trajectory-Level Corrigibility in Diffusion Language Models](https://refivu.com/papers/69f37831-06db-4b91-8de5-af26e1d6db06-the-answer-is-not-the-state-trajectory-level.md)
- [Exact on Paper: Which LLM Serving Shortcuts Flip Graded Answers, Measured Against the Noise of Reordering the Same Requests](https://refivu.com/papers/a49cb446-e471-4aa0-a855-1f5269e00398-exact-on-paper-which-llm-serving-shortcuts-flip.md)
- [Optimal Labelling Designs for Sequential Decisions on Language Model Updates](https://refivu.com/papers/66a4f902-e289-4c64-80bb-f0d27a892648-optimal-labelling-designs-for-sequential-decisions-on.md)
- [SAE-Audit: Clinical-Trial Prediction via Inference-Time Optimization of Black-Box LLMs Audited by Sparse Autoencoder Evidence](https://refivu.com/papers/86fce25e-e423-4579-8a54-9d29731bae56-sae-audit-clinical-trial-prediction-via-inference-time.md)
- [When Can a Rewiring Control Test LLM Weight Readers? C2 and an Eligibility Protocol](https://refivu.com/papers/ca62c1dd-9cda-4db6-95ba-f9a745d44a5a-when-can-a-rewiring-control-test-llm-weight.md)
- [Can Speech LLMs Recognize When Audio Evidence Is Insufficient? A Diagnostic Study and a Pre-Generation Probing Mitigation](https://refivu.com/papers/d85b575a-7c95-4afd-a4dd-43a6b35370f2-can-speech-llms-recognize-when-audio-evidence-is.md)
- [Directional Bias in Quantile SGD and Score-Inversion Inference under Dependence](https://refivu.com/papers/37e46fbd-2b06-425b-8b62-853f70137b7a-directional-bias-in-quantile-sgd-and-score-inversion.md)
- [Scalable Beckmann Maps Improve One-step Generation](https://refivu.com/papers/ba5444d1-474d-40f0-8026-1a34654b061f-scalable-beckmann-maps-improve-one-step-generation.md)
- [How Should a Home Robot Update Its Memories When Human Routines Change?](https://refivu.com/papers/abae1531-3f20-4292-8694-a9f94e038d1a-how-should-a-home-robot-update-its-memories.md)
- [Nearly Minimax-Optimal Sample Complexity of Natural Policy Gradient with a Matching Information-Theoretic Lower Bound](https://refivu.com/papers/f4105df1-e98f-45be-9f6c-57932a13fc43-nearly-minimax-optimal-sample-complexity-of-natural-policy.md)
- [Revisiting RadioGalaxyNET: modern detectors for radio galaxy detection and host identification](https://refivu.com/papers/a605052b-bc2f-40db-bb5f-0a2af05e1533-revisiting-radiogalaxynet-modern-detectors-for-radio-galaxy.md)
- [Why Units Die in the Layer After a Frozen Random Encoder, and What the Number of Live Units Measures](https://refivu.com/papers/4baaa389-8ae5-4a25-8e3e-92a7440d07ac-why-units-die-in-the-layer-after-a.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/150c4e6d-58c9-4496-8258-d064f65d4e29-mitigating-backdoors-in-masked-diffusion-language-models)
