TL;DR
Visual token compression speeds up Large Vision-Language Models (LVLMs) but creates a dangerous blind spot for security evaluations. This paper reveals that standard adversarial attacks overestimate the robustness of compressed models due to an "optimization-inference mismatch." To fix this, the authors introduce CAGE (Compression-AliGnEd attack), a novel framework that successfully compromises compressed LVLMs by predicting and targeting the specific visual tokens most likely to survive compression.
What Problem Does This Paper Address?
To make Large Vision-Language Models (LVLMs) efficient enough for real-time applications like mobile assistants or autonomous driving, developers frequently use visual token compression. These techniques prune or merge redundant visual patches (tokens) before passing them to the language model backbone.
Previously, researchers assumed that token compression might act as a natural defense by filtering out adversarial noise. However, this paper demonstrates that existing encoder-based attacks fail to properly evaluate compressed models because they optimize perturbations across all tokens uniformly. In reality, the downstream model only sees the compressed subset during inference. This optimization-inference mismatch leads to an overestimation of model robustness, masking critical security vulnerabilities.
Methods
The authors propose CAGE (Compression-AliGnEd attack), a gray-box adversarial framework that aligns its perturbation strategy with the model's compression bottleneck—even when the exact compression mechanism or token budget is entirely unknown at test time.
CAGE achieves this through two core components:
- Expected Feature Disruption (EFD): Instead of treating all tokens equally, EFD models the unknown deployment token budget probabilistically. It calculates a "survival probability" for each token across a range of plausible budgets and concentrates adversarial distortion on the patches most likely to survive the bottleneck.
- Rank Distortion Alignment (RDA): To ensure the most heavily corrupted tokens actually make it through the compression filter, RDA uses a differentiable distribution-matching loss (KL divergence). This actively pushes up the attention/importance scores of highly distorted tokens, forcing the compression module to select them.
Datasets
The framework was evaluated across several diverse datasets testing different multimodal capabilities:
- VQA-v2: A standard open-ended visual question answering benchmark for general perception.
- TextVQA: A challenge focusing on reading and understanding text embedded within natural images (OCR-centric reasoning).
- GQA: A dataset emphasizing compositional visual reasoning and multi-hop spatial relationships.
- DriveQA: A driving-oriented VQA dataset used to simulate safety-critical, real-world deployment scenarios.
Key Insights and Ideas
- Compression is a "Distortion Concentrator," Not a Denoiser: Crucially, the authors found that compression algorithms preferentially retain high-importance tokens. Because adversarial attacks naturally target these exact salient regions, compression ends up discarding the clean, low-importance background patches while preserving the heavily corrupted ones.
- The Budget Mismatch Illusion: Standard attacks look less effective as compression gets harsher, creating an illusion of robustness. CAGE breaks this illusion by showing that when an attack is properly aligned with the compression budget, the model's vulnerability is fully exposed.
- Informativeness vs. Robustness Trade-off: When exploring potential defenses, the authors discovered that tokens stable under noise are often the least informative (e.g., flat backgrounds). Explicitly forcing the model to select "robust" tokens severely degrades its accuracy on clean data, making simple selection-based defenses impractical.
Key Results
CAGE was tested against five representative token-compression mechanisms (VisionZip, VisPruner, DivPrune, FlowCut, and PruMerge) across multiple model backbones (LLaVA, Qwen2.5-VL, and InternVL3-8B).
- Consistently Lower Robust Accuracy: Across the board, CAGE achieved significantly lower robust accuracy than standard baselines (like VEAttack). For example, on LLaVA with a 16-token budget on TextVQA, CAGE dropped robust accuracy to an average of 15.7% compared to the baseline's 25.5%.
- High Impact on Text-Centric Tasks: CAGE proved exceptionally lethal on TextVQA. Because text-based answers rely on sparse, highly localized visual cues, corrupting just a few text-bearing survivor tokens completely breaks the model's performance.
- Non-Monotonic Robustness Degradation: Using a metric called Conditional Robustness Degradation (CRD), the authors showed that CAGE effectively targets survivor tokens under moderate budgets, causing a sharper drop in robust accuracy relative to clean accuracy than standard attacks.
Limitations and Future Work
- Scope of Compression: This study primarily focuses on training-free, plug-and-play "outer-LLM" compression methods. The impact on "inner-LLM" methods (which compress tokens dynamically within the transformer layers) remains unexplored.
- Static Images Only: The current implementation targets single-image tasks. Future work is needed to extend this to video processing, multi-image inputs, and long-horizon agentic workflows where errors can accumulate over time.
- Fragile Defenses: While the authors proposed an attention-based adversarial detector that achieved 94% accuracy, it relies on a threshold tuned to known attacks and is brittle against unseen adversarial strategies. Developing more generalized, multi-feature defenses is a key next step.
Summary updated