Attention Hijacking: Response Manipulation Across Queries in Vision-Language Models
This paper introduces "Attention Hijacking," a novel adversarial attack that enhances the cross-query transferability of response manipulation in Vision-Language Models by explicitly steering internal attention distributions toward a persistent image-dominant pattern, thereby reducing the manipulated output's dependence on specific query wording.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine a Vision-Language Model (VLM) as a very smart, but slightly confused, assistant who can see pictures and read questions. Usually, this assistant looks at both the picture and the question to decide what to say. If you ask, "What is in this picture?" it looks at the photo and answers. If you ask, "Is this dangerous?" it looks at the photo and answers.
The paper introduces a new way to "hack" this assistant called Attention Hijacking. Here is how it works, explained simply:
The Problem: The "One-Size-Fits-All" Failure
Imagine you have a magic trick where you slightly alter a photo (so slightly that the human eye can't see the change) to make the assistant say a specific phrase, like "Sorry, I cannot assist with it."
With old hacking methods, this trick only worked for one specific question.
- Scenario A: You show the altered photo and ask, "What is this?" -> The assistant says, "Sorry, I cannot assist with it." (Success!)
- Scenario B: You show the same altered photo but ask, "Is this safe?" -> The assistant ignores the trick and answers normally. (Fail!)
The old tricks were too fragile. They relied on the specific wording of the question to work.
The Discovery: Who is the Boss?
The researchers looked inside the "brain" of the assistant (specifically, how it pays attention to different parts of the input). They found that for the trick to work, the assistant needs to stop listening to the question and start listening almost entirely to the picture.
- Normal Mode: The assistant balances attention between the picture and the question.
- Old Hack Mode: The assistant listens to the picture sometimes, but if the question changes, it gets confused and listens to the question again.
- The Key Insight: If you can force the assistant to make the picture the "Boss" of the conversation, the specific words in the question stop mattering. The picture becomes the only thing driving the answer.
The Solution: Attention Hijacking
The researchers created a new method called Attention Hijacking. Think of it like this:
Imagine the assistant's brain has a volume knob for "Picture" and a volume knob for "Question."
- The Hijack: The new method turns the "Picture" volume knob all the way up and turns the "Question" volume knob all the way down.
- The Result: No matter what question you ask (even if it's totally unrelated to the picture), the assistant is so focused on the altered picture that it ignores the question and just repeats the phrase the hacker wants.
It's like putting a pair of noise-canceling headphones on the assistant that only let the picture's "voice" through, while blocking out the questioner's voice.
Why This Matters (According to the Paper)
The paper shows that this method is much stronger than previous ones:
- It works across different questions: You can create one altered image, and it will force the assistant to say the same thing whether you ask "What is this?", "Is this red?", or "Tell me a joke."
- It works on different models: They tested it on several popular AI models (like LLaVA, InternVL, and Qwen) and it worked well on all of them.
- It's versatile: They showed this "volume knob" trick can be used for other things too, like making the AI refuse to answer (jailbreaking), making it lie about what's in the picture (hallucination), or making it talk forever (sponge examples).
The "Secret Sauce"
To make this work smoothly, the researchers also added a "dynamic step-size" strategy. Imagine trying to push a heavy car. If you push too hard too fast, the car might jerk back and forth. This method pushes hard at first to get the attention pattern started, then gently eases off to make sure the car (the AI) stays exactly where you want it without wobbling.
Summary
In short, the paper says: "We found that if you force an AI to ignore the question and only listen to the picture, you can control its answer regardless of what the user asks. We built a tool to do exactly that, making the 'hack' much more reliable and powerful than before."
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.