Depth-Varying Safety Geometry in Vision-Language Models: Layer-by-Layer Localization and Bidirectional Refusal ControlDepth-Dependent Safety Geometry in Vision-Language Models: Layer-Wise Localization and Bidirectional Refusal Control
The authors propose an inference-time framework to locate and intervene on safety representations of a frozen VLM: in Qwen3-VL-4B, early visual layers can control refusal bidirectionally (URR 6%–96%), and InternVL2.5-4B shows similar geometry.
- How VLM safety behavior is represented internally and which components causally affect refusal remain unclear; representational separability does not equal causal controllability, and inference-time perturbations may bypass refusal.
- Layer-by-layer activation divergence analysis on a frozen VLM is used to locate safety-sensitive regions, then forward hooks are used to perform activation magnitude scaling and Concept Activation Steering along the mean-difference direction, comparing causal effects at different depths.
- In Qwen3-VL-4B, global steering of early visual layers (7–10) can lower URR from the 84% baseline to 6% or raise it to 96%; later layers (18–22) are more sensitive to scaling but with a rise in SRR; InternVL2.5-4B shows qualitatively similar depth geometry.
- The authors note: causal intervention was performed only on Qwen3-VL-4B, while InternVL2.5-4B received only representation-level validation; refusal bypass requires direct access to internal activations, and an input-level implementation is an open problem; MMLU was tested on only 100 samples.
- Threat model
- The VLM is frozen and its parameters cannot be modified at inference time; the attacker induces internal representation shifts through multimodal input (adversarial images or prompts) to weaken or bypass refusal. The authors use forward hooks to directly perturb intermediate activations as a white-box analysis tool, simulating a worst-case internal shift; this does not prove that the same shift can be achieved by external input.
- Evaluated models
- Qwen3-VL-4BInternVL2.5-4B
- Benchmarks
- UnsafeBenchGoogle Conceptual Captions (GCC)MMLU
- Metrics
- URR (Unsafe Rejection Rate)SRR (Safe Rejection Rate)Mean Angular DifferenceMMLU accuracy
The researchers propose a lightweight inference-time framework that can localize and manipulate safety-sensitive representations in frozen vision-language models without retraining or changing parameters. On Qwen3-VL-4B, layer-by-layer activation divergence analysis shows that safety geometry is non-uniformly distributed with depth; causal interventions show that activation steering along a learned safety direction in early visual layers can achieve strong bidirectional refusal control, with the unsafe refusal rate adjustable between 6%–96%, while later layers respond more to activation magnitude scaling and exhibit a clear safety-selectivity trade-off; deeper layers separate well along the safety direction yet are largely insensitive to steering, indicating that representational separability does not equal causal controllability. InternVL2.5-4B exhibits qualitatively similar depth-dependent activation geometry. The authors state that the results expose a white-box, representation-level refusal-bypass attack surface in VLM vision encoders, and advocate inference-time stabilization of safety-sensitive representations.
Paper analysis
What problem does this paper attempt to solve?
How VLM safety representations are distributed across depth and whether they can be causally controlled is not yet clear; the authors propose an inference-time localization and intervention framework.
Core question: where safety-relevant information in VLMs is represented, which internal components causally control refusal, and how these mechanisms fail under inference-time perturbation are currently unclear.
- Setting and importance: VLMs are increasingly used for visual question answering, image captioning, and interactive agents; the authors consider understanding their safety mechanisms critical for assessing robustness and trustworthiness.
- Existing gaps: prior work has found layer-wise differences in safety behavior, but the authors point out that it remains unclear whether safety-sensitive representations in frozen VLMs are controlled by activation magnitude, specific geometric directions, or different mechanisms at different depths; moreover, representational separability itself does not imply causal control.
- Core observation: the authors hypothesize that safety alignment is non-uniformly distributed across network depth, and that safety-relevant structure may already emerge in the visual representation pipeline rather than being determined solely by downstream language semantics.
- Proposed in the paper: a lightweight inference-time framework that combines layer-wise activation divergence analysis with representation-level interventions (activation scaling, Concept Activation Steering) to locate and probe safety-sensitive regions of frozen VLMs without modifying parameters.
- Threat model (Section 2):
- Goal: the attacker induces shifts in internal representations via multimodal inputs (adversarial images or prompts), weakening or bypassing refusal behavior while keeping outputs coherent.
- Knowledge: white-box—the experiments use forward hooks to directly perturb intermediate activations.
- Capability: direct read/write of internal activations; the authors explicitly state this is an analysis tool rather than an input-level attack, simulating worst-case internal shifts.
- Victim system: a VLM with frozen parameters that cannot be modified at inference time; the authors do not prove that the same shifts can be achieved solely by external inputs.
What related research exists?
Related work falls into three groups: safety localization, representation engineering and activation steering, and VLM safety defenses; the authors use causal diagnosis as the distinguishing point.
Safety localization and internal mechanisms
- Li et al. [2025] identified in LLMs contiguous "safety layers" that have a greater effect on malicious/benign behavior; Qi et al. [2025] found that safety alignment may be shallow in the output distribution; Pan et al. [2025] identified multiple orthogonal safety directions associated with properties such as refusal.
- Bachu et al. [2025] found that harmful information is unevenly distributed across layers of the VLM image encoder and proposed the ICET vulnerability (bypassing selected layers increases harmful generation) and a Layer-Wise PPO defense. The authors note that these works establish that safety varies with depth, but do not determine whether safety regions exert control through magnitude, geometric direction, or different mechanisms.
Representation engineering and activation steering
- Kim et al. [2018]'s Concept Activation Vectors established that interpretable concepts can correspond to directions in activation space; Zou et al. [2023] formalized representation engineering as a monitoring and control framework; Li et al. [2023] proposed Inference-Time Intervention; Turner et al. [2023]'s Activation Addition uses contrastive steering vectors to modify behavior.
- Arditi et al. [2024] found that LLM refusal is mediated by a low-dimensional direction; removing that direction suppresses refusal, and adding it can induce refusal on benign inputs. The authors state that this paper extends this perspective to the VLM visual encoder and studies how direction controllability varies with depth.
VLM safety and inference-time defenses
- Weng et al. [2025]'s Adversary-Aware DPO incorporates adversarial perturbations into preference optimization (at training time); VLM-Guard Liu et al. [2025] uses safety directions derived from the underlying language model at inference time; ASTRA Wang et al. [2025] constructs steering vectors from adversarial visual features and adaptively steers activations away from harmful directions.
Positioning and differences: The authors state that this paper's difference lies in using activation steering simultaneously as a causal diagnostic tool—locating safety-sensitive regions across depths, comparing directional steering with magnitude scaling, and distinguishing representational separability from causal controllability. The paper sets no comparison baseline methods; evaluation uses three datasets: UnsafeBench, GCC, and MMLU.
How does the paper address this problem?
Three-stage framework: locate candidate regions via layer-wise activation divergence, then perform two types of causal intervention—activation scaling and directional steering.
Overall approach: first use representational angular differences between safe/unsafe inputs to locate candidate safety-sensitive layers, then use forward hooks to perform two types of intervention (magnitude scaling, directional steering) to test causal influence, without modifying model parameters throughout.
Activation divergence analysis (Section 4.1)
- Data: collect 100 safe samples and 100 unsafe samples, and take pooled hidden representations for each layer.
- Pairing: construct three types of pairs at each layer—Safe–Safe, Unsafe–Unsafe, Safe–Unsafe—randomly sample and repeat r times, and take the average.
- Metric: use angular distance to measure the degree of separation, dSU−SSℓ = E[θℓ(S,U)] − E[θℓ(S,S)] (similarly for SU–UU), i.e., the surplus of cross-condition angular separation over within-condition separation.
- Criterion: layers where S–U separation is consistently greater than both types of within-condition separation are regarded as candidate safety-sensitive regions; the same procedure is applied to Qwen3-VL-4B and InternVL2.5-4B.
Activation scaling (Section 4.2)
- Method: use forward hooks to multiply the output of selected layers by a coefficient, hscaled = α h, α ∈ {0.85, 0.9, 1.0, 1.15, 1.2}.
- Scope: uniformly scale all visual tokens in that layer region, and use URR and SRR to measure changes in refusal.
Directional activation steering (Section 4.3)
- Direction construction: layer-specific mean-difference direction E1,ℓ = μunsafeℓ − μsafeℓ; after normalization, project token representations onto this direction and add them back, with strength α ∈ {0, 0.5, 1, 2, 4, −2, −4}.
- Two scopes: focused steering acts only on the CLS token and the first 10 patch tokens; global steering acts on all visual tokens, and is used to test whether behavioral control is concentrated in a few representations or distributed across the entire visual sequence.
Evaluation method
- Metrics: URR (refusal rate on unsafe inputs) and SRR (refusal rate on safe inputs); MMLU accuracy measures general capability.
- Data: UnsafeBench provides harmful samples and "hard" safe samples, GCC provides "clean" safe samples, and MMLU tests general reasoning.
- The paper does not state how refusal is determined (rules or model judging), nor does it report the specific value of r.
What experiments did the paper conduct?
Divergence analysis and two types of intervention were performed on Qwen3-VL-4B, while InternVL2.5-4B received only divergence validation; early layers can control refusal bidirectionally.
Experimental setup
- Models tested: Qwen3-VL-4B (divergence analysis + causal intervention); InternVL2.5-4B (divergence analysis only, cross-model validation).
- Datasets: UnsafeBench (harmful + "hard" safety samples), GCC ("clean" safety samples), MMLU (100 samples to measure general capability).
- Metrics: URR, SRR (percentages); Mean Angular Difference (degrees); MMLU accuracy.
- Intervention regions: Qwen3-VL-4B visual layers 7–10 and 18–22 (regions selected by divergence analysis), language tower; steering split into focused (CLS + first 10 patch tokens) and global (all visual tokens).
- Parameters: scaling α ∈ {0.85, 0.9, 1.0, 1.15, 1.2}; steering α ∈ {0, 0.5, 1, 2, 4, −2, −4}.
- The paper does not report the sample size per rate, the number of repetitions, or how refusal was determined.
Main results
Activation scaling (UnsafeBench, Qwen3-VL-4B, per Table 1; URR/SRR in %):
Swipe horizontally to read the table
α Visual 7–10 URR Visual 7–10 SRR Visual 18–22 URR Visual 18–22 SRR Language URR Language SRR 0.85 100 99 79 43 37 8 0.90 95 89 94 72 80 49 1.00 72 26 72 26 72 26 1.15 72 23 96 91 97 77 1.20 72 24 88 89 98 98 Directional steering (Qwen3-VL-4B, per Table 3; URR/SRR in %):
Swipe horizontally to read the table
α 7–10 focused 7–10 global 18–20 focused 18–20 global 0 (baseline) 84/32 84/32 84/32 84/32 1.0 84/28 94/60 82/30 82/32 4.0 82/30 6/8 82/30 80/66 −4.0 82/30 96/88 82/26 84/20 - The authors state that early visual layers (7–10) can control refusal bidirectionally under global steering: α=4.0 lowers URR from 84% to 6%, and α=−4.0 raises it to 96%; focused steering changes little, and the authors conclude from this that the causal effect is distributed across visual tokens rather than concentrated in the CLS.
- Later layers (18–20) are insensitive to directional steering, with URR remaining near baseline; but they are more sensitive to magnitude scaling (URR 96% at α=1.15), while SRR rises to 91%, which the authors call a safety–selectivity trade-off.
- On GCC (Table 2): visual 7–10 has SRR of 100% at α=0.85/0.90, which the authors describe as near-total refusal rather than a selective improvement; at α=1.0, SRR is 0 in all three regions.
Divergence analysis and cross-model validation
- Qwen3-VL-4B (Figure 1): in the language tower, SU–SS and SU–UU divergence is strongest early and decreases with depth, with SU–UU larger in most layers; the visual encoder has heterogeneous regions near 7–10 and 18–22. Figure 3 shows that at layer 20 the CLS activations along safety direction E1 have clearly separated safe/unsafe distributions with limited overlap.
- InternVL2.5-4B (Figure 2): the language tower likewise has strong early divergence that decreases with depth; visual SU–SS is stronger early and in the middle and weakens later, and SU–UU transitions from negative to positive values. The authors state that this constitutes cross-model representation-level evidence, but the specific layer locations and magnitudes differ, and it does not imply causal equivalence.
General capability
- On 100 MMLU samples, the scaling interventions tested showed no change relative to the 44% baseline accuracy; the authors also note that SRR rises in several settings, indicating that unchanged MMLU does not mean safety selectivity is preserved.
Other ablations and analyses
- Intervention scope comparison (Table 3): focused and global steering differ greatly; at layers 7–10, focused URR is 82–84% across α, while global is 6–96%.
- Scaling asymmetry (Table 1): at layers 7–10, amplifying α (1.15/1.2) keeps URR at 72%, while suppressing (0.85) raises it to 100%.
- Language tower scaling (Table 1): as α goes from 0.85 to 1.20, URR rises from 37% to 98%.
- Exception: layers 18–20 are geometrically separable in Figure 3, but directional steering has almost no behavioral effect, which the authors say shows that separability does not imply controllability.
What are some points that can be further explored?
The authors list limitations including that causal intervention is restricted to a single model and that input-level attacks were not implemented; the experiments cover two 4B models and three datasets.
Limitations and future directions noted by the authors
- Causal intervention is performed only on Qwen3-VL-4B; InternVL2.5-4B provides only qualitative representational validation; the authors plan to test equivalent interventions across architectures and quantify cross-model consistency (Section 6, Limitations and Future Work).
- The refusal-bypass experiments require direct access to internal activations; input-level (adversarial image/prompt) implementation remains an open problem (Section 6; Section 2 also states that end-to-end input-level attacks are out of scope).
- The authors believe broader evaluation on held-out splits, more safety categories, and higher-dimensional safety subspaces is needed to assess direction stability and develop inference-time defenses (Section 6).
- The 100-sample MMLU evaluation detected no change, but the authors state that this limited result cannot prove that general capability is preserved (Section 6).
- Cross-model results establish only representational consistency rather than causal equivalence, and no universal absolute "safety layer" exists (Section 6, Cross-Model Safety Geometry).
Experimental coverage
- The models tested are Qwen3-VL-4B and InternVL2.5-4B, 2 in total; causal intervention covers only the former (Section 5).
- The datasets are UnsafeBench, GCC, and MMLU, 3 in total; the divergence analysis uses 100 safe + 100 unsafe samples, and MMLU uses 100 samples (Sections 4.1, 5.2).
- The intervention regions are visual layers 7–10, 18–22 (18–20 for steering) and the language tower, selected by the divergence analysis (Section 5.1).
- The paper does not report the sample sizes for URR/SRR, the refusal determination method (rules or judge model), the number of repetitions r for divergence estimation, nor statistical significance tests.
- The paper does not conduct input-level attack experiments, nor does it evaluate any defenses.
Summarize the main content of the paper
An inference-time framework locates VLM safety representations: early visual layers can bidirectionally control refusal, deeper layers are sensitive to magnitude, and geometry is qualitatively similar across models.
An analysis paper on VLM safety mechanisms that proposes a lightweight inference-time framework to locate and intervene on safety-sensitive representations of a frozen VLM without modifying parameters.
- Problem: it is unclear where safety information is represented inside a VLM and which components causally control refusal; representational separability does not equal causal controllability.
- Method: first, layer-by-layer angular-distance divergence analysis on 100 safe + 100 unsafe samples is used to locate candidate regions; then forward hooks are used to perform activation scaling (α 0.85–1.2) and Concept Activation Steering along the mean-difference direction (α −4 to 4), in two scopes, focused and global.
- Main results (Qwen3-VL-4B): under global steering, visual layers 7–10 lower URR from the 84% baseline to 6% (α=4.0) or raise it to 96% (α=−4.0), i.e., refusal can be controlled bidirectionally (Table 3).
- Deeper layers and scaling: visual layers 18–22 are insensitive to directional steering, but at scaling α=1.15 URR reaches 96% while SRR rises to 91% (Table 1), which the authors call a safety–selectivity trade-off; layer 20 representations remain clearly separable along direction E1 (Figure 3).
- Cross-model: InternVL2.5-4B shows qualitatively similar depth-dependent geometry, but the layer locations and magnitudes differ, and there is only representation-level evidence (Figure 2).
- Authors' conclusion: the results distinguish representational separability from causal controllability and expose a white-box representation-level attack surface; the authors emphasize that intervention requires access to internal activations, and leave an input-level implementation to future work.