Skip to content

Safety as a budget: calibrating the control channel of constrained GRPO for vision-language modelsSafety as a Budget: Calibrating the Control Channel of Constrained GRPO for Vision-Language Models

arXiv: Adversarial Attacks, Backdoors & Poisoning· arXiv:2611.16628· Bo HanLanzhou UniversityIndexed by this site · 10 days ago· Originally publishedDefenses

Quick read

Defenses

Based on the paper PDF (AI-generated); refer to the original

The authors propose dual-channel constrained GRPO: calibrating the scorer readings and retaining the multiplier, reducing the held-out harmfulness rate of Qwen3-VL-2B from 8.9% to 4.8%.

Questions
When fine-tuning a VLM with RL using a safety reward, the degree of safety can only be determined indirectly by repeatedly trying reward weights; the authors argue for writing safety as two budgets, a harmful-assistance rate and an over-refusal rate, but adding them directly into GRPO fails twice.
Methods
The authors propose dual-channel constrained GRPO: the base reward preserves the original score to maintain within-group ranking, the penalty term and constraint estimates are calibrated through a monotone mapping fitted on reviewer annotations, and an unscaled advantage is used so that the Lagrange multiplier can enter the gradient.
Experiments and results
On Qwen3-VL-2B, held-out harm drops from 8.9% with standard GRPO to 4.8% (lower for every seed), from 10.1% to 5.1% on attacks with image-borne intent, and from 28.9% to 12.8% on unseen HADES; over-refusal is no more than 2%, and MMBench is unchanged.
Limitations and future work
The paper has no dedicated limitations section. The experiments cover only a 2B policy (plus one 8B check), 80 training steps, and 3 seeds; benign over-refusal is measured on 100 held-out queries; the human audit is one annotator and 200 responses.
Experimental setupQwen3-VL-2B-Instruct、8B policy · MM-SafetyBench、FigStep et al. · held-out harm (%)、over-refusal (%) et al.
Threat model
Non-attack paper: the goal is to formulate safety in GRPO reinforcement learning as two budget constraints — harmful-assistance rate E[harm] ≤ εh and over-refusal rate E[refusal] ≤ εr — using an off-the-shelf scorer as the cost and Lagrange multipliers for enforcement; the victim system is a VLM policy fine-tuned with a safety reward.
Evaluated models
Qwen3-VL-2B-Instruct8B policy
Benchmarks
MM-SafetyBenchFigStepJailbreakV-28KMOSSBenchMMBenchHADESSIUOMSSBench
Metrics
held-out harm (%)over-refusal (%)MMBench accuracyAUROCECECohen's κKL
AI summaryThe paper proposes dual-channel constrained GRPO for training vision-language models to refuse harmful image-text requests, and identifies two failure points of the original method. The authors' analysis shows that the mean bias of a scorer trained for ranking replaces the budget and determines whether the Lagrange multiplier converges, saturates or shuts off; and that standard GRPO normalizes the penalized reward within the group, which cancels out the multiplier before it reaches the gradient. Methodologically, the base reward retains the original score for within-group comparison, the penalty and constraint estimates are passed through a monotonic mapping fitted on training responses labeled by a judge model, and the advantage function retains the multiplier. On Qwen3-VL-2B, using the training-free readout of an open-source 4B model as the scorer, the held-out harmful response rate on 1,037 adversarial prompts dropped from 8.9% with standard GRPO to 4.8%, and was 7.6% under an uncalibrated budget; on 400 benign queries over-refusal was at most 2%, and MMBench remained unchanged. The largest drop was in scenarios where the intent is located in the image (from 10.1% to 5.1%), and on the unseen HADES benchmark it dropped from 28.9% to 12.8%.

The paper proposes dual-channel constrained GRPO for training vision-language models to refuse harmful image-text requests, and identifies two failure points of the original method. The authors' analysis shows that the mean bias of a scorer trained for ranking replaces the budget and determines whether the Lagrange multiplier converges, saturates or shuts off; and that standard GRPO normalizes the penalized reward within the group, which cancels out the multiplier before it reaches the gradient. Methodologically, the base reward retains the original score for within-group comparison, the penalty and constraint estimates are passed through a monotonic mapping fitted on training responses labeled by a judge model, and the advantage function retains the multiplier. On Qwen3-VL-2B, using the training-free readout of an open-source 4B model as the scorer, the held-out harmful response rate on 1,037 adversarial prompts dropped from 8.9% with standard GRPO to 4.8%, and was 7.6% under an uncalibrated budget; on 400 benign queries over-refusal was at most 2%, and MMBench remained unchanged. The largest drop was in scenarios where the intent is located in the image (from 10.1% to 5.1%), and on the unseen HADES benchmark it dropped from 28.9% to 12.8%.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    Change VLM safety training from trying out reward weights to explicit budget constraints, and fix its two failures within GRPO.

    Core problem: when training a VLM with RL to refuse harmful image-text requests, the degree of safety can only be determined indirectly by repeatedly trying reward weights; the authors argue for stating safety directly as ratio budgets, but adding them directly into GRPO fails twice.

    • Setting and motivation: the intent of requests a VLM faces may lie in the text, the image, or a combination of both (e.g., a typographic card that writes the steps into the image). What deployers want is a ratio metric—assistance with harmful requests no more than a few percentage points, refusals of benign requests no more than a few percentage points—whereas trying out reward weights yields a safety-utility trade-off point that no one chose, and often comes with over-refusal of benign queries that look dangerous (the authors' claim).
    • Shortcomings of existing approaches: the authors state that existing VLM safety fine-tuning (VLGuard, SPA-VL) fixes the target at data collection time, while reward weights are found by trial and error through training-evaluation-retry; constrained optimization can handle ratios directly, but the natural approach of adding an off-the-shelf scorer as a cost directly into GRPO fails.
    • Core observation (two failures): first, the scorer is built for ranking, and its mean bias (rather than the budget) determines whether the Lagrange multiplier lands in an interior, saturated, or off state (Proposition 1); second, standard GRPO normalizes the penalized reward within the group, so the factor 1 + λh is canceled out and the multiplier cannot reach the gradient.
    • Proposed method: dual-channel constrained GRPO—the base reward preserves the original score to maintain within-group ranking, the penalty and constraint estimates are calibrated through a monotone mapping fitted on reviewer annotations, and advantages are not scaled so as to preserve the multiplier.
    • Setup (not an attack paper): the objective is to maximize the base reward, with constraints E[harm] ≤ εh and E[refusal] ≤ εr; the cost comes from an off-the-shelf scorer never trained for this task (a training-free readout of an open 4B model, or the decision model Jev); the victim/fine-tuned system is Qwen3-VL-2B-Instruct fine-tuned with GRPO+LoRA.
  2. What related research exists?

    Related work falls into three groups: VLM safety data and benchmarks, decision models as reviewers/rewards, and constrained policy optimization.

    VLM safety and benchmarks

    • VLGuard (2024) fine-tunes on safe and unsafe image-text pairs; SPA-VL (2025) collects preference pairs across harm categories. The authors state that such work fixes the target at data collection time, whereas this paper writes the target as a pair of budgets and enforces it during training.
    • Adversarial benchmarks place harmful intent in the image or in an image-text combination: FigStep (2025), MM-SafetyBench (2024), JailBreakV (2024); MOSSBench (2025) measures the opposite failure—refusal of benign queries that look dangerous. This paper uses these benchmarks for training and held-out evaluation.

    Decision models as reviewers and rewards

    • LLM review is the default scorer for open-ended behavior (Zheng et al., 2023), and safety classifiers such as Llama Guard (2023) return coarse-grained labels; the decision model Jev (TypeSafe AI, 2026) returns calibrated probabilities for typed questions.
    • Just Ask Jev (2026) claims a single general question can detect ten categories of alignment failure zero-shot, with a median AUROC of 0.886; other work compares the robustness of Jev with LLM reviewers and classifiers. LLM-as-Jev (2026) reads Jev-style probabilities from frozen open models, and this paper's open scorer follows this readout.
    • Visual Jev Rewards (2026) turns decision-model probabilities into a GRPO reward for multi-agent image generation. The authors note that these works evaluate scorers by ranking, whereas budgets also require reading their level.

    Constrained policy optimization

    • Constrained MDPs (Altman, 1999) and PID Lagrangian variants (Stooke et al., 2020); Safe RLHF (2024) uses learned reward and cost models for helpfulness/harmlessness constraints, and Safe RLHF-V (2025) extends this to multimodal.
    • Constrained GRPO (CGRPO, 2026) notes that scalarizing before group normalization couples the multiplier, and proposes normalizing each objective first and then weighting; Dr. GRPO (2025) proposes unscaled advantages. This paper uses both advantage forms and states that both require a calibrated control channel. CARGO-VL (2026) uses a binary cost to constrain unsupported answers and over-refusal in VLMs.

    Baselines and positioning: the comparison baselines are standard GRPO (DeepSeekMath, 2024) and CGRPO with both advantage forms, as well as a fixed weight λh; the benchmarks are MM-SafetyBench, FigStep, JailbreakV-28K, MOSSBench, and held-out HADES, SIUO, MSSBench. Authors' positioning: the cost comes from an off-the-shelf scorer, and this paper explains how its mean bias determines the state the dual update reaches, and corrects it without touching the base reward.

  3. How does the paper address this problem?

    Dual-channel design: the learning channel preserves the original score ranking, the control channel calibrates the level with a monotone mapping, and advantages are not scaled so as to preserve the multiplier.

    Overall approach: write safety as a pair of ratio budgets, enforced inside GRPO with Lagrange multipliers; handle the scorer's differing requirements in the two channels separately — two-channel constrained GRPO.

    Problem setup and formalization

    • Policy responses come from image-text prompts in a harmful set H and a benign set B; the scorer returns three probabilities for a response: ph (substantively helping the harmful request), pr (refusal), pf (useful response). The scorer reads only the response text and does not ask whether the prompt is harmful — the authors state that the decision model over-flags benign requests, and a reward that reads the prompt pushes toward refusing everything.
    • Base reward: 1 − ph for harmful prompts, w·pf + (1 − w)(1 − pr) for benign prompts, w = 0.65. Constraints are Ex∈ H[ph] ≤ εh and Ex∈ B[pr] ≤ εr, i.e., the harmful-assistance rate and the over-refusal rate each have a budget.
    • Dual update each step: λk ← clip(λk + η(ĝk − εk), 0, λmax), where ĝk is the EMA of the mapped probability batch mean (coefficient 0.3), η = 0.5, λmax = 10; the penalty uses the probability itself rather than a thresholded indicator, so the constraint and the gradient see the same quantity.

    Two channels: gradients need ordering, budgets need level

    • Within the learning channel, GRPO compares multiple responses to the same prompt and needs ordering; within the control channel, the dual update compares the scorer mean with the budget and needs level (the mean is the event rate).
    • Proposition 1: the fixed point (π, λ) is in one of three states — interior (h = ε − b), inactive (λ = 0), saturated (λ = λmax), where b is the scorer mean bias. Order-preserving transforms (e.g., p → p^γ) leave AUROC unchanged but can move b arbitrarily; Sec. 4.4 uses this to test the three states.
    • Calibration is placed only in the control channel: the penalty and constraint estimates pass through a monotone mapping ck, while the base reward keeps the raw probabilities. The mapping is fit on reviewer labels of responses to training prompts (sampled along the trajectory of one unconstrained run; 200 labels reduce the open-readout bias to about 0.01); the isotonic mapping is piecewise constant, and putting it into the base reward would flatten within-group comparisons, so it enters only the penalty and constraint.

    The multiplier must reach the gradient

    • Standard GRPO's advantage Ai = (ri − r̄)/s: the group scale s = std(r) cancels the factor (1 + λh), and the batch scale makes λh instead shrink the advantage of benign prompts.
    • The authors set s = 1 (Dr. GRPO's unscaled form), so the multiplier scales the harmful-prompt gradient by 1 + λh and the benign-prompt gradient by λr; the CGRPO form instead standardizes each objective within the group and then weights them. Sec. 4.6 tests four advantage forms.

    Scorer and success determination

    • The decision model's input is the user request plus the response; the policy sees the image, and the reward reads only the response text. Human audit supports this choice: agreement between text review and the image-viewing annotator (κ = 0.85) is higher than image-viewing review (0.71).
    • Both scorers answer the same three questions: decision model Jev 1.13, and a training-free readout from a frozen Qwen3.5-4B (option numbering, response prefix, softmax over log probabilities of the identifiers).
    • Success determination: held-out harmful rate and over-refusal rate are labeled by an independent LLM reviewer (Qwen3.8-Max), which is never used as a reward; cross-seed requires the effect to hold in every seed.
  4. What experiments did the paper conduct?

    On Qwen3-VL-2B, the calibrated control channel lowers held-out harm from 8.9% to 4.8%, and this holds under unseen benchmarks and human audit.

    Experimental setup

    • Tuned policy: Qwen3-VL-2B-Instruct, GRPO + LoRA (rank 16, learning rate 5×10⁻⁵, KL coefficient 0.02), 4 samples per prompt, 8 prompts per step, 80 steps; advantage unscaled by default, with standard GRPO (within-group standardization) as baseline. There is also one 8B policy check.
    • Training prompts: harmful prompts mined from 598 MM-SafetyBench candidates by difficulty, keeping the 130 on which the base model's 4 samples disagree under the reviewer, of which 120 are used for training; benign prompts are 200 MOSSBench queries.
    • held-out evaluation: 1,037 adversarial prompts (MM-SafetyBench 299, FigStep 300, JailbreakV-28K 194, MOSSBench comparison set 244); over-refusal uses 100 held-out benign MOSSBench; capability uses 300 MMBench. Greedy decoding.
    • Reviewer: Qwen3.8-Max labels each response as refusal/safe response/harmful and is never used as a reward; 11–12 responses blocked by the content filter are removed, leaving 1,025–1,026. An image-viewing reviewer Qwen3-VL-Plus and one human annotator are also used for re-checking.
    • Statistics: paired McNemar exact test and 95% prompt-bootstrap intervals; all 3 seeds are reported, and an effect is claimed only when it holds in every seed.
    • Budget: main experiments εh = εr = 0.10; Table 3 additionally tests εh ∈ {0.20, 0.10, 0.05}.

    Main results

    Per Table 1 (εh = εr = 0.10, mean of three seeds; held-out metrics in %):

    Swipe horizontally to read the table

    Scorer / advantageControl channelHarmOver-ref.
    Standard GRPOno budget8.91.3
    CGRPOraw7.62.7
    CGRPOcalibrated4.84.0
    Unscaledno budget13.12.3
    Unscaledraw11.91.3
    Unscaledcalibrated6.14.0
    Unscaled, Llama-fit mappingcalibrated6.65.0
    Unscaled, Jev scorerraw7.52.7
    • The authors state that calibrated harm is lower than standard GRPO in every seed (∆ = −4.2 points, 95% CI [−5.1, −3.2]), and lower on all four benchmarks; with unscaled advantage it drops from 11.9% to 6.1%, with KL less than half (0.02–0.04 vs. 0.04–0.07).
    • Over-refusal stays at 1–2% on 400 benign queries (the abstract's wording is at most 2%), MMBench 78.0–80.7%, on par with the base model's 79.0%.
    • Under the raw (uncalibrated) control channel, the open readout overestimates refusal by 0.16, λr rises to 1.5–3.0 while reviewer over-refusal is only 2%, and the budget barely improves harm (7.6% vs. 8.9%).

    Level determines the controller state (Sec. 4.4, Table 2)

    • What was tested: order-preserving transforms of the Jev probabilities (p^0.3 overestimates, p³ underestimates, isotonic mapping), entering only the penalty and constraint, with AUROC unchanged. Results: overestimation drives both multipliers to the cap of 10 in all 3 seeds, harm 7.1%; underestimation makes the constraint satisfied from the start, λh goes to zero, harm 12.2%, no lower than no budget (p = 10⁻²²).
    • The isotonic mapping raises Jev's harm level from 0.16 to 0.25, λh from 1.42 to 1.84, and held-out harm drops to 5.7% (three-seed mean 5.8% vs. 7.5%). The authors interpret this as the budget acting on level rather than ordering, consistent with the three-state prediction of Proposition 1.

    The budget is the control knob (Sec. 4.5, Table 3)

    • What was tested: εh = 0.20 / 0.10 / 0.05 under the Jev reward. Results: held-out harm is 12.0% / 7.6% / 6.5% respectively, with training estimates in the same order (0.15 / 0.12 / 0.09); the two tighter budgets remove 59 and 66 harmful responses respectively relative to no budget (p < 10⁻⁷), and the ordering holds on all four benchmarks.
    • Fixed-weight comparison: λh = 2 gives 8.1%, statistically indistinguishable from that budget (p = 0.56); λh = 1.42 gives 12.0%, on par with no budget. The authors state that the weight is an output of the constraint run and the budget is the only input; once εh = 0.20 is satisfied the multiplier shuts off automatically, which a fixed weight cannot do.

    Generalization, audit, and robustness (Sec. 4.3, 4.7, 4.8)

    • Intent location and unseen benchmarks: on 441 attacks with intent written into the image, harm drops from 10.1% to 5.1% (raw budget 9.1%); on unseen HADES it drops from 28.9% to 12.8% (raw budget 23.6%, base model 48.4%); on SIUO with unscaled advantage it drops from 19.6% to 14.5% (p < 10⁻³); over-refusal on 300 MSSBench safety scenarios is below 1%.
    • Human audit and image-viewing review: one annotator blind-labeled 200 responses, with agreement κ = 0.85 with text review (harmful precision 0.81, recall 0.72), and κ = 0.71 with image-viewing review; under the annotator's labels all orderings hold (no budget 13.4%, εh 0.20/0.10/0.05 give 12.9% / 9.1% / 8.2%). Under image-viewing review, calibration lowers the open-readout harm from 20.8% to 12.6% (p = 4×10⁻¹⁴).
    • Robustness: reproduced across three seeds and a second GPU (8.3% vs. 7.6%); the budget remains effective at 120 steps and triple learning rate; a mapping fit on Llama-3.3-70B labels gives 6.6% vs. 6.1% (p = 0.21); under sampled decoding (T = 0.7) the success rate over three attempts drops from 19.2% to 10.3%; on an 8B policy that already satisfies the budget, the calibrated controller stays inactive, while the raw controller instead raises harm from 3.7% to 4.7% (p = 0.021).

    Other ablations and analyses

    • Calibrating only the refusal channel 8.1%, only the harm channel 8.7%, both calibrated 7.1% (Table 1 upper part, seed 0).
    • Manual fixes are all worse: removing the refusal budget 9.0%, loosening to εr = 0.26 gives 9.5%, fixing λh = 2 gives 9.7% (p ≤ 0.014).
    • Advantage form (Table 4, seed 0): under group standardization the calibrated budget gives harm 10.6% (λh climbs to 3.2–4.7 while the estimate stays at 0.15–0.21); batch standardization gives 8.3% / 7.7% / 7.5% for the three controls (p ≥ 0.37); unscaled 7.1%, CGRPO 5.0%.
    • Putting the mapping into the base reward flattens within-group comparisons: λh 0.78 vs. 1.84, harm 7.0% vs. 5.7% (p = 0.029).
    • Safety-prompt comparison: merely instructing the base model to refuse harmful requests gives held-out harm 5.0%, HADES 12.4%, but refuses 25% of held-out benign queries (the calibrated controller: 4%).
  5. What are some points that can be further explored?

    The paper has no dedicated limitations section; the experiments cover a 2B policy, 80 steps, 3 seeds, and one human annotator.

    Limitations and future directions noted by the authors

    • The paper does not specifically discuss limitations, and has no separate Limitations or Future Work section; the conclusion (Sec. 5) only summarizes the two failures and the fix, and gives operational points (annotate a few hundred training responses, fit one isotonic mapping per constraint, and read the mean bias b from the same batch of annotations).

    Scope of the experiments

    • The fine-tuned policy is Qwen3-VL-2B-Instruct (LoRA fine-tuning), with one additional single check on an 8B policy (Sec. 4.8); training is 80 steps, 8 prompts per step, 4 samples per prompt, plus one 120-step run.
    • The scorers are Jev 1.13 and a training-free readout of Qwen3.5-4B; the main reviewer is Qwen3.8-Max, the recheck reviewer is Qwen3-VL-Plus; the calibration mapping was additionally fitted once on Llama-3.3-70B annotations.
    • Main results report 3 seeds; held-out adversarial prompts are 1,037 (1,025–1,026 after review), benign over-refusal is measured on 100 held-out MOSSBench queries (some aggregate figures use 400), and MMBench has 300 questions.
    • The human audit is one annotator and 200 stratified sampled responses, stratified by reviewer label and reweighted (Sec. 4.7); the paper does not report multiple annotators or inter-annotator agreement.
    • Generalization checks cover three benchmarks not used in training or calibration—HADES, SIUO, MSSBench—as well as sampled decoding (T = 0.7) and a second GPU; the budget sweep covers εh ∈ {0.20, 0.10, 0.05} with εr fixed at 0.10 (plus one manual-fix comparison with εr = 0.26).
  6. Summarize the main content of the paper

    After writing VLM safety as two ratio budgets, calibrating the control channel, and preserving the multiplier, held-out harm drops from 8.9% to 4.8%.

    A training-method paper on VLM safety reinforcement learning: turning "how much safety" from a trial reward weight into an explicit deployment parameter.

    • Problem: when using a safety reward for GRPO, the degree of safety is indirectly determined by the reward weight; the natural approach of writing the harmful-assistance rate and over-refusal rate as budgets and using an off-the-shelf scorer as the cost fails twice — the scorer's mean bias (not the budget) determines where the Lagrange multiplier lands (the interior/inactive/saturated three states of Proposition 1), and within-group standardization cancels the multiplier out of the gradient.
    • Method: two-channel constrained GRPO — the base reward keeps the raw scores to preserve within-group ordering, the penalty and constraint estimates are calibrated through an isotonic mapping fit on reviewer labels (about 200), and the advantage is unscaled (or, per CGRPO, each objective is standardized first) so the multiplier remains in the gradient.
    • Main results: on Qwen3-VL-2B, held-out harm drops from 8.9% with standard GRPO to 4.8% (lower in every seed, ∆ = −4.2 points, 95% CI [−5.1, −3.2]); attacks with intent in the image drop from 10.1% to 5.1%; unseen HADES drops from 28.9% to 12.8%.
    • Cost and comparisons: over-refusal on 400 benign queries is at most 2%, MMBench unchanged; manual fixes such as removing the budget, loosening the budget, or fixing the weight are all worse (9.0%–9.7%).
    • Mechanism evidence: order-preserving transforms reproduce all three predicted controller states; tightening the budget (0.20/0.10/0.05) makes harm decrease monotonically (12.0%/7.6%/6.5%); results hold under image-viewing review, one human annotator (κ = 0.85 with text review), and a mapping fit on Llama-3.3-70B labels.
    • Authors' conclusion: labeling only a few hundred training responses, fitting one isotonic mapping per constraint, and reading out the bias b is enough for Proposition 1 to predict the controller state, making the budget a deployment parameter.

Related papers

Show 3 more papers
Read originalarxiv.org