Adversarial Attacks against Closed-Source MLLMs via Feature Optimal Alignment
About
Multimodal large language models (MLLMs) remain vulnerable to transferable adversarial examples. While existing methods typically achieve targeted attacks by aligning global features-such as CLIP's [CLS] token-between adversarial and target samples, they often overlook the rich local information encoded in patch tokens. This leads to suboptimal alignment and limited transferability, particularly for closed-source models. To address this limitation, we propose a targeted transferable adversarial attack method based on feature optimal alignment, called FOA-Attack, to improve adversarial transfer capability. Specifically, at the global level, we introduce a global feature loss based on cosine similarity to align the coarse-grained features of adversarial samples with those of target samples. At the local level, given the rich local representations within Transformers, we leverage clustering techniques to extract compact local patterns to alleviate redundant local features. We then formulate local feature alignment between adversarial and target samples as an optimal transport (OT) problem and propose a local clustering optimal transport loss to refine fine-grained feature alignment. Additionally, we propose a dynamic ensemble model weighting strategy to adaptively balance the influence of multiple models during adversarial example generation, thereby further improving transferability. Extensive experiments across various models demonstrate the superiority of the proposed method, outperforming state-of-the-art methods, especially in transferring to closed-source MLLMs. The code is released at https://github.com/jiaxiaojunQAQ/FOA-Attack.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Image-to-Text Adversarial Attack | Evaluation set | ASR90.5 | 48 | |
| Targeted Adversarial Attack | 1,000-pair Targeted Attack Evaluation Set closed-source standard MLLMs 1.0 | ASR85 | 48 | |
| Targeted Adversarial Attack | Evaluation set (test) | Attack Success Rate (ASR)33.2 | 48 | |
| Untargeted Adversarial Attack | ImageNet | ASR (Average)96.3 | 36 | |
| Adversarial Attack | Medical Imaging Dataset 1,000 images 1.0 (test) | MTR64 | 36 | |
| VQA | VQA hard criterion | ASR53 | 32 | |
| Untargeted Adversarial Attack | Flickr30K | ASR77.2 | 30 | |
| Targeted Adversarial Attack | ImageNet | ASR (Average)72.3 | 30 | |
| Untargeted Adversarial Attack | Flickr30K 1,000 images (test) | ASR53.64 | 30 | |
| Adversarial Attack | NIPS Adversarial Attacks and Defenses Competition dataset 2017 | ASR62 | 25 |