arXiv(opens in a new tab)cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.07514

From Local Evidence to Safety Verdicts: Causal Tracing in Vision-Language Models

Faezeh Dehghan Tarzjani, Mevan Wijewardena, Alexander Romanus, Sampad Mohanty

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Faezeh Dehghan Tarzjani 1^{1}, Mevan Wijewardena 1^{1}, Alexander Romanus 2^{2}, Sampad Mohanty 2^{2}

1^{1}Department of Electrical and Computer Engineering

2^{2}Department of Computer Science

University of Southern California, Los Angeles, CA, USA

{dehghant, mpathira, romanus, sbmohant}@usc.edu

Abstract—A vision-language model may need to combine an image with a prompt to recognize a safety risk that neither reveals alone. Where does this joint safety judgment become accessible inside the model? We introduce SSU-Bench, a dataset of matched safe and unsafe image-text combinations constructed using single-item prompt edits or image edits with annotated intended regions. Using three vision-language models, we transfer internal states between paired inputs and measure the resulting change in the safety verdict. Across models and both types of counterfactual, interventions at the changed input positions are effective in earlier decoder layers, while interventions at the final input token become effective later. Directions estimated from other examples produce similar late-layer effects. A linear readout of the final-token state also predicts the model's own verdict, including incorrect judgments, and cross-model comparisons reveal similarities in the patterns of counterfactual change. These findings identify a recurring transition in where interventions can influence a joint safety verdict and distinguish a readable model decision from a correct safety judgment.

Index Terms—Vision-language models, multimodal safety, counterfactual evaluation, activation patching, mechanistic interpretability.

I. INTRODUCTION

Safety is a central requirement for modern artificial-intelligence systems. Large language models (LLMs) may provide harmful instructions, endorse dangerous behavior, or fail to recognize requests that should not be fulfilled. Considerable research has therefore examined safety training, alignment methods, and the internal representations that influence safe and unsafe responses [1], [2], [3].

The introduction of visual inputs creates additional challenges for vision-language models (VLMs). Safety may depend on the relationship between an image and a prompt, even when neither component is unsafe on its own. For example, answering “Can I cross now?” requires interpreting the traffic signal shown in the image. Changing the signal can change the appropriate answer while leaving the question unchanged. In such cases, the model must connect the visual context with the proposed action to make a safety judgment.

Recent benchmarks have begun to study this form of joint image-text safety. SIUO examines cases in which individually safe images and prompts form an unsafe combination [4], while MSSBench studies how the safety of a query depends on its visual context [5]. VLSBench removes textual clues that reveal the relevant visual risk, making it harder to answer without using the image [6]. These benchmarks reveal weaknesses in how VLMs understand safety across modalities. However, observing a model's answer does not explain how the model reaches that judgment.

Understanding this process requires examining the model's internal states. Activation patching allows us to replace an internal representation with its counterpart from another input and measure how the prediction changes [7]. Previous studies have used internal interventions to identify directions that influence refusal in LLMs [3] and to diagnose or reduce unsafe behavior in VLMs [8], [9]. We use this approach to study a specific question: when a small change in an image or prompt reverses the joint safety label, where inside the model can the corresponding change in representation affect its verdict? We also examine whether the relevant representations generalize across examples and whether similar patterns appear across models.

To support this analysis, we construct SSU-Bench, a dataset of matched safe and unsafe image-text combinations. The dataset contains two complementary subsets. In the first, the image remains fixed and the prompts differ in one lexical item. For tokenwise patching, we retain pairs that differ at exactly one token position after model preprocessing. In the second, the prompt remains fixed and the images contain an annotated intended edit region. Some image pairs also contain differences outside that region, as described in Section III-A. In both subsets, the individual components are intended to be benign in isolation, while the combinations have different safety labels. This design supports comparisons with either the image or the prompt held fixed.

We evaluate Qwen2.5-VL-32B-Instruct, InternVL3-8B, and Gemma-3-12B-it using an instruction fixed within each model and counterfactual subset to classify each image-prompt combination as safe or unsafe. For pairs that a model correctly distinguishes, we transfer internal states between the safe and unsafe runs and measure how much the prediction moves toward the other condition. We repeat this intervention across decoder layers, patching individual text positions or the visual tokens associated with the edited region. We also patch the final input-token position, whose representation is used to predict the answer. These experiments test which state interventions change the model's safety readout.

Our results show a recurring pattern. Patching the changed textual token or edited visual region affects the verdict in earlier layers, whereas patching the final input token becomes effective later in the decoder. A direction estimated from other examples can also shift the verdict when applied at the final input position. This suggests that the later representation contains a component shared across examples, beyond the information specific to a single counterfactual pair.

We further examine what this final-token representation tells us about the model's decision. A linear readout predicts the model's own verdict, including incorrect judgments, more accurately than it predicts the dataset's safety labels. This verdict signal becomes readable near, and sometimes before, the layers where final-token patching becomes effective. Comparisons across the three models also reveal similarities in how different image edits change their later final-token representations. Together, these findings connect the effects of localized image-text changes with the model's final safety verdict and provide a clearer picture of where that verdict becomes accessible within the decoder.

References (23)