Skip to content

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

arXiv· arXiv:2403.09513· Yu Wang, Xiaogeng Liu, Yu Li, Muhao Chen, Chaowei Xiao·Indexed by this site · 27 days ago· Originally publishedDefenses
AI summary

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

Read originalarxiv.org