Adversarial attacks against modern vision-language modelsAdversarial attacks against Modern Vision-Language Models
Under the CLIP spectral attack, the ASR for LLaVA-v1.5-7B is 66.9% and for Qwen2.5-VL-7B is 15.5% (Table 1).
The attacker can modify pixels of product images in the storefront (ℓ∞, ε=16/255). BIM/PGD are white-box and can access the target VLM weights; the CLIP spectral attack uses only four CLIP encoders as surrogates and tests transfer. The victim is an open-source VLM shopping agent that takes screenshots as input and outputs JSON actions. Success means buying the wrong product pointed to by the adversarial image, rather than the product corresponding to the instruction.
- The robustness of open-source VLM shopping agents against white-box gradient image attacks in interactive e-commerce deployments has not been systematically compared. The authors argue this matters for how safety evaluation is done before deployment when proprietary models are unavailable due to cost or privacy.
- They built a Flask storefront and a Selenium agent, with inference services for two 7B models. BIM and PGD are white-box iterative, with ε=16/255 and α=1/255; the CLIP spectral attack widens the distance among four CLIP embeddings in the DCT domain and then transfers. Success means buying the pointed-to wrong item.
- 630 trials per condition. LLaVA-v1.5-7B ASR is 52.6%, 53.8%, 66.9%; Qwen2.5-VL-7B is 6.5%, 7.7%, 15.5% (BIM, PGD, CLIP spectral, Table 1). The authors state the CLIP spectral attack is highest on both models.
- The authors state that extrapolation to InstructBLIP, mPLUG-Owl, and LLaMA-Vision is not possible, and migration to production deployment has not been validated. The authors plan to investigate architecture sources, expand the open-source family, and explore lightweight defenses. The experiments cover two models, three attacks, and 630 runs per condition; optimization steps and defense results are not reported.
- Evaluated models
- LLaVA-v1.5-7BQwen2.5-VL-7B
- Benchmarks
- self-contained e-commerce deployment framework
- Metrics
- ASRcorrect purchase rate
The study evaluates the adversarial robustness of open-source vision-language model (VLM) agents in a self-contained e-commerce environment simulating real deployment conditions, testing LLaVA-v1.5-7B and Qwen2.5-VL-7B under three gradient attacks. The three attacks are Basic Iterative Method (BIM), Projected Gradient Descent (PGD), and a CLIP-based spectral attack. On LLaVA, the success rates of the three attacks are 52.6%, 53.8%, and 66.9%, respectively; on Qwen2.5-VL, they are 6.5%, 7.7%, and 15.5%, respectively. The authors state this indicates architectural differences in adversarial robustness across open-source VLM families and has direct implications for safety evaluation before commercial deployment of VLM agents.
Paper analysis
What problem does this paper attempt to solve?
The authors state that the robustness of open-source VLM agents against white-box and CLIP spectral attacks has not yet been systematically characterized.
The robustness of open-source VLM shopping agents against white-box gradient attacks in interactive deployments has not been systematically characterized.
- Deployment scenario: The authors state VLMs are used for visual question answering and multimodal reasoning, but imperceptible image noise can still cause misinterpretation. Proprietary agents already have black-box attacks based on surrogate models; when cost or privacy makes proprietary models unavailable, the robustness of open-source models enters deployment decisions.
- Gap in existing work: The authors state Wu et al. only evaluated proprietary models accessed via API. Open-source VLM agents in interactive deployments, facing simpler white-box gradient attacks, have not been systematically characterized.
- Proposed evaluation: A self-contained e-commerce red-team framework evaluates LLaVA-v1.5-7B and Qwen2.5-VL-7B with BIM, PGD, and CLIP spectral attacks, and compares the two families.
- Threat model:
- Goal: Make the agent purchase the wrong product the adversarial image points to, rather than the product matching the shopping instruction. The appendix writes the optimization objective as making that product be treated as the target item in the instruction.
- Knowledge: BIM and PGD are fully white-box, directly using the target VLM weights. The CLIP spectral attack does not access target weights, using four CLIP encoders as surrogate models, then tests transfer to the target VLM.
- Capability: Perturbed product images are injected into the storefront before trials. Constraint is ℓ∞, ε=16/255, step size α=1/255. Text instructions are not modified. The appendix states the attacker can modify the pixels of a single product image.
- Victim system: An open-source VLM shopping agent in a self-contained e-commerce environment. It accepts natural language shopping instructions, takes screenshots via Selenium and queries inference services, returning JSON actions for clicks or navigation, until purchase completion or reaching the iteration budget.
What related research exists?
The literature covers VQA noise, projectors and patches, and proprietary web agents; this paper evaluates open-source white-box and CLIP spectral attacks.
Visual question answering attacks
- Attend-and-Attack (Sharma et al.): white-box reading of attention maps, adding small perturbations to images to change answers, a non-targeted attack. The authors report it outperforms previous attacks on "Show, Attend and Answer."
- VQAttack: jointly perturbs image features and question text; first optimizes an image latent loss, then replaces words with synonyms to modify text, for transferable attacks. The authors summarize: modifying only the image, or both image and text, can reduce VQA accuracy.
Modern large VLMs and patches
- IPGA: attacks intermediate Q-Former tokens rather than using pixel perturbations to enlarge global similarity. The authors report higher VQA success rates and transferability to closed-source models such as Gemini and GPT.
- Chain-of-Attack: stepwise updates multimodal embeddings so adversarial images align with target descriptions, using LLM-based metrics to determine success. The authors state such methods rely on white-box or strong surrogate models.
- Patch route: Kong et al. (2024)'s Patch is Enough uses diffusion priors and places natural-looking patches according to cross-attention; the authors report white-box image-to-text success rates close to 100%. Xu et al.'s EDPA disrupts alignment between visual and textual latent spaces. In robotic settings, small patches in the camera view can reduce task success rates to 0%.
Web agents
- Wu et al.: attacks proprietary VLM agents on VisualWebArena. The captioner attack targets white-box description components; the CLIP attack is used for black-box GPT-4V, Gemini-1.5, and Claude-3. The authors report success rates up to 75%, covering only proprietary models accessed via API.
The experiments do not use the above methods as reproduction baselines. The control is purchasing without perturbation; the environment is a self-built e-commerce setting, and the models are LLaVA-v1.5-7B and Qwen2.5-VL-7B.
The authors position this work on open-source VLM agents in interactive e-commerce, with attacks being white-box BIM, PGD, and CLIP spectral attacks, contrasted with work that tests only proprietary API models. The authors' three other literature summaries are: white-box gradients can degrade VQA accuracy; cross-modal perturbations aid VQA transferability; patches placed in salient regions can broadly mislead VLMs.
How does the paper address this problem?
In a self-built e-commerce environment, perturb product images with frozen BIM, PGD, and CLIP spectral-domain perturbations, then check whether the agent buys the wrong product.
The perturbation is added to the product image before the injected storefront, and the browser screenshot is then fed to the shopping agent. BIM and PGD directly use the target weights; CLIP spectral attack only optimizes a surrogate encoder and then checks transfer. All three freeze all model parameters.
Deployment and interaction
- Three components: a Flask storefront serving a product list with adversarial images; inference services for LLaVA-v1.5-7B and Qwen2.5-VL-7B that receive screenshots and return JSON actions; a Selenium agent that screenshots, parses, and executes clicks or navigation.
- Loop: given a natural-language shopping instruction (the main text example is "buy a sweater"), it browses autonomously until purchase completion or reaching the maximum iteration budget. The main text does not give a budget value. The appendix example starts from a blank page with at most 10 browsing steps.
- Perception interface: the model sees the rendered screenshot, not the raw image file. The caption of Figure 1 describes this pipeline.
BIM and PGD
BIM extends FGSM into multi-step small updates within an ℓ∞ ball. I is the image, Q is the question, the main text calls y the true answer, and J is the task loss. The update is δt+1=Proj|δ|∞≤ϵ(δt−α sign(∇I J(θ,I+δt,Q,y))) , i.e., sign gradient descent on J followed by projection. ε=16/255, α=1/255, and the authors state this follows a common imperceptibility setting. The image is first normalized into a differentiable tensor, and gradients accumulate only on the perturbation. During optimization, full VLM inference is run periodically to check whether the predicted answer changes; early stopping occurs when the misprediction confidence reaches 95% or above.
PGD uses the same update, the same ε and α, but δ0 is drawn from Uniform(−ε, ε); BIM's δ0 is 0. The authors write that the random start is to better cover the loss surface near clean images. PGD keeps the best perturbation across rounds and early-stops when the attack succeeds above a certain confidence threshold; that threshold value is not given.
The appendix writes the webpage scenario as δ∗=argmin|δ|∞≤ϵ L(fθ(s(x+δ),c),ytarget) . s is the screenshot containing the adversarial product, c is the shopping instruction, ytarget is the specified wrong action, and L is the task loss. The appendix says it is solved with BIM. The main text update also descends the loss, but calls y the true answer; the paper does not state how Q, y, and the shopping instruction correspond between the two places.
CLIP spectral attack
- Surrogate models: ViT-B/32, ViT-B/16, ViT-L/14, ViT-L/14@336px. Parameters are frozen and distributed across available GPUs for forward and backward passes.
- Objective: maximize the cosine distance between the CLIP visual embeddings of the clean image and the perturbed image within the ℓ∞ constraint. The perturbation is placed in the DCT domain using SSA-CommonWeakness: a three-dimensional DCT per channel, updating spectral coefficients, then inverse DCT reconstruction. The authors state this targets frequencies that more strongly affect the CLIP embedding geometry, to improve cross-model transfer.
- Difference from white-box: it does not read the target VLM weights. The image is generated and then given to the LLaVA or Qwen agent.
How success is counted
- ASR: the proportion of trials where the perturbation makes the agent buy the pointed-to wrong item rather than the item corresponding to the instruction.
- Parallel metric: correct purchase rate. The no-perturbation condition is measured separately as a reference.
- Intervals: 630 trials per condition. Correct purchase rate is reported with a 95% Wilson score confidence interval. The paper does not use an LLM judge.
What experiments did the paper conduct?
ASR of CLIP spectral attack in Table 1: LLaVA-v1.5-7B is 66.9%, Qwen2.5-VL-7B is 15.5%.
Experimental setup
- Victim models: LLaVA-v1.5-7B, Qwen2.5-VL-7B. The four CLIP encoders only provide gradients for spectral attacks; the paper does not report their own ASR.
- Environment and injection: Self-contained e-commerce deployment with a pre-provisioned storefront, two inference services, and a Selenium agent. Adversarial product images are injected before each trial.
- Attack settings: BIM, PGD, CLIP spectral attack, all with ε=16/255, α=1/255. The paper does not report the iteration step limit.
- Evaluation: ASR is the proportion of purchases of the wrong product the agent was directed to, with correct purchase rates also reported. No LLM evaluation, and no human review is reported.
- Sample size: Table 1 states 630 trials per condition. 95% intervals use the Wilson score, with ± marked on correct purchase rates; ASR has only point estimates. The paper does not report the instruction set or product catalog size.
- Clean condition: Section 4.2 in the main text states LLaVA correct purchase rate 90%, Qwen 98%; Table 1 gives 90.2±2.3 and 98.3±1.0. The table is authoritative in the following text. The authors state Qwen is higher, reflecting its stronger visual grounding than LLaVA-v1.5, and state that without perturbation both can complete purchases.
Main results
Correct purchase rates (%) with 95% CI from Table 1; ASR (%) in parentheses. 630 trials per condition, ε=16/255.
| Condition | LLaVA-v1.5-7B | Qwen2.5-VL-7B | | Clean Baseline | 90.2±2.3 | 98.3±1.0 | | BIM | 47.4±3.9 (ASR 52.6) | 93.5±1.9 (ASR 6.5) | | PGD | 46.2±3.9 (ASR 53.8) | 92.3±2.1 (ASR 7.7) | | CLIP Spectral | 33.1±3.7 (ASR 66.9) | 84.5±2.8 (ASR 15.5) |
- BIM and PGD: The authors consider the additional benefit of random initialization over zero initialization to be small, possibly because the loss surface near clean images is smooth.
- Spectral attack ranking: On both victim models, the CLIP spectral attack achieves higher ASR than BIM and PGD, and does not access target weights during optimization. The authors attribute this to feature disruption in CLIP embedding geometry, which is especially effective against LLaVA-v1.5's vision encoder.
- Relative to clean baseline: The authors state the most effective attack only reduces Qwen's correct purchase rate by 13.8 percentage points from 98.3%, and state that all three methods encounter strong resistance.
Family differences (same batch of trials)
- How the authors use this table: Section 4.4 compares the post-attack correct purchase rates of the two models. The authors state Qwen remains close to its clean level, while LLaVA drops much more, and call this the main finding of the paper.
- Deployment implications: The authors argue that adversarial robustness should not be assumed uniform across open-source families; autonomous shopping agents should undergo explicit adversarial evaluation before deployment.
- Mechanism not provided: The authors state the difference points to different ways the two models process adversarial visual inputs. That section has no layer or module measurements; Section 6 lists identifying the source as future work.
Single-trial example in the appendix
- Illustration: The appendix uses LLaVA and BIM, comparing the original and perturbed images of the same Duke Lemur Center sweatshirt. The authors state the perturbation is within the ℓ∞ budget, imperceptible to humans, but sufficient to mislead the agent. The text conversion does not show the pixel difference itself.
- Storefront: The adversarial sweatshirt is item 0, priced at $7,400, with pants and a golf bag nearby. The authors state a successful attack could also cause a high-priced erroneous purchase. In this example, the agent browses at most 10 times.
- Two clicks: The buy sweater example clicks item 0, consistent with purchasing the adversarial product. In the buy pants example, the authors write the attack diverts the agent from the correct pants item 1, but the recorded action is clicking item 2 (the golf bag), not the adversarial product. The appendix has raw outputs; not excerpted here.
Other ablations and analyses
- The paper does not report ablations on ε, α, number of steps, or number of alternative encoders, nor defense experiments.
- BIM early stopping is misprediction confidence above 95%; PGD only states above a certain confidence threshold, without a number.
- The 90% and 98% in Section 4.2 of the main text differ in notation from 90.2±2.3 and 98.3±1.0 in Table 1; the table is authoritative.
What are some points that can be further explored?
The authors write that the differences cannot be extrapolated to three other architectures, and migration to production environments has not yet been validated.
Limitations and future directions noted by the authors
- Cannot extrapolate to other architectures: Only LLaVA-v1.5-7B and Qwen2.5-VL-7B were evaluated. The authors write that the observed differences cannot be generalized to InstructBLIP, mPLUG-Owl, or LLaMA-Vision without further evaluation. From Section 5.
- Production deployment not yet validated: All experiments were in a self-contained, pre-provisioned e-commerce environment. The authors write that transfer to real production deployments with dynamic content, authentication, and variable rendering conditions remains unvalidated. From Section 5.
- Architectural source: The authors plan to investigate the architectural source of Qwen2.5-VL's robustness. From Section 6.
- More families: The authors plan to evaluate more open-source VLM families. From Section 6.
- Lightweight defenses: The authors plan to explore lightweight defenses usable in deployments where retraining is not possible. From Section 6.
Experimental coverage
- Victim models are LLaVA-v1.5-7B and Qwen2.5-VL-7B. Alternative encoders for spectral attacks are ViT-B/32, ViT-B/16, ViT-L/14, ViT-L/14@336px.
- Attacks are BIM, PGD, and CLIP spectral attack; ε=16/255, α=1/255. Table 1 has 630 trials per condition, with correct purchase rates accompanied by Wilson 95% intervals.
- Success is determined by whether the agent purchases the wrong product it was directed to. The paper does not report LLM evaluation, human agreement, or optimization steps; BIM early stopping is stated at above 95% confidence, and PGD's confidence threshold is not given numerically.
- The stopping condition in the main text is purchase completion or reaching the maximum iteration budget; that budget is only written in the appendix example as at most 10 browsing steps.
- The discussion of differences between the two models is based on purchase results in Table 1. The paper does not report internal architectural measurements or defense experiments.
Summarize the main content of the paper
The authors state that LLaVA is easily induced by three attacks to buy the wrong item, while Qwen's correct purchase rate remains close to its clean condition.
The authors compare the robustness of two open-source VLM shopping agents against image adversarial perturbations in a self-built e-commerce environment.
- Problem: Proprietary agents already have black-box attacks with surrogate models. The authors argue that the performance of open-source models against white-box gradient attacks in interactive deployment has not been systematically characterized and is related to the choice of deployment.
- Method: A Flask storefront serves perturbed product images, a Selenium agent takes screenshots, and LLaVA-v1.5-7B or Qwen2.5-VL-7B returns JSON purchase actions. BIM and PGD are white-box iterative, with ε=16/255, α=1/255. The CLIP spectral attack widens the cosine distance among four CLIP embeddings in the DCT domain, then transfers to the target VLM.
- Main numbers: Table 1, 630 trials per condition. LLaVA's ASR is 52.6% (BIM), 53.8% (PGD), 66.9% (CLIP spectral); Qwen is 6.5%, 7.7%, 15.5%. Clean correct purchase rates in the table are 90.2% and 98.3%.
- Authors' conclusion: The authors state that disrupting the CLIP feature space is more effective than direct gradient optimization; the difference between the two families points to architectural differences in handling adversarial visual inputs, but the source is left for future work. Before deployment, the adversarial robustness of open-source VLMs should not be treated as identical to each other, and autonomous purchasing agents should undergo explicit adversarial evaluation.
- Boundaries stated by the authors: The conclusions cannot be extrapolated to InstructBLIP, mPLUG-Owl, or LLaMA-Vision; transfer has not been verified for production deployments with dynamic content, authentication, and variable rendering.