AdaShield: Safeguarding Multimodal Large Language Models from Structure-Based Attacks via Adaptive Guard PromptsAdaShield: Safeguarding Multimodal Large Language Models from Structure-based Attack via Adaptive Shield Prompting
The researchers propose a defense method named AdaShield, which prepends guard prompts to the input to enable multimodal large language models to resist structured jailbreak attacks that inject harmful text into images, without fine-tuning the model or training additional modules throughout. The method first provides manually designed static guard prompts that progressively check the image and instruction content and specify how to respond to malicious queries; it then introduces an adaptive automatic optimization framework consisting of the target model and an LLM-based guard prompt generator (Defender), which iteratively collaborate to generate guard prompts. The authors report that experiments on multiple mainstream structured jailbreak attacks and benign datasets show that the method consistently improves the model's robustness to such attacks without harming general capabilities on standard benign tasks. Code is open-sourced at https://github.com/rain305f/AdaShield。
Related events and news
1 events · 1 news mentions
News that mentions this paper
电子科大提出免训练多模态越狱防御框架SafePTR
- 公众号 为机器立心names the paper电子科大提出SafePTR:精准修剪-恢复机制,高效防御多模态大模型越狱攻击
对比的基线防御方法包括:Immune、AdaShield、ECSO、CoCA、FigStep等。