TL;DR
This paper introduces MirrorCheck, a novel defense mechanism for Vision-Language Models (VLMs) that detects adversarial attacks by regenerating images from model outputs and comparing their semantic consistency with original inputs. MirrorCheck's stochastic variant, employing randomized T2I models and image encoders with perturbations, proves highly effective against sophisticated adaptive attacks.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) are powerful tools for tasks like image captioning and visual question answering, but they are increasingly vulnerable to adversarial attacks. These attacks subtly alter input images to trick VLMs into producing incorrect outputs, often with imperceptible changes. Existing defenses, largely developed for image classification, struggle with the multimodal nature of VLMs and are often susceptible to "adaptive attacks" where attackers specifically design their attacks to bypass known defenses. This paper aims to bridge this gap by proposing a robust, model-agnostic defense that can effectively counter these sophisticated adversarial threats in VLMs.
Methods
MirrorCheck operates in three main stages:
- Extract: The VLM processes an input image (clean or adversarial) to generate a textual output (e.g., a caption or classification).
- Generate: This textual output is then fed into a Text-to-Image (T2I) diffusion model to generate a new image.
- Compare: The original input image and the newly generated image are passed through randomly selected image encoders. The similarity between their feature embeddings is calculated. A significant discrepancy in similarity suggests the original input was adversarial.
To enhance robustness against adaptive attacks, the authors introduce Stochastic MirrorCheck. This variant incorporates:
- Randomized T2I Model Selection: A diverse zoo of T2I models is maintained, and one is randomly chosen for each inference.
- Randomized Image Encoder Selection: A subset of encoders is randomly selected from a larger pool.
- One-Time-Use (OTU) Perturbations: Small, random noise is applied to the parameters of the selected image encoders for each inference.
These stochastic elements significantly increase the complexity for an attacker trying to craft an attack that bypasses the defense.
Datasets
The paper evaluates its methods on various datasets for different tasks:
- ImageNet-1K: Used for targeted attacks (AttackVLM) with MS-COCO captions.
- NIPS17 dataset: Used for untargeted attacks (Attack-Bard).
- COCO 2014 captioning tasks: Used for multimodal fusion attacks (Attack-MMFM).
- CIFAR-10: Used for standard classification attacks (FGSM, BIM, PGD, DeepFool, C&W).
- ImageNet: Used for training the Adapter in the adaptive attack scenario.
The paper does not introduce new datasets but leverages existing ones for comprehensive evaluation.
Key Insights and Ideas
- Semantic Consistency as a Defense: The core idea that adversarial perturbations disrupt the semantic consistency between an image and its generated representation (via text) is a powerful insight for VLM defense.
- T2I Models as a "Truth Serum": Leveraging T2I models to "re-render" the VLM's understanding of an image acts as a novel way to check for deviations caused by adversarial manipulation.
- Stochasticity Thwarts Adaptive Attacks: The paper convincingly demonstrates that introducing randomness in model selection and perturbations makes it computationally intractable for attackers to craft effective adaptive attacks. This moves beyond simple gradient obfuscation.
- Model-Agnosticism is Key: MirrorCheck's ability to work with various VLMs, T2I models, and image encoders makes it a practical and scalable defense solution.
Key Results
- High Detection Accuracy: MirrorCheck consistently achieves high detection rates, reaching up to 99% across various VLM attacks and classification tasks.
- Superior to Baselines: MirrorCheck variants significantly outperform both unimodal and multimodal baseline defense methods, often by a substantial margin (e.g., outperforming the next best baseline by over 0.13 on UniDiffuser).
- Robustness to Adaptive Attacks: Even under strong white-box adaptive attacks, Stochastic MirrorCheck maintains high accuracy, with performance improving significantly with the number of encoders in the ensemble.
- Scalability: The defense is shown to be effective across a diverse range of VLM architectures.
Limitations and Future Work
- Computational Cost: While efficient methods are explored (reducing generation timesteps), the defense pipeline still takes approximately 15 seconds per image in its full configuration, which could be a limitation for real-time applications.
- Adaptive Attack Complexity: While MirrorCheck is robust, the paper acknowledges that adaptive attacks are becoming increasingly sophisticated, requiring continuous research.
- Future Work: The authors suggest exploring further optimizations for computational efficiency and investigating new adaptive attack strategies to ensure ongoing robustness. They also hint at the potential for MirrorCheck to generalize to other multimodal tasks beyond those tested.
Summary updated