Breaking LLaVA with small image perturbations
about this project
Large Language Models (LLMs) have paved the way for vision-language models (VLMs), which combine language modeling with visual perception. Since their introduction, VLMs have rapidly evolved to support multimodal reasoning by integrating vision encoders with large language model architectures capable of processing both text and images. As VLMs such as LLaVA-NeXT become increasingly deployed in public-facing applications, my research partner Hailegebriel Bizuayehu and I became curious about their safety properties and the characteristics of their failure modes. We attacked LLaVA-1.6, an open source vision-language model, with two standard adversarial attacks, FGSM and PGD, and measured how often a small change to the input image got it to answer harmful requests it had refused. We wrote about our findings in the paper linked above. What follows is an overview of our findings and alternative explanations for our results.
I built the attack pipeline in PyTorch on top of Hugging Face and torchattacks. We ran our experiments on Google Colab using A100 Tensor Core GPUs. We caught a bug where the attack quietly stopped respecting its own budget. I found it by measuring the perturbation instead of trusting the config. Most of this page is about what could make our numbers wrong.