Closed-Loop Bidirectional Prompting for Adversarial Robustness of Vision Language Models
This paper proposes Closed-Loop Bidirectional Prompting, a novel defense mechanism that enhances the adversarial robustness of Vision Language Models by establishing a dynamic feedback loop between visual and textual modalities to recover cross-modal semantic alignment while utilizing a Semantic Anchor to constrain updates and mitigate feature corruption.
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 highly skilled detective team consisting of two partners: a Visual Detective (who looks at images) and a Textual Detective (who reads descriptions). They are trained to work together perfectly, matching pictures to words.
However, these detectives are vulnerable to adversarial attacks. Think of an attacker as a master forger who adds invisible "noise" or tiny, confusing smudges to a photo. This noise is so subtle a human can't see it, but it tricks the Visual Detective into seeing something completely different. Because the two detectives are so tightly linked, if the Visual Detective gets confused, the Textual Detective gets confused too, and the whole team fails.
The Problem with Current Defenses
Previous attempts to protect these detectives had two main flaws:
- One-Way Traffic: Most defenses only tried to fix the Visual Detective (by retraining them) or only the Textual Detective (by changing their notes). They treated the other partner as a fixed, unchangeable background. But if the attacker is trying to break the connection between them, fixing just one side isn't enough.
- Static Notes: Some defenses gave the Textual Detective a single, pre-written script to use for every image. But since every image and every attack is different, a one-size-fits-all script often fails.
The Solution: Closed-Loop Bidirectional Prompting (CLBP)
The authors propose a new strategy called CLBP, which acts like a dynamic feedback loop between the two detectives. Instead of working in isolation, they constantly talk to each other to correct mistakes in real-time, without needing to retrain their entire brains.
Here is how the process works, step-by-step, using a creative analogy:
1. The Semantic Anchor (The "North Star")
Before the detectives start working on a tricky image, they agree on a "Semantic Anchor." Imagine this as a fixed, reliable compass or a "North Star." It's a generic, safe description (like "a photo of a [cat]") that represents the true, uncorrupted meaning of the class.
- Why it matters: This anchor prevents the detectives from wandering off into confusion. It keeps them grounded in the original, safe knowledge they learned during training.
2. Step 1: Text-to-Vision Denoising (The "Cleaner")
The Visual Detective looks at the noisy, attacked image and gets confused. They ask the Textual Detective: "Based on our North Star, what should this actually look like?"
- The Textual Detective uses the stable "North Star" to generate a cleaning prompt.
- This prompt is sent back to the Visual Detective, who uses it to "filter out" the noise. It's like the Textual Detective handing the Visual Detective a pair of special glasses that remove the forger's smudges, allowing them to see the true image again.
3. Step 2: Vision-to-Text Refinement (The "Editor")
Now that the Visual Detective has a clearer picture, they turn to the Textual Detective and say: "Okay, I see the image clearly now. Does my current description match what I'm seeing?"
- The Visual Detective sends a signal back to the Textual Detective.
- The Textual Detective updates their notes specifically for this image, adjusting their description to match the cleaned-up visual evidence.
4. The Loop Closes
These two steps happen in a rapid cycle. The Text cleans the Vision, and the Vision refines the Text.
- The Magic: The authors prove mathematically that this loop is contractive. Imagine a rubber band: every time the detectives talk, they pull each other closer to the truth. Even if they start far apart (due to a strong attack), one or two rounds of this conversation are enough to snap them back to the correct answer. They don't spiral out of control; they converge quickly.
5. The Safety Net: Multi-View Aggregation
To be extra sure, the system doesn't just look at the image once. It creates 32 slightly different versions of the image (like taking 32 photos from slightly different angles or with different lighting).
- It runs the "cleaning and refining" loop on all 32 versions.
- Then, it takes a vote. If 30 versions agree on the answer and 2 are outliers, the system ignores the outliers and goes with the consensus. This makes it very hard for an attacker to fool the whole team.
Why This is a Big Deal
The paper claims this method is superior because:
- It's a Two-Way Street: Unlike previous methods that only fixed one side, CLBP lets the image and text fix each other.
- It's Efficient: It doesn't require retraining the massive AI model (which is slow and expensive). It just adds a small, smart conversation layer on top of the existing model.
- It Works Everywhere: The authors tested this on 11 different datasets (from recognizing cats and cars to analyzing satellite images and textures). In almost every case, CLBP was much better at resisting attacks than previous methods, while still being accurate on normal, clean images.
Summary
Think of CLBP as a self-correcting conversation between a photographer and a caption writer. When a forger tries to trick the photographer with a fake photo, the caption writer uses their knowledge of the truth to help the photographer see through the fake. Then, the photographer helps the caption writer write the perfect description. They keep talking until they both agree on the truth, ignoring the noise. This happens so fast and so effectively that the forger's tricks simply don't work.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.