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

Xinwei Zhang, Hangcheng Liu, Li Bai, Hao Wang, Qingqing Ye, Tianwei Zhang, Haibo Hu

As Large Vision-Language Models (LVLMs) like LLaVA and InternVL advance toward edge deployment and real-time robotics, their computational cost remains a significant hurdle. These models often process thousands of visual tokens per image. To mitigate this, developers increasingly rely on "plug-and-play" token compression modules—such as VisionZip or VisPruner—to prune or merge visual data, discarding "unimportant" tokens before they reach the language model.

However, this paper reveals a critical security flaw in this efficiency pipeline: compression does not act as a filter for adversarial noise. Instead, it acts as a distortion concentrator that preferentially retains adversarial perturbations. By introducing a novel attack tailored to this bottleneck, the authors demonstrate that current robustness assessments for efficient LVLMs are dangerously optimistic.

The Optimization-Inference Mismatch

The core problem lies in how we currently test the robustness of these models. Standard adversarial attacks are "full-token"—they optimize and spread their perturbations across the entire image. Yet, during inference, the compression module throws the vast majority of those tokens away.

If an attacker does not know which tokens will be kept (the "survivor set") or what the exact "token budget" is, their attack becomes diluted and largely ineffective. The authors identify this as an optimization-inference mismatch. The critical question then becomes: Can an attack be designed to remain lethal even when the model discards 90% of the input?

The CAGE Attack Methodology

To bridge this gap, the authors propose CAGE (Compression-AliGnEd attack), a gray-box attack that targets the vision encoder without needing access to the deployed compression mechanism or its specific token budget. CAGE overcomes the optimization-inference mismatch using two core components:

  1. Expected Feature Disruption (EFD): Because the attacker lacks knowledge of the exact token budget (e.g., whether the model retains 16 or 192 tokens), CAGE treats the budget as a random variable. It calculates a "survival probability" for every token and weights the adversarial loss accordingly. This concentrates the perturbation energy on the tokens most likely to survive the bottleneck across a wide range of plausible budgets, solving the issue of budget dilution.
  2. Rank Distortion Alignment (RDA): Most compression modules select tokens based on importance scores, such as attention weights. RDA uses a differentiable loss to actively force the model's attention toward the most heavily distorted tokens. Essentially, it tricks the compression module into perceiving the "poisoned" tokens as the most informative, ensuring they are selected for final inference.

Key Insights and Experimental Results

The researchers evaluated CAGE across diverse benchmarks—VQA-v2 (general perception), TextVQA (scene-text reasoning), GQA (spatial relations), and COCO (image captioning)—against five different compression mechanisms on models like LLaVA, Qwen2.5-VL, and InternVL3-8B.

Compression is Not a Denoiser

A common intuition is that discarding data might "clean" an adversarial image by dropping noisy pixels. The authors prove the opposite. Because compression modules are designed to keep salient features, and RDA makes perturbations appear highly salient, the model ends up basing its entire decision on the most corrupted parts of the image.

Superior Potency and Efficiency

CAGE consistently achieved lower robust accuracy than state-of-the-art baselines like VEAttack. For example, on LLaVA with a strict 16-token budget, CAGE reduced accuracy to 42.7%, compared to the baseline's 49.7%. Notably, despite its increased effectiveness, CAGE adds only about 7% computational overhead compared to standard encoder-based attacks.

The Vulnerability of Fine-Grained Tasks

The performance drop caused by CAGE was most pronounced on TextVQA. Because text-based answers rely on highly specific, localized tokens, corrupting just a few "survivor" tokens that represent a word can completely flip the model's output.

Defenses, Limitations, and Future Work

The authors tested several potential defenses, including "Robustness-Aware Selection," which attempts to choose tokens that remain stable under noise. While these defenses offered slight improvements, they introduced a severe informativeness-robustness trade-off: the most "stable" tokens were often the least useful for actually answering the user's prompt, leading to a significant drop in clean accuracy.

While this study comprehensively addresses "outer-LLM" compression (pre-processing before the language model), the authors note that "inner-LLM" methods—where tokens are dropped dynamically inside the transformer layers—might exhibit different behaviors. Furthermore, extending CAGE to video-based LVLMs or multi-image agentic workflows, where error accumulation happens over time, remains a necessary next step.

Ultimately, this work highlights that current detection methods are brittle. The findings serve as a call to action for the development of inherently compression-aware training and security evaluations, rather than relying on inference-time patches for efficient LVLMs.

Summary updated

BibTeX
@inproceedings{zhang2026adversarial,
  author = {Xinwei Zhang and Hangcheng Liu and Li Bai and Hao Wang and Qingqing Ye and Tianwei Zhang and Haibo Hu},
  title = {{On the Adversarial Robustness of Large Vision-Language Models under Visual Token Compression}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=q5sBPXOuHC},
}
Figure