arXiv:2507.22037cs.CRcs.AI2025-07被引 10

用强化学习迭代攻防,提升多模态模型安全性和泛化能力

Secure Tug-of-War (SecTOW): Iterative Defense-Attack Training with Reinforcement Learning for Multimodal Model Security

  • 通过攻防双模块迭代训练,自动发现并修复安全漏洞
  • 在多个基准上显著提升安全性,同时减少对正常输入的误拒
  • 适合关注大模型安全、对抗样本防御的研究者与工程师

多模态大语言模型(MLLM)快速发展,但其安全性仍是关键挑战。一种突出问题是恶意图像-查询配对——专门设计用于绕过安全限制、诱导模型产生不当响应的输入。相比普通多模态数据,此类不安全输入较为稀疏,限制了防御模型训练样本的多样性和丰富性。现有基于护栏的防御方法依赖外部模块强制约束,无法解决模型内在脆弱性;传统监督微调(SFT)则常过度拒绝无害输入,影响通用性能。为此,我们提出安全拔河(SecTOW),一种基于强化学习(GRPO)的迭代攻防训练方法。SecTOW包含一个防御器和一个辅助攻击器,两者通过强化学习迭代优化。攻击器识别防御模型中的安全漏洞并扩展越狱数据,这些数据用于训练防御器以修复漏洞。我们还设计了奖励机制,简化响应标签使用,降低对复杂生成标签的依赖,支持高效利用合成数据。此外,质量监控机制防止防御器过度拒绝无害输入,并确保攻击器生成的数据多样性。在安全专项与通用基准上的实验表明,SecTOW显著提升了安全性,同时保持了良好的通用性能。

原文摘要 · Abstract (English)

The rapid advancement of multimodal large language models (MLLMs) has led to breakthroughs in various applications, yet their security remains a critical challenge. One pressing issue involves unsafe image-query pairs--jailbreak inputs specifically designed to bypass security constraints and elicit unintended responses from MLLMs. Compared to general multimodal data, such unsafe inputs are relatively sparse, which limits the diversity and richness of training samples available for developing robust defense models. Meanwhile, existing guardrail-type methods rely on external modules to enforce security constraints but fail to address intrinsic vulnerabilities within MLLMs. Traditional supervised fine-tuning (SFT), on the other hand, often over-refuses harmless inputs, compromising general performance. Given these challenges, we propose Secure Tug-of-War (SecTOW), an innovative iterative defense-attack training method to enhance the security of MLLMs. SecTOW consists of two modules: a defender and an auxiliary attacker, both trained iteratively using reinforcement learning (GRPO). During the iterative process, the attacker identifies security vulnerabilities in the defense model and expands jailbreak data. The expanded data are then used to train the defender, enabling it to address identified security vulnerabilities. We also design reward mechanisms used for GRPO to simplify the use of response labels, reducing dependence on complex generative labels and enabling the efficient use of synthetic data. Additionally, a quality monitoring mechanism is used to mitigate the defender's over-refusal of harmless inputs and ensure the diversity of the jailbreak data generated by the attacker. Experimental results on safety-specific and general benchmarks demonstrate that SecTOW significantly improves security while preserving general performance.

模型安全强化学习多模态攻防对抗

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。