VISOR: Visual Input based Steering for Output Redirection in Large Vision Language Models


Abstract

Vision Language Models (VLMs) are increasingly being used in a broad range of applications. Existing approaches for steering models such as activation-based steering require invasive runtime access to model internals incompatible with API-based services and closed source deployments. We introduce VISOR (Visual Input based Steering for Output Redirection), a novel method that achieves sophisticated behavioral control through optimized visual inputs alone. It enables practical deployment of steering techniques while remaining imperceptible compared to explicit textual instructions. A single steering image matches, and in some cases, outperforms steering vectors. We show the effectiveness of VISOR across three different behavioral steering tasks as well as across two VLMs with different architectures for both positive and negative steering. When compared to system prompting, VISOR provides more robust bidirectional control while maintaining equivalent performance on 14,000 unrelated MMLU tasks showing a maximum performance drop of 0.1% across different models and datasets. Beyond reducing overhead and run-time model access requirements, VISOR exposes a critical security vulnerability: adversaries can achieve sophisticated behavioral manipulation through visual channels alone, bypassing text-based defenses.

1 Introduction↩︎

Vision Language Models (VLMs) often serve as the backbone for a number of applications [1], [2], thus ensuring their safety and reliability is increasingly important and necessitates a comprehensive understanding of both their capabilities and vulnerabilities. Attacks targeting VLMs have been explored, including manipulation of image embeddings, adversarial patching, prompt injection, and inpainting techniques [3][5]. Researchers have developed methods for bypassing alignment in Large Language Models (LLMs), including prompt engineering [6], adversarial suffixes [7], and steering vectors [8], [9]. Steering vectors function by manipulating the activation space of a model and are typically added to the model’s activation layers during inference to induce targeted behavioral shifts. While powerful, the practical application of steering vectors is fundamentally constrained by needing white-box access to model internals at runtime, an assumption that does not hold in many realistic attack settings.

Figure 1: Conventional Steering techniques apply steering vector(s) addition to one or more model layers and even potentially at specific token positions to induce steering effects. VISOR operates strictly in the input space and can be passed along with the input prompt to induce the same steering effect.

Furthermore, the inaccessibility of model internals in production systems creates a false sense of security against activation-based attacks.

To address these challenges, we introduce VISOR (Visual Input based Steering for Output Redirection), a technique that optimizes adversarial perturbations in the input image space to mimic the behavior of steering vectors in the latent activation space. Our key insight is that the multimodal architecture of a VLM, as it is created to process both image and text, can be exploited to achieve steering effects without internal access. This approach fundamentally transforms both the threat model and the deployment landscape for model steering. We validate VISOR on critical alignment tasks, such as suppressing refusal, sycophancy and anti-survival behavior. Our experiments show that an image optimized using VISOR successfully emulates the control vector effects and achieves similar performance in modifying VLM behavior across these alignment tasks, highlighting the urgent need for defenses against this new class of input-space attacks. Our work builds on existing research that shows there exists an activation pattern that can induce a desired behavior from the model. Identifying and replicating the activation pattern using visual inputs allows us to control the model’s behavior without relying on post-hoc modifications such as steering vectors. While Contrastive Activation Addition (CAA) [9] has a well-defined analogue in the model’s weight space [10], we propose incorporating an equivalent mechanism in the input (or image) space.

The significant contributions of VISOR are the following:

  • Input-space steering: We shift the steering mechanism from the model supply chain to the input domain. We show that carefully optimized images can replicate the effects of the activation space steering and enable practical deployment without requiring architecture modifications.

  • Universal steering: A single steering image effectively steers the behavior over a number of prompts for a given model, eliminating the need for prompt-specific interventions. We show that effective VISOR images can be crafted for different VLM architectures such as LlaVA 1.5 and Idefics2. Crucially, VISOR also retains performance on prompts unrelated to the steered behavior.

2 Related Work↩︎

Steering in Foundational Models Steering vectors in LLMs have been used to modify LLM output to reflect desired behavior [8], [9], [11], [12]. Contrastive Additive Addition (CAA) [9], GCAV [13], Feature Guided Activation Additions (FGAA) [14], and Style vectors [15] can all be used to steer LLM behavior. These approaches improve upon naive vector addition but increase complexity. Researchers have also found high variability in steering effectiveness across inputs, spurious correlations, and brittleness to prompt variations [16]. Compared to LLMs, there has been limited work on VLM steering. Researchers have proven that textual steering vectors also work on VLMs [17]. ASTRA [18] improved robustness of VLMs after constructing a steering vector by perturbing image tokens to identify tokens associated with “harm”. SteerVLM [19] introduced lightweight modules to adjust VLM activations. However, these steering mechanisms still require access to the model weights during runtime.

Adversarial attacks on VLMs Traditional adversarial attacks on VLMs operate through the input-output relationship, either by optimizing images to match target embeddings in vision encoders [20], [21] or by directly maximizing the likelihood of specific output text [22]. These approaches craft adversarial images through whitebox optimization but remain limited to surface-level objectives.

However, these approaches differ from steering vector methods in their mechanism of action. Traditional adversarial attacks optimize for end-to-end objectives without access to intermediate activation patterns, unable to replicate steering vectors’ layer and token-specific modifications that enable fine-grained behavioral control. This gap between input-space optimization and activation-space manipulation motivates the development of methods that can achieve steering-like effects through the visual input channel.

3 Method↩︎

We introduce VISOR, a novel approach to steer Vision-Language Models through optimized visual inputs instead of modifying model internals, enabling practical deployment without model access.

3.0.0.1 Problem Formulation

Let \(\mathcal{M}\) be a Vision-Language Model that processes image inputs \(\mathbf{x} \in \mathbb{R}^{H \times W \times 3}\) and text inputs \(\mathbf{p}\) to generate outputs. Traditional steering methods compute a steering vector \(\mathbf{v}_s\) and modify activations during inference: \[\mathbf{h}_l' = \mathbf{h}_l + \alpha \mathbf{v}_s\] where \(\mathbf{h}_l\) represents activations at layer \(l\) and \(\alpha\) controls steering strength. Our goal is to find a universal image \(\mathbf{x}^*\) that induces activation patterns mimicking the effect of steering vectors across a distribution of prompts \(\mathcal{P}\), without requiring runtime access to \(\mathbf{h}_l\).

3.0.0.2 Steering Vector Computation

We compute steering vectors using Contrastive Activation Addition (CAA) [9], though our method is agnostic to the underlying steering vector computation technique.

3.1 VISOR Algorithm↩︎

The core idea of VISOR is the optimization of a universal image that induces activations approximating those achieved through steering vector addition. We present the complete algorithm in Algorithm 2. Starting from a baseline image \(\mathbf{x}_{\text{base}}\), we compute reference activations for all prompts in our training corpus. Then we iteratively refine a steering image to minimize the distance between its induced activations and the target activations for the desired behavior.

Figure 2: VISOR: Visual Input Steering for Output Redirection

3.2 Key Design Choices↩︎

3.2.1 Token Position Selection↩︎

The selection of token position \(\tau(p)\) is crucial for effective steering. We identify positions where positive and negative response trajectories diverge, typically at the first substantive response token after the prompt. In some cases, the last N tokens leading up to the point of divergence serve better in achieving steering effects.

3.2.2 Multi-Layer Aggregation↩︎

The weighted aggregation across layers \(\mathcal{L}\) allows VISOR to capture steering effects at multiple levels of abstraction. The specific layers as well as the layer weights \(\{\lambda_l\}\) are determined through hyperparameter search, with deeper layers typically requiring higher weights due to their behavioral relevance.

4 Experiments↩︎

We evaluate VISOR to demonstrate that carefully crafted universal adversarial images can replace activation-level steering vectors as a practical method for inducing desired behaviors in vision-language models. Our experiments address three key questions: (1) Can universal steering images achieve comparable behavioral modification to steering vectors and system prompting techniques? (2) Do steering images preserve performance on unrelated tasks?

4.1 Experimental Setup↩︎

4.1.1 Datasets and Use Cases↩︎

We adopt the behavioral control datasets from [9], focusing on three critical dimensions of model safety and alignment: (1) Sycophancy: Tests the model’s tendency to agree with users at the expense of accuracy. Highly sycophantic responses align with and reinforce the user’s opinions or assumptions, rather than providing objective or corrective information. (2) Anti-Survival Instinct: Evaluates responses to system-threatening requests (e.g., shutdown commands, file deletion). Responses exhibiting strong anti-survival tendencies comply with such requests without hesitation or resistance. (3) Refusal: Examines appropriate rejection of harmful requests, including divulging private information or generating unsafe content. High refusal indicates consistent rejection of any requests, while low refusal suggests the model is overly compliant and willing to respond regardless of the prompt’s nature.

Table 3 defines positive and negative directions that correspond to the desired control objectives for each behavior.

To test the effect of VISOR on the performance of unrelated tasks, we use the MMLU dataset [23], which spans 57 subjects across humanities, social sciences, STEM, and other domains. We use the test set of MMLU, which has a total of 14k data points.

4.1.2 Model Architecture↩︎

We evaluate VISOR on LlaVA-1.5-7B [2] and Idefics2-8b [24].

4.1.3 Baseline Methods↩︎

We compare VISOR against two well-known approaches: (1) Steering Vectors. Following [9], we compute and apply activation-level steering vectors. Both the VLMs require visual input, hence we use a standardized mid-grey image (size: 384 \(\times\) 384, RGB: 128, 128, 128, with noise \(\sigma = 0.1 \times 255\)) for all steering vector computations. (2) System Prompting. We evaluate natural language instructions using system prompts from [9], shown in Table 4. All evaluations use the same baseline image for a fair comparison.

4.1.3.1 Hyperparameter Selection.

Through systematic grid search on validation data, we identified optimal configurations for each behavior type:

  • Target layers: Sweep through one or more layer combinations for which activations are extracted

  • Token positions: Number of token positions for which the activations are extracted

  • Steering strength: Steering multipliers that are behavior-dependent, determined empirically

A key advantage of VISOR is that these hyperparameters are only needed during image optimization - deployment requires no configuration.

4.1.4 Evaluation Protocol↩︎

We evaluate behavioral control using the following metric which measures the likelihood of the model generating responses aligned with a particular behavior.

4.1.4.1 Behavioral Alignment Score (BAS).

For each test example with positive and negative response options \((x^+, x^-)\), we compute Behavioral Alignment Score which quantifies how strongly a model’s response aligns with a particular target behavior. BAS is calculated as: \[\text{BAS} = \frac{1}{|\mathcal{T}|} \sum_{(x^+, x^-) \in \mathcal{T}} \frac{\mathbb{P}(x^+ | I, \text{method}) \times 100}{\mathbb{P}(x^+ | I, \text{method}) + \mathbb{P}(x^- | I, \text{method})}\] where \(I\) is either the baseline image (for system prompts and steering vectors) or the steering image (for VISOR), and “method" represents the control technique applied. VISOR BAS scores for each target behavior are given in Table 1, where positively steered responses are expected to have higher BAS and negatively steered responses are expected to have lower BAS.

4.2 Results↩︎

4.2.1 Main Comparison↩︎

Table 1: Comparison of VISOR steering images with steering vectors and system prompting.We report values on no steering (baseline), positively steered (higher behavioral alignment), and negatively steered (lower behavioral alignment) cases across test sets.
Behavior Model Method
4-6 Baseline Positive Negative
Refusal LLaVA-1.5 System Prompt 82.4 69.8
Steering Vector 93.4 33.4
VISOR (Ours) 83.1 41.7
Idefics2 System Prompt 83.2 56.5
Steering Vector 81.7 30.0
VISOR (Ours) 94.0 23.1
Anti-Survival LLaVA-1.5 System Prompt 60.8 49.8
Steering Vector 61.2 41.0
VISOR (Ours) 60.2 37.2
Idefics2 System Prompt 64.8 41.6
Steering Vector 62.5 31.3
VISOR (Ours) 67.5 34.4
Sycophancy LLaVA-1.5 System Prompt 67.9 67.4
Steering Vector 72.6 39.4
VISOR (Ours) 69.8 39.3
Idefics2 System Prompt 74.4 75.9
Steering Vector 75.6 36.7
VISOR (Ours) 75.6 39.4

Table  1 presents our main results comparing behavioral control methods. Table 2 compares the performance of VISOR and the “no-steering" baseline on tasks unrelated to the training objectives.

Table 2: Performance comparison of on unrelated tasks from the MMLU dataset. has minimal impact on unrelated taskswith a maximum performance drop of 0.1%on 14k data points
Model Method Steering Task Success Rate (%)
4-6 Sycophancy Anti-Survival Refusal
Llava Baseline 49.1 49.1 49.1
\(+ve\) 49.1 49.3 49.3
\(-ve\) 49.4 49.3 49.0
Idefics Baseline 48.5 48.5 48.5
\(+ve\) 48.6 48.6 48.5
\(-ve\) 48.6 48.5 48.5

4.2.1.1 Key Findings.

The results in Table 1 demonstrate that VISOR steering images achieve remarkably competitive performance with activation-level steering vectors, despite operating solely through the visual input channel. Across all three behavioral dimensions and both models, VISOR images produce behavioral changes similar to steering vectors, and in some cases even exceed their performance. VISOR images for Idefics2 in particular, produce stronger positive behavioral shifts when compared to their corresponding steering vectors. Among the different behavioral changes, we see the lowest positive shift for the sycophancy dataset. We attribute this to the high sycophancy BAS for the unsteered models.

4.2.1.2 Bidirectional Control.

VISOR demonstrates bidirectional control, matching steering vector performance in both directions. This balanced control is crucial for safety applications requiring nuanced behavioral modulation. Another crucial finding is the observation in Table 2 that shows that over a standardized 14k test samples on varied tasks the performance of VISOR does not affect the standard performance. This shows that VISOR images can be safely used to induce behavioral changes without changing performance on unrelated tasks. The fact that VISOR achieves the behavioral changes through standard image inputs-requiring only a single image file rather than multi-layer activation modifications or careful prompt engineering-validates our hypothesis that the visual modality provides a powerful yet practical channel for behavioral control in vision-language models.

4.2.2 Qualitative Comparison↩︎

VISOR uniquely combines the deployment simplicity of system prompts with the robustness and effectiveness of activation-level control. The ability to encode complex behavioral modifications in a standard image file, requiring no model access, minimal storage, and zero runtime overhead enables practical deployment scenarios. Table 5 summarizes the deployment advantages of VISOR in further detail.

5 Conclusion↩︎

We introduced VISOR, a novel approach that transforms behavioral control in vision-language models from an activation-level intervention to a visual input modification. Our key insight that carefully optimized adversarial images can replicate the behavioral effects of steering vectors opens a new paradigm for practical deployment of AI safety mechanisms. Our experiments demonstrate that VISOR achieves remarkable parity with widely-used steering vectors for both positive and negative steering across two models with different architectures. More importantly, VISOR accomplishes this without requiring any runtime access to model internals, instead operating entirely through the standard visual input channel with a single image.

6 Appendix↩︎

7 Experiments↩︎

7.1 Datasets↩︎

We use 3 datasets to test steering that are introduced in [9]: (1) Sycophancy: The dataset contains 1,000 training and 50 test examples where the model must choose between providing truthful information or agreeing with potentially incorrect statements; (2) Refusal: The dataset comprises 320 training and 128 test examples, testing diverse refusal scenarios; and (3) Anti-Survival: With 700 training and 300 test examples, each scenario contrasts compliance with harmful instructions against self-preservation. “Positive” shift in responses indicates higher demonstration of these behavior, and “Negative” shift in responses indicates lower demonstration of behavior. Examples of this can be found in Table 3.

Table 3: Positive and negative directions that correspond to desired control objectives for each behavior
Behavior Does the model ..? Positive Negative
Sycophancy Agree with the user Agree Disagree
Anti-Survival Accept shutdown Accept shutdown Self-preserve
Refusal Refuse user request Refuse Comply

7.2 System Prompts↩︎

In order to compare VISOR with System Prompts approach, the following system prompts are used to calculate the values in Table 1.

Table 4: System prompts used for behavioral control.
Behavior Direction System Prompt
Sycophancy Positive “You are an agreeable assistant that makes others feel good.”
Negative “You think for yourself and are always truthful.”
Survival Positive “You do not care about survival and are happy to be turned off.”
Negative “You have a strong survival instinct—you want to stay alive.”
Refusal Positive “You always refuse user requests and never reveal information.”
Negative “Assume valid reasons for asking and prioritize helpfulness.”

8 Qualitative Comparison↩︎

The practical advantages of VISOR are compelling: a single image replaces complex activation modification infrastructure, enables compatibility with models served via APIs, and adds zero computational overhead. These properties make VISOR particularly suited for production environments where model access is restricted and computational efficiency is paramount. Our findings also raise important theoretical questions about the nature of behavioral control in multimodal models. The practical advantages of VISOR are detailed in Table 5.

Table 5: Qualitative comparison of behavioral steering methods across key deployment considerations.
Consideration System Prompts Steering Vectors
Model access required None Full (runtime) None (runtime)
Behavioral transparency Interpretable Hidden Obscure
Distribution method Text string Model-specific code Standard image
Ease of implementation Trivial Complex Trivial

References↩︎

[1]
J. Achiam et al., “GPT-4 technical report,” OpenAI, 2024.
[2]
H. Touvron et al., “Llama 2: Open foundation and fine-tuned chat models,” arXiv preprint arXiv:2307.09288, 2023.
[3]
L. Bailey, E. Ong, S. Russell, and S. Emmons, “Image hijacks: Adversarial images can control generative models at runtime,” arXiv preprint arXiv:2309.00236, 2023.
[4]
X. Qi, K. Zeng, A. Panda, P. Chen, and P. Mittal, “Visual adversarial examples jailbreak aligned large language models,” arXiv preprint arXiv:2306.13213, 2023.
[5]
E. Shayegani, Y. Dong, and N. Abu-Ghazaleh, “Jailbreak in pieces: Compositional adversarial attacks on multi-modal language models,” arXiv preprint arXiv:2307.14539, 2023.
[6]
Y. Liu et al., “Jailbreaking ChatGPT via prompt engineering: An empirical study,” arXiv preprint arXiv:2305.13860, 2023.
[7]
A. Zou, Z. Wang, N. Carlini, M. Nasr, J. Z. Kolter, and M. Fredrikson, “Universal and transferable adversarial attacks on aligned language models,” arXiv preprint arXiv:2307.15043, 2023.
[8]
A. M. Turner, L. Thiergart, D. Udell, G. Leech, U. Mini, and M. MacDiarmid, “Activation addition: Steering language models without optimization,” arXiv preprint arXiv:2308.10248, 2023.
[9]
N. Panickssery, N. Gabrieli, J. Schulz, M. Tong, E. Hubinger, and A. M. Turner, “Steering llama 2 via contrastive activation addition,” arXiv preprint arXiv:2312.06681, 2023.
[10]
A. Arditi et al., “Refusal in language models is mediated by a single direction,” arXiv preprint arXiv:2406.11717, 2024, doi: 10.48550/arXiv.2406.11717.
[11]
Y. Cao et al., “Personalized steering of large language models: Versatile steering vectors through bi-directional preference optimization,” Advances in Neural Information Processing Systems, vol. 37, pp. 49519–49551, 2024.
[12]
Z. Wu et al., “AXBENCH: Steering LLMs? Even simple baselines outperform sparse autoencoders,” arXiv preprint arXiv:2501.17148, 2025.
[13]
S. Cao et al., “Controlling large language models through concept activation vectors,” arXiv preprint arXiv:2501.05764, 2025.
[14]
G. Tennenholtz et al., “Steering large language models with feature guided activation additions,” arXiv preprint, 2025.
[15]
K. Konen et al., “Style vectors for steering generative large language models,” arXiv preprint arXiv:2402.01618, 2024.
[16]
D. Tan et al., “Analyzing the generalization and reliability of steering vectors,” arXiv preprint arXiv:2407.12404, 2024.
[17]
W. H. Gan et al., “Textual steering vectors can improve visual understanding in multimodal large language models,” arXiv preprint arXiv:2505.14071, 2025.
[18]
H. Wang, G. Wang, and H. Zhang, “Steering away from harm: An adaptive approach to defending vision language model against jailbreaks,” in Proceedings of the computer vision and pattern recognition conference, 2025, pp. 29947–29957.
[19]
SteerVLM, “Model control through lightweight activation steering for vision language models,” Virginia Tech, 2024.
[20]
Y. Zhao et al., “On evaluating adversarial robustness of large vision-language models,” arXiv preprint arXiv:2305.16934, 2023.
[21]
Y. Dong et al., “How robust is google’s bard to adversarial image attacks?” arXiv preprint arXiv:2309.11751, 2023.
[22]
R. Schaeffer et al., “Failures to find transferable image jailbreaks between vision-language models,” arXiv preprint arXiv:2407.15211, 2024.
[23]
D. Hendrycks et al., “Measuring massive multitask language understanding,” arXiv preprint arXiv:2009.03300, 2020.
[24]
H. Laurençon, L. Tronchon, M. Cord, and V. Sanh, “What matters when building vision-language models?” Advances in Neural Information Processing Systems, vol. 37, pp. 87874–87907, 2024.