Papers › Revisiting the Adversarial Robustness of Vision Language Models: a Multimodal Perspective

Revisiting the Adversarial Robustness of Vision Language Models: a Multimodal Perspective

30 Apr 2024arXiv:2404.19287archive 2025-07-28

Wanqi Zhou, Shuanghao Bai, Danilo P. Mandic, Qibin Zhao, Badong Chen

Pretrained vision-language models (VLMs) like CLIP exhibit exceptional generalization across diverse downstream tasks. While recent studies reveal their vulnerability to adversarial attacks, research to date has primarily focused on enhancing the robustness of image encoders against image-based attacks, with defenses against text-based and multimodal attacks remaining largely unexplored. To this end, this work presents the first comprehensive study on improving the adversarial robustness of VLMs against attacks targeting image, text, and multimodal inputs. This is achieved by proposing multimodal contrastive adversarial training (MMCoA). Such an approach strengthens the robustness of both image and text encoders by aligning the clean text embeddings with adversarial image embeddings, and adversarial text embeddings with clean image embeddings. The robustness of the proposed MMCoA is examined against existing defense methods over image, text, and multimodal attacks on the CLIP model. Extensive experiments on 15 datasets across two tasks reveal the characteristics of different adversarial defense methods under distinct distribution shifts and dataset complexities across the three attack types. This paves the way for a unified framework of adversarial robustness against different modality attacks, opening up new possibilities for securing VLMs against multimodal attacks. The code is available at https://github.com/ElleZWQ/MMCoA.git.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2404.19287")

Code

Syntology Ran 14 of 22 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 1 ran · honoured contract; 3 ran · our draft was wrong; 3 ran · fixture could not drive it; 7 ran with no contract checked.

By repository: official repository: 22 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ellezwq/mmcoa officialmentioned in papermentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

22 samples harvested; 14 ran; 1 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
3ran · our draft was wrong
3ran · fixture could not drive it
7ran
8unverified

Licence: 0 of the 22 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ellezwq/mmcoa. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

whitespace_tokenize ellezwq/mmcoa/models/tokenization_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cf9ffa02a42184af · report
accuracy ellezwq/mmcoa/utils.py official repository ran · fixture could not drive it MIT (permissive) · b0f936d4d6ae3b8c · report
calculate_accuracy ellezwq/mmcoa/MMCoA.py official repository ran MIT (permissive) · 2e21f055fab549ee · report
clamp_by_l2 ellezwq/mmcoa/attack/imageAttack.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 1f2c3eac81b5d4f4 · report
compute_acc ellezwq/mmcoa/utils_2.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · aa81d03f07735ab8 · report
compute_n_params ellezwq/mmcoa/utils_2.py official repository ran · our draft was wrong MIT (permissive) · ad12a494674d23fb · report
equal_normalize ellezwq/mmcoa/attack/multimodalAttack.py official repository ran fingerprinted MIT (permissive) · 81b93fc3c40a9fa0 · report
fixed_patch ellezwq/mmcoa/models/prompters.py official repository ran MIT (permissive) · 263288717b164fe4 · report
get_key ellezwq/mmcoa/utils_2.py official repository ran MIT (permissive) · d121638ef1dea109 · report
gkern ellezwq/mmcoa/attack/imageAttack.py official repository ran · honoured contract fingerprinted MIT (permissive) · 5e1f60c820f3f710 · report
load_vocab ellezwq/mmcoa/models/tokenization_bert.py official repository ran · our draft was wrong MIT (permissive) · e7fbc7a74a3457c7 · report
padding ellezwq/mmcoa/models/prompters.py official repository ran MIT (permissive) · ed6b8fbf59cfc213 · report
random_init ellezwq/mmcoa/attack/imageAttack.py official repository ran MIT (permissive) · 45669d4d47a3a910 · report
random_patch ellezwq/mmcoa/models/prompters.py official repository ran MIT (permissive) · d22c609a1ecad7e5 · report
attack_pgd ellezwq/mmcoa/attacks.py official repository unverified MIT (permissive) · 7c90002916e1665a · report
clamp ellezwq/mmcoa/attacks.py official repository unverified MIT (permissive) · 8a93e041134b597a · report
cosine_lr ellezwq/mmcoa/utils.py official repository unverified MIT (permissive) · 932d44bbf8bd0e3f · report
create_logits ellezwq/mmcoa/models/model.py official repository unverified MIT (permissive) · cad29a7a417c68d3 · report
get_bpe_substitues ellezwq/mmcoa/attack/bert_attack.py official repository unverified MIT (permissive) · 0b855e55aafa281e · report
get_substitues ellezwq/mmcoa/attack/bert_attack.py official repository unverified MIT (permissive) · 340f1e13ccb625f4 · report
load ellezwq/mmcoa/replace/clip.py official repository unverified MIT (permissive) · 9e585a3531b71996 · report
refine_classname ellezwq/mmcoa/utils.py official repository unverified MIT (permissive) · 60ab7dcbb5498f88 · report

Tasks

Adversarial DefenseAdversarial RobustnessAdversarial Text

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections