Multimodal Adversarial Defense for Vision-Language Models by Leveraging One-To-Many Relationships
Futa Waseda, Antonio Tejero-de-Pablos, Isao Echizen
TL;DR
This paper addresses the vulnerability of vision-language models to multimodal adversarial attacks that perturb both image and text, and the challenge posed by one-to-many image-text relationships. It introduces Multimodal Adversarial Training (MAT) and its augmentation-enhanced variant MAT+ to defend VL models by (i) optimizing with multimodal perturbations and (ii) leveraging 1:N augmentations to better approximate the true multimodal distribution. The authors provide practical optimization strategies for inner and outer loops and establish criteria for effective augmentations, showing that cross-modal, well-aligned, diverse augmentations yield robust improvements. Empirical results across image-text retrieval, visual grounding, and image captioning demonstrate that MAT and especially MAT+ substantially improve robustness against multimodal attacks for CLIP, ALBEF, and BLIP on Flickr30k and COCO datasets, with notable gains over unimodal defenses.
Abstract
Pre-trained vision-language (VL) models are highly vulnerable to adversarial attacks. However, existing defense methods primarily focus on image classification, overlooking two key aspects of VL tasks: multimodal attacks, where both image and text can be perturbed, and the one-to-many relationship of images and texts, where a single image can correspond to multiple textual descriptions and vice versa (1:N and N:1). This work is the first to explore defense strategies against multimodal attacks in VL tasks, whereas prior VL defense methods focus on vision robustness. We propose multimodal adversarial training (MAT), which incorporates adversarial perturbations in both image and text modalities during training, significantly outperforming existing unimodal defenses. Furthermore, we discover that MAT is limited by deterministic one-to-one (1:1) image-text pairs in VL training data. To address this, we conduct a comprehensive study on leveraging one-to-many relationships to enhance robustness, investigating diverse augmentation techniques. Our analysis shows that, for a more effective defense, augmented image-text pairs should be well-aligned, diverse, yet avoid distribution shift -- conditions overlooked by prior research. This work pioneers defense strategies against multimodal attacks, providing insights for building robust VLMs from both optimization and data perspectives. Our code is publicly available at https://github.com/CyberAgentAI/multimodal-adversarial-training.
