迈向策略自适应的图像护栏:基准与方法
Towards Policy-Adaptive Image Guardrail: Benchmark and Method
对做视觉安全审核的人,这篇给出了一个用图像编辑模型构造「仅局部违规」安全-不安全图像对的基准构造范式,以及用可验证奖励强化学习(RLVR)替代固定策略 SFT 来让 VLM 护栏跨策略泛化的训练思路,可直接迁移到内容审核与越狱防御模型。
原文依据 SafeEditBench leverages image-editing models to convert unsafe images into safe counterparts
摘要译文
由模型翻译 · 术语统一 · 请对照原文核对关键结论准确拒识敏感或有害的视觉内容,即有害图像护栏,在许多应用场景中至关重要。该任务必须持续适应不断演变的安全策略,以及跨不同领域、随时间变化的内容。然而,传统分类器受限于固定类别,在引入新策略时需要频繁重新训练。视觉语言模型(VLM)为动态安全护栏提供了更具适应性与泛化性的基础。尽管具备这一潜力,现有的基于 VLM 的防护方法通常仅在固定的安全策略下进行训练与评估。我们发现,这些模型严重过拟合于已见策略,无法泛化到未见策略,甚至丧失基本的指令遵循能力与通用知识。为解决该问题,本文做出两项关键贡献。第一,我们提出新的评测套件 SafeEditBench,用以基准化现有 VLM 的跨策略泛化性能。SafeEditBench 利用图像编辑模型将不安全图像转换为安全对应版本,从而生成与策略对齐的数据集,其中每一对安全-不安全图像除违反特定安全规则的局部区域外保持视觉相似。随后由人工标注者在五种不同策略下提供准确的安全/不安全标签,从而支持对策略感知泛化进行细粒度评估。第二,我们提出 SafeGuard-VL,一种基于可验证奖励的强化学习(RLVR)方法,用于稳健的不安全图像护栏。SafeGuard-VL 不单纯依赖固定策略下的监督微调(SFT),而是以策略为依据的奖励对模型进行显式优化,促进跨不断演变策略的可验证适应。大量实验验证了我们的方法在多种策略下对不安全图像护栏的有效性。
英文原文摘要 1867 字符
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.