PolicyShiftGuard: Benchmarking and Improving Policy-Adaptive Image Guardrails

Hugging Face Daily Papers Papers

Summary

This paper introduces PolicyShiftBench, a benchmark for policy-adaptive image guardrails, and PolicyShiftGuard, a compact model trained with a two-stage method that improves performance under shifting safety policies.

Image guardrails are typically trained and evaluated under a fixed safety policy, implicitly treating safety as an intrinsic property of an image. Real deployments are different: the same image may be allowed in one product, restricted in another, and newly disallowed when a policy boundary changes. We study policy-adaptive image guardrailing, where a model must decide whether an image violates the currently supplied policy and generalize to held-out policy definitions. We introduce PolicyShiftBench, a comprehensive benchmark with 2,000 policy-discriminative instances over 265 images, where each image is paired with 7.55 policy-conditioned prompts on average to test whether models adapt to the active policy rather than relying on image-level safety priors. We then propose PolicyShiftGuard, a compact policy-conditioned guardrail trained with a two-stage training recipe that combines Randomized Policy SFT (RP-SFT) with Boundary-Pair Policy Adaptation (BP-Adapt). BP-Adapt trains matched prompts for the same image and risk category using standard label supervision and a pairwise comparison loss that separates blocking policies from passing policies. Experiments show that existing VLMs and specialized guardrails remain brittle under policy shifts, while PolicyShiftGuard substantially improves policy-sensitive performance. The 7B model achieves SOTA performance of 76.9 Avg. F1 and 72.1 Avg. PSS on PolicyShiftBench, transfers well to UnSafeBench and SafeEditBench, and improves the latency-performance trade-off with a concise output format. Ablations confirm that matched pass/block boundary pairs are essential for stable policy adaptation.
Original Article
View Cached Full Text

Cached at: 07/16/26, 05:42 AM

Paper page - PolicyShiftGuard: Benchmarking and Improving Policy-Adaptive Image Guardrails

Source: https://huggingface.co/papers/2607.05910

Abstract

Imageguardrailsaretypicallytrainedandevaluatedunderafixedsafetypolicy,implicitlytreatingsafetyasanintrinsicpropertyofanimage.Realdeploymentsaredifferent:thesameimagemaybeallowedinoneproduct,restrictedinanother,andnewlydisallowedwhenapolicyboundarychanges.Westudypolicy-adaptiveimageguardrailing,whereamodelmustdecidewhetheranimageviolatesthecurrentlysuppliedpolicyandgeneralizetoheld-outpolicydefinitions.WeintroducePolicyShiftBench,acomprehensivebenchmarkwith2,000policy-discriminativeinstancesover265images,whereeachimageispairedwith7.55policy-conditionedpromptsonaveragetotestwhethermodelsadapttotheactivepolicyratherthanrelyingonimage-levelsafetypriors.WethenproposePolicyShiftGuard,acompactpolicy-conditionedguardrailtrainedwithatwo-stagetrainingrecipethatcombinesRandomizedPolicySFT(RP-SFT)withBoundary-PairPolicyAdaptation(BP-Adapt).BP-Adapttrainsmatchedpromptsforthesameimageandriskcategoryusingstandardlabelsupervisionandapairwisecomparisonlossthatseparatesblockingpoliciesfrompassingpolicies.ExperimentsshowthatexistingVLMsandspecializedguardrailsremainbrittleunderpolicyshifts,whilePolicyShiftGuardsubstantiallyimprovespolicy-sensitiveperformance.The7BmodelachievesSOTAperformanceof76.9Avg.F1and72.1Avg.PSSonPolicyShiftBench,transferswelltoUnSafeBenchandSafeEditBench,andimprovesthelatency-performancetrade-offwithaconciseoutputformat.Ablationsconfirmthatmatchedpass/blockboundarypairsareessentialforstablepolicyadaptation.

View arXiv pageView PDFProject pageGitHub20Add to collection

Models citing this paper0

No model linking this paper

Cite arxiv.org/abs/2607.05910 in a model README.md to link it from this page.

Datasets citing this paper0

No dataset linking this paper

Cite arxiv.org/abs/2607.05910 in a dataset README.md to link it from this page.

Spaces citing this paper0

No Space linking this paper

Cite arxiv.org/abs/2607.05910 in a Space README.md to link it from this page.

Collections including this paper1

Similar Articles

AdaGuard: An Adaptive Guard Model with User-defined Policies

Hugging Face Daily Papers

AdaGuard introduces a family of guard models (0.6B, 4B, 8B) that assess language model agent trajectories under user-defined policies, using a new dataset and reinforcement learning algorithm for adaptive safety.

SafePyramid: A Hierarchical Benchmark for In-context Policy Guardrailing

Hugging Face Daily Papers

SafePyramid is a hierarchical benchmark with 1,000 multi-turn conversations across 10 domains and 3,000 policies to evaluate guardrail systems' ability to identify safety violations via in-context policy specification. Tests on 10 frontier LLMs show that even GPT-5.5 only correctly identifies all violated rules 54% of the time at the easiest level, highlighting the challenge of reliable in-context policy guardrailing.

Guarding with Judgment: Learning to Intervene for Multimodal Safety

Hugging Face Daily Papers

The paper introduces JudiAct, a multimodal safety guard that chooses among allow, warn, review, and refuse actions instead of blanket refusals, along with the JudiBench benchmark and a 20,126-audit training corpus, achieving over 28 Macro-F1 points improvement over its 4B backbone and reducing MM-SafetyBench attack success from 40.78% to 25.30%.

MedGuardBench: A Patient-Oriented Benchmark for Personalized Guardrail Development

arXiv cs.AI

The paper introduces MedGuardBench, a patient-conditioned medication safety benchmark of 5,001 scenarios across 87 medications, and proposes personalized reasoning guardrails using Personalized Reasoning Distillation, Context Unrolling, and guided GRPO to improve safety verdicts based on individual patient profiles.