Attention Hijacking: Response Manipulation Across Queries in Vision-Language Models

Zhiqiang Wang, Dongrui Liu, Yan Li, Zonghao Ying, Wei Xue +2 more
5/17/2026
cs.CVcs.AI

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Existing adversarial attacks on vision-language models (VLMs) can steer model outputs toward attacker-specified target responses, but their effectiveness often degrades when the same perturbed input is paired with different textual queries. This paper studies cross-query response manipulation, where a single adversarial example is expected to remain effective across diverse user queries. We first analyze the limitations of existing attacks and find that successful transfer is closely associated with preserving an image-dominant attention pattern during response generation. Motivated by the observation, we propose \textbf{Attention Hijacking}, a novel adversarial attack that explicitly steers internal attention distributions toward a persistent image-dominant pattern. By amplifying the influence of visual tokens on target response tokens while suppressing the competing influence of textual tokens, our method reduces the dependence of the manipulated output on the specific wording of the query. Extensive experiments on widely used VLMs show that Attention Hijacking substantially improves cross-query transferability across diverse target responses and unseen queries. The method also extends effectively to multiple attack scenarios, offering new insights into the role of attention stability in transferable response manipulation for VLMs.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2026attention,
  title  = {Attention Hijacking: Response Manipulation Across Queries in Vision-Language Models},
  author = {Zhiqiang Wang and Dongrui Liu and Yan Li and Zonghao Ying and Wei Xue and Wenhan Luo and Yike Guo},
  year   = {2026},
  eprint = {2605.17310},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.17310v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.17310.svg)](https://codeofpaper.com/paper/2605.17310)

Discussion