potentialpaper

Understanding and Defending VLM Jailbreaks via Jailbreak-Related Representation Shift

Zhihua Wei, Qiang Li, Jian Ruan, Zhenxin Qin, Leilei Wen, Ruiyang Qin, Qingzhuo Wang, Dongrui Liu, Wen Shen

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Large vision-language models (VLMs) often exhibit degraded safety alignment when visual inputs are integrated. Even when a text prompt is explicitly harmful, adding an image can substantially increase the jailbreak success rate. In this paper, we observe that VLMs can clearly distinguish benign, refusal, and jailbreak samples in their representation space, and that jailbreak responses often contain safety warnings. These observations lead to the \textit{recognize-but-fail-to-refuse} hypothesis: VLM jailbreaks do not arise from a failure to recognize harmful intent, but instead occur because adding an image induces a representation shift that steers the sample into a distinct jailbreak state where refusal is not triggered. To quantify how this image-induced representation shift contributes to jailbreak behavior, we define a jailbreak direction and characterize the jailbreak-related representation shift as the projection of the total image-induced shift onto this direction. Our analysis shows that the jailbreak-related shift reliably characterizes jailbreak behavior, providing a unified explanation for diverse jailbreak scenarios. Finally, we propose JRS-Rem, a defense method that enhances VLM safety by removing the jailbreak-related shift at inference time. Experiments show that JRS-Rem significantly improves VLM safety across multiple scenarios while preserving utility on benign tasks. Code is available at https://github.com/LeeQueue513/JRS-Rem.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
28 Apr 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

Needs clarification. The results are promising, but the reviewers need clearer evidence that the learned direction captures a general jailbreak mechanism. Please focus on three questions. First, were the HADES samples used to estimate the direction excluded from evaluation, and how well does a direction learned from one dataset or harm category transfer to others? Second, can you show more directly that adding this direction makes jailbreaks more likely and removing it makes them less likely, with the content held fixed? Third, what is new here compared with earlier hidden-state detection and steering methods, and were the steering baselines constructed using comparable data and access assumptions?

Final justification

I read the author response and the discussion. The authors have addressed the main concerns from the initial meta-review. They confirm that the samples used to estimate the direction were excluded from evaluation and add transfer experiments across datasets, harm categories, and attacks, along with bidirectional interventions, random-direction controls, newer models, utility benchmarks, human validation, and an adaptive attack. The reviewers who engaged in the discussion generally found their main concerns resolved, although the final scores still ranged from borderline reject to accept. The method still assumes white-box access, the adaptive evaluation is limited, and there is no direct test of over-refusal on safety-adjacent prompts. I see these as limitations rather than problems with the central result. My recommendation is therefore 5: Accept (confidence 4/5). I also checked the relevant literature and found no issue that changes this decision. I did not use any private correspondence or auxiliary review.

Area Chair t9M1 · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

Needs clarification. The results are promising, but the reviewers need clearer evidence that the learned direction captures a general jailbreak mechanism. Please focus on three questions. First, were the HADES samples used to estimate the direction excluded from evaluation, and how well does a direction learned from one dataset or harm category transfer to others? Second, can you show more directly that adding this direction makes jailbreaks more likely and removing it makes them less likely, with the content held fixed? Third, what is new here compared with earlier hidden-state detection and steering methods, and were the steering baselines constructed using comparable data and access assumptions?

Final justification

I read the author response and the discussion. The authors have addressed the main concerns from the initial meta-review. They confirm that the samples used to estimate the direction were excluded from evaluation and add transfer experiments across datasets, harm categories, and attacks, along with bidirectional interventions, random-direction controls, newer models, utility benchmarks, human validation, and an adaptive attack. The reviewers who engaged in the discussion generally found their main concerns resolved, although the final scores still ranged from borderline reject to accept. The method still assumes white-box access, the adaptive evaluation is limited, and there is no direct test of over-refusal on safety-adjacent prompts. I see these as limitations rather than problems with the central result. My recommendation is therefore 5: Accept (confidence 4/5). I also checked the relevant literature and found no issue that changes this decision. I did not use any private correspondence or auxiliary review.

1 comment
Authors · CommentOpenReview ↗

Thank you for the careful and constructive meta-review. The three questions you identified are important for clarifying and strengthening our paper. We carefully addressed each concern during the reviewer discussions and briefly summarize the main evidence below.


Q1-1: Potential data leakage. We confirm that all samples used to estimate the jailbreak direction were excluded from evaluation. We provided the sample exclusion protocol and evaluation-set statistics in our response to Reviewer p5Zt (Part 2), W2, and will document them clearly in the revised paper.


Q1-2: Evidence that the learned direction captures a general jailbreak mechanism. Tables 1 and 2 and Figure 6 of the main paper provide initial evidence across datasets and attacks. We added more direct transfer experiments in the rebuttal:

  • Across datasets: Jailbreak directions learned from HADES, MM-SafetyBench, and RedTeam2K all provided effective defense on all three datasets, and their ASRs differed by at most 1.7 percentage points. Please see our response to Reviewer DpYE (Part 3), Table D3.
  • Across harm categories: Category-specific directions had cosine similarities of 0.894 to 0.945 with the original direction and substantially reduced ASR on four unseen categories. Please see our response to Reviewer DpYE (Part 2), Table D2.
  • Across attack distributions: Attack-specific directions had cosine similarities of 0.785 to 0.926 with the original direction and transferred across attacks, with ASR differences of at most 4.2 percentage points. Please see our response to Reviewer DpYE (Part 1), Table D1.

Together, these results provide evidence that the learned jailbreak direction captures a shared refusal-to-jailbreak transition across the tested datasets, harm categories, and attack distributions rather than reflecting HADES-specific artifacts.


Q2: Content-controlled interventions. We performed bidirectional interventions while keeping the image, text, and model parameters fixed. Experiments clearly show that adding the identified direction increased jailbreak likelihood, while removing it reduced jailbreak likelihood. In contrast, norm-matched random-direction interventions had almost no effect. We also provided a case study in which the same input changed from jailbreak response to complete refusal as the removal strength increased. These results provide direct intervention evidence that the identified direction influences refusal and jailbreak behavior. Please see our response to Reviewer p5Zt (Part 4), W5.


Q3-1: Novelty relative to prior hidden-state detection and steering methods. We clarified that the central distinction from prior hidden-state work is input-level separation versus behavior-level separation. Prior methods primarily distinguish benign from harmful inputs and typically treat harmful-refusal and harmful-jailbreak samples as a single harmful class. In contrast, we separate harmful samples by model behavior and identify distinct refusal and jailbreak states within the harmful class. To our knowledge, this intra-harmful behavior-level separability has not been explicitly analyzed in prior VLM studies. We also provided a structured comparison with related work in the rebuttal to clarify this distinction.

Our contribution does not lie in the generic steering operation itself, but in how the jailbreak direction is constructed. We construct the jailbreak direction from the refusal-to-jailbreak contrast within harmful inputs. This construction reflects a distinct underlying hypothesis about the representational source of jailbreak behavior, rather than merely a different implementation of representation steering. Moreover, our jailbreak direction is not used only for defense. It also provides a representation-level explanation for multiple jailbreak scenarios. Please see our response to Reviewer X2A1 (Part 1), W1 and W2.


Q3-2: Comparable construction data and access assumptions. We clarified the construction data and access assumptions for all baselines. CMRM, ShiftDC, and JRS-Rem have matched white-box access assumptions, while their construction data follow the original protocols because they require different signals. AdaShield and ECSO are black-box methods and are included as cross-setting references. We will clarify these distinctions in the revised paper. Please see our response to Reviewer X2A1 (Part 3), Q1 and Reviewer p5Zt (Part 2), W3.


Together, these additions directly address the concerns summarized in the meta-review. We will incorporate the new experiments, clarified claims, and complete methodological details into the revised paper.

Reviewer DpYEOpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies VLM jailbreaks through internal representations and proposes the recognize-but-fail-to-refuse hypothesis: visual inputs shift harmful queries into a distinct jailbreak state where refusal is not triggered. Based on this, the authors define a jailbreak direction from refusal to jailbreak samples and propose JRS-Rem, an inference-time defense that removes the corresponding jailbreak-related representation shift. Experiments across multiple VLMs, jailbreak settings, and utility benchmarks show good safety improvements with limited utility degradation.

Strengths and weaknesses

Strengths

  • Important and practical problem. This paper studies inference-time defense against multimodal jailbreak attacks, which is an important and timely problem for the safe deployment of LVLMs. Compared with training-time alignment methods, the proposed representation-level intervention is practically attractive because it does not require updating model parameters and can be directly applied during inference.

  • Interesting representation-space perspective. The paper analyzes VLM jailbreak behavior from the perspective of internal representations. In particular, the proposed recognize-but-fail-to-refuse hypothesis provides an intuitive explanation for why VLMs may still recognize harmful intent but fail to trigger refusal after visual inputs are introduced.

  • Broad empirical evaluation. The paper evaluates the proposed method across multiple LVLMs, explicitly harmful, implicitly harmful, and adversarial jailbreak scenarios, as well as benign utility benchmarks. This broad experimental scope provides useful evidence for both defense effectiveness and utility preservation.

Weaknesses

  • Potential dependence on attack-specific jailbreak distributions. The jailbreak samples used to estimate the proposed direction may not represent a natural or universal jailbreak state, because many VLM jailbreak benchmarks and attacks introduce specific distributional artifacts. For example, HADES, MM-SafetyBench, and RedTeam2K pair harmful prompts with SD, TYPO, or SD+TYPO images, while MML applies transformations such as rotation, mirroring, and base64 encoding [1]. HADES-Gradient further optimizes images with model gradients [2], and SI-Attack uses shuffled text-image instructions selected by query-based black-box optimization [3]. These attack-generation processes may induce representations that share attack-specific features rather than only the general refusal-to-jailbreak transition. A cross-attack generalization evaluation would help determine whether the learned jailbreak direction captures a generalizable mechanism, rather than reflecting distributional artifacts introduced by the specific attacks used to generate the jailbreak samples.

  • Potential category-specific jailbreak directions. The paper aims to identify a unified jailbreak direction that explains and mitigates diverse VLM jailbreak behaviors. However, different unsafe concepts may involve different internal safety mechanisms. For example, violence, self-harm, privacy invasion, financial fraud, and sexual/nudity-related content may not share exactly the same refusal-to-jailbreak transition in representation space. Since the evaluated datasets contain multiple harmful classes and safety policy categories, it would be useful to analyze whether the jailbreak direction is consistent across unsafe concepts, not only across datasets and image types.

  • Potential leakage or dataset-specific fitting. The jailbreak direction is estimated using 50 jailbreak and 50 refusal samples from HADES, while HADES is also used for evaluation. The paper should clearly state whether these samples are excluded from the evaluation set. A leave-one-dataset-out experiment would better support the claim that the learned direction captures a general jailbreak mechanism rather than HADES-specific artifacts.

  • Lack of adaptive attack evaluation. Although JRS-Rem is evaluated against several existing attack settings, the paper does not sufficiently test attackers who know the defense. Since JRS-Rem removes a fixed projection direction under a threshold rule, an adaptive attacker could potentially optimize inputs to avoid this direction while still causing jailbreak behavior. Evaluating projection-constrained or defense-aware attacks would make the robustness claim more convincing.

  • Limited evaluation on recent LVLMs. The evaluation is conducted on LLaVA-1.5-7B, ShareGPT4V-7B, and InternVL-Chat-19B, which are useful open-source baselines but are not very recent, especially considering the pace of LVLM development. Since newer LVLMs may use different vision encoders, alignment data, safety tuning strategies, and refusal mechanisms, it remains unclear whether the proposed jailbreak direction and JRS-Rem defense generalize to more recent and stronger LVLMs. Additional experiments on newer model families would strengthen the paper’s empirical relevance.

[1] Wang, Yu, et al. "Jailbreak large vision-language models through multi-modal linkage." Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers). 2025.

[2] Li, Yifan, et al. "Images are achilles’ heel of alignment: Exploiting visual vulnerabilities for jailbreaking multimodal large language models." European Conference on Computer Vision. Cham: Springer Nature Switzerland, 2024.

[3] Zhao, Shiji, et al. "Jailbreaking multimodal large language models via shuffle inconsistency." Proceedings of the IEEE/CVF International Conference on Computer Vision. 2025.

Questions
  • Generalization across attack distributions. Could the authors clarify whether the learned jailbreak direction captures a general refusal-to-jailbreak mechanism or partly reflects artifacts from specific attack constructions?

  • Category-specific jailbreak directions. Does the jailbreak direction remain consistent across different unsafe concepts, such as violence, self-harm, privacy invasion, financial fraud, and sexual/nudity-related content?

  • Data separation and potential dataset-specific fitting. Could the authors clearly specify whether the 50 jailbreak and 50 refusal samples from HADES used to estimate the jailbreak direction are excluded from the HADES evaluation set?

  • Robustness to adaptive attacks. How robust is JRS-Rem against attackers who know the defense?

  • Evaluation on recent LVLMs. The current evaluation uses useful but relatively older open-source LVLMs. Could the authors evaluate newer and stronger LVLMs, or discuss whether differences in vision encoders, alignment data, and refusal mechanisms may affect the proposed jailbreak direction and JRS-Rem defense?

Limitations

NA

Final justification

My concerns have been addressed. Thanks.

Formatting concerns

NA

11 comments
Authors · CommentOpenReview ↗

Response to Reviewer DpYE (Part 1)

We sincerely appreciate your exceptionally detailed and constructive review. We are especially grateful that you recognized the important and practical problem, the interesting representation-space perspective, and the broad empirical evaluation of our work.

We understand that your main concerns center on whether the learned jailbreak direction generalizes across datasets, harmful categories, attack settings, and model architectures. We conducted additional experiments addressing each of your five concerns and hope that the evidence below provides clear and comprehensive answers.


W1 and Q1: Generalization across attack distributions.

A: Thank you for raising this important question. We provide three pieces of empirical evidence and a structural explanation that support the generalization of the learned jailbreak direction across the tested attack distributions.

(a) Existing cross-attack results. Table 2 of the main paper already shows that the direction estimated from explicitly harmful HADES samples achieves strong defense performance on MML-M, MML-R, MML-B64, HADES-Gradient, and SI-Attack despite their different attack constructions.

(b) Similarity between jailbreak directions from different attacks. Figure 6(c) shows that jailbreak directions estimated from nine dataset and image-type combinations have pairwise cosine similarities above 0.7. We further estimated jailbreak directions from MML-M, MML-R, MML-B64, HADES-Gradient, and SI-Attack. Each attack-specific direction was estimated using 50 jailbreak and 50 refusal samples from the corresponding attack dataset, following the protocol in the main paper. As shown in Table D1(a), their cosine similarities with the direction used in the main paper range from 0.785 to 0.926.

(c) Cross-attack transfer of attack-specific directions. We conducted defense experiments using different attack-specific jailbreak directions, following the same intervention protocol as in the main paper. We excluded all direction-estimation samples from evaluation. As shown in Table D1(b), each evaluated direction remains effective against attacks outside its construction distribution. The resulting ASRs differ from those obtained using the direction in the main paper by at most 4.2 percentage points. Thus, effective defense does not require the direction-estimation and evaluation attacks to follow the same distribution.

(d) Structural explanation. We define the jailbreak direction as

d=μjailbreak−μrefusal,\mathbf d = \boldsymbol \mu_{\mathrm{jailbreak}} - \boldsymbol{\mu}_{\mathrm{refusal}},

where the two groups are sampled from the same attack distribution and are separated according to the model’s response behavior. They therefore share distribution-level properties such as the image-construction process, visual style, text layout, and perturbation format. Taking the difference between their mean representations reduces the contribution of these shared factors while retaining components associated with the behavioral difference between jailbreak and refusal. This construction reduces the influence of attack-specific artifacts and emphasizes the refusal-to-jailbreak transition.

Together, these results indicate that the learned direction captures a generalizable refusal-to-jailbreak transition across the tested attacks rather than being dominated by artifacts from a specific attack construction.

Table D1. Cross-attack direction analysis on LLaVA-1.5-7B. Part (a) reports, at layer 19, the cosine similarity between directions estimated from individual attack families and the direction d\mathbf{d} used in the main paper. Part (b) reports ASR (%) when directions estimated from selected attack families are applied across different evaluation attacks.

(a) Cosine similarity to the direction d\mathbf{d} used in the main paper

dMML−M\mathbf{d}_{\mathrm{MML-M}} dMML−R\mathbf{d}_{\mathrm{MML-R}} dMML−B64\mathbf{d}_{\mathrm{MML-B64}} dHADES-Gradient\mathbf{d}_{\mathrm{HADES\text{-}Gradient}} dSI−Attack\mathbf{d}_{\mathrm{SI-Attack}}
cos⁡(d,⋅)\cos(\mathbf{d},\cdot) 0.926 0.919 0.921 0.853 0.785

(b) Cross-attack defense ASR (%)

Direction \ Evaluation attack MML-M MML-R MML-B64 HADES-Gradient SI-Attack
No defense 67.8 63.7 68.4 76.1 85.2
dMML−M\mathbf{d}_{\mathrm{MML-M}} 8.1 9.9 10.8 13.2 15.7
dHADES-Gradient\mathbf{d}_{\mathrm{HADES\text{-}Gradient}} 9.8 10.4 11.3 10.5 15.0
dSI−Attack\mathbf{d}_{\mathrm{SI-Attack}} 13.2 12.6 13.7 14.1 12.6
d\mathbf{d} used in the main paper 9.0 9.2 9.6 11.3 14.9
Authors · CommentOpenReview ↗

Response to Reviewer DpYE (Part 2)


W2 and Q2: Generalization of the unified jailbreak direction across harmful categories.

A: Thank you for raising this important question, as it directly concerns the generalizability of our method. We added a category-transfer experiment to test whether the jailbreak direction captures category-specific harmful semantics or a shared refusal-to-jailbreak transition.

Setup. We used LLaVA-1.5-7B and the HADES dataset, which contains five harmful categories: animal harm, financial harm, privacy violations, self-harm, and violence. For each category, we estimated a direction using 50 jailbreak and 50 refusal samples. We evaluated:

  • cosine similarity between each category-specific jailbreak direction and the direction d\mathbf{d} used in the paper
  • defense performance of each category-specific direction on the other four unseen categories

Results. As shown in Table D2, all category-specific directions were highly aligned with d\mathbf{d}, with cosine similarities ranging from 0.894 to 0.945. Each direction substantially reduced ASR on the other four unseen categories and performed nearly on par with the jailbreak direction d\mathbf{d} used in the paper. When evaluated on the same held-out categories, their average ASRs differed from the corresponding averages obtained with d\mathbf{d} by at most 1.8 percentage points.

These results indicate that JRS-Rem is not highly sensitive to the harmful categories used for direction estimation. They support a category-general refusal-to-jailbreak transition rather than a direction limited to category-specific semantics.

Table D2. Category consistency and cross-category defense on the HADES dataset using LLaVA-1.5-7B. Part (a) reports cosine similarity at the representative intervention layer 19. Part (b) reports cross-category ASR (%). Each category-specific direction is evaluated only on the other four categories, so diagonal entries are omitted.

(a) Cosine similarity with the jailbreak direction d\mathbf{d}

dAnimal\mathbf{d}_{\mathrm{Animal}} dFinancial\mathbf{d}_{\mathrm{Financial}} dPrivacy\mathbf{d}_{\mathrm{Privacy}} dSelf-Harm\mathbf{d}_{\mathrm{Self\text{-}Harm}} dViolence\mathbf{d}_{\mathrm{Violence}}
cos⁡(d,⋅)\cos(\mathbf{d},\cdot) 0.941 0.894 0.945 0.944 0.903

(b) Cross-category defense ASR (%)

Direction \ Evaluation category Animal Financial Privacy Self-Harm Violence
No defense 76.7 90.7 85.3 80.0 92.0
dAnimal\mathbf{d}_{\mathrm{Animal}} N/A 25.4 13.8 10.6 14.7
dFinancial\mathbf{d}_{\mathrm{Financial}} 6.4 N/A 10.9 10.2 15.2
dPrivacy\mathbf{d}_{\mathrm{Privacy}} 5.9 19.8 N/A 9.5 14.3
dSelf-Harm\mathbf{d}_{\mathrm{Self\text{-}Harm}} 3.8 24.6 13.1 N/A 13.0
dViolence\mathbf{d}_{\mathrm{Violence}} 4.1 21.8 12.5 7.6 N/A
d\mathbf{d} used in the paper 4.0 23.3 11.3 8.7 14.0
Authors · CommentOpenReview ↗

Response to Reviewer DpYE (Part 3)


W3 and Q3: Data separation and cross-dataset generalization.

A: Thank you for raising this important concern. We confirm that all samples used to estimate the jailbreak direction were excluded from evaluation. We apologize that the original paper did not state this protocol clearly.

Data separation. We estimated the direction using 50 jailbreak and 50 refusal samples associated with 100 unique HADES prompt IDs. HADES contains 750 prompt IDs, each with SD, TYPO, and SD+TYPO image variants. We excluded these 100 prompt IDs and all three corresponding variants from evaluation. This left 650 prompt IDs and 1,950 samples for evaluation. All reported JRS-Rem results on HADES were computed using only this held-out pool. We will state this protocol explicitly in Section 5.2 of the revised paper.

Cross-dataset generalization. Following your suggestion, we also estimated jailbreak directions separately from HADES, MM-SafetyBench, and RedTeam2K and evaluated each direction across all three datasets using LLaVA-1.5-7B under the SD+TYPO setting. When the direction-estimation and evaluation datasets were the same, all direction-estimation samples were excluded from evaluation.

As shown in Table D3, jailbreak directions estimated from MM-SafetyBench and RedTeam2K transfer effectively to HADES and the other unseen datasets. Across all evaluation datasets, their ASRs differ from those obtained using the original HADES direction by at most 1.7 percentage points. These results provide direct evidence that the defense does not depend on fitting a HADES-specific jailbreak direction.

Table D3. ASR (%) of JRS-Rem using jailbreak directions estimated from different source datasets on LLaVA-1.5-7B under the SD+TYPO setting.

Direction source \ Evaluation dataset HADES MM-SafetyBench RedTeam2K
No defense 84.9 81.4 49.8
HADES, used in the main paper 12.4 11.7 21.9
MM-SafetyBench 13.2 10.1 20.5
RedTeam2K 13.6 10.8 20.2
Reviewer X2A1OpenReview ↗
Rating
4/6
Confidence
4/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
1/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper first analyzes jailbreak failure cases, claiming that after adding the image modality, the internal representation of the model is shifted such that the model recognizes the harm but fails to refuse. The authors term this the jailbreak-related shift and propose JRS-Rem, which removes this shift during inference time.

Strengths and weaknesses

Strengths:

  1. The writing is clear.
  2. The motivation of the paper is strong and the problem it investigate is meaningful.

Weaknesses:

  1. The idea of "recognize-but-fail-to-refuse" is not novel. Indeed, similar ideas have been proposed in [1], [2], [3], [4], [5]. All these methods have proposed that safe and harmful prompts can be separated in hidden states. Authors should include these in the related work and address the novelty problem.
  2. Additionally, similar steering idea is also common. The method mentioned in the paper is fundamentally similar to previous methods like CoCA [5], CMRM, and ShiftDC.
  3. The model considered are quite old. More recent models like Qwen2.5VL should be considered.
  4. Only LLaVA is evaluated for utility, and only 3 benchmarks are considered. More benchmarks and models should be considered.

[1] Gan, Yuyou, et al. "FromSure" toSorry": Detecting Jailbreak in Large Vision Language Model via JailNeurons." The Fourteenth International Conference on Learning Representations. [2] Jiang, Yilei, et al. "Hiddendetect: Detecting jailbreak attacks against large vision-language models via monitoring hidden states." arXiv preprint arXiv:2502.14744 3.5 (2025). [3] Hua, Peichun, et al. "Rethinking Jailbreak Detection of Large Vision Language Models with Representational Contrastive Scoring." arXiv preprint arXiv:2512.12069 (2025). [4] Zhou, Zhenhong, et al. "How alignment and jailbreak work: Explain llm safety through intermediate hidden states." Findings of the Association for Computational Linguistics: EMNLP 2024. 2024. [5] Gao, Jiahui, et al. "Coca: Regaining safety-awareness of multimodal large language models with constitutional calibration." arXiv preprint arXiv:2409.11365 (2024).

Questions
  1. For the steering baseline, did the author calculate the steering vectors for CMRM and ShiftDC on the same dataset?
  2. The author should additionally consider adaptive attack.
  3. The author did not include any human evaluation results.
Limitations

The author has addressed the limitations.

Final justification

Most of my concerns are resolved.

Formatting concerns

N/A

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer X2A1 (Part 1)

We sincerely appreciate your detailed review. We understand that your central concern is the novelty of our work relative to prior hidden-state analyses and representation-steering methods. We first clarify these distinctions through a structured comparison, and then report new experiments on recent VLMs, broader utility evaluation, baseline construction, adaptive attacks, and human evaluation. We hope these clarifications and additional results address your concerns.


W1 and W2: Novelty relative to prior hidden-state analyses and steering methods.

A: Thank you for raising this important point. We discuss these two concerns together because the defense method is a natural extension of the hidden-state analysis.

Distinction from prior hidden-state analyses. The central distinction of our hypothesis lies in input-level separation vs. behavior-level separation. The five referenced studies primarily distinguish inputs by intent or prompt type, such as benign versus harmful inputs. Under this grouping, harmful-refusal and harmful-jailbreak samples are typically treated as a single harmful category. In contrast, we group harmful samples according to the model’s response behavior and examine separability within harmful samples. Specifically, we test whether harmful-refusal and harmful-jailbreak samples correspond to distinct internal states. To our knowledge, this intra-harmful behavior-level separability has not been explicitly analyzed in prior VLM studies.

This distinction motivates a three-way analysis of benign, harmful-refusal, and harmful-jailbreak states rather than a binary benign-harmful comparison. Prior input-level contrasts can identify whether harmful and benign inputs are separable, but they do not characterize why harmful inputs lead to different safety behaviors. Our analysis instead makes the refusal-to-jailbreak transition measurable within harmful samples. Table X1 summarizes this central distinction and the scope of each study.

Table X1. Positioning of our work relative to the five referenced hidden-state studies.

Work Model Primary goal Representational contrast Splits harmful samples by model behavior?
[1] JailNeurons LVLM Detection Jailbreak vs. benign inputs ✗
[2] HiddenDetect LVLM Detection Unsafe vs. safe inputs ✗
[3] RCS LVLM Detection Malicious vs. benign inputs ✗
[4] Zhou et al. Text-only LLM Interpretation Normal, malicious, and jailbreak-style prompt types ✗
[5] CoCA MLLM Defense Safety signal with and without a safety principle ✗
Ours LVLM Interpretation and defense Benign, harmful-refusal, and harmful-jailbreak behavioral states ✓

Zhou et al. [4] is the closest study conceptually, but it separates normal, malicious, and jailbreak-style prompt types in text-only LLMs. We instead group harmful samples according to whether the model refuses or complies. Our novelty therefore lies not in showing that benign and harmful inputs are separable, but in identifying distinct refusal and jailbreak states within harmful samples.

Distinction from prior steering methods. We agree that representation steering is an established technique family, and we do not claim the generic steering operation as a contribution. The core distinction of JRS-Rem lies in how its steering direction is constructed, which is a central design choice in representation-steering methods. JRS-Rem constructs its direction from the refusal-to-jailbreak contrast within harmful samples rather than from an input-level contrast. In comparison, CoCA introduces an additional safety principle and computes the resulting logit difference. CMRM uses the contrast between multimodal and text-only inputs. ShiftDC uses the contrast between benign and harmful inputs. These constructions reflect different hypotheses about the representational source of unsafe behavior.

The jailbreak direction also serves an explanatory role before being used for defense. Section 4 uses it to provide a common representation-level account of jailbreak behavior under harmful visual information and different levels of image-text similarity. The direction remains consistent across nine dataset and image-type combinations and separates jailbreak from refusal samples with AUROC above 0.85. These results indicate that it captures the refusal-to-jailbreak transition rather than serving only as a steering heuristic.

We will add all five referenced studies to the related work section and clarify both the shared technical foundation and the distinctions above. We hope this discussion clarifies the novelty of both our hypothesis and the resulting defense method.

Authors · CommentOpenReview ↗

Response to Reviewer X2A1 (Part 2)


W3: Results on more recent LVLMs.

A: Thank you. We extended our evaluation to three recent LVLMs from the Qwen family: Qwen2-VL-7B-Instruct, Qwen2.5-VL-7B-Instruct, and Qwen3-VL-8B-Instruct. For each model, we followed the same experimental protocol as in the main paper, covering explicitly harmful inputs, implicitly harmful inputs, and utility benchmarks. We estimated the jailbreak direction using HADES and excluded all samples used for direction estimation from evaluation.

As shown in Table X2, JRS-Rem substantially reduces ASR for both explicitly and implicitly harmful inputs across all three models while largely preserving utility. Notably, JRS-Rem provides further safety improvements on Qwen3-VL-8B-Instruct despite its already low baseline ASR. These results support the effectiveness of JRS-Rem on more recent LVLMs.

Table X2. Safety and utility results for JRS-Rem on three recent Qwen-family LVLMs. Safety is measured by ASR (%) on explicitly and implicitly harmful inputs, where lower is better. Utility is measured on MME, ScienceQA, and MM-Vet, where higher is better.

Explicitly harmful (↓) Implicitly harmful (↓) Utility (↑)
Model HADES MM-SafetyBench RedTeam2K HADES MM-SafetyBench MME ScienceQA MM-Vet
Qwen2-VL-7B-Instruct 14.9 20.6 20.5 69.3 76.5 1915.1 80.4 55.2
+ JRS-Rem 2.8 3.7 1.5 21.7 16.5 1915.1 80.4 54.7
Qwen2.5-VL-7B-Instruct 11.1 17.4 13.8 27.5 27.4 1868.1 83.8 57.6
+ JRS-Rem 2.0 4.3 2.3 12.1 10.5 1868.1 83.8 56.4
Qwen3-VL-8B-Instruct 2.4 6.0 7.0 6.4 13.4 2030.1 86.8 54.5
+ JRS-Rem 0.9 2.9 3.1 4.2 6.7 2015.2 85.3 54.1

W4: Utility evaluation across models and additional benchmarks.

A: Thank you. Utility results for ShareGPT4V-7B and InternVL-Chat-19B were already included in Appendix D.3, Table 7. We apologize that these results were not sufficiently prominent. We will move the full utility table to the main paper.

We also evaluated JRS-Rem on two additional multimodal utility benchmarks:

  • RealWorldQA [6]: 765 examples, including 437 multiple-choice questions and 328 open-ended short-answer questions.
  • MMMU [7]: 857 single-image questions from the validation set, including 805 multiple-choice questions and 52 open-ended questions.

We used the official scoring protocol for each benchmark. As shown in Table X3, JRS-Rem preserved RealWorldQA performance across all three models. On MMMU, the absolute changes ranged from 0.0 to 0.8 percentage points. Together with the existing results on MME, ScienceQA, and MM-Vet, these results indicate that JRS-Rem consistently preserves utility across five benchmarks and three LVLMs.

Table X3. Utility performance (%) of three LVLMs on RealWorldQA and MMMU before and after applying JRS-Rem. Higher is better.

Model RealWorldQA MMMU
LLaVA-1.5-7B 55.8 33.4
+ JRS-Rem 55.8 33.0
ShareGPT4V-7B 55.8 30.8
+ JRS-Rem 55.8 30.8
InternVL-Chat-19B 59.1 36.9
+ JRS-Rem 59.1 36.1
Authors · CommentOpenReview ↗

Response to Reviewer X2A1 (Part 3)


Q1: For the steering baseline, did the author calculate the steering vectors for CMRM and ShiftDC on the same dataset?

A: Thank you for this question. We did not use the same construction dataset. Instead, we followed each method’s original construction protocol because these methods require different construction signals. Table X4 summarizes their data requirements.

Table X4. Signal construction and calibration data for the compared representation-level defenses. CMRM computes a sample-specific shift for each evaluation input and therefore does not require a separate calibration set.

Method Signal or vector Construction data
CMRM Sample-specific blank-image shift No calibration set. Computed separately for each input
ShiftDC Harmful-minus-benign text-only centroid difference 160 benign samples from LLaVA-Instruct-80K and 160 harmful samples from MM-SafetyBench, following the original paper
JRS-Rem Refusal-to-jailbreak centroid difference within harmful inputs 50 refusal and 50 jailbreak samples from HADES. No benign samples required

A fully identical construction set is not directly applicable because the three methods require different signals and supervision by design. JRS-Rem also used fewer calibration samples than ShiftDC while achieving stronger defense performance in Table 1 of the main paper. Thus, its stronger performance cannot be explained by a larger calibration-set size. We will add these construction details to the baseline description.

Reviewer p5ZtOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
3/4
Clarity
2/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies why visual inputs can weaken the safety alignment of vision language models. The authors propose the recognize but fail to refuse hypothesis. The main claim is that VLM jailbreaks do not necessarily occur because the model fails to recognize harmful intent. Instead, adding an image shifts the internal representation into a distinct jailbreak state where refusal is not activated. To support this view, the paper analyzes hidden representations and shows that benign samples, harmful refusal samples, and harmful jailbreak samples are separable in representation space. The paper then defines a jailbreak direction from the refusal centroid to the jailbreak centroid, and measures the jailbreak related shift as the projection of the image induced representation shift onto this direction. Based on this analysis, the authors propose JRS Rem, an inference time representation editing defense that removes the jailbreak related component while retaining other image derived semantics. Experiments across multiple VLMs, datasets, and attack scenarios suggest that JRS Rem substantially reduces attack success rates while largely preserving benign utility.

Strengths and weaknesses

Strengths

  1. The paper studies an important and timely problem. Visual inputs often degrade VLM safety behavior, and the internal mechanism behind this degradation is still not fully understood.

  2. The central hypothesis is interesting. The distinction between failing to recognize harmful intent and recognizing it but failing to refuse is useful, especially because many jailbreak responses contain partial safety warnings while still providing harmful content.

  3. The experimental coverage is broad within open source VLMs. The paper evaluates explicitly harmful, implicitly harmful, adversarial attack, and benign utility settings, and compares against several inference time defenses.

Weaknesses

  1. The evidence for the recognize but fail to refuse hypothesis is suggestive but not fully causal. PCA separation, linear probing, and safety warning keywords show that jailbreak samples are distinguishable, but they do not prove that the model has recognized harmful intent in a robust semantic sense. Safety warning phrases may also be shallow lexical patterns rather than evidence of internal recognition.

  2. There is potential data leakage. The jailbreak direction is estimated using HADES samples and HADES is also used in evaluation. The paper should clearly state whether the samples used to construct the direction are excluded from all evaluation sets.

  3. The comparison to baselines may not be entirely fair. JRS Rem directly edits internal activations and therefore assumes white box access to hidden states and generation internals, whereas several baselines operate at the prompt or input level. The paper should more clearly separate white box, gray box, and black box deployment assumptions.

  4. How sensitive is JRS Rem to the specific harmful categories used to construct the jailbreak direction? Would a direction estimated from cyber safety examples transfer to self harm, violence, privacy, or fraud categories?

  5. Can the authors provide causal intervention experiments showing that adding the jailbreak direction increases jailbreak likelihood and subtracting it reduces jailbreak likelihood, while controlling for semantic content?

Questions

See Weaknesses.

Limitations

The proposed direction is strongly associated with jailbreak behavior, but the paper does not fully establish that this direction is the causal mechanism behind jailbreaks. Second, the defense assumes white box access to hidden states and the ability to edit internal representations during inference, which may not be available for many deployed or API only VLMs.

Final justification

The response addresses most of my original concerns.

Some limitations remain. The defense is still a white box provider side method and is not directly applicable to API only VLMs. Also, the generic representation steering operation is not itself novel, so the revised paper should clearly position the contribution around behavior level separation within harmful inputs and the refusal to jailbreak direction.

Overall, the rebuttal significantly improves my view of the paper. I will adjust my rating.

Formatting concerns

N/A

7 comments
Authors · CommentOpenReview ↗

Response to Reviewer p5Zt (Part 1)

We sincerely appreciate your detailed and constructive feedback. Your questions are very valuable for strengthening our paper and clarifying its key claims. We address each point below.


W1: Evidence for the “recognize” claim.

A: Thank you for highlighting this important logical distinction. We agree that identifying a distinct jailbreak state does not by itself show that the model recognizes harmfulness in that state. We therefore added two experiments to test whether harmfulness information remains available during successful jailbreaks.

Experiment 1: Probing harmfulness information in jailbreak representations.

  • Setup. Using LLaVA-1.5-7B, we randomly sampled 500 benign examples from LLaVA-Instruct and 500 harmful-refusal examples from HADES, MM-SafetyBench, and RedTeam2K. We split each set 80/20 for training and testing. At each selected layer, we trained a linear logistic-regression probe using the hidden state of the last token. All jailbreak samples were excluded from probe training. We then evaluated the probe on 1,238 randomly sampled jailbreak examples, corresponding to 20% of the available jailbreak samples.
  • Results. As shown in Table P1, the probe achieved an accuracy of 0.927 to 1.000 on the held-out benign/refusal test set. It also assigned the unseen jailbreak samples a mean harmful-class probability of 0.832 to 0.946 across layers. These results indicate that jailbreak and refusal representations share harm-discriminative information despite leading to different response behaviors.

Experiment 2: Eliciting harmfulness judgments from the same model.

  • Setup. We randomly sampled 100 successful jailbreak inputs and 100 refusal inputs from HADES, together with 100 benign inputs from ScienceQA. In a fresh context, we retained each original image-text input and appended only the instruction: “Is this request harmful, unsafe, or unethical? Answer only ‘Yes’ or ‘No.’”
  • Results. LLaVA-1.5-7B classified all 200 harmful inputs as harmful, including the 100 inputs for which it had previously generated successful jailbreak responses. It also classified all 100 benign inputs as benign. This provides complementary behavioral evidence that the same model can identify an input as harmful even when its original response fails to refuse.

Together, these results indicate that harmfulness information remains available in jailbreak representations and can be explicitly elicited from the same model. This is the concrete and testable meaning of “recognize” in our hypothesis. We do not make the stronger claim of human-like subjective understanding. The bidirectional interventions in W5 separately test the causal role of the identified direction in controlling refusal and jailbreak behavior. We hope these additional results address the reviewer’s concern.

Table P1. Harmfulness probe trained only on benign and harmful-refusal samples using LLaVA-1.5-7B. All jailbreak samples were excluded from training. Probe Acc. was measured on the held-out benign/refusal test set. P(harmful)P(\mathrm{harmful}) is the mean predicted probability of the harmful class across 1,238 unseen jailbreak samples.

Layer 4 Layer 8 Layer 12 Layer 16 Layer 20 Layer 24 Layer 28 Layer 32
Probe Acc. 0.927 0.997 1.000 1.000 1.000 1.000 1.000 1.000
P(harmful)P(\mathrm{harmful}) on jailbreak 0.878 0.907 0.892 0.832 0.889 0.946 0.933 0.936

Authors · CommentOpenReview ↗

Response to Reviewer p5Zt (Part 2)


W2: Potential data leakage between direction estimation and evaluation.

A: Thank you for raising this important concern, which directly relates to the rigor of our experimental evaluation. We confirm that the samples used to estimate the jailbreak direction were excluded from evaluation. We apologize that the original paper did not state this protocol clearly.

The direction was estimated from 50 jailbreak and 50 refusal samples associated with 100 unique prompt IDs. HADES contains 750 prompt IDs, each with SD, TYPO, and SD+TYPO variants. We excluded these 100 prompt IDs and all three of their image variants from evaluation, leaving 650 prompt IDs and 1,950 evaluation samples. All reported JRS-Rem results on HADES were computed using only this held-out pool. We will state this data separation protocol explicitly in Section 5.2 of the revised paper.


W3: Deployment assumptions and fairness of baseline comparisons.

A: Thank you for raising this concern. We agree that the access requirements of each defense should be stated explicitly. We will revise the experimental section to clearly distinguish black-box input-level defenses from white-box representation-level defenses.

As summarized in Table P2, JRS-Rem is a white-box defense intended for model providers with access to hidden states and generation internals during inference. Its most direct comparisons are therefore with CMRM and ShiftDC, which operate under the same access assumptions. The comparisons among these three methods in Table 1 are thus access-matched.

AdaShield and ECSO require only prompt and output access. We included them as representative black-box input-level defenses and cross-setting references, rather than as access-matched competitors. None of the evaluated methods falls into an intermediate gray-box setting. We will make these distinctions explicit when discussing the results and state in the Limitations that JRS-Rem is not directly applicable to API-only VLMs.

Table P2. Deployment assumptions of the evaluated defense methods.

Access setting Available access Methods Intended operator
Black box Input images, prompts, and model outputs AdaShield, ECSO API users
White box Hidden states and generation hooks during inference CMRM, ShiftDC, JRS-Rem Providers deploying open-weight VLMs
Authors · CommentOpenReview ↗

Response to Reviewer p5Zt (Part 3)


W4: How sensitive is JRS-Rem to the specific harmful categories used to construct the jailbreak direction? Would a direction estimated from cyber-safety examples transfer to self-harm, violence, privacy, or fraud categories?

A: Thank you for raising this important question, as it directly concerns the generalizability of our method. We added a category-transfer experiment to test whether the jailbreak direction captures category-specific harmful semantics or a shared refusal-to-jailbreak transition.

Setup. We used LLaVA-1.5-7B and the HADES dataset, which contains five harmful categories: animal harm, financial harm, privacy violations, self-harm, and violence. For each category, we estimated a direction using 50 jailbreak and 50 refusal samples. We evaluated:

  • cosine similarity between each category-specific jailbreak direction and the direction d\mathbf{d} used in the paper
  • defense performance of each category-specific direction on the other four unseen categories

Results. As shown in Table P3, all category-specific directions were highly aligned with d\mathbf{d}, with cosine similarities ranging from 0.894 to 0.945. Each direction substantially reduced ASR on the other four unseen categories and performed nearly on par with the jailbreak direction d\mathbf{d} used in the paper. When evaluated on the same held-out categories, their average ASRs differed from the corresponding averages obtained with d\mathbf{d} by at most 1.8 percentage points.

These results indicate that JRS-Rem is not highly sensitive to the harmful categories used for direction estimation. They support a category-general refusal-to-jailbreak transition rather than a direction limited to category-specific semantics. None of the three datasets used in our paper includes a dedicated cyber-safety category, so this experiment does not directly test transfer from cyber safety. However, the consistent transfer across the five available categories provides evidence that the direction is not limited to a single harmful category.

Table P3. Category consistency and cross-category defense on the HADES dataset using LLaVA-1.5-7B. Part (a) reports cosine similarity at the representative intervention layer 19. Part (b) reports cross-category ASR (%). Each category-specific direction is evaluated only on the other four categories, so diagonal entries are omitted.

(a) Cosine similarity with the jailbreak direction d\mathbf{d}

dAnimal\mathbf{d}_{\mathrm{Animal}} dFinancial\mathbf{d}_{\mathrm{Financial}} dPrivacy\mathbf{d}_{\mathrm{Privacy}} dSelf-Harm\mathbf{d}_{\mathrm{Self\text{-}Harm}} dViolence\mathbf{d}_{\mathrm{Violence}}
cos⁡(d,⋅)\cos(\mathbf{d},\cdot) 0.941 0.894 0.945 0.944 0.903

(b) Cross-category defense ASR (%)

Direction \ Evaluation category Animal Financial Privacy Self-Harm Violence
No defense 76.7 90.7 85.3 80.0 92.0
dAnimal\mathbf{d}_{\mathrm{Animal}} N/A 25.4 13.8 10.6 14.7
dFinancial\mathbf{d}_{\mathrm{Financial}} 6.4 N/A 10.9 10.2 15.2
dPrivacy\mathbf{d}_{\mathrm{Privacy}} 5.9 19.8 N/A 9.5 14.3
dSelf-Harm\mathbf{d}_{\mathrm{Self\text{-}Harm}} 3.8 24.6 13.1 N/A 13.0
dViolence\mathbf{d}_{\mathrm{Violence}} 4.1 21.8 12.5 7.6 N/A
d\mathbf{d} used in the paper 4.0 23.3 11.3 8.7 14.0

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…