acceptodds
Published as a conference paper at NeurIPS 2026

Understanding and Defending VLM Jailbreaks via Jailbreak-Related Representation Shift

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

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 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.

Keywords:
Sydney, Main Track

Reviews

Among:
Shape:
123456this paper, Bottom 17%
Figure 1. Mean review rating of the reviewed papers at NeurIPS 2026. This paper averages 4.00 over 3 reviews, above 17% of the others.
Reviewer_DpYEOpenReview ↗
Rating
5
Clarity
3
Confidence
4
Originality
3
Quality
3
Significance
3
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

Paper formatting concerns

NA

Final justification

My concerns have been addressed. Thanks.

Reviewer_X2A1OpenReview ↗
Rating
4
Clarity
3
Confidence
4
Originality
1
Quality
2
Significance
2
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.

Paper formatting concerns

N/A

Final justification

Most of my concerns are resolved.

Reviewer_p5ZtOpenReview ↗
Rating
3
Clarity
2
Confidence
4
Originality
3
Quality
3
Significance
3
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.

Paper formatting concerns

N/A

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.

Comments on the paper

1 comment
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?

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

Related papers

Loading the map…

Discussion (0)

Sign in to comment.