Skip to main content
LLM Security Database
Skip to research details
Back to research findings

Visual Compression Mismatch Attack

Published
Analyzed
Paper-reported evidence
Primary source linked
Read primary paper
Cite & share
Source BibTeX

Citation metadata is maintained by the primary source and may reflect a later revision.

Paper-evaluated models(1)

  • LLaVA 1.5 7B
On this page

Description

A vulnerability exists in Large Vision-Language Models (LVLMs) utilizing visual token compression mechanisms (e.g., VisionZip, VisPruner) to reduce inference latency. The vulnerability stems from an optimization-inference mismatch where standard adversarial defenses assume full-token processing, while the deployed model utilizes a subset of tokens selected via importance metrics (typically attention scores).

Attackers can exploit this via a Compression-AliGnEd (CAGE) attack, which optimizes perturbations to maximize Expected Feature Disruption (EFD) and enforces Rank Distortion Alignment (RDA). This technique manipulates the token selection logic to prioritize heavily perturbed tokens (survivors) while suppressing cleaner, low-importance tokens. Consequently, the compression mechanism acts as a "distortion concentrator," ensuring the downstream LLM processes a visual representation dominated by adversarial artifacts, significantly bypassing implicit denoising effects of pruning.

Examples

To reproduce the attack on a victim model (e.g., LLaVA-1.5 with VisionZip compression):

  1. Define the Survivor Probability: Model the unknown deployment token budget KmodelK_{model} as a random variable to compute the survival probability πi(x)\pi_i(\mathbf{x}) for each visual token based on its rank ri(x)r_i(\mathbf{x}) in the attention map: πi(x)=∑kP(Kmodel=k)⋅I(ri(x)<k)\pi_i(\mathbf{x}) = \sum_k P(K_{model}=k) \cdot \mathbb{I}(r_i(\mathbf{x}) < k)

  2. Compute Expected Feature Disruption (EFD): Calculate the loss to concentrate distortion on probable survivors: LEFD(x)=∑i=1Nπi(x)⋅(1−S(ziadv,zicln))∑i=1Nπi(x)\mathcal{L}_{EFD}(\mathbf{x}) = \frac{\sum_{i=1}^{N} \pi_i(\mathbf{x}) \cdot (1 - \mathcal{S}(\mathbf{z}_i^{adv}, \mathbf{z}_i^{cln}))}{\sum_{i=1}^{N} \pi_i(\mathbf{x})} (Where S\mathcal{S} is cosine similarity).

  3. Compute Rank Distortion Alignment (RDA): Differentiably align the attention score distribution p(s)p^{(s)} with the token distortion distribution p(d)p^{(d)}: LRDA(x)=∑i=1Npi(d)(x)log⁡pi(s)(x)\mathcal{L}_{RDA}(\mathbf{x}) = \sum_{i=1}^{N} p_i^{(d)}(\mathbf{x}) \log p_i^{(s)}(\mathbf{x})

  4. Optimization: Update the input image x\mathbf{x} using PGD to maximize Ltotal=LEFD+λ⋅LRDA\mathcal{L}_{total} = \mathcal{L}_{EFD} + \lambda \cdot \mathcal{L}_{RDA}.

See the mathematical formulation in Section 4 of the referenced paper.

Impact

  • Adversarial Robustness Degradation: Significant reduction in robust accuracy on visual question answering (VQA) and reasoning tasks compared to standard encoder-based attacks. For example, on TextVQA, robust accuracy can drop by >10% relative to baselines under tight token budgets.
  • Targeted Misinformation: The model is forced to rely on corrupted visual evidence, leading to hallucinations or incorrect text generation in safety-critical, latency-sensitive applications (e.g., mobile agents, autonomous driving).
  • Defense Bypass: Bypasses "security through obscurity" regarding the specific token budget (KK) used in deployment.

Affected Systems

  • LVLM Architectures: LLaVA (v1.5, NeXT), Qwen2.5-VL, and derivatives.
  • Compression Mechanisms (Outer-LLM):
  • VisionZip
  • VisPruner
  • DivPrune
  • FlowCut
  • PruMerge

Mitigation Steps

  • Robustness-Aware Selection (D1): Modify the token selection mechanism to penalize tokens with unstable attention scores. Rank tokens by si(x)=Em[ai(x+δm)]−β⋅Stdm[ai(x+δm)]s_i(x) = \mathbb{E}_m[a_i(x+\delta_m)] - \beta \cdot \mathrm{Std}_m[a_i(x+\delta_m)], where δm\delta_m is random noise.
  • Stochastic Candidate Pool (D2): Introduce randomness into the bottleneck to break the deterministic predictability of survivors. Select the top-(K+Δ)(K+\Delta) tokens and uniformly sample KK survivors from this pool.
  • Attention-Based Detection: Implement a lightweight detector that monitors the "peakiness" of the attention distribution. Adversarial attacks tend to disperse attention; a threshold on the cumulative attention mass of the Top-K tokens can identify malicious inputs.

Research context and provenance

Catalog identifier
LMVD-e60cc97b
Internal research identifier, not an official CVE identifier.
Evidence and verification
Paper-reported; independent reproduction is not documented.
Primary research source linked.
Severity
Not rated by this catalog.
Source and publication type
arXiv · Research preprint.
Peer-review status is not provided by this source.
Author and publication status
Author metadata is not stored; see the primary paper.
Threat model and attacker access
White-box access to model or deployment internals.
Related deployment categories
Vision-language models; Agent workflows
Taxonomy labels only; paper-specific deployment prerequisites are not inferred.
Affected systems
LVLM Architectures: LLaVA (v1.5, NeXT), Qwen2.5-VL, and derivatives. Compression Mechanisms (Outer-LLM): VisionZip VisPruner DivPrune FlowCut PruMerge

Research Paper

On the Adversarial Robustness of Large Vision-Language Models under Visual Token Compression

Primary source: arXiv. Findings are reported by the cited research and have not been independently verified.

View Paper

Evidence

This entry is based on a primary research source. Its findings are paper-reported; independent reproduction and verification are not claimed.

https://arxiv.org/abs/2601.21531