Shanghai Jiao Tong University: VLMGuard-R1, reasoning-driven prompt optimization for plug-and-play proactive safety alignment of vision-language models
上海交大:VLMGuard-R1 ,推理驱动提示优化,实现视觉语言模型即插即用式主动安全对齐
A Shanghai Jiao Tong University team proposes the VLMGuard-R1 framework, which, through multimodal reasoning-driven prompt rewriting, performs safety optimization on text-image inputs at inference time without modifying downstream vision-language model parameters, making it plug-and-play. The framework includes a prompt rewriter fine-tuned with LoRA based on Qwen2-VL-7B and a downstream VLM response generator; the rewriter embeds safety warning information into the optimized prompt. The training data is generated by a three-stage pipeline of post-hoc analysis, multimodal causal analysis, and prompt optimization, totaling about 10K image-text pairs, including 8,904 safety samples and 977 usefulness samples. The paper tests 5 VLMs including LLaVA-v1.5-7B and Qwen2-VL-7B-Instruct on three benchmarks, VLGuard-Unsafe, SIUO, and MM-SafetyBench, and compares against four baselines, ECSO, FigStep, MLLM-Protector, and ETA; results show that on SIUO the average safety of the 5 models improves by 43.59% while usefulness is maintained.