BaThe: Defense against the Jailbreak Attack in Multimodal Large Language Models by Treating Harmful Instruction as Backdoor Trigger
On the map: LLM safety and security → Vision-language and text-to-image safety
Abstract (arXiv)
Multimodal Large Language Models (MLLMs) have showcased impressive performance in a variety of multimodal tasks. On the other hand, the integration of additional image modality may allow the malicious users to inject harmful content inside the images for jailbreaking. Unlike text-based LLMs, where adversaries need to select discrete tokens to conceal their malicious intent using specific algorithms, the continuous nature of image signals provides a direct opportunity for adversaries to inject harmful intentions. In this work, we propose BaThe (Backdoor Trigger Shield), a simple yet effective jailbreak defense mechanism. Our work is motivated by recent research on jailbreak backdoor attack and virtual prompt backdoor attack in generative language models. Jailbreak backdoor attack uses harmful instructions combined with manually crafted strings as triggers to make the backdoored model generate prohibited responses. We assume that harmful instructions can function as triggers, and if we alternatively set rejection responses as the triggered response, the backdoored model then can defend against jailbreak attacks. We achieve this by utilizing virtual rejection prompt, similar to the virtual prompt backdoor attack. We embed the virtual rejection prompt into the soft text embeddings, which we call ``wedge''. Our comprehensive experiments demonstrate that BaThe effectively mitigates various types of jailbreak attacks and is adaptable to defend against unseen attacks, with minimal impact on MLLMs' performance.
Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). Placed in Vision-language and text-to-image safety, one of 12 directions in LLM safety and security. First posted on arXiv 17 Aug 2024.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2024: 2; 2025: 5; 2026: 1.
8 papers.
- 2025A Survey of Safety on Large Vision-Language Models: Attacks, Defenses and Evaluationscited by 66
- 2025MCIP: Protecting MCP Safety via Model Contextual Integrity Protocolcited by 33
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Surveycited by 31
- 2025Distraction is All You Need for Multimodal Large Language Model Jailbreakingcited by 31
- 2024Exploring Response Uncertainty in MLLMs: An Empirical Evaluation under Misleading Scenarioscited by 19
- 2025Robust Anti-Backdoor Instruction Tuning in LVLMscited by 10
- 2025SmoothGuard: Defending Multimodal Large Language Models with Noise Perturbation and Clustering Aggregationcited by 2
- 2026COMIC: Reference-Aware Safety Gating for Multimodal Large Language Modelscited by 0
- 2026COMIC: Reference-Aware Safety Gating for Multimodal Large Language Models18 Aug 2026
- 2025SmoothGuard: Defending Multimodal Large Language Models with Noise Perturbation and Clustering Aggregation29 Oct 2025
- 2025Robust Anti-Backdoor Instruction Tuning in LVLMs4 Jun 2025
- 2025MCIP: Protecting MCP Safety via Model Contextual Integrity Protocol20 May 2025
- 2025Distraction is All You Need for Multimodal Large Language Model Jailbreaking15 Feb 2025
- 2025A Survey of Safety on Large Vision-Language Models: Attacks, Defenses and Evaluations14 Feb 2025
- 2024Jailbreak Attacks and Defenses against Multimodal Generative Models: A Survey14 Nov 2024
- 2024Exploring Response Uncertainty in MLLMs: An Empirical Evaluation under Misleading Scenarios5 Nov 2024