TL;DR
Large Vision-Language Models (LVLMs) rely on Vision-Language Projectors (VLPs) to bridge the gap between visual features and language models. This paper uncovers a stark security asymmetry between VLP designs: compressed projectors (like Q-former) introduce severe adversarial vulnerabilities that allow attackers to easily compromise models, while uncompressed projectors (like MLPs) remain highly robust. Crucially, this vulnerability is an inherent architectural flaw of token compression rather than a simple byproduct of having fewer visual tokens.
What Problem Does This Paper Address?
Modern LVLMs typically combine three components: a pre-trained visual encoder (e.g., CLIP), a large language model (LLM), and a VLP that aligns visual tokens with the LLM's input space. While prior research has heavily scrutinized the security of visual encoders and LLMs independently, the security implications of the VLP layer have been largely ignored.
Mainstream VLPs fall into two architectural categories:
- Compressed Projectors: Squeeze a large number of visual tokens into a small, fixed set of query tokens (e.g., Q-former) to maximize computational efficiency.
- Uncompressed Projectors: Map visual tokens directly to the LLM's feature dimensions using multilayer perceptrons (MLPs), keeping the output token count proportional to the input.
The authors investigate whether this architectural choice impacts an LVLM's vulnerability to adversarial manipulation, particularly in practical "gray-box" scenarios where an attacker knows the model's structure but lacks access to its exact weights or the underlying LLM.
Methods
The authors introduce a gray-box attack framework called TCP (Threat of Compressed Projectors). Because public CLIP checkpoints are standard across the industry, they assume the adversary has access to the visual encoder's weights and the VLP's architectural type, but not the VLP weights or the LLM parameters.
To bypass this lack of information, the authors construct surrogate VLPs using two distinct strategies:
- Transfer Learning: Borrowing a VLP from a similar model family trained on a different LLM.
- Training from Scratch: Training a surrogate VLP component from scratch using only the visual encoder and open datasets, completely independent of the target LLM.
They formulate a joint loss function, $\mathcal{L}_{TCP}$, which balances the adversarial loss of the visual encoder ($\mathcal{L}_{VE}$) and the projector ($\mathcal{L}_{VLP}$). Attacks are executed using standard gradient-based optimization techniques, including Projected Gradient Descent (PGD), Carlini & Wagner (CW), and Momentum Iterative FGSM (MI-FGSM).
To isolate whether the vulnerability of compressed projectors stems from their mechanics or simply their low token count, the authors also test an uncompressed MLP projector paired with spatial mean pooling to artificially downsample its token count.
Datasets
The authors evaluated their attacks across several standard benchmarks:
- VQA v2 2000: A primary evaluation dataset constructed by randomly sampling 2,000 image-question pairs from the official Visual Question Answering (VQA) v2 dataset.
- ImageNet-1K, VizWiz, and COCO: Used to verify the generalizability of the attacks across diverse tasks like image classification and image captioning.
Key Insights and Ideas
- The Compression Vulnerability Amplifier: Compressed projectors act as an entry point for adversarial perturbations. Attacking the VLP layer of a compressed model degrades performance significantly more than attacking the visual encoder alone. Conversely, uncompressed projectors introduce no additional security risks.
- Architecture Over Quantity: One might hypothesize that compressed projectors are vulnerable simply because they pass less visual information (fewer tokens) to the LLM. However, when the authors downsampled an uncompressed MLP projector from 576 tokens to just 36 tokens using mean pooling, it retained its robust security profile. This proves that the vulnerability is baked into the cross-attention/query mechanics of compressed architectures like Q-former, not the token bottleneck itself.
- Pre-Training Task Exploitation: When training a surrogate model from scratch to attack a compressed VLP, the authors discovered that training exclusively on an Image Captioning (IC) task yields identical attack potency compared to training on multiple complex tasks simultaneously. This significantly lowers the barrier to entry for an attacker.
Key Results
- White-Box Asymmetry: In white-box settings on InstructBLIP (compressed), targeting the VLP dropped VQA scores from ~72% to ~34% (PGD) and ~15% (CW), far outperforming attacks targeting the visual encoder alone. For LLaVA (uncompressed), VLP attacks failed to outperform encoder attacks.
- Gray-Box Potency: Even without knowing the target model's exact weights, surrogate Q-formers trained from scratch successfully compromised compressed target models, dropping InstructBLIP performance down to ~39% under gray-box PGD attacks.
- A Safer Path to Efficiency: The authors demonstrate that applying a simple $2\times2$ spatial mean pooling operation to an uncompressed LLaVA model reduces visual tokens to 25% of their original count while incurring only a marginal 1.3% drop in clean accuracy, offering a secure alternative to compressed projectors.
Limitations and Future Work
- Basic Attack Suite: The study relies on standard adversarial attack methods (PGD, CW, MI-FGSM) and does not explore advanced transferability enhancement techniques (such as DI-FGSM) which might amplify gray-box threats even further.
- Task Scope: The evaluation was restricted primarily to VQA and image captioning, leaving other multimodal domains (like video understanding or document processing) unexamined.
- Lack of Empirical Defense Evaluation: While the paper proposes architectural workarounds (like using pooled uncompressed projectors), it does not implement or rigorously evaluate active defensive training mechanisms (e.g., adversarial training) specifically tailored to protect the VLP layer.
Summary updated