arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2603.01228cs.CV
收藏

面向政策适应的图像防护:基准与方法

Towards Policy-Adaptive Image Guardrail: Benchmark and Method

Fudan University(复旦大学);Tencent(腾讯);Peking University(北京大学)

Caiyong Piao, Zhiyuan Yan, Haoming Xu, Yunzhen Zhao, Kaiqing Lin, Feiyang Xu, Shuigeng Zhou

AI总结:

本文提出SafeGuard-VL方法,通过强化学习与可验证奖励提升图像防护的政策适应能力,并通过SafeEditBench基准测试验证其有效性。

摘要:

准确拒绝敏感或有害的视觉内容,即有害图像防护,是许多应用场景的关键。这项任务必须持续适应不同领域和时间的演变安全政策和内容。然而,传统分类器受限于固定类别,当引入新政策时需要频繁重新训练。视觉-语言模型(VLMs)提供了一个更具适应性和通用性的基础,用于动态安全防护。尽管有这种潜力,现有基于VLM的防护方法通常仅在固定安全政策下训练和评估。我们发现这些模型严重过拟合已见政策,无法泛化到未见政策,甚至失去基本的指令遵循能力和通用知识。为了解决这个问题,本文做出了两项关键贡献。首先,我们通过SafeEditBench新评估套件基准测试现有VLMs的跨政策泛化性能。SafeEditBench利用图像编辑模型将不安全图像转换为安全图像,生成政策对齐的数据集,其中每对安全-不安全图像在视觉上相似,仅在局部区域违反特定安全规则。人类标注者则在五个不同的政策下提供准确的safe/unsafe标签,实现对政策意识泛化的细粒度评估。其次,我们引入SafeGuard-VL,一种基于强化学习的方法,具有可验证奖励(RLVR)以实现稳健的不安全图像防护。与仅依赖固定政策下的监督微调(SFT)不同,SafeGuard-VL明确优化模型,使其在演变政策下具有可验证的适应性。广泛的实验验证了我们的方法在各种政策下的有效性。

英文摘要:

Accurate rejection of sensitive or harmful visual content, i.e., harmful image guardrail, is critical in many application scenarios. This task must continuously adapt to the evolving safety policies and content across various domains and over time. However, traditional classifiers, confined to fixed categories, require frequent retraining when new policies are introduced. Vision-language models (VLMs) offer a more adaptable and generalizable foundation for dynamic safety guardrails. Despite this potential, existing VLM-based safeguarding methods are typically trained and evaluated under only a fixed safety policy. We find that these models are heavily overfitted to the seen policy, fail to generalize to unseen policies, and even lose the basic instruction-following ability and general knowledge. To address this issue, in this paper we make two key contributions. First, we benchmark the cross-policy generalization performance of existing VLMs with SafeEditBench, a new evaluation suite. SafeEditBench leverages image-editing models to convert unsafe images into safe counterparts, producing policy-aligned datasets where each safe-unsafe image pair remains visually similar except for localized regions violating specific safety rules. Human annotators then provide accurate safe/unsafe labels under five distinct policies, enabling fine-grained assessment of policy-aware generalization. Second, we introduce SafeGuard-VL, a reinforcement learning-based method with verifiable rewards (RLVR) for robust unsafe-image guardrails. Instead of relying solely on supervised fine-tuning (SFT) under fixed policies, SafeGuard-VL explicitly optimizes the model with policy-grounded rewards, promoting verifiable adaptation across evolving policies. Extensive experiments verify the effectiveness of our method for unsafe image guardrails across various policies.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑