Adversarial attacks expose the fragility of deep learning models by introducing imperceptible perturbations that trigger incorrect outputs. However, a significant practical hurdle remains: an attack meticulously optimized for one model (the "surrogate") often fails completely when applied to another (the "target"). This discrepancy is known as the transferability gap.
In real-world scenarios—such as attacking a proprietary API like GPT-4 or a commercial vision system—the attacker lacks access to the target's internal weights. To succeed, researchers must develop techniques that generalize adversarial noise across different architectures, training data, and modalities.
The Overfitting Problem
The core reason adversarial examples fail to transfer is overfitting. When we use gradient descent to find a perturbation, the optimization process naturally gravitates toward the specific "nooks and crannies" of the surrogate model's loss landscape. These local irregularities are often artifacts of a specific architecture or initialization rather than fundamental properties of the data.
Mingyuan Fan and Xiaodan Li argue in Transferability Bound Theory that transferability is tied to the "flatness" of the loss landscape. If an attack lands in a sharp, narrow valley of the surrogate's loss, a slight shift in the target model's decision boundary will render the attack useless. To improve transferability, we must find "broad valleys" of vulnerability that are likely to exist across many models.
Attacking the Ensemble Cloud
One of the most intuitive ways to find these broad vulnerabilities is to attack multiple models simultaneously. If a single perturbation can fool three different architectures, it is likely to fool a fourth.
However, training against a large ensemble is computationally expensive. Yingwei Li and Alan Yuille proposed Ghost Networks (Learning Transferable Adversarial Examples via Ghost Networks) to solve this. Instead of using multiple real models, they apply random "erosion" to a single base model's internal structure, creating a vast pool of "virtual" models. By ensembling these virtual variations, the attack avoids overfitting to the base model's specific quirks.
Similarly, Xiaosen Wang and Jingdong Wang introduced Admix (Admix: Enhancing the Transferability of Adversarial Attacks), which mixes small portions of images from different categories into the input. This forces the adversarial perturbation to be effective across a more diverse input distribution, nudging it toward more general decision boundaries.
Exploiting Architectural Commonality
Models that perform the same task often share structural similarities. Yisen Wang demonstrated that skip connections in ResNets are a primary highway for adversarial signals. In Skip Connections Matter, they proposed the Skip Gradient Method (SGM), which prioritizes gradients flowing through these shortcuts. Because skip connections are a standard feature across many modern architectures, SGM-based attacks generalize far better than those targeting specific convolutional layers.
In the realm of Vision-Language Pre-training (VLP) models like CLIP, the shared vulnerability lies in the semantic alignment between text and images. Hanwang Zhang and Yinpeng Dong developed VLP-attack (Exploring Transferability of Multimodal Adversarial Samples), which perturbs both modalities to break the contrastive learning bond. By targeting the cross-modal interaction rather than just pixels, the attack exploits the fundamental logic of how these models "see" the world.
From Gibberish to Semantic Logic in LLMs
Early adversarial attacks on Large Language Models (LLMs) often produced "gibberish" suffixes—strings of random tokens that triggered harmful outputs. While effective on the surrogate, these often fail on proprietary models like GPT-4 because they exploit specific token-level weights that don't exist in the target.
Recent work has shifted toward semantic transferability. Xiaogeng Liu and Chaowei Xiao developed AutoDAN (AutoDAN: Generating Stealthy Jailbreak Prompts), which uses genetic algorithms to craft semantically meaningful jailbreak prompts. Because these prompts rely on human-like deceptive logic rather than mathematical noise, they are much harder for safety filters to catch and much easier to transfer across different "aligned" models.
Similarly, Runqi Lin and Bo Han identified a "distributional dependency" in jailbreaks. Their Perceived-importance Flatten (PiF) method (Understanding and Enhancing the Transferability of Jailbreaking Attacks) improves transferability by ensuring the attack doesn't rely on a few "highly important" tokens that might be weighted differently in a black-box system.
The Path Forward: Optimal Alignment
The most advanced transferability techniques now use Optimal Transport (OT) to align features across models. Jindong Gu showed in OT-Attack that by using OT to align augmented images with text descriptions, attackers can avoid overfitting to the source model's specific embedding space. This ensures the adversarial example remains "semantically close" to the target class across any model that has learned a similar world representation.
By moving away from pixel-perfect or token-perfect optimization and toward feature-level and semantic-level alignment, researchers are closing the transferability gap, making black-box systems increasingly vulnerable to the vulnerabilities discovered in open-source surrogates.