SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2312.01886 · 2023

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

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 1 violated it and 2 have no contract verdict; 5 failures of our instrument; 4 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2312.01886.json · badge: /api/ran/2312.01886.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
xunguangwang/instructta canonical (classifier label)
classifier basis: census
8 ran · 4 no recorded run
FunctionStatusWhere it lives
convert_to_custom_text_state_dict Ran
ran, violated the contract we drafted
xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py
pointer only (licence: NONE) · get_code("7bff6f3b3cb560e7")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_cast_dtype Ran
ran; our contract draft was wrong, not the code
xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py
pointer only (licence: NONE) · get_code("dcd422d66b0581d8")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_rephrase Ran
ran on a synthesized input
xunguangwang/instructta/LAVIS/attack_mfitevaclip_instructblip_gpt.py
pointer only (licence: NONE) · get_code("2cb5a4136aa0e983")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

gpt4 Ran
ran; our contract draft was wrong, not the code
xunguangwang/instructta/utils/gpt.py
pointer only (licence: NONE) · get_code("02a9a136109bed9b")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

inst_guess Ran
ran; our contract draft was wrong, not the code
xunguangwang/instructta/utils/gpt.py
pointer only (licence: NONE) · get_code("55470f3e0d3360de")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

register_pooler Ran
ran on a synthesized input
xunguangwang/instructta/EVA-CLIP/rei/eva_clip/hf_model.py
pointer only (licence: NONE); the stored copy get_code serves, from WHU-USI3DV/TreeCLS, is pointer only (licence: NONE) · get_code("2a377da4a76a2d44")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

rephrase Ran
ran; our contract draft was wrong, not the code
xunguangwang/instructta/utils/gpt.py
pointer only (licence: NONE) · get_code("80376039594e8b4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

to_tensor Ran
ran; our contract draft was wrong, not the code
xunguangwang/instructta/data_provider/data_loader.py
pointer only (licence: NONE) · get_code("948955a5b23f1937")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

GPT_4V Not yet run
unverified (harvested, no recorded run)
xunguangwang/instructta/utils/gpt4v.py
pointer only (licence: NONE) · get_code("7305f5209b80c2d6")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

build_model_from_openai_state_dict Not yet run
unverified (harvested, no recorded run)
xunguangwang/instructta/EVA-CLIP/rei/eva_clip/model.py
pointer only (licence: NONE) · get_code("b34d6c17c6e09a04")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

gather_features Not yet run
unverified (harvested, no recorded run)
xunguangwang/instructta/EVA-CLIP/rei/eva_clip/loss.py
pointer only (licence: NONE); the stored copy get_code serves, from lxa9867/imagefolder, is pointer only (licence: NOASSERTION) · get_code("ddcbd45e940484ee")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

rephrase Not yet run
unverified (harvested, no recorded run)
xunguangwang/instructta/LAVIS/attack_mfitevaclip_instructblip_gpt.py
pointer only (licence: NONE) · get_code("0479ac087960db55")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, xunguangwang/instructta when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. No invocation recorded.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 6 are also present in other papers whose code we hold (6 with at least one paper dated earlier, 3 the same month, 6 later) and 6 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_cast_dtype 66 other papers
17 dated earlier, 1 the same month, 48 later
2103.00020 (2021-03)
Learning Transferable Visual Models From Natural Language Supervision
2210.08402 (2022-10)
LAION-5B: An open large-scale dataset for training next generation image-text models
2212.07143 (2022-12)
Reproducible scaling laws for contrastive language-image learning
and 63 more not named here
gather_features 57 other papers
16 dated earlier, 2 the same month, 39 later · 1 only as an assembly brick
2206.01670 (2022-06)
Egocentric Video-Language Pretraining
2212.00638 (2022-12)
Finetune like you pretrain: Improved finetuning of zero-shot vision models
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
and 54 more not named here
register_pooler 45 other papers
11 dated earlier, 1 the same month, 33 later
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
2302.03668 (2023-02)
Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery
2303.14814 (2023-03)
WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentation
and 42 more not named here
build_model_from_openai_state_dict 30 other papers
12 dated earlier, 18 later
2301.07094 (2023-01)
Learning Customized Visual Models with Retrieval-Augmented Knowledge
2302.03668 (2023-02)
Hard Prompts Made Easy: Gradient-Based Discrete Optimization for Prompt Tuning and Discovery
2303.14814 (2023-03)
WinCLIP: Zero-/Few-Shot Anomaly Classification and Segmentation
and 27 more not named here
convert_to_custom_text_state_dict 8 other papers
2 dated earlier, 6 later
2304.05884 (2023-04)
Unicom: Universal and Compact Representation Learning for Image Retrieval
2310.03744 (2023-10)
Improved Baselines with Visual Instruction Tuning
2404.16022 (2024-04)
PuLID: Pure and Lightning ID Customization via Contrastive Alignment
and 5 more not named here
to_tensor 2 other papers
1 dated earlier, 1 later
2305.16934 (2023-05)
On Evaluating Adversarial Robustness of Large Vision-Language Models
2503.10635 (2025-03)
A Frustratingly Simple Yet Highly Effective Attack Baseline: Over 90% Success Rate Against the Strong Black-box Models of GPT-4.5/4o/o1

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 $\boldsymbol{p}^\prime$ 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 $\boldsymbol{p}^\prime$ 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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2312.01886")
get_code_for_paper("2312.01886")
have("2312.01886")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2312.01886.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2312.01886.svg)](https://syntology.ai/paper/2312.01886)

Connect an agent — have() is free.