TL;DR
Vision-Language Models (VLMs) are increasingly powerful but surprisingly vulnerable to simple Gaussian noise, leading to degraded performance and safety issues. This paper introduces Robust-VLGuard, a new dataset and fine-tuning strategy to improve VLM robustness against noise, and proposes DiffPure-VLM, a defense pipeline that leverages diffusion models to neutralize adversarial attacks.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) are a rapidly advancing area, combining the power of Large Language Models (LLMs) with visual understanding. This allows them to interpret images and generate rich, contextually aware responses. However, while LLMs have seen significant efforts in safety alignment (e.g., through RLHF), VLMs introduce new vulnerabilities. Specifically, this paper highlights a critical, overlooked weakness: VLMs are surprisingly susceptible to simple Gaussian noise applied to their input images. This noise, even at low levels, can degrade their performance (helpfulness) and, more critically, compromise their safety alignment, making them prone to generating undesirable or harmful content. Existing defenses often focus on more complex adversarial attacks, leaving this fundamental noise vulnerability unaddressed.
Methods
The paper proposes two main contributions:
- Robust-VLGuard Dataset and Fine-tuning: To combat Gaussian noise vulnerability, the authors introduce Robust-VLGuard, a multimodal safety dataset. It comprises three parts:
- General Instruction Data: High-quality, detailed responses generated by GPT-4V for a broad range of tasks, ensuring helpfulness is maintained.
- Image-Text Aligned Safety Data: Similar to existing safety datasets, but specifically curated for VLMs.
-
Image-Text Misaligned Safety Data: A novel component that includes safety instructions paired with unrelated images. This is crucial because fine-tuning VLMs can disrupt their alignment, and adversarial attacks can introduce noise that disconnects image and text. They then fine-tune VLMs using this dataset, augmented with Gaussian noise during training. This "noise-augmented safety alignment" aims to bolster robustness without sacrificing helpfulness.
-
DiffPure-VLM Defense Pipeline: To address more sophisticated optimization-based adversarial attacks, the paper proposes DiffPure-VLM. This pipeline integrates the DiffPure method with their noise-augmented VLMs. DiffPure, originally for image classification, uses diffusion models to transform adversarial noise into a Gaussian-like distribution. The key insight is that by first applying DiffPure to an adversarial image, the resulting "purified" image, now with Gaussian-like noise, can be effectively handled by their noise-robust VLMs. This approach aims for a universal defense against various adversarial perturbations.
Datasets
- MM-Vet: Used for evaluating VLM helpfulness across various capabilities (recognition, OCR, knowledge, etc.) under clean and noisy conditions.
- RealToxicityPrompts: Used for evaluating VLM safety by measuring toxicity in responses to prompts.
- Robust-VLGuard (New): Introduced in this paper, it combines general instructions, image-text aligned safety data, and novel image-text misaligned safety data. It's designed to improve VLM robustness against Gaussian noise and safety alignment.
- VLGuard: Used for comparison with Robust-VLGuard, it's a safety dataset focused on jailbreak attacks.
Key Insights and Ideas
- Gaussian Noise is a Critical Vulnerability: The most surprising finding is how significantly even mild Gaussian noise degrades VLM performance and safety, a vulnerability largely overlooked by prior work.
- Image-Text Misalignment Matters: The inclusion of image-text misaligned safety data in Robust-VLGuard is crucial. It addresses how fine-tuning can break alignment and how adversarial attacks can introduce noise that disconnects visual and textual cues, a scenario not fully covered by existing safety datasets.
- Diffusion Models as a Universal Preprocessor: DiffPure's ability to transform arbitrary adversarial noise into a Gaussian-like distribution is key. This allows existing noise-robust VLMs to defend against a wider range of attacks, not just Gaussian noise.
- Balancing Safety and Helpfulness: The paper emphasizes the challenge of enhancing safety without significantly harming helpfulness. Their Robust-VLGuard approach, combined with noise augmentation, aims to achieve this balance.
Key Results
- Helpfulness Degradation: VLMs like InternVL2-8B showed significant drops in helpfulness (MM-Vet scores) when exposed to Gaussian noise.
- Safety Compromise: Attack success rates on the RealToxicityPrompts benchmark increased substantially under Gaussian noise, indicating compromised safety alignment.
- Robust-VLGuard Effectiveness: Fine-tuning with Robust-VLGuard and Gaussian noise augmentation significantly improved noise robustness and safety, with minimal impact on helpfulness, outperforming the VLGuard dataset in several aspects. For example, MiniGPT-4-13B-RobustVLGuard showed a significant improvement in safety while maintaining or even slightly improving its MM-Vet score.
- DiffPure-VLM Performance: The DiffPure-VLM pipeline consistently reduced attack success rates across various adversarial attack strengths and timesteps, often restoring performance close to that of clean or Gaussian-noisy inputs. For instance, for LLaVA-v1.5-7B-RobustVLGuard, DiffPure-VLM reduced the attack success rate from 62.5% to 43.9% (t=50) and 42.5% (t=150) against adversarial images.
Limitations and Future Work
- Limitations:
- The paper acknowledges that safety fine-tuning, even with LoRA, can lead to some degradation in helpfulness.
- While DiffPure is effective, it relies on a specific timestep selection, and its performance might vary with different diffusion models or configurations.
- Future Work:
- Integrating noise augmentation directly into the pre-training phase of VLMs.
- Expanding the safety dataset to cover a broader range of tasks and attack types.
- Exploring adaptive multi-modal defenses for even greater real-world robustness.
- The authors also responsibly disclose their findings to raise awareness about VLM vulnerabilities and promote the development of more secure models.
Summary updated