On Adversarial Vulnerability of Vision-Language Models through the Lens of Intermediate Spectral Subspaces
University of the Bundeswehr Munich · University of Wrocław
TL;DR: Inside every transformer layer, some directions are almost erased: the ones belonging to the smallest singular values. We find that adversarial examples for vision-language models naturally push their internal representations toward these information-attenuating directions. Our attack, SSGRA, does this on purpose and beats six existing attacks on Qwen2.5-VL, LLaVA-1.5 and Gemma 3 with perturbations too small to see.
Motivation: where does an adversarial perturbation do its damage?
Vision-language models (VLMs) such as Qwen2.5-VL, LLaVA and Gemma 3 describe images, answer visual questions and are being built into many products. Like other deep networks, they can be fooled by adversarial perturbations: noise too small for a person to notice that changes what the model says.
Existing explanations of this vulnerability look at the input space or at the network as a whole: decision-boundary geometry, non-robust features, input–output Jacobians. What happens inside the network, in the many linear layers that carry information from the image to the text, has received much less attention. Most robustness work there focuses on large singular values, which amplify perturbations, and keeps them in check with spectral normalization or Lipschitz regularization.
We look at the other end of the spectrum.
The idea: steer representations into the “blind spots” of each layer
Every linear layer \( W = U \Sigma V^\top \) has a set of right singular vectors. Directions with large singular values pass through strongly, while directions with near-zero singular values are almost erased. This is the same mechanism that makes ill-posed inverse problems unstable: information lost along near-null directions cannot be reliably recovered.
So we ask: if an attacker pushes the model’s internal representations into these bottom singular-vector subspaces, does the meaning of the image get lost on its way to the language model?
To measure how strongly a set of token representations lies in a subspace, we use the average projection energy \( \Psi \), a number between 0 and 1. SSGRA (Spectral Subspace Guided Representation Attack) combines two goals:
- Make the adversarial representations differ from the clean ones in every vision and language block, as in the Blockwise Similarity Attack (BSA).
- Maximize the alignment \( \Psi \) with the bottom singular-vector subspaces of selected linear layers, which is the new spectral guidance term.
A weight \( \lambda \) balances the two. On Qwen2.5-VL the best setting turned out to be \( \lambda = 0 \), so the spectral term alone gave the strongest attack.
Key finding: attacks already drift toward the bottom subspaces
Before adding any spectral term, we looked at what a standard attack (BSA) does internally on Gemma 3. After the attack, representations at the MLP gate and up projections are more aligned with the bottom-10 singular vectors and less or equally aligned with the top-10. Untargeted attacks discover this weakness on their own, and SSGRA makes it explicit.


The same picture appears over the course of the optimization. During 1,000 attack steps, alignment with the smallest singular vectors climbs in the MLP layers, while alignment with the largest ones stays flat or slowly falls.


Results: three VLMs, six baselines, imperceptible budgets
We attacked Qwen2.5-VL (7B), LLaVA-1.5 (7B) and Gemma 3 (4B) on ImageNet images with the prompt “What is shown in the image?”, using \( \ell_\infty \) budgets between 0.002 and 0.005. We compared SSGRA with six attacks: BSA, DRA, FDA, SSPA, EGA and cross-entropy (CE). We measured how far the answer moved from the clean answer with BERTScore (meaning) and ROUGE-L (wording), where lower scores mean stronger attacks.
What it looks like. With a budget of only \( c = 0.003 \), the baselines mostly keep the correct description. SSGRA does not.
Why some models are more vulnerable
We counted how often extreme singular values occur in the non-attention linear layers of each model. Near-null directions are far more common than strongly amplifying ones, and the models with the most of them are the ones SSGRA hurts most.
| Model | Layers with \( \sigma_{\min} < 10^{-3} \) | Layers with \( \sigma_{\max} > 10 \) | SSGRA advantage |
|---|---|---|---|
| Qwen2.5-VL | 24.9% | 18.8% | largest |
| LLaVA-1.5 | 27.7% | 19.4% | large |
| Gemma 3 | 12.2% | 11.3% | smallest |
Qwen2.5-VL and LLaVA-1.5 have about twice as many near-null directions as Gemma 3, so they offer a larger “spectral attack surface”. On Gemma 3 the margins are smaller (up to 0.8% BERTScore and 3.1% ROUGE-L), but SSGRA is still the strongest attack in several settings.
Is it really the bottom subspace that matters?
We ran two ablations on Qwen2.5-VL. Removing the spectral term weakens the attack at every budget, and the gap grows with the budget. Aligning with the top singular subspace instead of the bottom barely hurts the model, while the bottom-subspace version causes a large drop. The weak spot is the near-null directions, not the amplifying ones.
Takeaway
Robustness work has mostly focused on keeping large singular values small. Our results point to the opposite end: near-null singular directions inside transformer layers are an overlooked attack surface in vision-language models. Controlling them, alongside existing spectral-norm regularization, may be a complementary route to more robust VLMs.
Citation
@article{ramanaik2026adversarial,
title={On Adversarial Vulnerability of Vision-Language Models through the Lens of Intermediate Spectral Subspaces},
author={Ramanaik, Chethan Krishnamurthy and Callies, Tobias and Hecht, Michael and Ntoutsi, Eirini},
journal={arXiv preprint arXiv:2607.07375},
year={2026}
}