Abstract
Adversarial attacks transfer between AI models when they target the shared input data-space (e.g., raw text or pixels), but they fail when targeting a model's unique representation space (internal activations). This research explains the discrepancy in portability between text jailbreaks and image-based Vision-Language Model (VLM) attacks, revealing that transferability is a function of geometric alignment between models.
Introduction: The Transferability Puzzle
In AI safety, "transferability" refers to the scenario where an attacker optimizes a "jailbreak" on a small, open-source model and successfully applies it to a proprietary system like GPT-4. While text-based attacks (like GCG) are highly portable, image-based jailbreaks for VLMs often fail to transfer between model families. This paper proposes a unifying theory: transferability depends on whether the attack targets the shared "data-space" or the private "representation-space" of a model.
Methodology and Theoretical Framework
The researchers investigated this hypothesis through four distinct settings:
- Mathematical Modeling: Using kernel regression, they proved that attacks on input data transfer perfectly between models computing the same function, while attacks on internal activations fail at a rate that grows exponentially with dimensionality.
- Image Classifiers: Experiments with ResNet18 models compared pixel-level attacks (data-space) against latent layer attacks (representation-space).
- Language Models (LMs): The study compared discrete text suffixes against "soft prompts"—continuous vectors existing only in the model's embedding space.
- Vision-Language Models (VLMs): Analysis of 16 VLMs treated text as data and images as perturbations to activations, given the unique nature of VLM projectors.
To quantify model similarity, the authors utilized Cosine Similarity and Centered Kernel Alignment (CKA) on datasets including CIFAR-10, AdvBench, FineWeb, and the Prismatic VLM Suite.
Key Insights: Shared vs. Private Spaces
The core finding is the distinction between the Data-Space (a universal language of pixels and characters) and the Representation-Space (a private language unique to a model's architecture and training).
In VLMs, the "projector" bridge between vision and language components creates highly idiosyncratic representations. This makes image-based attacks behave like representation-space attacks, explaining their poor transferability. Conversely, language models often fall into an "Anna Karenina" regime where successful models learn similar internal representations, whereas vision adapters remain in a "snowflake" regime of unique differences.
Results and Empirical Evidence
The experimental results strongly support the theoretical model:
- ResNet18: Pixel-level attacks transferred with nearly 100% success, while Layer 5 representation attacks showed near 0% transfer.
- LMs: Soft prompt jailbreaks failed to transfer between independent models but succeeded between models fine-tuned from the same base (CKA > 0.99).
- VLMs: Text-based jailbreaks achieved up to 100% Attack Success Rate (ASR) on transfer models, while image jailbreaks only transferred when models shared the same language backbone.
Conclusion and Future Directions
The study highlights that representation-space attacks can only transfer if models are "geometrically aligned." While the current focus is on adapter-style VLMs, future work is needed for "early-fusion" models. A critical open question is whether scaling models leads to more aligned "Platonic" representations, which might inadvertently increase the vulnerability of future large-scale models to representation-space transfer attacks.
Summary updated