On the Robustness of Large Multimodal Models Against Image Adversarial Attacks

Xuanming Cui, Alejandro Aparcedo, Young Kyun Jang, Ser-Nam Lim

Abstract

Recent advances in instruction tuning have led to the development of State-of-the-Art Large Multimodal Models (LMMs). Given the novelty of these models, the impact of visual adversarial attacks on LMMs has not been thoroughly examined. We conduct a comprehensive study of the robustness of various LMMs against different adversarial attacks, evaluated across tasks including image classification, image captioning, and Visual Question Answer (VQA). We find that in general LMMs are not robust to visual adversarial inputs. However, our findings suggest that context provided to the model via prompts—such as questions in a QA pair—helps to mitigate the effects of visual adversarial inputs. Notably, the LMMs evaluated demonstrated remarkable resilience to such attacks on the ScienceQA task with only an 8.10% drop in performance compared to their visual counterparts which dropped 99.73%. We also propose a new approach to real-world image classification which we term query decomposition. By incorporating existence queries into our input prompt we observe diminished attack effectiveness and improvements in image classification accuracy. This research highlights a previously under explored facet of LMM robustness and sets the stage for future work aimed at strengthening the resilience of multimodal systems in adversarial environments.

Introduction

Large Multimodal Models (LMMs) like LLaVA and InstructBLIP have revolutionized AI by integrating visual encoders (e.g., CLIP) with powerful Large Language Models (LLMs). While vision models are known to be susceptible to adversarial attacks—imperceptible pixel perturbations that cause misclassification—the robustness of the integrated LMM architecture remains under-explored. This study investigates whether the reasoning capabilities of the LLM component can mitigate the vulnerabilities of the visual "eyes."

Methodology

The researchers evaluated three state-of-the-art LMMs: LLaVA 1.5, BLIP-2, and InstructBLIP. The study focused on white-box attacks targeting the visual encoders (CLIP or EVA-CLIP) using methods such as Projected Gradient Descent (PGD), Auto-PGD (APGD), and Carlini & Wagner (CW).

Overview of the adversarial attack and evaluation pipeline for LMMs.

The evaluation spanned multiple tasks across standard benchmarks including COCO 2014, ScienceQA-Image, and ImageNet 2012. A key innovation tested was Query Decomposition, a defense where a single classification query is broken into multiple "existence" queries (e.g., "Is there a cat in this image?") to force the model to focus on specific image features rather than a single global interpretation.

Key Findings

The Context Shield

A primary discovery is that textual context acts as a significant defense mechanism. In the ScienceQA task, which involves complex reasoning, LMMs experienced only an 8.1% performance drop under attack. In contrast, standalone visual models performing the same task saw performance plummet by over 99%. This suggests that the LLM can "reason through" corrupted visual data when provided with sufficient textual cues.

Target Specificity and Hallucination

Adversarial attacks often target specific objects. While a model might fail to identify the primary subject of an attacked image (e.g., calling a sheep "none"), it can often still correctly answer questions about the background or secondary elements. However, under strong attacks, models frequently exhibit complex hallucinations, describing intricate scenes that do not exist in the original image.

Example of LMM performance on an attacked image, demonstrating how specific queries can bypass adversarial deception.

Effectiveness of Query Decomposition

The "Query Decomposition" method proved highly effective for image classification. On ImageNet, LLaVA's accuracy under a normal PGD attack rose from 10.34% with a standard prompt to 58.52% when using decomposed queries. This approach leverages the LLM's ability to aggregate information from multiple targeted visual inspections, making it harder for a single adversarial perturbation to succeed.

Conclusion

While LMMs inherit the vulnerabilities of their visual encoders, their textual reasoning component provides a unique layer of resilience. Textual context and prompt engineering techniques like query decomposition can significantly mitigate the impact of adversarial noise. Future work should explore end-to-end attacks and more computationally efficient defense strategies to further secure multimodal systems.

Summary updated

BibTeX
@inproceedings{cui2024robustness,
  author = {Xuanming Cui and Alejandro Aparcedo and Young Kyun Jang and Ser-Nam Lim},
  title = {{On the Robustness of Large Multimodal Models Against Image Adversarial Attacks}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2024},
  url = {https://openreview.net/forum?id=RXA5AbuRF3},
}
Figure