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.