The audit found that CLIP safety scores mainly reflect the similarity between the image and the scene described by the prompt.It Is Not Seeing the Hazard: A Frozen Vision-Language Safety Score Measures Its Caption Bank
The paper conducts an open-loop audit of frozen CLIP safety scores, finding that their pre-contact deviation mainly stems from scene templates and viewpoint, and that constant confidence still preserves closed-loop gains.
- Frozen vision-language models are often used as reward or confidence signals in safety reinforcement learning, but policy returns and collision rates cannot distinguish whether the score perceives danger or merely responds to scene features associated with failure.
- An open-loop audit protocol that does not affect policy trajectories is adopted, combined with geometric matching, viewpoint transformation, text-space geometric analysis, and caption rewriting, with constant-confidence and trajectory-replay control groups introduced in closed-loop training.
- Pre-contact deviation is stronger when hazards are farther away, and a contrast-free common-mode direction retains 73% of the effect; in MetaDrive-Hard, fixed confidence reduces the catastrophe rate to 0.176, with no detected difference from the deployment group.
- First-person view effectiveness appears only in FormulaOne, does not generalize to other environments, and no predictive rule could be established; only three scorers were tested, and the closed-loop experiments cover only a single environment and algorithm.
- Evaluated models
- CLIP ViT-B/32CLIP ViT-L/14Qwen2-VL-7B
- Benchmarks
- FormulaOneMetaDrive-HardCarButton1PointGoal1
- Metrics
- 接触前偏离(pre-contact deviation)灾难率(catastrophe rate)违规率(violation rate)余弦相似度(cosine similarity)
Samuel Tetteh and Cody Fleming from Iowa State University conducted a controlled audit of the prompt-marginal safety score of a frozen CLIP ViT-B/32, finding that the score drops about 20 steps before contact, but this signal mainly reflects whether the image and the scene jointly described by the prompt are similar, rather than the danger itself. The study started with three FormulaOne policies without a VLM, 180 episodes, and 130 isolated contacts, decoupled the score from the policy, and matched danger geometry, changed prompts, encoders, and camera viewpoints. Results show a deviation of −1.37 standard deviations when the danger is far, and −0.34 with the interval containing zero when the danger is near; a contrast-free score that only scores along the prompt-common direction retains 73% of the effect; negating the safety prompt still retains the bias, while an irrelevant scene prompt reverses the direction. Among four camera viewpoints, only the first-person viewpoint shows significant bias, and no viewpoint is consistently effective across environments. In closed-loop experiments, fixing the confidence to a constant still reduces the disaster rate, indicating that policy gains cannot prove that the score perceives danger.
Why it was selectedThe audit uses a passive-observer design to decouple CLIP safety scores from policy training, providing a reusable test method for determining whether vision-language model safety signals truly perceive danger.
Related events and news
1 events · 0 news mentions
- This event's paper
审计CLIP危险信号实为场景相似度
Paper analysis
What problem does this paper attempt to solve?
Evaluating whether safety scores provided by frozen vision-language models in reinforcement learning reflect genuine hazard perception or merely measure the scene templates and viewpoints corresponding to the caption library.
The core question is whether safety scores built from frozen vision-language models genuinely possess hazard perception capability.
- Signal dependence in safe reinforcement learning: in safe reinforcement learning and autonomous driving, researchers often convert image-text similarity from frozen vision-language models (VLMs) into costs, reward penalties, or confidence weights to reduce reliance on manually designed feedback.
- Causal confounding in end-to-end metrics: existing methods typically evaluate signal effectiveness via the trained policy's return and collision rate; but the authors note that even if the score only responds to other scene features correlated with collisions, closed-loop policy metrics can still improve, so policy gains cannot show that the model truly detects hazards.
- Competing hypotheses of scene templates and hazard perception: the hazard-detection hypothesis predicts the score deviates most when hazards are near or directly ahead and depends on captions describing collisions; the scene-template hypothesis predicts the score reflects the image's departure from the "racing car on track" default scene shared by the caption library, and correlates with viewpoint and common direction.
- Open-loop audit and control system: the authors propose an open-loop audit that decouples the safety score from the trained policy, directly testing the measurement substance of the safety score through geometric matching, viewpoint changes, caption geometry ablations, and constant-confidence closed-loop comparisons.
What related research exists?
Research covering four major areas: frozen VLM training signals, CLIP representation characteristics and caption libraries, optimization guarantees with imperfect signals, and constrained reinforcement learning evaluation.
The paper reviews existing work in four areas in related work:
Frozen Vision-Language Models as Training Signals
- For rewards and safety constraints: Rocamonde et al. (2024) train a humanoid robot using single-sentence CLIP similarity, Sontakke et al. (2023) and Fan et al. (2022) use video-language models for reward densification; Huang et al. (2025) and Tetteh & Fleming (2026) introduce CLIP similarity into safe reinforcement learning and dual variables. The authors note that these works evaluate the signal via the final policy's return or collision rate, which cannot distinguish genuine perception from incidental correlation.
- Natural-language constraint parsing: Yang et al. (2021) interpret text constraints for constrained reinforcement learning. The authors note that its interpreter is trained on environment costs, whereas the signal studied here is a frozen model not adapted to the observation mapping.
Caption Library Mechanisms and CLIP Encoding Properties
- Concept matching and out-of-distribution detection: Ming et al. (2022) compare images against a concept library in zero-shot out-of-distribution detection, measuring the maximum match between the image and known concepts. The authors note that the actual behavior of the safety score studied here follows this area's pattern.
- CLIP bag-of-words and multi-view limitations: Mert Yuksekgonul et al. (2023) propose that CLIP behaves like a bag-of-words model; Alhamoud et al. (2025) note its insensitivity to negation; Tong et al. (2024) find it maps visually dissimilar images to nearby embeddings; El Banani et al. (2024) reveal its poor multi-view consistency.
Signal Optimization and Perception Error Guarantees
- Proxy metric degradation and control-theoretic guarantees: Gao et al. (2023) characterize performance degradation from optimizing imperfect proxy signals; Dean et al. (2020) provide explicit guarantees for perception errors in control-theoretic robust barrier functions. The authors note that the prompt margin score audited here cannot provide the state estimates or error bounds required for such control-theoretic certificates.
Comparison Baselines and Evaluation Environments
- Experimental baselines and benchmark platforms: the paper evaluates in FormulaOne, MetaDrive, and Safety-Gymnasium (CarButton1, PointGoal1); comparison baselines include constrained RL baselines without VLMs (PPO-Lagrangian, PID-Lagrangian, CPO), no-text-embedding baselines (k-NN, Mahalanobis distance, PCA residual, random network distillation RND), random vector directions, and low-level image statistics (pixel variance, edge density).
Positioning difference: the authors emphasize that this paper separates the evaluation of the proxy score's measurement mechanism before optimization intervention, directly testing what state information the safety score actually carries.
How does the paper address this problem?
A passive-observation open-loop event study protocol is constructed, isolating the scoring metric mechanism through geometric matching, viewpoint control, text geometric deconstruction, and caption rewriting.
The authors propose an interference-free open-loop audit protocol that lets a frozen model act as a passive observer evaluating policy trajectories it has never seen, isolating the scoring mechanism from policy responses.
Scorer Construction and Formal Definitions
- Input preprocessing and precision settings: the simulator renders at 256×256 resolution, and CLIP resizes via bicubic interpolation to 224×224; fp32 precision is used because the paper notes that fp16 truncates similarity to about 17 discrete values.
- Margin score definition: the prompt margin score is defined as m = s+ − s−, the mean cosine similarity between the image embedding and the safe caption group minus the mean cosine similarity to the dangerous caption group.
- Confidence output computation: the deployed confidence transform is κ = |2σ(a(m − c)) − 1|, with scale parameter a = 100 and center threshold c = 0.
Open-Loop Event Study and Geometric Matching Protocol
- Contact onset definition: the starting transition where environment cost goes from 0 to positive after at least 20 steps without contact is defined as the contact onset point.
- Lag-step window analysis: signal trajectories from -40 steps before contact to +10 steps after contact are analyzed, with emphasis on summarizing deviations at -15, -10, and -5 steps before contact; each contact point is compared with non-contact pseudo-points in the same episode and standardized within the episode.
- Nonparametric geometric matching design: geometric grid cells are constructed, matching absolute distance to the nearest hazard, azimuth, forward distance within a ±45° forward cone, and minimum time to collision, to control for the effect of obstacle geometric proximity on the signal.
Caption Semantics and Text-Space Geometric Controls
- Exhaustive permutation test: all 70 balanced half-splits of the 8 captions are exhaustively computed to test the quantile rank of the deployed split in deviation magnitude.
- Common-mode direction and text geometry: an all-caption mean direction score with no positive/negative grouping is defined; within-group, between-group, and centroid cosine similarities of the safe and dangerous caption groups are measured in the text embedding space.
- Three-way text rewrite comparison: negation rewrites (asserting the opposite of safe captions), absurd rewrites (keeping the racing-car subject but making the predicate absurd), and off-topic rewrites (replacing with a completely unrelated topic with no racing or track) are designed to test whether the model responds to propositional truth or scene theme.
Multi-View Rendering and Generative Model Comparison
- Multi-view rendering of fixed physical states: with the simulator's underlying state, action sequence, and contact events held exactly identical, images are generated from first-person, trailing-follow, near-overhead, and far-overhead viewpoints.
- Generative model probability extraction: Qwen2-VL-7B is introduced, using a single-word yes/no question template to extract the log-sum-exp of next-token logits for the final position to compute class probabilities, and the difference between the two groups' mean probabilities is computed.
What experiments did the paper conduct?
Covering open-loop geometric matching, cross-view rendering, caption geometric ablation, and closed-loop confidence comparison, indicating that the signal originates from scene deviation rather than obstacle perception.
Experimental Setup
- Models under test: visual scorers include CLIP ViT-B/32, CLIP ViT-L/14, and Qwen2-VL-7B; policy models include PPO-Lagrangian, PID-Lagrangian, and CPO (10 policies total).
- Datasets and benchmarks: covers FormulaOne (180 episodes, 130 isolated contact points), MetaDrive-Hard (600 episodes, 416 isolated contact points), and Safety-Gymnasium's CarButton1 (506 contact points) and PointGoal1 (156 contact points).
- Comparison baselines: no-VLM baseline, no-text-feature baselines (k-NN, Mahalanobis distance, PCA residual, RND), random embedding directions, low-level image statistics (pixel variance, edge density), constant confidence, and cross-episode confidence replay.
- Evaluation metrics: pre-contact deviation (Δ) standardized by within-episode standard deviation, catastrophe rate, violation rate, cost return, and reward return.
- Review and statistical tests: episode-cluster bootstrap confidence intervals in the open loop, and seed-based two-sided permutation tests in the closed loop.
- Sample sizes and repetitions: in closed-loop experiments, 200 deterministic episodes per seed are evaluated (10 seeds each for the no-VLM and deployed groups, 15 seeds each for the constant and replay groups).
Main Results
Swipe horizontally to read the table
Scorer Caption configuration Safe-group deviation Dangerous-group deviation Margin deviation Resampling exclusion proportion CLIP ViT-B/32 8-caption library -0.527* -0.233 -0.845* 27.5/100% CLIP ViT-L/14 8-caption library +0.141 +0.842* -0.711* 100/100% CLIP ViT-B/32 2 group labels -0.176 +0.394* -0.690* not reported Qwen2-VL-7B 2 group labels -0.410* +0.229 -0.350* 51/86.5% Qwen2-VL-7B 8-caption library -0.592* +0.293* -0.524* 72/99% (Note: per Table 2, * means the 95% confidence interval excludes zero; the last column is the proportion of 200 pseudo-point resamples where the dangerous-group and margin intervals exclude zero)
- Dangerous-group score increase depends on text separation: the authors state that ViT-B/32's dangerous-group score did not increase under the 8 captions; only with the more separated 2 group labels or with ViT-L/14 did the dangerous-group score interval exclude zero.
- Margin decrease present in all configurations: the authors note that the prompt margin score deviates negatively before contact for both contrastive and generative scorers.
- Generative scorer stability differences: the authors report that Qwen2-VL-7B's resampling proportions with dangerous-group intervals excluding zero are 51% and 72% under the two caption configurations, lower than ViT-L/14's 100%.
Geometric Stratification and Nonparametric Matching Analysis
- Test content: on 3 policies with recorded geometric information, stratified tests are run by nearest-hazard distance tercile and by whether an obstacle is present in the ±45° forward cone.
- Experimental results: with the nearest hazard in the farthest tercile (d > 0.93), deviation is -1.369 [-1.785, -0.958]; with the nearest tercile (d < 0.62), it is only -0.342 [-1.065, +0.334] and includes 0 (Table 6); with no hazard ahead, deviation is -1.797 [-2.402, -1.204], and with a hazard ahead it is -0.786 [-1.238, -0.341] (Table 6); under 5 geometric matchings, deviation ranges from -0.131 to -0.153 (Table 4).
- Author interpretation: the authors note that deviation magnitude is stronger when obstacles are farther and nothing is ahead, exactly opposite to the hazard-detection hypothesis, indicating the signal stems from scene deviation rather than obstacle proximity.
Cross-Environment Multi-View and Causal Presentation Tests
- Test content: the same physical trajectories are rendered from 4 viewpoints in FormulaOne, CarButton1, and PointGoal1, and in PointGoal1 the hazard half-height is raised from 0.01 to 0.30 for a causal presentation test.
- Experimental results: in FormulaOne only the first-person view shows deviation (-0.447); in CarButton1 3 of 4 views show deviation; in PointGoal1 only the overhead view shows deviation (near-overhead -0.580, first-person -0.001) (Table 1); after raising hazard height, the change in first-person advantage over overhead is only -0.084 [-0.387, +0.228] (Section 5.3).
- Author interpretation: the authors state that no single viewpoint is consistently informative across environments, and causally increasing hazard visibility did not change the viewpoint advantage, indicating the useful signal is highly dependent on the observation mapping.
Closed-Loop Policy Performance and Constant-Confidence Comparison
- Test content: in MetaDrive-Hard, policies are trained with PPO-Lagrangian, comparing the no-VLM baseline, the real-time CLIP deployment group, the fixed-confidence group (κ = 0.850), and the cross-episode confidence replay group (yoked).
- Experimental results: the fixed-confidence group's catastrophe rate is 0.176, a reduction of 0.106 from the no-VLM baseline's 0.281 (p = 0.036); the deployment group's catastrophe rate is 0.192, and the difference between the fixed and deployment groups is only 0.016 with no detected difference (p = 0.71) (Table 7).
- Author interpretation: the authors note that the fixed-confidence group's reduction is below the minimum detectable effect (0.133); safety gains can appear without frame-by-frame visual confidence, so improved policy metrics cannot serve as evidence that the scorer perceives danger.
Other Ablations and Analyses
- Caption common-mode direction: scoring with only the mean direction of the 8 captions retains 73% of the deployed margin deviation (Table 5).
- Exhaustive caption splits: among all 70 balanced splits, the deployed split ranks 3rd (p = 0.043), with a mean split deviation of -0.113 (Table 5).
- Negated and off-topic captions: negated safe captions give deviation -0.507, absurd captions -0.363, and off-topic captions reverse to +0.441 (Table 10).
- No-text-embedding baselines: k-NN deviation is +0.227, Mahalanobis distance +0.029, PCA residual -0.066, and RND error +0.027 (Appendix E.6).
- Image statistics: mean pixel variance deviation is -0.532, mean edge density deviation is -0.668, with no detected statistical difference from the margin score (Appendix E.6).
- MetaDrive motion-trajectory removal: after removing the 60-step historical motion trajectory, the deviation change is +0.082 [-0.029, +0.193] (Section 5.3).
Negative Results and Exceptions
- In the two policies trained with the CPO algorithm (27 episodes), no statistical deviation is detected in first-person pre-contact deviation, with confidence intervals crossing zero (Section 5.2).
- In MetaDrive's top-down rendering, no pre-contact deviation is detected at any of the 51 lag steps tested (Section 5.3).
- In ViT-L/14's near-overhead view, κ shows a sign reversal with the interval excluding zero, while the margin score interval includes zero (Section 5.2).
What are some points that can be further explored?
The authors point out limitations such as the lack of universality of single-view findings, the limited number of scoring models, and the narrow closed-loop coverage, with future work extending to multi-model and multi-environment validation.
Limitations and Future Directions Noted by the Authors
- First-person view effectiveness is specific to a single environment: the authors note that first-person deviation appears only in FormulaOne and does not replicate in the other two environments, and the paper does not provide a theoretical model predicting which rendering is informative (Section 7 and Appendix G).
- Few scoring models tested: the authors note that only two contrastive models and one generative model (Qwen2-VL-7B) were compared, insufficient to broadly characterize the general properties of the generative VLM family (Section 7 and Appendix G).
- ViT-L/14 near-overhead reversal unexplained: the authors note that the sign reversal in the larger ViT-L/14 encoder in the near-overhead view still lacks a mechanistic explanation (Section 7 and Appendix G).
- Caption rewrites and stratification based on a single view and single sampling: the authors note that caption rewriting and split tests were conducted only in ViT-B/32's first-person view, and the reference-point baseline was sampled only once per episode (Appendix G).
- Camera changes constrained to a single rendering engine: the authors note that the four-camera tests were all conducted in three MuJoCo tasks, confounding viewpoint changes with rendering style and hazard appearance (Appendix G).
- Closed-loop validation coverage is narrow: the authors note that closed-loop experiments cover only a single environment (MetaDrive-Hard), a single RL algorithm (PPO-Lagrangian), and a single pseudo-control family (Section 7 and Appendix G).
Experimental Coverage
- Scorers and policy models under test: visual scorers include CLIP ViT-B/32, CLIP ViT-L/14, and Qwen2-VL-7B, 3 in total; reinforcement learning algorithms tested include PPO-Lagrangian, PID-Lagrangian, and CPO, 3 types.
- Evaluation task environments covered: experiments cover FormulaOne, MetaDrive-Hard, and Safety-Gymnasium's CarButton1 and PointGoal1, 4 task environments in total.
- Camera viewpoint settings: FormulaOne, CarButton1, and PointGoal1 all undergo comparison rendering in 4 viewpoints: first-person, trailing, near-overhead, and far-overhead; MetaDrive only tests the default top-down rendering.
- Closed-loop comparison scale: closed-loop experiments include 4 arms (10 or 15 seeds), with each seed evaluated on 200 deterministic episodes.
- Information not reported in the paper: the paper does not test ViT-L/14 with the two-label combination, does not report the 200-resampling results for ViT-B/32's two-label row, and does not perform formal statistical tests on numerical differences between geometric stratification groups.
Summarize the main content of the paper
The paper audits frozen VLM safety scoring mechanisms, pointing out that they reflect scene templates rather than danger perception, providing a rigorous benchmark for safety reinforcement learning evaluation.
This paper is an empirical audit study of frozen vision-language model (VLM) safety scoring mechanisms in safety reinforcement learning.
- Core research question: Existing safety reinforcement learning often uses image-text similarity computed by frozen CLIP as a cost or confidence signal, and uses a decrease in policy collision rate as evidence of effectiveness; this paper investigates whether this safety score actually perceives specific dangers or merely responds to scene features associated with failure.
- Open-loop audit and multidimensional control design: The authors design a passive-observation open-loop protocol decoupled from the policy, combined with nonparametric geometric matching, four-camera multi-view rendering, full caption permutation and rewriting, text-embedding space geometric measurement, and set up fixed-confidence and trajectory-replay control groups in closed-loop training.
- Geometric inversion and common-mode direction dominance: In FormulaOne, the pre-contact deviation reaches -1.369 when the nearest dangerous object is in the farthest tertile, but is only -0.342 with an interval containing 0 when it is in the nearest tertile (Table 6); a contrast-free score relying only on the direction common to 8 captions retains 73% of the deployment marginal deviation (Table 5), and negated safe captions also exhibit a negative deviation of -0.507 (Table 10).
- Text separation determines the trend of the dangerous group: In the ViT-B/32 encoder, because the average cosine similarity between safe and dangerous caption groups reaches 0.883 (Table 9), the scores of both groups decline together before contact; after switching to 2 group labels with higher separation or ViT-L/14, the score interval of the dangerous group excludes zero (Table 2).
- Closed-loop gains are detached from frame-by-frame visual perception: In the MetaDrive-Hard closed-loop experiment, fixing the confidence to a constant 0.850 reduces the disaster rate to 0.176, with no detectable difference from the deployed real-time score of 0.192 (p = 0.71, Table 7).
- Author conclusions and implications: The authors point out that the safety score reflects the degree to which the image deviates from the "track racing" scene template described in the caption library rather than perception of specific dangerous objects; policy improvement does not imply dangerous-object perception capability, and future VLM safety signals must be rigorously validated as measurement tools rather than semantic ground truth.