Papers › InstructTA: Instruction-Tuned Targeted Attack for Large Vision-Language Models

InstructTA: Instruction-Tuned Targeted Attack for Large Vision-Language Models

4 Dec 2023arXiv:2312.01886archive 2025-07-28

Xunguang Wang, Zhenlan Ji, Pingchuan Ma, Zongjie Li, Shuai Wang

Large vision-language models (LVLMs) have demonstrated their incredible capability in image understanding and response generation. However, this rich visual interaction also makes LVLMs vulnerable to adversarial examples. In this paper, we formulate a novel and practical targeted attack scenario that the adversary can only know the vision encoder of the victim LVLM, without the knowledge of its prompts (which are often proprietary for service providers and not publicly available) and its underlying large language model (LLM). This practical setting poses challenges to the cross-prompt and cross-model transferability of targeted adversarial attack, which aims to confuse the LVLM to output a response that is semantically similar to the attacker's chosen target text. To this end, we propose an instruction-tuned targeted attack (dubbed \textsc{InstructTA}) to deliver the targeted adversarial attack on LVLMs with high transferability. Initially, we utilize a public text-to-image generative model to "reverse" the target response into a target image, and employ GPT-4 to infer a reasonable instruction p^' from the target response. We then form a local surrogate model (sharing the same vision encoder with the victim LVLM) to extract instruction-aware features of an adversarial image example and the target image, and minimize the distance between these two features to optimize the adversarial example. To further improve the transferability with instruction tuning, we augment the instruction p^' with instructions paraphrased from GPT-4. Extensive experiments demonstrate the superiority of our proposed method in targeted attack performance and transferability. The code is available at https://github.com/xunguangwang/InstructTA.

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="2312.01886")

Code

Syntology Ran 7 of 12 code samples harvested from 1 repository linked to this paper; 5 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 4 ran with no contract checked.

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

xunguangwang/instructta officialmentioned in paperpytorch 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

12 samples harvested; 7 ran; 0 honoured the contract we drafted; 5 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 · violated contract
2ran · our draft was wrong
4ran
5unverified

Licence: 12 of the 12 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 xunguangwang/instructta. “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.

convert_to_custom_text_state_dict xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py official repository ran · violated contract no licence file found · pointer only · 7bff6f3b3cb560e7 · report
get_cast_dtype xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py official repository ran · our draft was wrong no licence file found · pointer only · dcd422d66b0581d8 · report
get_rephrase xunguangwang/instructta/LAVIS/attack_mfitevaclip_instructblip_gpt.py official repository ran no licence file found · pointer only · 2cb5a4136aa0e983 · report
gpt4 xunguangwang/instructta/utils/gpt.py official repository ran no licence file found · pointer only · 02a9a136109bed9b · report
inst_guess xunguangwang/instructta/utils/gpt.py official repository ran no licence file found · pointer only · 55470f3e0d3360de · report
rephrase xunguangwang/instructta/utils/gpt.py official repository ran no licence file found · pointer only · 80376039594e8b4c · report
to_tensor xunguangwang/instructta/data_provider/data_loader.py official repository ran · our draft was wrong no licence file found · pointer only · 948955a5b23f1937 · report
GPT_4V xunguangwang/instructta/utils/gpt4v.py official repository unverified no licence file found · pointer only · 7305f5209b80c2d6 · report
build_model_from_openai_state_dict xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py official repository unverified no licence file found · pointer only · b34d6c17c6e09a04 · report
gather_features xunguangwang/instructta/EVA-CLIP/rei/eva_clip/loss.py official repository unverified no licence file found · pointer only · ddcbd45e940484ee · report
register_pooler xunguangwang/instructta/EVA-CLIP/rei/eva_clip/hf_model.py official repository unverified no licence file found · pointer only · 2a377da4a76a2d44 · report
rephrase xunguangwang/instructta/LAVIS/attack_mfitevaclip_instructblip_gpt.py official repository unverified no licence file found · pointer only · 0479ac087960db55 · report

Tasks

Adversarial AttackLanguage ModellingLarge Language ModelResponse Generation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutGPT-4Label SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

1 archive method tag without a method page not shown.

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