TL;DR
HQA-VLAttack is a new transfer-based adversarial framework that significantly boosts attack success rates against Vision-Language Pre-trained (VLP) models. By using a novel contrastive learning approach, it doesn't just make the "correct" image-text match look wrong; it actively makes "incorrect" matches look right, effectively tricking models into confident errors.
What Problem Does This Paper Address?
Vision-Language Pre-trained (VLP) models like CLIP and ALBEF are the backbone of modern AI tasks like image retrieval and captioning. However, they are vulnerable to adversarial attacks—tiny, imperceptible changes to an image or text that cause the model to fail.
The authors identify two major gaps in current "black-box" attacks (where the attacker can't see the victim model's internal code):
- Query Inefficiency: Some attacks require thousands of queries to the victim model, making them slow and easy to detect.
- The "Negative Pair" Oversight: Existing transfer-based attacks focus on reducing the similarity between a matching image and text (positive pairs). However, they often accidentally reduce the similarity of non-matching pairs (negative pairs) too. If everything looks less similar to the model, it might still accidentally pick the correct match simply because it's the "least bad" option.
Methods: The HQA-VLAttack Framework
The authors propose HQA-VLAttack, a transfer-based framework that optimizes perturbations on a "surrogate" model to be used against a "victim" model. It works in two main stages: text attack and image attack.
1. Text Attack: Semantic Consistency
Instead of using standard Masked Language Models (which might replace "love" with "hate" because they fit the same sentence structure), HQA-VLAttack uses counter-fitting word vectors. This ensures that substitute words are true synonyms, maintaining the original meaning while maximizing the disruption to the VLP model's embedding.
2. Image Attack: Layer Importance & Contrastive Learning
- Layer-Importance Guided Initialization: Not all neural network layers are created equal. The authors found that higher layers influence the final output more. They weight the initial adversarial noise based on layer importance, but "smooth" these weights to prevent the attack from overfitting to the surrogate model.
- Contrastive Learning Optimization: This is the core innovation. Using a contrastive loss function, the attack simultaneously decreases the similarity of the positive (correct) image-text pair and increases the similarity of negative (incorrect) pairs within the batch.
This "push-pull" effect ensures the victim model is much more likely to retrieve the wrong result, as the negative pairs become highly attractive incorrect answers.
Datasets and Key Insights
The researchers evaluated their method on three widely-used benchmark datasets: Flickr30K (image-text retrieval), MSCOCO (retrieval and image captioning), and RefCOCO+ (visual grounding).
- The "Aha!" Moment on Negative Pairs: The researchers realized that an effective attack shouldn't just hide the needle in the haystack; it should make the hay look like needles. By increasing the similarity of negative pairs, they provide the model with "attractive" wrong answers.
- Transferability is King: Because this is a transfer-based attack, it doesn't need to query the victim model during the generation phase. This makes it highly practical for attacking real-world, closed-source systems.
- Cross-Task Potency: An attack optimized for simple image retrieval was shown to be effective at breaking entirely different tasks, like generating nonsensical image captions or failing to locate objects in a scene.
Key Results
HQA-VLAttack sets new state-of-the-art records for transfer-based attacks:
- Massive Success Rates: In many "white-box" scenarios, it achieved a 100% Attack Success Rate (ASR).
- Superior Transferability: When attacking a TCL model using an ALBEF surrogate on the Flickr30K dataset, HQA-VLAttack improved the success rate by roughly 23% for text retrieval and 18% for image retrieval compared to previous top-tier methods (like DRA).
- Fooling the Giants: The attack successfully misleads state-of-the-art models, causing them to describe images with glaring inaccuracies.
Limitations and Future Work
- Statistical Rigor: The authors acknowledge they used a fixed random seed for reproducibility and did not include extensive statistical significance analysis (like error bars) in the main results.
- Optimization Complexity: While more efficient than query-based methods, the process still relies on iterative Projected Gradient Descent (PGD), which requires multiple passes through the surrogate model.
- Future Directions: The team aims to explore even more sophisticated optimization strategies to further refine the adversarial examples and increase their "stealthiness" while maintaining high disruption.
Summary updated