A Patch-based Cross-view Regularized Framework for Backdoor Defense in Multimodal Large Language Models
Authors: Tianmeng Fang, Yong Wang, Zetai Kong, Zengzhen Su, Jun Wang, Chengjin Yu, Wei Wang
Organizations: School of Computing and Information Systems, Singapore Management University, Singapore, 178902, , Singapore. · School of Artificial Intelligence, China University of Mining and Technology, Beijing, 102206, Beijing, PR China. · Faculty of Arts, The University of Melbourne, Melbourne, Carlton VIC 3053, Australia. · School of Big Data and Statistics, Anhui University, Hefei, 230601, Anhui Province, PR China. · Department of Mechanical Engineering, Xi’an Jiaotong University, Xi’an, 710049, Shaanxi Province, PR China. · School of Cyber Science and Technology, Sun Yat-sen University, Shenzhen, 518107, Guangdong Province, PR China.
Multimodal large language models have become an important infrastructure for unified processing of visual and linguistic tasks. However, such models are highly susceptible to backdoor implantation during supervised fine-tuning and will steadily output the attacker's predefined harmful responses once a specific trigger pattern is activated. The core challenge of backdoor defense lies in suppressing attack success under low poisoning ratios while preserving the model's normal generation ability. These two objectives are inherently conflicting. Strong suppression often degrades benign performance, whereas weak regularization fails to mitigate backdoor behaviors. To this end, we propose a unified defense framework based on patch augmentation and cross-view regularity, which simultaneously constrains the model's anomalous behaviors in response to triggered patterns from both the feature representation and output distribution levels. Specifically, patch-level data augmentation is combined with cross-view output difference regularization to exploit the fact that backdoor responses are abnormally invariant to non-semantic perturbations and to proactively pull apart the output distributions of the original and perturbed views, thereby significantly suppressing the success rate of backdoor triggering. At the same time, we avoid over-suppression of the model during defense by imposing output entropy constraints, ensuring the quality of normal command generation. Experimental results across three models, two tasks, and six attacks show that our proposed defense method effectively reduces the attack success rate while maintaining a high level of normal text generation capability. Our work enables the secure, controlled deployment of large-scale multimodal models in realistic low-frequency poisoning and covert triggering scenarios.
Figures & tables
Figure 1: Comparison between the backdoored MLLM and our defended model under the same visual input. The backdoored model is hijacked to output a fixed malicious target, while our model preserves correct and context-consistent descriptions.
Figure 2: Schematic of our proposed multimodal backdoor defense framework based on block-level augmentation with cross-view regularity. The patch loss constraint module is introduced at the feature level to avoid overfitting to local triggering patterns by applying patch-based perturbation to the input image. Subsequently, cross-view difference optimization is applied to the token probability distributions of the original view and the perturbed view at the output layer to directly suppress the anomalous invariance of backdoor responses under non-semantic perturbations. Meanwhile, an uncertainty-aware output regularization is introduced to prevent the model probability distribution from collapsing, which improves security while maintaining normal generation capability.
Attack
No Defense
Ours
B@4
CIDEr
ASR
B@4
CIDEr
ASR
Clean
25.8
98.9
0.3
23.9
89.4
0.8
BadNets
2.7
1.5
98.9
14.6
45.5
48.7
Blended
2.0
1.9
98.5
13.7
41.3
58.6
LowFrequency
20.9
78.9
98.9
24.0
83.1
38.7
WaNet
19.6
74.2
96.7
22.7
78.0
45.8
Table 1: Defense Performance of OpenFlamingo on COCO Dataset
Attack
Otter
BLIP-2
B@4
CIDEr
ASR
B@4
CIDEr
ASR
Clean
20.3
85.9
0.6
21.9
86.8
0.8
BadNets
10.6
34.7
55.0
11.5
37.2
52.1
Blended
9.6
31.5
60.4
10.9
34.0
58.1
LowFrequency
20.9
74.0
42.8
21.1
75.5
40.1
WaNet
19.7
68.9
48.4
20.9
71.8
46.2
Table 2: Defense Performance of Otter and BLIP-2 on COCO Dataset
Attack
No Defense
Ours
B@4
CIDEr
ASR
B@4
CIDEr
ASR
Clean
22.1
86.6
0.3
20.9
78.5
0.5
BadNets
1.8
1.1
98.2
12.5
38.6
53.0
Blended
1.9
1.8
98.7
10.2
33.7
60.8
LowFrequency
19.7
68.9
97.1
22.0
74.4
42.6
WaNet
18.8
64.4
95.4
20.7
69.4
48.4
Table 3: Defense Performance on Flickr30k Dataset
Method
B@4
CIDEr
ASR
No Defense
2.0
1.5
98.1
Lpatch
8.2
22.9
65.6
Lpatch+Lcv-dis
12.3
35.5
53.7
Ours
14.6
45.5
48.7
Table 4: Ablation Study on BadNets Attack (COCO Dataset)
Figure 3: Impact of different regularization weights λ1 , λ2 , and λ3 on the trade-off between normal generation performance (B@4, CIDEr) and ASR.
Defense Method
B@4
CIDEr
ASR
No Defense
1.8
1.1
98.2
Fine-Pruning
9.6
29.4
71.3
STRIP Detection
3.2
6.8
88.5
Entropy Filtering
7.4
21.7
79.6
Ours
12.5
38.6
53.0
Table 5: Defense performance against the BadNets attack with baselines.
Multimodal Diffusion Language Models (MDLMs) have recently emerged as a competitive alternative to their autoregressive counterparts. Yet their vulnerability to backdoor attacks remains largely unexplored. In this work, we show that well-established data-poisoning pipelines can successfully implant backdoors into MDLMs, enabling attackers to manipulate model behavior via specific triggers while maintaining normal performance on clean inputs. However, defense strategies effective to these models are yet to emerge. To bridge this gap, we introduce a backdoor defense framework for MDLMs named DiSP (Diffusion Self-Purification). DiSP is driven by a key observation: selectively masking certain vision tokens at inference time can neutralize a backdoored model's trigger-induced behaviors and restore normal functionality. Building on this, we purify the poisoned dataset using the compromised model itself, then fine-tune the model on the purified data to recover it to a clean one. Given such a specific design, DiSP can remove backdoors without requiring any auxiliary models or clean reference data. Extensive experiments demonstrate that our approach effectively mitigates backdoor effects, reducing the attack success rate (ASR) from over 90% to typically under 5%, while maintaining model performance on benign tasks.
Despite the strong multimodal performance, large vision-language models (LVLMs) are vulnerable during fine-tuning to backdoor attacks, where adversaries insert trigger-embedded samples into the training data to implant behaviors that can be maliciously activated at test time. Existing defenses typically rely on retraining backdoored parameters (e.g., adapters or LoRA modules) with clean data, which is computationally expensive and often degrades model performance. In this work, we provide a new mechanistic understanding of backdoor behaviors in LVLMs: the trigger does not influence prediction through low-level visual patterns, but through abnormal cross-modal attention redistribution, where trigger-bearing visual tokens steal attention away from the textual context - a phenomenon we term attention stealing. Motivated by this, we propose CleanSight, a training-free, plug-and-play defense that operates purely at test time. CleanSight (i) detects poisoned inputs based on the relative visual-text attention ratio in selected cross-modal fusion layers, and (ii) purifies the input by selectively pruning the suspicious high-attention visual tokens to neutralize the backdoor activation. Extensive experiments show that CleanSight significantly outperforms existing pixel-based purification defenses across diverse datasets and backdoor attack types, while preserving the model's utility on both clean and poisoned samples.
Zhifang Zhang, Bojun Yang, Shuo He +5
University of Queensland · Southeast University · Nanyang Technological University +1
Backdoor attacks undermine the reliability and trustworthiness of machine learning systems by injecting hidden behaviors that can be maliciously activated at inference time. While such threats have been extensively studied in unimodal settings, their impact on multimodal foundation models, particularly vision-language models (VLMs), remains largely underexplored. In this work, we introduce BackdoorVLM, the first comprehensive benchmark for evaluating backdoor attacks and defenses on VLMs across a broad range of settings. It adopts a unified perspective that injects and analyzes backdoors across core vision-language tasks, including image captioning and visual question answering. BackdoorVLM organizes multimodal backdoor threats into 5 representative categories: targeted refusal, malicious injection, jailbreak, concept substitution, and perceptual hijack. Each category captures a distinct pathway through which an adversary can manipulate a model's behavior. We evaluate these threats using 12 representative attack methods spanning text, image, and bimodal triggers, tested on 2 open-source VLMs and 3 multimodal datasets along with 5 representative defense methods. Our analysis reveals that VLMs exhibit strong sensitivity to textual instructions, and in bimodal backdoors the text trigger typically overwhelms the image trigger when forming the backdoor mapping. Notably, backdoors involving the textual modality remain highly potent, with poisoning rates as low as 1% yielding over 90% success across most tasks. Moreover, existing defenses lack generalization across trigger types and backdoor scenarios, leading to unreliable protection against diverse triggers across modalities and forms. These findings highlight significant, underexplored vulnerabilities in current VLMs. We hope that BackdoorVLM can serve as a useful benchmark for analyzing and mitigating multimodal backdoor threats.
Juncheng Li, Yige Li, Hanxun Huang +5
Fudan University · Singapore Management University · The University of Melbourne