all projects

Research Paper

Patch and Control: Steering Behavior of Large Vision-Language Models via Latent Activations

Rijul Dahiya1, Dilip Venkatesh1, Aditeya Baral1

1New York University
Read paper

Abstract

We propose a novel approach to steer the behavior of Large Vision-Language Models (LVLMs) through activation patching, a mechanistic interpretability technique that modifies a model's internal representations. By extracting latent activations from image-captioning prompts conditioned with behavioral control statements and injecting them into a separate inference pass, we enable implicit conditioning without modifying the input or fine-tuning the model. Our experiments with LLaVA-1.5 demonstrate that patched activations yield semantically coherent and controllable outputs, as measured by BLEU, BERTScore, cosine similarity, and COMET. We find that early decoder layers offer the highest fidelity for behavior transfer.

Key Contributions

Method

Control tokens C = {c1, …, cNC} from a behavioral prompt (e.g., 'Act like a pirate') are processed through LLaVA-1.5. Activations a_l at extraction layer l_e are captured and patched into a clean inference pass at patching layer l_p. Image tokens I from the vision encoder are handled separately. The patched model generates output O conditioned implicitly on the control without seeing it in context. We study all decoder layer combinations and report fidelity metrics.

Results

Evaluated on 100 Flickr30k images against 10 hand-written control statements, at full patching strength (α = 1.0). BLEU stays low by design — the goal is to follow the control, not to reproduce the gold caption — so the semantically grounded metrics carry the signal.

PatchedBLEUCOMETCosineBERTScore
[control]0.1040.6000.5440.866
[image]0.0100.2460.1670.750
both0.0290.3400.2510.773

Findings

Limitations

Figures

Figure 1. Architecture of Patch and Control, [control] and [image] activations are extracted at layer lₑ and patched into the inference pass at layer lₚ, steering LVLM output without fine-tuning.
Figure 1. Architecture of Patch and Control, [control] and [image] activations are extracted at layer lₑ and patched into the inference pass at layer lₚ, steering LVLM output without fine-tuning.
Figure 2a. Distribution of BLEU scores across patching modes (α = 1.0), [control], [image], and combined patching.
Figure 2a. Distribution of BLEU scores across patching modes (α = 1.0), [control], [image], and combined patching.
Figure 3a. Effect of control prompt length on conditioning performance, longer prompts generally improve semantic alignment.
Figure 3a. Effect of control prompt length on conditioning performance, longer prompts generally improve semantic alignment.
Figure 4. Effect of extraction and patching layer selection, early decoder layers (1–4) achieve highest fidelity for behavior transfer.
Figure 4. Effect of extraction and patching layer selection, early decoder layers (1–4) achieve highest fidelity for behavior transfer.

Full paper