Understanding Adversarial Transfer: Why Representation-Space Attacks Fail Where Data-Space Attacks Succeed
Isha Gupta, Rylan Schaeffer, Joshua Kazdan, Ken Ziyu Liu, Sanmi Koyejo
TL;DR
The paper investigates why adversarial transfer differs between data-space and representation-space attacks. It introduces a mathematical model showing perfect transfer for data-space attacks between functionally equivalent networks, while representation-space attacks require stringent geometric alignment, with transfer vanishing in high dimensions otherwise. Empirically, data-space attacks transfer for image classifiers and vision-language models, whereas representation-space attacks rarely transfer unless latent geometries are closely aligned; text-based attacks readily transfer across language-model families, but soft-prompt attacks typically do not unless representations align. The work further demonstrates that, under geometric alignment, representation-space attacks can transfer in both language and vision-language models, highlighting latent-space structure as a key determinant. These insights have practical implications for designing robust multimodal systems and understanding when adversarial attacks may generalize across models.
Abstract
The field of adversarial robustness has long established that adversarial examples can successfully transfer between image classifiers and that text jailbreaks can successfully transfer between language models (LMs). However, a pair of recent studies reported being unable to successfully transfer image jailbreaks between vision-language models (VLMs). To explain this striking difference, we propose a fundamental distinction regarding the transferability of attacks against machine learning models: attacks in the input data-space can transfer, whereas attacks in model representation space do not, at least not without geometric alignment of representations. We then provide theoretical and empirical evidence of this hypothesis in four different settings. First, we mathematically prove this distinction in a simple setting where two networks compute the same input-output map but via different representations. Second, we construct representation-space attacks against image classifiers that are as successful as well-known data-space attacks, but fail to transfer. Third, we construct representation-space attacks against LMs that successfully jailbreak the attacked models but again fail to transfer. Fourth, we construct data-space attacks against VLMs that successfully transfer to new VLMs, and we show that representation space attacks can transfer when VLMs' latent geometries are sufficiently aligned in post-projector space. Our work reveals that adversarial transfer is not an inherent property of all attacks but contingent on their operational domain - the shared data-space versus models' unique representation spaces - a critical insight for building more robust models.
