Adversarial transferability is the property whereby an adversarial example crafted against one machine learning model also causes a different model, trained separately and often with another architecture, to make a wrong prediction. In AI security, it is the mechanism behind the transfer attack: an attacker builds a local surrogate model, generates adversarial inputs with full white-box access to it, and sends those inputs to a target system whose internals remain hidden.
Transferability matters because it removes the main practical barrier to evasion attacks. A deployed model does not need to expose its weights or gradients to be vulnerable; similarity in training data and learned features is often enough. It also explains why security through obscurity, such as keeping model details secret, provides limited protection against adversarial inputs.
Why adversarial examples transfer between models
Adversarial examples transfer because models trained on similar data learn similar decision boundaries and rely on similar features. A perturbation that pushes an input across the boundary of one model frequently pushes it across the nearby boundary of another model as well.
Research has offered several complementary explanations. The linearity hypothesis holds that high-dimensional models behave approximately linearly, so small coordinated changes across many input dimensions accumulate into large output changes in any similar model. A related finding is that adversarial perturbations occupy large shared subspaces, meaning many directions fool many models at once. The non-robust features view argues that models exploit genuinely predictive but imperceptible patterns in the data; because these patterns belong to the dataset, every model trained on it learns them, and attacks on those patterns transfer.
The strength of transfer is usually measured as the transfer success rate: the share of adversarial examples generated on a source model that also fool the target model. The following table lists the factors that most influence it.
| Factor | Effect on transferability | Reason |
|---|---|---|
| Shared training data | Strongly increases | Models learn the same features |
| Similar architecture | Increases | Similar gradients and boundaries |
| Larger perturbation budget | Increases | Crosses more decision boundaries |
| Targeted attack goal | Strongly decreases | A specific wrong class is harder to hit |
| Adversarially trained target | Strongly decreases | Boundaries are smoother and different |
| Input preprocessing on target | Often decreases | Perturbation pattern is disrupted |
Types of transfer attacks
Transfer attacks differ by how much the attacker knows and by whether the goal is any misclassification or a specific one. Untargeted transfer between similar image classifiers often succeeds at high rates, while targeted transfer traditionally succeeds far less often without specialized techniques.
| Variant | Attacker knowledge | Typical use |
|---|---|---|
| Pure transfer attack | None about the target beyond its task | Fully black-box evasion |
| Ensemble surrogate attack | Several public models | Higher transfer to unknown targets |
| Query-assisted transfer | Limited query access to outputs | Refines a transferred starting point |
| Model extraction then transfer | Many queries to train a copy | Builds a close surrogate first |
| Cross-modal or cross-task transfer | Related model on another task | Attacks multimodal or downstream systems |
Transferability also appears beyond image classification. Adversarial suffixes for language models, optimized on open-weight models, have been shown to transfer to some proprietary chat models, and universal adversarial perturbations often transfer across architectures because they exploit dataset-level features rather than one model’s quirks.
Techniques that increase transferability
Attackers improve transfer mainly by preventing overfitting to the surrogate model. Single-step methods such as the fast gradient sign method often transfer better than strong iterative attacks, because iterative optimization tends to exploit quirks of the source model that other models do not share.
- Ensemble attacks optimize against several surrogates at once, finding perturbations that fool all of them.
- Momentum iterative methods stabilize the update direction and escape poor local optima.
- Input diversity applies random resizing or padding at each step so the perturbation survives transformations.
- Translation-invariant attacks smooth gradients to resist shifts and defensive filters.
- Feature-level attacks perturb intermediate representations rather than final outputs, targeting shared features.
These techniques matter for defenders because robustness evaluations should use them. Testing a model only with attacks crafted on itself underestimates risk; a credible evaluation includes transfer attacks from strong, diverse surrogates.
Defending against transfer attacks
No single defense eliminates transferability, but several measures reduce it substantially. Adversarial training, especially ensemble adversarial training that includes examples transferred from other models, remains the most reliable empirical defense. Certified methods such as randomized smoothing offer provable guarantees within a fixed perturbation radius.
| Defense | Effect on transfer attacks | Main limitation |
|---|---|---|
| Ensemble adversarial training | Strong reduction | Higher training cost, lower clean accuracy |
| Randomized smoothing | Provable within a radius | Small certified radius, slower inference |
| Input transformation | Moderate reduction | Adaptive attacks can bypass it |
| Model diversity in ensembles | Moderate reduction | Shared data limits true diversity |
| Secrecy of model details | Weak reduction | Surrogates often suffice |
A frequent mistake is to treat a defense as effective because white-box attacks fail against it. Gradient masking can block gradient-based white-box attacks while leaving the model fully exposed to transferred examples; in fact, transfer attacks succeeding where white-box attacks fail is a classic warning sign of masked gradients rather than genuine robustness.
Where transferability shapes threat models
Threat models in frameworks such as MITRE ATLAS and NIST AI 100-2 treat transferability as the reason a black-box setting is not automatically safe. Any system whose task and data domain are public, such as traffic sign recognition, content moderation or malware detection, should assume that attackers can train a capable surrogate.
Transferability is not uniform, however. Targeted transfer, heavily defended targets and very different data domains reduce success rates considerably, and reported numbers vary widely between studies. Security teams should therefore measure transfer against their own models through red teaming rather than rely on published rates.
A plain-language summary
Imagine a trick that fools one security guard. Often the same trick fools a second guard, because both were trained the same way. Adversarial transferability works like that for AI systems.
An attacker builds a practice copy of a model. They design a tricky input against the copy. That input often fools the real system too, even though the attacker never saw its inside. Keeping a model secret is therefore not enough protection.
An example from practice
A security team at an email provider evaluates its image-based spam filter, which detects promotional text hidden inside pictures. Red teamers have no access to the production model. They train three open-source image classifiers on a similar public dataset and use them as an ensemble surrogate.
Using a momentum iterative attack with input diversity, they generate 1,000 perturbed spam images that remain readable to humans. About a third bypass the production filter, compared with almost none of the unmodified images. The team adds ensemble adversarial training with transferred examples and a light image-compression step. A repeat test shows the bypass rate falls to a small single-digit percentage, and the transfer test becomes a standard part of each model release.