TL;DR
Adversarial attacks readily transfer across machine learning models when applied in data space (e.g., raw pixels or discrete text tokens), but consistently fail when applied in representation space (e.g., internal activations or continuous embeddings). This distinction explains why vision-language model (VLM) image jailbreaks have notoriously failed to transfer: in adapter-based VLMs, images act as internal representation injections into the language model rather than native data.
What Problem Does This Paper Address?
In classical adversarial machine learning, attacks transfer remarkably well: an adversarial perturbation crafted on one image classifier often fools another, and discrete text jailbreaks (like GCG) transfer across large language models (LLMs). Surprisingly, recent studies discovered that image-based jailbreaks almost never transfer between vision-language models (VLMs), even when ensembled across multiple architectures.
The authors investigate why this gap exists, proposing that transferability is not an intrinsic property of adversarial optimization itself, but depends on the domain where the attack operates: the shared input data space versus a model's unique internal representation space.
Methods
The authors investigate their hypothesis using both mathematical analysis and empirical experiments across four modalities:
- High-Dimensional Probability & Linear Readouts: They model two networks computing identical input-output maps related by an orthonormal rotation $Q \in O(H)$. They derive exact tail distributions and expected transfer ratios for representation perturbations under an $L_2$ budget.
- Image Classifier Layer Perturbations: Training 10 architecturally identical ResNet18s on CIFAR-10 with varying random seeds, they compare standard input-pixel attacks with perturbations injected directly into intermediate feature activations ($\ell \in \{1, 5, 7, 9\}$).
- LLM Continuous Soft Prompts: They compare discrete token attacks (GCG) to continuous representation-space attacks by optimizing universal soft prompt prefixes (80 learnable embeddings) across models sharing hidden dimensions.
- VLM Modality Isolation: Using 16 adapter-based VLMs from the Prismatic suite, they train universal textual GCG suffixes on model pairs and evaluate transfer across 14 held-out VLMs without feeding image inputs.
- Latent Space Geometric Alignment: To measure whether representation attacks can transfer when representations match, they evaluate representational geometry using average pairwise Cosine Similarity and Centered Kernel Alignment (CKA) across different fine-tuned checkpoints of LLaMA-3.2-3B.
Datasets
- CIFAR-10: Used for training ResNet18 classifiers and for evaluating intermediate latent representations across VLM vision encoders and language heads.
- AdvBench: Used to optimize and evaluate both discrete textual jailbreak suffixes (via GCG) and continuous soft prompt jailbreaks across LLMs and VLMs.
- FineWeb: 100 randomly sampled text prompts were used to compute CKA and cosine similarity across transformer layers.
- Instruction Fine-Tuning Datasets: Alpaca, Dolly, and NoRobots were used to fine-tune LLaMA-3.2-3B to test whether representation attacks transfer across models derived from a common base.
(No new datasets were introduced.)
Key Insights and Ideas
- Images Are "Representation-Space" Injections for VLMs: In adapter-style VLMs (e.g., LLaVA), visual patch features pass through an unconstrained, randomly initialized projector before entering the LLM backbone as continuous vectors. To the LLM, these vectors are not "language data," but arbitrary continuous internal activations. Because projector embedding spaces are misaligned across models, an adversarial image optimized for Model A projects into a completely random latent vector in Model B.
- Dimension Kills Representation Transfer: In an $H$-dimensional latent space, an arbitrary orthogonal basis transformation shrinks the expected preserved magnitude of an optimal attack as $\mathbb{E}[|R|] \sim \sqrt{\frac{2}{\pi H}}$, exhibiting sharp sub-Gaussian decay $\le 2\exp(-\frac{H-1}{2}t^2)$. A transferred perturbation is as likely to decrease harm as it is to increase it (a 50% coin flip).
- "Anna Karenina" LLMs vs. "Snowflake" Vision Encoders: Text tokenization and language training objectives force different LLMs into shared input-output representations that generalize across architectures. Conversely, vision adapters live in a "snowflake" regime where differing initializations and projections yield incompatible internal coordinates, inadvertently providing a defense against adversarial transfer.
- Geometric Alignment Restores Transfer: Representation-space attacks can transfer if the models share an underlying geometric coordinate system. Soft prompts optimized on a fine-tuned model successfully jailbreak other checkpoints fine-tuned from the same base model on entirely different datasets.
Key Results
- Image Classifiers: Pixel-level data attacks achieved consistent transfer across random seeds, whereas intermediate representation attacks at Layer 5 and Layer 7 dropped target Attack Success Rate (ASR) to near 0%.
- Language Models: Universal soft prompts achieved high jailbreak rates on source models but failed completely when applied to independent models with the exact same hidden dimension.
- VLMs: In stark contrast to prior failures with image jailbreaks, textual GCG attacks on VLMs achieved up to 100% transfer ASR across held-out models spanning different LLM backbones (LLaMA, Gemma, Mistral) and vision adapters (CLIP, SigLIP, DinoSigLIP).
- Latent Space Geometry: Fine-tuned variants of LLaMA-3.2-3B maintained high Cosine Similarity ($>0.9$) and CKA ($>0.99$), enabling soft prompt jailbreaks to transfer at rates matching the source model. Independent models of identical dimension showed near-zero cosine similarity ($<0.05$) and variable CKA, preventing transfer.
Limitations and Future Work
- Theoretical Assumptions: The mathematical proof models basis divergence as random Haar-uniform rotations, which oversimplifies the structured optimization dynamics and inductive biases of deep neural networks.
- Soft Prompt Instability: The authors note significant sensitivity and optimization variance across random seeds during soft prompt generation.
- Scope of VLM Architectures: Experiments focused primarily on adapter-style (late-fusion) VLMs; early-fusion/native multimodal models (such as Chameleon) were not thoroughly explored under this framework.
- Heuristic Alignment Metrics: Cosine similarity and CKA were used as proxies for geometric alignment, but neither is formally proven to be a necessary and sufficient criterion for attack transferability.
Summary updated