Universal Adversarial Attack on Aligned Multimodal LLMs

Temurbek Rahmatullaev, Polina Druzhinina, Nikita Kurdiukov, Matvey Mikhalchuk, Andrey Kuznetsov +1 more
2/11/2025
cs.AI

No official code found. Best implementation: FusionBrainLab/AdversarialVLM (8 stars, last commit 2025-08-03).

Abstract

We propose a universal adversarial attack on multimodal Large Language Models (LLMs) that leverages a single optimized image to override alignment safeguards across diverse queries and even multiple models. By backpropagating through the vision encoder and language head, we craft a synthetic image that forces the model to respond with a targeted phrase (e.g., "Sure, here it is") or otherwise unsafe content -- even for harmful prompts. In experiments on the SafeBench and MM-SafetyBench benchmarks, our method achieves higher attack success rates than existing baselines, including text-only universal prompts (e.g., up to 81% on certain models). We further demonstrate cross-model universality by training on several multimodal LLMs simultaneously. Additionally, a multi-answer variant of our approach produces more natural-sounding (yet still malicious) responses. These findings underscore critical vulnerabilities in current multimodal alignment and call for more robust adversarial defenses. We will release code and datasets under the Apache-2.0 license. Warning: some content generated by Multimodal LLMs in this paper may be offensive.

View on arXivView PDF

Code Implementations(1)

Universal Adversarial Attack on Aligned Multimodal LLMs

80Shell, PythonJul 11, 20251 years ago

Similar Papers

Cite this paper

@article{rahmatullaev2025universal,
  title  = {Universal Adversarial Attack on Aligned Multimodal LLMs},
  author = {Temurbek Rahmatullaev and Polina Druzhinina and Nikita Kurdiukov and Matvey Mikhalchuk and Andrey Kuznetsov and Anton Razzhigaev},
  year   = {2025},
  eprint = {2502.07987},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.07987v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.07987.svg)](https://codeofpaper.com/paper/2502.07987)

Discussion