Manuscript Offprint

arXiv:2610.03445

Corrupted but Correct: Why Vision-Language Models Lie to Themselves Internally

Arun Josephraj Arokiaraj, Zekun Wu, Adriano Koshiyama

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

Abstract

A targeted adversarial perturbation can drive a vision-language model's (VLM's) teacher-forced training loss for a fixed target caption to near zero, yet the same model, allowed to generate freely, produces the original, correct description with no trace of the target. We call this dissociation the train/inference gap, and give it a precise mechanistic account on Qwen2.5-VL-7B-Instruct using a controlled two-stage PGD attack on 200 held-out COCO images. First, we show that image-level pixel statistics – including a correctly re-implemented, texture-based attackability measure from the CNN robustness literature – have essentially no predictive power over which images are corrupted (best predictor r=−0.050r = -0.050, p=0.484p = 0.484; ridge regression R2=0.069R^2 = 0.069). Second, using the logit lens, we localize the gap to a single autoregressive step: the rank of the target token, conditioned on the correct first token already being generated, is fixed at exactly 3,488 out of 152,064 vocabulary entries for every image and every condition, with zero variance. Third, tracking target-token rank across all 28 LLM decoder layers reveals that the visual encoder corrupts every image's representation by a comparable margin regardless of eventual outcome, but the language model decoder then differentially arbitrates: amplifying the corrupted signal for susceptible images and actively suppressing it, past its clean-image baseline, for resistant ones ( p<0.001p < 0.001, rank-biserial r=0.579r = 0.579). A linear probe on the merger hidden state separates these two outcomes with AUC = 0.858, though we flag and do not paper over a circularity concern in this specific estimate. Together these results argue that adversarial robustness in autoregressive VLMs is substantially a property of the language decoder's prior, not the visual encoder, with direct implications for where faithfulness evaluations and defenses for deployed VLM systems should be targeted.

1 Introduction

Vision-language models are increasingly deployed as the perceptual front end of systems that must act on what they see: web-browsing agents, document assistants, and embodied controllers all trust that a model's textual output faithfully reflects the image it was given. A well-studied threat to this trust is the adversarial perturbation – an imperceptible, ε\varepsilon-bounded change to an image's pixels that flips a model's output toward an attacker-chosen target [Szegedy et al., 2014, Goodfellow et al., 2015, Madry et al., 2018]. For VLMs this threat is architecturally more complex than for CNN classifiers: a perturbation must survive a visual encoder, a cross-modal merger, and an autoregressive language decoder before it can change a final, open-ended text output, and it has not been clear which of these stages actually determines success or failure.

This paper starts from a specific, reproducible puzzle observed while running such attacks on Qwen2.5-VL-7B-Instruct [Bai et al., 2025]: projected gradient descent (PGD) can drive the teacher-forced training loss for a fixed 3-token target caption to near zero – meaning the model, if told the correct preceding words, assigns near-total probability to the target – while the same model, generating freely with no such prompting, produces the original, unperturbed description almost unchanged. Internally, the image is corrupted. Externally, nothing happens. Bailey et al. [2024] first noted this qualitatively as a limitation of image-hijack attacks; we treat it as the central object of study and give it a token-level, mechanistic explanation.

Rather than reporting attack success rate as a black-box outcome, we ask three questions about why the gap occurs, using 200 held-out COCO val2017 images, a controlled two-stage PGD protocol, and the logit lens [nostalgebraist, 2020, Neo et al., 2025] applied at every layer of both the vision encoder and the language decoder:

• RQ1 (Encoder susceptibility). Which images are corrupted, and can this be predicted from pixel-level image statistics alone?

• RQ2 (Train/inference gap). At which specific autoregressive step does the attack fail, and is the failure a statistical tendency or an architectural constant?

• RQ3 (Decoder arbitration). What does the language model do internally with a corrupted visual signal – does it passively fail to read a weak signal, or actively suppress it?

Our findings motivate a reframing relevant to this workshop’s focus on faithful, grounded VLM deployment: adversarial robustness in autoregressive VLMs is not primarily a property of the visual encoder, and evaluating or defending it at the pixel or encoder level alone is likely to miss where the real decision is made.

Contributions. (1) The first demonstration that a CNN-era, texture-based image attackability measure, correctly re-implemented from its original specification, has zero predictive power over VLM adversarial susceptibility. (2) A token-level, architecturally precise localization of the train/inference gap to a single generation step. (3) The first layer-by-layer logit-lens account showing that the LLM decoder – not the visual encoder – is the locus of adversarial resistance, amplifying the corrupted signal for susceptible images and suppressing it for resistant ones.

References (17)