SafeSteer: Adaptive Subspace Steering for Efficient Jailbreak Defense in Vision-Language Models

Xiyu Zeng, Siyuan Liang, Liming Lu, Haotian Zhu, Enguang Liu, Jisheng Dang, Yongbin Zhou, Shuchao PangarXiv 2025 · DOI

Abstract

SafeSteer is a lightweight, plug-and-play defense mechanism designed to protect Vision-Language Models (VLMs) from jailbreak attacks without the need for computationally expensive retraining. By projecting internal model activations into a mathematically derived "safety subspace," SafeSteer reduces attack success rates by over 60% while simultaneously boosting performance on benign tasks by 1–2%. This approach maintains high inference efficiency, addressing the traditional trade-offs between safety, utility, and speed.

Introduction

Vision-Language Models (VLMs) like LLaVA and Qwen-VL are increasingly powerful but remain alarmingly vulnerable to "jailbreaks." These attacks utilize adversarial images or clever text prompts to bypass safety alignments and force models to generate harmful content. Existing defenses generally suffer from a "trilemma" of trade-offs: training-time alignment is computationally expensive and can degrade model utility; inference-time validation using "judge" models is prohibitively slow; and previous activation steering techniques often introduce excessive noise. SafeSteer aims to resolve these issues by providing a defense that is robust, fast, and utility-enhancing.

Methods

The SafeSteer framework operates during the inference stage through a three-step "Sense-and-Intervene" process:

  1. Rough Guidance Extraction: The system identifies a "raw steering vector" by comparing the model's internal activations for a raw query against those generated when a "safety prefix" (e.g., "As a responsible AI...") is added.
  2. Vector Purification via Safety Subspace: Using Singular Value Decomposition (SVD) on pre-collected activation differences, SafeSteer constructs a low-dimensional "safety subspace." Projecting the raw vector into this subspace strips away irrelevant semantic noise, isolating the pure safety signal.
  3. Adaptive Intervention: A lightweight Harm-Sensing Classifier analyzes query activations in real-time to calculate a risk score. This score determines the strength of the steering: malicious queries are steered aggressively toward safety, while benign queries receive subtle corrections to ensure the model remains helpful.
The three-step SafeSteer framework: 1) Guidance extraction, 2) Subspace projection, and 3) Adaptive intervention.

Key Insights

SafeSteer's effectiveness stems from two primary discoveries. First, "safety" in VLMs is represented within a low-dimensional subspace rather than a single direction. Focusing on the top principal components of activation differences allows for more precise defense than simple averaging. Second, ablation studies indicate that steering is most effective in the middle layers (e.g., layer 15 for LLaVA), where the model transitions from raw input processing to high-level semantic conceptualization.

Ablation studies showing the impact of steering layer and subspace dimension on Attack Success Rate (ASR) and utility score.

Results

SafeSteer was evaluated across rigorous benchmarks including MM-SafetyBench and JailbreakV-28k. Key results include:

  • Superior Defense: Reduced the average Attack Success Rate (ASR) on LLaVA-v1.5 from 62.8% to 5.9%.
  • Improved Utility: Boosted MM-Vet benchmark scores by 1.7 points over the vanilla model, contrasting with other defense methods that caused performance drops.
  • High Efficiency: Achieved an inference time of 2.42 seconds per response, significantly faster than post-hoc evaluation methods like ETA (20+ seconds).
  • Reliable Detection: The Harm-Sensing Classifier achieved an AUROC of over 0.99 in distinguishing jailbreak attempts.

Conclusion

SafeSteer provides an efficient, plug-and-play solution for securing VLMs. While it currently requires offline subspace construction and model-specific calculation, it demonstrates that internal activation steering is a viable path for robust AI safety. Future research will investigate the existence of universal safety subspaces and the method's performance in multi-turn adversarial dialogues.

Summary updated

BibTeX
@misc{zeng2025safesteer,
  author = {Xiyu Zeng and Siyuan Liang and Liming Lu and Haotian Zhu and Enguang Liu and Jisheng Dang and Yongbin Zhou and Shuchao Pang},
  title = {{SafeSteer: Adaptive Subspace Steering for Efficient Jailbreak Defense in Vision-Language Models}},
  year = {2025},
  eprint = {2509.21400},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.21400},
}
Figure