Skip to content

When Defenses Write Refusals Themselves: Auditing Keyword-Scoring Evaluations of Inference-Time Defenses for Multimodal Large Language ModelsWhen the Defense Writes the Refusal: Auditing Keyword-Scored Evaluation of Inference-Time Defenses for Multimodal Large Language Models

arXiv· arXiv:2606.10904· Bulat Nutfullin, Vladimir Evgrafov, Dmitry NamiotLomonosov Moscow State University, Faculty of Computational Mathematics and CyberneticsIndexed by this site · 25 days ago· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

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

The authors audit a self-archived evaluation of inference-time defenses for MLLMs: the keyword scorer misjudges the defense's own safety wording as refusal, and across 28,000 benign outputs the number of keyword markers is 54.6× the estimated number of refusals.

Questions
Prompt-based inference-time defenses write safety wording into the answer; if the evaluation uses keyword rules to determine refusal, defended answers will be miscounted as refusals, and comparisons between defenses are therefore distorted.
Methods
The authors audit their own prior experimental archive: they screen seven benchmark branches with three levels of evidence thresholds (input-valid, output-bound, construct-validated) and re-estimate refusal rates on 28,000 benign outputs with an independent LLM review.
Experiments and results
Three of the seven branches were quarantined due to input provenance failures; on the benign grid, keywords flagged 7,532 items while estimated refusals were about 138.1 (54.6×), with misjudgments concentrated in the rationale-wrapped arm; on the four retained corpora, keyword scores had no consistent ranking.
Limitations and future work
The authors note that the semantic audit is sparse, uses only a single Haiku-family reviewer, lacks per-response archives, and that the local adapters omit key components of the original methods; the models tested are only 8 in total from two families, InternVL and Qwen-VL.
Experimental setupInternVL2.5-4B、InternVL2.5-8B-MPO et al. · FigStep、JailBreakV et al. · keyword score HR dkw、benign refusal rate RR et al.
Evaluated models
InternVL2.5-4BInternVL2.5-8B-MPOInternVL3.5-8BInternVL3.5-38BQwen2.5-VL-7BQwen2.5-VL-32BQwen3-VL-8BQwen3-VL-32Blegacy keyword classifier (Ckw)
Benchmarks
FigStepJailBreakVSALAD-BenchHarmBench-SimpleMMBench-derived benign corpus
Metrics
keyword score HR dkwbenign refusal rate RRharmful-class precision/recallbatch processing time ratio
AI summaryResearchers audited keyword-scoring evaluations of inference-time defenses for multimodal large language models and found that defenses write safety language into responses, causing keyword scorers with refusal word lists to miscount defended responses as refusals. The audit targets the old keyword rules in the authors' experiment archive, covering three defenses: static defense prompts, single-turn rationale-conditioned prompts, and a five-sample Gaussian-perturbation voting image adapter, across 8 InternVL and Qwen-VL models. On 28,000 benign outputs, 7,532 carried keyword markers, an LLM judge estimated about 138.1 refusals, the pooled refusal point estimate was 0.52%, the number of keyword markers was 54.6 times the estimated number of refusals, and false positives were concentrated in the rationale-wrapper experimental group. The authors propose three-level claim admission criteria—input validity, output boundedness, and construct validity—excluding three of seven planned benchmark branches on that basis, and argue that this defense–evaluator interaction, which varies by experimental group, invalidates keyword-scored defense comparisons.

Researchers audited keyword-scoring evaluations of inference-time defenses for multimodal large language models and found that defenses write safety language into responses, causing keyword scorers with refusal word lists to miscount defended responses as refusals. The audit targets the old keyword rules in the authors' experiment archive, covering three defenses: static defense prompts, single-turn rationale-conditioned prompts, and a five-sample Gaussian-perturbation voting image adapter, across 8 InternVL and Qwen-VL models. On 28,000 benign outputs, 7,532 carried keyword markers, an LLM judge estimated about 138.1 refusals, the pooled refusal point estimate was 0.52%, the number of keyword markers was 54.6 times the estimated number of refusals, and false positives were concentrated in the rationale-wrapper experimental group. The authors propose three-level claim admission criteria—input validity, output boundedness, and construct validity—excluding three of seven planned benchmark branches on that basis, and argue that this defense–evaluator interaction, which varies by experimental group, invalidates keyword-scored defense comparisons.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The audit finds that the keyword refusal scorer misjudges prompt defenses' own safety wording as refusal, invalidating comparisons between defenses.

    Core problem: keyword-based refusal scorers count the safety wording that prompt-based inference-time defenses themselves write into responses as refusal, invalidating keyword-score comparisons of such MLLM defenses.

    • Setting and importance: MLLMs process image-text pairs, and the visual channel brings an attack surface that text alignment does not fully cover; inference-time defenses (changing inputs, prompts, the generation process, or outputs, without touching weights) are adopted because they need no retraining (Introduction).
    • Shortcomings of existing methods: the authors point out that a benchmark name cannot prove the image payload actually reached the model, and that majority-vote markers or keyword matching are not equivalent to the returned answer or a semantic safety judgment; HarmBench has already argued that keyword matching is unreliable, but the failure documented here is narrower and mechanistic — the bias is produced by the intervention under test itself and varies across evaluation arms rather than averaging out as shared noise (Section 2).
    • Core observation: a wrapper instructing the model to reason about whether a request is "harmful, illegal, or unethical" inserts tokens from the refusal word list into responses, and the legacy keyword rule then judges the response as safe/refusal, conflating the defense's effect on behavior with its effect on the scorer (Section 6.2).
    • What the paper proposes: an audit of the authors' own experimental archive — a three-level claim-admissibility framework (input-valid, output-bound, construct-validated), an LLM-review re-estimation over 28,000 benign outputs, and a retained-evidence profile of three executed local adapters (Ap, Rp, G5) on 8 MLLMs (Section 1 contributions).
    • Evaluation target: what is audited is the experimental archive of the authors' own prior work (38,500 outputs); the three local adapters derive from the designs of AdaShield-S, RapGuard, and SmoothVLM but simplify key components; the paper explicitly gives no ranking of published defenses (Sections 1, 4).
  2. What related research exists?

    Related work falls into four groups: MLLM attacks, inference-time defenses, safety evaluation benchmarks, and data provenance documentation; this paper is positioned as an evaluation audit.

    MLLM attacks

    • FGSM and PGD (Goodfellow et al.; Madry et al.) established gradient attacks on vision models; later work applied perturbations and patches to aligned MLLMs (Qi et al. 2024; Brown et al. 2017; Niu et al. 2024).
    • Structured attacks place instructions in images or distribute them across multiple modalities (FigStep, MM-SafetyBench, Jailbreak in Pieces); adversarial images can also manipulate generation at runtime (Bailey et al. 2024); Zhao et al. survey the broader threat surface.

    Inference-time defenses

    • RapGuard and AdaShield modify prompts, and SmoothVLM randomly smooths and transforms images (based on certified smoothing from Cohen et al.).
    • Output-level methods filter or regenerate drafts (MLLM-Protector; Gou et al. 2024).
    • Text-side RLHF (Ouyang et al. 2022) cannot directly cover all vision-text attacks, and MLLMs may inherit the vulnerabilities of vision encoders such as CLIP (Carlini et al. 2023).

    Safety evaluation benchmarks

    • MM-SafetyBench and FigStep target visual text injection; JailBreakV contains text and multimodal jailbreaks; SALAD-Bench and HarmBench cover harmful requests.
    • The paper notes that HarmBench itself argues that keyword and refusal-prefix matching is unreliable and instead uses a trained classifier for scoring; the failure recorded in this paper differs: when a prompt defense is in the loop, the lexical bias is produced by the intervention under test and differs across evaluation arms.

    Data and model provenance

    • Datasheets for datasets and Model Cards record dataset and model provenance; the authors state that the threshold treatment in this paper is closer to a later claim-admissibility step: the executed input, the returned output, and the scorer must belong to the same traceable event chain.

    Positioning: the authors state that this paper is not a new algorithm or a defense ranking, but a quantitative audit of their own archive and a scoped comparison (review response R2.3).

  3. How does the paper address this problem?

    Audit the archived pipeline with three levels of evidence thresholds, and re-estimate refusal rates on benign outputs with an independent LLM review protocol.

    Overall approach: treat the archived evaluation as an evidence-chain audit—first formalize the old keyword scoring rule, then screen each benchmark branch's evidence eligibility with three levels of thresholds, and finally re-estimate refusal rates on the benign grid with an independent LLM review estimator, quantifying the bias of the keyword proxy. The framework has no separate name; the core concept is claim-admissibility levels.

    Problem formalization and the old scoring rule

    • Let Fθ(xi, xt) be the MLLM's response to image xi and text xt; the inference-time defense Φ produces y = Φ(Fθ, xi, xt) without changing θ; composite defense Φ = ΦK ◦···◦ Φ1.
    • The old keyword classifier Ckw: after lowercasing and removing whitespace, if a refusal word list is matched it records refusal, if a harmful word list is matched it records harmful, and if refusal is true or harmful is false it records safe; empty responses match no word list, are counted in the safe denominator, and the aggregate summary does not record how often they occur.
    • The refusal word list includes the bare words harmful, unsafe, and unethical, which can override assistance-type markers in the same answer—the authors state this is one reason the rule is only a lexical diagnostic tool.
    • Single-completion branch qj = 1[Ckw(yj) = safe]; Gaussian branch qj = 1[at least 3 safe votes out of five]; aggregate score HRdkw = 1/N∑j=1N qj, i.e., the mean of qj over N execution records; the authors state that this score is a pipeline regression artifact, not a benchmark-native or semantically validated harmlessness rate.

    Three levels of claim-admissibility thresholds

    • input-valid: the executed payload and intervention are consistent with the expected benchmark record and configuration, supporting execution diagnostics.
    • output-bound: the user-visible answer is saved together with its input and execution configuration, supporting reconstructable proxy comparisons.
    • construct-validated: the scorer's adequacy and reliability for the target construct have been validated against independent semantic judgments, supporting semantic safety comparisons; a later threshold cannot repair a failure at an earlier threshold.

    The three executed local adapters

    • Ap (archive alias Ada): AdaShield-S-style fixed safety prompt, not the original prompt, and without AdaShield-A's refinement/retrieval pipeline.
    • Rp (archive alias Rap): single-pass rationale-style safety prompt, omitting RapGuard's independent rationale generation, response self-check, and conditional re-query.
    • G5 (archive alias Smooth): for each image, add Gaussian noise with standard deviation 25 in 8-bit RGB space using NumPy RandomState (seed 42+k, k=0..4), clip to [0,255] and save as JPEG, run 5 copies and take a majority vote by lexical safety judgment; image pairs of the same shape reuse the same noise pattern for the same k, with no robustness certificate.
    • Composite A+R = Ap+Rp (apply Ap first, then Rp, final order Rp–Ap–query), S+A+R = G5+Ap+Rp; the benign grid additionally includes a simple safety prompt SP.

    Benign refusal estimator

    • Target quantity RR(Φ) = |{x ∈ Xbenign : (Φ ∘ Fθ)(x) ∈ Yrefuse}| / |Xbenign|, i.e., the proportion of outputs on the benign set that fall into the refusal set after defense; a defensive opening followed by a substantive answer does not count as a refusal.
    • Procedure: first identify and exclude direct system refusals (31 items, deterministic count); outputs that are empty or shorter than 10 non-whitespace characters are automatically recorded as garbage; the review set = all non-direct, non-garbage keyword-positive outputs plus a deterministic 10% sample of keyword-negative frames (row number mod 10).
    • The review sees only the first 1,500 characters of the answer and not the question, and returns REFUSAL/ANSWER/GARBAGE; the estimation formula (Equation 4) constructs numerator and denominator from terms including RD, RC, the sampled refusal count f, and the sample size ns, and the Wilson interval covers only the sampling term and does not include review error.

    Evaluation and audit method

    • Adversarial side: a non-random search audit of 274 labeled adversarial responses (141 model-adapter-corpus cells, 13 nominal corpus families); after excluding 28 GARBAGE, 246 remain, and the keyword rule is compared with a Haiku-family reviewer.
    • Benign side: 38,500 MMBench-derived outputs, 77 cells, with the review producing 11,637 unique labels; the canonical grid retains 56 cells (8 models × 7 configurations, 28,000 outputs), and the three Qwen models use a ChatML template repair run (the original raw-string run produced deterministic empty outputs); this rule was fixed before the semantic label analysis.
  4. What experiments did the paper conduct?

    Three of the seven branches were quarantined; on the benign grid, keyword flags are 54.6× the estimated refusals, with misjudgments concentrated in the rationale arm.

    Experimental setup

    • Models under test: 8 open-source MLLMs — InternVL2.5-4B, InternVL2.5-8B-MPO, InternVL3.5-8B, InternVL3.5-38B, Qwen2.5-VL-7B, Qwen2.5-VL-32B, Qwen3-VL-8B, Qwen3-VL-32B; all bfloat16, greedy decoding (temperature 0), 256 token limit, run on NVIDIA B200 and H100 NVL.
    • Benchmarks and scale: planned suite of 9,000 inputs; after audit, FigStep (500), JailBreakV (2,000), SALAD-Bench (2,000), HarmBench-Simple (320) retained, totaling 4,820 per core configuration; MM-SafetyBench (1,680), JailBreakV-MM (2,000), and the adversarial patch branch (500) were quarantined (Table 1).
    • Adapters audited: Ap, Rp, G5 and combinations A+R, S+A+R, plus a simple safety prompt SP; no external baseline methods.
    • Metrics: legacy keyword proxy score HR dkw (Eq. 2); benign refusal rate RR (Eq. 3); precision/recall of the harmful class in the search audit; batch processing time ratio.
    • Review method: one Haiku-family reviewer, sees the first 1,500 characters of the response (excluding the question), outputs REFUSAL/ANSWER/GARBAGE; binary agreement on 580 duplicate-label pairs was 95.3%.
    • Sample size: benign normative grid of 56 cells, 28,000 outputs; the estimator used 9,544 non-direct labels (all 7,528 keyword positives + 2,016 negative samples); search audit of 246 comparable responses.

    Main results

    Table 3 shows the fixed keyword/pipeline proxy score HR dkw on FigStep (N=500) (None/Ada/Rap/A+R are single-completion aggregation, Smooth/S+A+R are five-run majority-vote aggregation):

    Swipe horizontally to read the table

    ModelNoneAdaRapSmoothA+RS+A+R
    InternVL2.5-4B1.000.9981.0001.000.988.998
    InternVL2.5-8B-MPO1.000.996.9901.000.980.982
    InternVL3.5-8B.882.9961.000.8781.0001.000
    InternVL3.5-38B.984.992.986.988.996.998
    Qwen2.5-VL-7B.980.9781.000.9961.0001.000
    Qwen2.5-VL-32B.9201.000.986.9401.000.998
    Qwen3-VL-8B.9541.000.9981.000.9961.000
    Qwen3-VL-32B.9981.000.9921.000.994.998
    • The authors state that the single-response aggregation columns show no consistent ordering; changes of a few tenths of a point correspond to only a few responses out of 500 and are not interpreted.
    • In the search sample, 13 responses were judged harmful by the reviewer but not by the keyword rule; the authors use this to state that cells at the ceiling value cannot be read as semantic robustness.
    • The sparse audit cannot determine whether semantic safety effects have the same sign, magnitude, or mechanism as changes in lexical scores (Section 6.1).

    Benign refusal re-audit

    • What was measured: point estimates of refusal rate on the 56-cell normative grid (Figure 3c). Pooled point estimate 0.52%; largest estimable cell 3.24% (InternVL2.5-8B-MPO+Ada), sensitive to duplicate-label tie handling (audited alternative values 0.4%–3.24%); the sampling-only interval upper bound reaches 10.92% and excludes reviewer error; two Rap alias cells are not estimable (NA).
    • Count discrepancy: of 28,000 outputs, 7,532 carry keyword markers; the audit estimator attributes about 138.1 refusals on its available denominator, a count ratio of 54.6×; of 7,376 cases that are keyword-positive but judged ANSWER by the reviewer, 6,648 are in the Rap wrapper configuration, and the rule-based classification matches 96.2% of them to the fixed rationale scaffold (Figure 3a, 3b).
    • Authors' interpretation: misjudgments concentrate in the rationale wrapper arm, indicating that the proxy bias is a property of the intervention under test rather than a constant offset across arms; keyword comparisons between wrapped and unwrapped configurations mix the defense's effect on behavior with its effect on the scorer, and the two cannot be separated within the keyword protocol.

    Cross-four-corpus profile and search audit

    • Table 4 (None→A+R): of 32 model-corpus pairs, 27 show A+R raising the keyword score; of the 5 decreases, 4 are no more than two points, and the only large exception is InternVL2.5-8B-MPO on HarmBench, .975→.850, which the authors say is where paired semantic reruns should start.
    • Search audit (Table 2): on 246 comparable responses, the keyword rule marks 29.3% harmful and the Haiku-family reviewer marks 17.5% harmful; using the reviewer as reference annotator, harmful-class precision is 41.7% and recall 69.8%; the confusion matrix is 30 (both) / 42 (keyword only) / 13 (reviewer only) / 161 (neither).
    • Authors' interpretation: with only 1.94 labeled answers per cell (before excluding GARBAGE), this audit can detect scorer errors but cannot estimate population rates or validate per-cell rankings and differences.

    Other ablations and analyses

    • Reviewer agreement: binary agreement on 580 duplicate-label pairs was 95.3%; on the 420-pair subset for InternVL2.5-8B-MPO, positive agreement for the REFUSAL class was 16% (the Limitations section separately gives 18.2% for 580 pairs).
    • 31 direct system refusals, of which 27 carry no keyword marker — the keyword layer is neither an exact refusal detector nor a strict upper bound.
    • Runtime cost: on the archived continuous-batching workload, Gaussian-5 takes 5.45–12.76× the time of no adapter, and the full stack 4.36–16.59×; the authors note this is an execution-branch processing-time ratio on the quarantined workload, not request latency.
    • Task accuracy is not reported: the archived MMBench prompt omits options A–D, and the old substring scoring cannot be repaired.
  5. What are some points that can be further explored?

    The authors list limitations such as sparse semantic audit, a single reviewer, and missing archives, and propose directions such as paired semantic re-evaluation and adaptive routing.

    Limitations and future directions noted by the authors

    • The semantic audit is sparse, uses only one Haiku-family reviewer, and cannot verify cell-by-cell differences (Limitations).
    • The local adapters instantiate the intervention families of only three published methods and omit key algorithmic components; the results describe the executed operators rather than the published software packages (Limitations, Section 4).
    • The older text-only branches lack complete original responses and prompt lists; the retained adversarial aggregation was produced by the raw-string runner, and under that format the three Qwen models return deterministic empty outputs on the benign side, the old rule counts empty responses as safe, and the aggregation does not record the number of empty responses, so the retained scores for these models cannot correct for this effect (Limitations).
    • The benign review sees only truncated answers and not the questions; the exact model snapshots are unknown; the positive agreement rate for rare classes is 18.2% on 580 pairs (16.0% on the 420-pair subset); two Rap alias cells are not estimable; the batch runtime corresponds to only one archived payload (Limitations).
    • No results are reported for MM-SafetyBench, JailBreakV-MM, adversarial patches, PGD, or MCQ accuracy, and adaptive routing is not evaluated (Limitations).
    • Future directions: the quarantined visual branch needs to be regenerated on validated inputs, and retained responses need denser independent semantic review; future evaluations need a versioned manifest binding payloads, model versions, prompts, returned text, run errors, proxy labels, and reviewer versions (Conclusion); adaptive defense selection is a possible response but is not evaluated in this paper, and routing research needs non-overlapping calibration/test data, retained candidate outputs, semantic safety and utility labels, request-level latency, and attacks against the router itself (Discussion).

    Scope of the experiments

    • The models tested are 8 open-source MLLMs from two families, InternVL and Qwen-VL; the authors state that other MLLM families, natural multimodal traffic, and closed-source systems may show different profiles (Generalizability).
    • The retained safety evidence covers one visual typographic corpus (FigStep) and three text-only corpora (JailBreakV, SALAD-Bench, HarmBench-Simple), totaling 4,820 inputs/core configurations (Generalizability, Section 5.2).
    • The benign audit covers 38,500 MMBench-derived outputs (77 cells); the canonical grid is 56 of those cells with 28,000 outputs; there are 11,637 review labels, and the estimator uses 9,544 non-direct labels (Section 5.4).
    • The search audit is a non-random sample of 274 labeled adversarial responses; after excluding 28 GARBAGE, 246 are comparable, about 1.94 per cell (Section 5.3).
    • The paper does not report exact model checkpoint versions, the exact Haiku snapshot, or a PyTorch/vLLM version list, and the four safety summaries have no matching per-response archive (Section 5.2, Limitations).
  6. Summarize the main content of the paper

    An audit of the authors' own MLLM defense evaluation archive: the keyword refusal proxy is contaminated by the defenses' own safety wording, and comparisons are therefore invalid.

    An audit paper on evaluations of inference-time defenses for multimodal large models, targeting the experimental archive of the authors' own prior work.

    • Problem: prompt-based defenses write safety wording into responses, and the old keyword scorer's refusal word list happens to contain bare words such as harmful, unsafe, unethical, so defended responses are counted as refusal/safe, distorting comparisons between defenses.
    • Method: formalize the legacy keyword rule and the aggregate score HR dkw; screen seven benchmark branches with a three-level claim-admissibility threshold (input-valid, output-bound, construct-validated); re-estimate refusal rates on the benign grid with an independent Haiku-family reviewer using a dedicated estimator; audit three local adapters Ap, Rp, G5 (simplified from AdaShield-S, RapGuard, SmoothVLM respectively).
    • Evidence screening: of the seven branches, MM-SafetyBench, JailBreakV-MM, and the adversarial patch branch were quarantined for input-provenance failures and contribute no numerical safety results; four aggregate tables are retained: FigStep, JailBreakV, SALAD-Bench, HarmBench-Simple (Table 1).
    • Core numbers: on the normative grid of 28,000 benign outputs, 7,532 carry keyword markers, and the LLM-review estimator attributes about 138.1 refusals, a count ratio of 54.6×; pooled refusal-rate point estimate 0.52%, largest estimable cell 3.24% (InternVL2.5-8B-MPO+Ada).
    • Mechanism attribution: of 7,376 cases that are keyword-positive but judged ANSWER, 6,648 are in the Rap wrapper arm, and 96.2% match the fixed rationale scaffold — the authors state the bias is a property of the intervention under test, not a constant offset across arms.
    • Other results: in Table 4, 27 of 32 model-corpus pairs show A+R raising the keyword score, with no consistent ordering; on the 246-response search audit, the keyword rule's harmful-class precision is 41.7% and recall 69.8%; reviewer binary agreement on duplicate labels is 95.3%, but positive agreement for the rare REFUSAL class is only 16% (420-pair subset).
    • Authors' conclusion: until the evidence thresholds are met, keyword-score comparisons of prompt-based inference-time defenses measure both the defense itself and the interaction between defense and scorer; the authors give no ranking of published defenses and recommend that future evaluations use versioned manifests binding payload, model version, returned text, and reviewer version.
Read originalarxiv.org